:root {
    --bg: #fff7f7;
    --surface: #ffffff;
    --surface-soft: #fff1f2;
    --text: #111827;
    --muted: #6b7280;
    --line: #f3d5d8;
    --red: #ef4444;
    --red-dark: #dc2626;
    --pink: #ec4899;
    --orange: #f97316;
    --shadow: 0 24px 70px rgba(127, 29, 29, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(248, 113, 113, 0.22), transparent 34rem),
        linear-gradient(180deg, #fff7f7 0%, #ffffff 34rem, #fff7f7 100%);
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(244, 63, 94, 0.12);
    box-shadow: 0 12px 36px rgba(127, 29, 29, 0.06);
}

.navbar {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #be123c;
    white-space: nowrap;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--pink));
    box-shadow: 0 14px 28px rgba(239, 68, 68, 0.24);
    transform: translateZ(0);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #374151;
    font-weight: 650;
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--red-dark);
}

.nav-search {
    position: relative;
    width: min(280px, 22vw);
}

.nav-search input,
.filter-input,
.filter-select {
    width: 100%;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    padding: 12px 16px;
    color: #111827;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
    padding-left: 42px;
}

.nav-search input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #be123c;
    background: #fff1f2;
    font-size: 24px;
}

.mobile-panel {
    display: none;
    padding: 16px 0 22px;
    border-top: 1px solid #ffe4e6;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-links {
    display: grid;
    gap: 12px;
    font-weight: 700;
}

.mobile-links a {
    padding: 10px 14px;
    border-radius: 14px;
    background: #fff7f7;
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.56), rgba(17, 24, 39, 0.08)),
        linear-gradient(0deg, rgba(255, 247, 247, 1) 0%, rgba(255, 247, 247, 0) 24%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: 620px;
    color: #ffffff;
}

.hero-copy {
    width: min(720px, 100%);
    padding: 96px 0 112px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fecdd3;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.hero-copy h1 span,
.hero-copy h2 span {
    color: #fda4af;
}

.hero-copy p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.7;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px;
}

.hero-tags span,
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    color: #be123c;
    background: #ffe4e6;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn-primary,
.btn-secondary,
.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--pink));
    box-shadow: 0 18px 34px rgba(239, 68, 68, 0.28);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.btn-soft {
    color: #be123c;
    background: #fff1f2;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-soft:hover {
    transform: translateY(-2px) scale(1.01);
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 34px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #ffffff;
}

.page-hero,
.detail-banner {
    padding: 76px 0 38px;
}

.page-hero-card,
.detail-panel,
.category-card,
.movie-card,
.rank-item,
.info-card,
.player-shell,
.related-section,
.filter-panel,
.cta-card {
    border: 1px solid rgba(244, 63, 94, 0.12);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.page-hero-card {
    padding: clamp(28px, 5vw, 54px);
    border-radius: 32px;
    background:
        radial-gradient(circle at 86% 12%, rgba(236, 72, 153, 0.18), transparent 22rem),
        linear-gradient(135deg, #ffffff, #fff1f2);
}

.page-hero-card h1,
.section-title h2,
.detail-copy h1 {
    margin: 0;
    letter-spacing: -0.045em;
    color: #111827;
    font-weight: 900;
}

.page-hero-card h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.page-hero-card p,
.section-title p,
.category-card p,
.detail-copy p,
.info-card p,
.movie-card p {
    color: var(--muted);
    line-height: 1.75;
}

.section {
    padding: 42px 0;
}

.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.section-title h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-title p {
    margin: 10px 0 0;
    max-width: 720px;
}

.grid-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 188px;
    padding: 24px;
    border-radius: var(--radius);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -42px;
    width: 138px;
    height: 138px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(236, 72, 153, 0.06));
}

.category-card:hover,
.movie-card:hover,
.rank-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 80px rgba(127, 29, 29, 0.17);
}

.category-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--pink));
    font-size: 24px;
    font-weight: 900;
}

.category-card h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    position: relative;
    margin: 0 0 16px;
    font-size: 14px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card[hidden] {
    display: none;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #1f2937;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.08);
}

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.62), transparent 46%);
    opacity: 0.76;
}

.play-chip {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #be123c;
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-chip {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-year {
    position: absolute;
    z-index: 2;
    right: 12px;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.card-channel {
    position: absolute;
    z-index: 2;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.92), rgba(236, 72, 153, 0.88));
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 10px;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 900;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover .card-body h3 {
    color: #dc2626;
}

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9f1239;
    font-size: 12px;
    font-weight: 800;
}

.card-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: #fff1f2;
}

.rank-list {
    display: grid;
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 56px 120px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-number {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--pink));
    font-size: 20px;
    font-weight: 900;
}

.rank-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 16px;
    background: #1f2937;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-copy h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 900;
}

.rank-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.rank-meta {
    color: #be123c;
    font-weight: 900;
    white-space: nowrap;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 22px;
}

.empty-state {
    display: none;
    padding: 42px;
    border-radius: 22px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    border: 1px solid #ffe4e6;
}

.empty-state.is-visible {
    display: block;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
    gap: 28px;
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.52));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-play {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--pink));
    box-shadow: 0 24px 54px rgba(239, 68, 68, 0.34);
    font-size: 34px;
    transform: translateZ(0);
}

.detail-panel {
    padding: 28px;
    border-radius: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #9f1239;
    font-size: 14px;
    font-weight: 800;
}

.detail-copy h1 {
    margin-bottom: 16px;
    font-size: clamp(30px, 4vw, 48px);
}

.detail-copy p {
    margin: 0 0 18px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.detail-meta span {
    padding: 12px 14px;
    border-radius: 16px;
    color: #4b5563;
    background: #fff7f7;
    font-weight: 750;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.info-card {
    padding: 26px;
    border-radius: 24px;
}

.info-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 900;
}

.related-section {
    margin-top: 28px;
    padding: 26px;
    border-radius: 28px;
}

.related-section h2 {
    margin: 0 0 22px;
    font-size: 28px;
    font-weight: 900;
}

.cta-card {
    padding: clamp(30px, 6vw, 54px);
    border-radius: 32px;
    color: #ffffff;
    text-align: center;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.28), transparent 16rem),
        linear-gradient(135deg, var(--red), var(--pink));
}

.cta-card h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 50px);
    font-weight: 900;
}

.cta-card p {
    margin: 0 auto 24px;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.8;
}

.site-footer {
    margin-top: 48px;
    color: #f3f4f6;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
    padding: 48px 0;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: #fecdd3;
    font-size: 18px;
}

.footer-grid p,
.footer-grid a {
    color: #d1d5db;
    line-height: 1.75;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-bottom {
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .nav-links,
    .nav-search {
        display: none;
    }

    .menu-button {
        display: inline-grid;
        place-items: center;
    }

    .grid-categories,
    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .navbar {
        height: 64px;
    }

    .brand {
        font-size: 19px;
    }

    .hero-carousel,
    .hero-content {
        min-height: 560px;
    }

    .hero-copy {
        padding: 76px 0 96px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 44px;
    }

    .grid-categories,
    .card-grid,
    .info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 42px 88px 1fr;
    }

    .rank-meta {
        grid-column: 3;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 38px;
    }

    .hero-actions,
    .section-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-soft {
        width: 100%;
    }

    .grid-categories,
    .card-grid,
    .detail-meta {
        grid-template-columns: 1fr;
    }

    .section-title {
        display: block;
    }

    .rank-item {
        grid-template-columns: 38px 78px 1fr;
        gap: 12px;
    }

    .rank-number {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 16px;
    }
}
