:root {
    --rose: #f43f5e;
    --pink: #ec4899;
    --orange: #f97316;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 28px 60px rgba(15, 23, 42, 0.24);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: linear-gradient(180deg, #fff7f9 0%, #ffffff 24%, #f8fafc 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--slate-950);
}

.brand span:last-child,
.footer-brand {
    background: linear-gradient(90deg, var(--rose), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 12px 24px rgba(244, 63, 94, 0.3);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
    color: var(--slate-600);
    font-weight: 600;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.text-link:hover {
    color: var(--rose);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.nav-search input,
.mobile-panel input,
.big-search input,
.filter-bar input,
.filter-bar select {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: white;
    color: var(--slate-900);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
    width: 190px;
    padding: 10px 14px;
}

.nav-search button,
.mobile-panel button,
.big-search button,
.btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.big-search button,
.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 14px 28px rgba(244, 63, 94, 0.28);
}

.btn-ghost {
    color: white;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-full {
    width: 100%;
    display: inline-flex;
    justify-content: center;
}

.nav-search button:hover,
.big-search button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.nav-search input:focus,
.mobile-panel input:focus,
.big-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    font-size: 26px;
    color: var(--slate-900);
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
}

.mobile-panel.is-open {
    display: grid;
    gap: 12px;
}

.mobile-panel form {
    display: flex;
    gap: 10px;
}

.mobile-panel input {
    min-width: 0;
    flex: 1;
    padding: 10px 14px;
}

.hero-carousel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: var(--slate-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(1.02);
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-copy {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    color: white;
    padding: 120px 0 96px;
}

.hero-copy h1,
.page-hero h1,
.rank-hero h1,
.detail-hero h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.08em;
}

.hero-copy p,
.rank-hero p,
.detail-hero-copy p,
.page-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
    line-height: 1.8;
}

.page-hero p {
    color: var(--slate-600);
}

.hero-kicker,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--rose);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 700;
}

.hero-tags span {
    color: white;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-row span {
    color: #be123c;
    background: #fff1f2;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 30px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
}

.hero-dots button.is-active {
    background: white;
}

.section {
    padding: 58px 0;
}

.section-heading,
.intro-strip,
.category-overview-head,
.rank-heading,
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2,
.intro-strip h2,
.category-overview-head h2,
.content-block h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.text-link {
    font-weight: 800;
    color: var(--rose);
}

.big-search {
    width: min(520px, 100%);
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: white;
    box-shadow: var(--shadow);
}

.big-search input {
    min-width: 0;
    flex: 1;
    padding: 12px 16px;
    border-color: transparent;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.category-tile {
    min-height: 210px;
    padding: 24px;
    border-radius: var(--radius);
    color: white;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.movie-card:hover,
.compact-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.category-tile span {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
}

.category-tile p {
    margin: 12px 0 24px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
}

.category-tile strong {
    font-size: 2.4rem;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 28px;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(244, 63, 94, 0.35);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--slate-100);
}

.poster-link img,
.compact-card img,
.detail-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-link img,
.compact-card img {
    transition: transform 0.45s ease;
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: white;
    font-size: 0.76rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--rose), var(--pink));
}

.movie-card-body {
    padding: 16px;
}

.movie-meta {
    color: var(--slate-500);
    font-size: 0.84rem;
    font-weight: 700;
}

.movie-card h3 {
    margin: 8px 0;
    font-size: 1.08rem;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--rose);
}

.movie-card p {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--slate-600);
    line-height: 1.55;
}

.rank-panel,
.detail-side,
.category-overview-card,
.filter-panel {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 20px;
}

.rank-heading {
    margin-bottom: 10px;
    color: var(--slate-500);
    font-weight: 800;
}

.rank-heading span {
    color: var(--slate-950);
    font-size: 1.3rem;
}

.rank-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 13px 0;
    border-top: 1px solid #e2e8f0;
}

.rank-item strong {
    color: var(--rose);
    font-size: 1.2rem;
}

.rank-item span {
    overflow: hidden;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-item em {
    color: var(--slate-500);
    font-style: normal;
    font-size: 0.86rem;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.compact-grid-small {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-card {
    overflow: hidden;
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compact-card img {
    aspect-ratio: 16 / 10;
}

.compact-card span {
    display: block;
    overflow: hidden;
    padding: 12px;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.page-hero {
    padding: 82px 0 28px;
}

.page-hero h1 {
    color: var(--slate-950);
}

.category-overview-list {
    display: grid;
    gap: 24px;
}

.category-overview-card {
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-head p {
    color: var(--slate-500);
    line-height: 1.7;
}

.filter-panel {
    padding: 24px;
}

.filter-bar input,
.filter-bar select {
    padding: 12px 16px;
}

.filter-bar input {
    width: min(460px, 100%);
}

.movie-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.movie-card-wide {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.movie-card-wide .poster-link {
    aspect-ratio: auto;
    min-height: 180px;
}

.rank-hero,
.detail-hero {
    min-height: 420px;
    display: flex;
    align-items: center;
    color: white;
    background-size: cover;
    background-position: center;
}

.rank-hero-inner,
.detail-hero-inner {
    padding: 80px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 700;
}

.breadcrumb a:hover {
    color: white;
}

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

.detail-main {
    min-width: 0;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: black;
    box-shadow: var(--shadow-strong);
    aspect-ratio: 16 / 9;
}

.player-card video {
    width: 100%;
    height: 100%;
    background: black;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: white;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

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

.play-ring {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--rose), var(--pink));
    box-shadow: 0 22px 42px rgba(244, 63, 94, 0.34);
}

.content-block {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
}

.content-block p {
    color: var(--slate-600);
    font-size: 1.02rem;
    line-height: 1.9;
}

.detail-side {
    position: sticky;
    top: 96px;
    padding: 18px;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    background: var(--slate-100);
}

.fact-list {
    list-style: none;
    margin: 18px 0;
    padding: 0;
}

.fact-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid #e2e8f0;
}

.fact-list span {
    color: var(--slate-500);
}

.fact-list strong {
    text-align: right;
}

.site-footer {
    margin-top: 40px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #020617, #0f172a 60%, #1e1b4b);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 38px;
    padding: 48px 0;
}

.footer-grid h2 {
    margin: 0 0 12px;
    color: white;
    font-size: 1.1rem;
}

.footer-grid p {
    max-width: 460px;
    line-height: 1.8;
}

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

.footer-links a:hover {
    color: white;
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    font-size: 0.92rem;
}

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

    .menu-toggle {
        display: block;
    }

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

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

    .rank-panel,
    .detail-side {
        position: static;
    }

    .compact-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .hero-carousel {
        min-height: 560px;
    }

    .hero-copy {
        padding-top: 80px;
    }

    .intro-strip,
    .section-heading,
    .category-overview-head,
    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .big-search,
    .mobile-panel form {
        border-radius: 24px;
        flex-direction: column;
    }

    .category-grid,
    .movie-grid,
    .compact-grid,
    .compact-grid-small {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .movie-card-wide {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 520px) {
    .nav-shell {
        height: 64px;
    }

    .brand span:last-child {
        font-size: 0.98rem;
    }

    .hero-copy h1,
    .page-hero h1,
    .rank-hero h1,
    .detail-hero h1 {
        font-size: 2.35rem;
    }

    .category-grid,
    .movie-grid,
    .compact-grid,
    .compact-grid-small {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 42px 0;
    }

    .player-card {
        border-radius: 18px;
    }
}
