:root {
    color-scheme: light;
    --bg: #f8fafc;
    --panel: #ffffff;
    --panel-soft: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --dark: #020617;
    --slate: #334155;
    --accent: #0f172a;
    --accent-soft: #e2e8f0;
    --radius: 22px;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(148, 163, 184, 0.32), transparent 34rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #eef2f7 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.86);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    min-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.03em;
    color: var(--text);
}

.brand {
    font-size: 23px;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, #0f172a, #475569);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.22);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.nav-link,
.nav-dropdown > button {
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: #475569;
    font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown > button:hover {
    color: var(--text);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    left: -22px;
    width: 190px;
    padding: 10px;
    display: grid;
    gap: 4px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: 0.22s ease;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown-panel a {
    padding: 9px 12px;
    border-radius: 12px;
    color: #475569;
    font-weight: 650;
}

.nav-dropdown-panel a:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.nav-search {
    display: flex;
    align-items: center;
    width: 260px;
    padding: 4px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.nav-search input,
.large-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.nav-search input {
    padding: 8px 12px;
}

.nav-search button,
.large-search button {
    border: 0;
    border-radius: 999px;
    background: #0f172a;
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.nav-search button {
    padding: 8px 14px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: white;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--text);
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: linear-gradient(135deg, #334155, #0f172a 52%, #020617);
}

.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-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-bg {
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: saturate(0.9);
    opacity: 0.3;
}

.hero-overlay {
    background:
        radial-gradient(circle at 72% 40%, rgba(226, 232, 240, 0.16), transparent 24rem),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.74) 48%, rgba(15, 23, 42, 0.26));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 380px;
    align-items: center;
    gap: 48px;
    padding: 70px 0 120px;
}

.hero-copy {
    color: white;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero-copy .eyebrow {
    color: #e2e8f0;
}

.hero-copy h2,
.page-hero h1,
.intro-copy h1,
.detail-article h1 {
    margin: 0;
    letter-spacing: -0.055em;
    line-height: 1.05;
}

.hero-copy h2 {
    max-width: 760px;
    font-size: clamp(44px, 8vw, 82px);
}

.hero-copy p {
    max-width: 720px;
    margin: 24px 0 0;
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.tag-row,
.detail-tags,
.rank-meta,
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.tag-row span,
.quick-links a,
.rank-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 800;
}

.hero-tags span {
    padding: 8px 12px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn-primary,
.btn-ghost,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.2s ease;
}

.btn-primary {
    padding: 14px 24px;
    color: #0f172a;
    background: white;
    box-shadow: 0 18px 40px rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-ghost {
    padding: 13px 20px;
    color: #e2e8f0;
    border: 1px solid rgba(226, 232, 240, 0.36);
    background: rgba(15, 23, 42, 0.24);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.74);
    color: white;
}

.hero-poster {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
    transform: rotate(2deg);
}

.hero-poster:before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: inherit;
    z-index: 1;
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 44px;
    z-index: 4;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 44px;
    height: 6px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

.hero-dot.is-active {
    background: white;
}

.hero-card-strip {
    position: relative;
    z-index: 3;
    width: min(1180px, calc(100% - 32px));
    margin: -82px auto 0;
}

.section-block {
    width: min(1180px, calc(100% - 32px));
    margin: 80px auto;
}

.intro-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
    gap: 28px;
    align-items: center;
    padding: 34px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
}

.intro-copy h1 {
    font-size: clamp(30px, 4vw, 52px);
}

.intro-copy p,
.section-heading p,
.page-hero p,
.detail-article p,
.movie-card-body p,
.rank-item p,
.category-tile p,
.site-footer p {
    color: var(--muted);
}

.large-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.large-search input {
    padding: 14px 16px;
}

.large-search button {
    padding: 14px 24px;
}

.quick-links {
    grid-column: 1 / -1;
}

.quick-links a {
    padding: 9px 13px;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

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

.section-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(26px, 3.5vw, 42px);
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.section-heading p {
    max-width: 680px;
    margin: 10px 0 0;
}

.text-link {
    flex: 0 0 auto;
    padding: 10px 16px;
    color: #0f172a;
    background: white;
    border: 1px solid var(--line);
}

.text-link:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
}

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

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

.compact-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.movie-card {
    overflow: hidden;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.14);
}

.movie-card.is-hidden {
    display: none;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e2e8f0;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.55s ease;
}

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

.poster-year {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: white;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 900;
}

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

.movie-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.movie-meta-row a:hover {
    color: #0f172a;
}

.movie-card h3 {
    margin: 0;
    color: var(--text);
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.movie-card h3 a:hover {
    color: #475569;
}

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

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    padding: 4px 8px;
    color: #475569;
    background: #f1f5f9;
    font-size: 12px;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 42px auto 0;
    padding: clamp(38px, 8vw, 82px);
    color: white;
    background:
        radial-gradient(circle at 78% 20%, rgba(148, 163, 184, 0.24), transparent 22rem),
        linear-gradient(135deg, #334155, #0f172a 60%, #020617);
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.page-hero .section-kicker {
    color: #cbd5e1;
}

.page-hero h1 {
    max-width: 900px;
    font-size: clamp(38px, 7vw, 74px);
}

.page-hero p {
    max-width: 780px;
    color: #cbd5e1;
    font-size: 18px;
}

.page-hero .large-search {
    max-width: 720px;
    margin-top: 28px;
}

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

.category-tile {
    padding: 28px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
}

.category-tile span {
    color: #64748b;
    font-weight: 900;
}

.category-tile h2 {
    margin: 12px 0 8px;
    font-size: 34px;
    letter-spacing: -0.04em;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.category-samples a {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    font-weight: 750;
}

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

.full-rank-list {
    grid-template-columns: 1fr;
}

.rank-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.rank-cover {
    position: relative;
    overflow: hidden;
    border-radius: 17px;
    background: #e2e8f0;
}

.rank-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.rank-cover span {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    font-weight: 950;
}

.rank-item h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.rank-item p {
    margin: 8px 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-meta span {
    padding: 5px 9px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #64748b;
    font-weight: 750;
}

.breadcrumb a:hover {
    color: #0f172a;
}

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

.player-frame {
    position: relative;
    overflow: hidden;
    background: #020617;
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.24);
}

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

.player-start {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 0;
    display: grid;
    place-content: center;
    gap: 12px;
    color: white;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.68));
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
}

.player-start.is-hidden,
.player-frame.is-playing .player-start {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
}

.play-icon:before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid #0f172a;
}

.detail-article,
.detail-info-card,
.detail-cover {
    background: white;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.detail-article {
    margin-top: 28px;
    padding: clamp(24px, 5vw, 42px);
}

.detail-article h1 {
    font-size: clamp(34px, 5vw, 58px);
}

.detail-article .lead {
    margin-top: 18px;
    color: #334155;
    font-size: 20px;
}

.detail-article h2 {
    margin: 32px 0 12px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.detail-tags {
    margin-top: 20px;
}

.detail-tags span {
    padding: 7px 11px;
    color: #334155;
    background: #f1f5f9;
}

.detail-side {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 92px;
}

.detail-cover {
    display: block;
    overflow: hidden;
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-info-card {
    padding: 24px;
}

.detail-info-card h2 {
    margin: 0 0 16px;
}

.detail-info-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.detail-info-card div {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.detail-info-card dt {
    color: #64748b;
    font-weight: 800;
}

.detail-info-card dd {
    margin: 0;
    color: #0f172a;
    font-weight: 750;
}

.site-footer {
    margin-top: 90px;
    padding: 44px 0;
    background: #0f172a;
    color: white;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 540px);
    gap: 32px;
    align-items: start;
}

.footer-brand {
    margin-bottom: 10px;
    color: white;
    font-size: 24px;
}

.site-footer p {
    max-width: 560px;
    color: #cbd5e1;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.footer-links a {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-weight: 750;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.16);
}

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

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

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

    .detail-side {
        position: static;
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

@media (max-width: 820px) {
    .nav-wrap {
        min-height: 66px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: fixed;
        inset: 66px 16px auto 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 16px;
        background: white;
        border: 1px solid var(--line);
        border-radius: 22px;
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-dropdown-panel {
        position: static;
        width: 100%;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        margin-top: 8px;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 50px;
        padding-bottom: 140px;
    }

    .hero-poster {
        max-width: 260px;
        transform: none;
    }

    .hero-grid,
    .movie-grid,
    .compact-grid,
    .rank-list,
    .category-grid,
    .intro-section,
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .hero-card-strip {
        margin-top: -52px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .large-search {
        border-radius: 22px;
        align-items: stretch;
        flex-direction: column;
    }

    .large-search button {
        width: 100%;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .brand {
        font-size: 20px;
    }

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

    .hero-copy h2 {
        font-size: 42px;
    }

    .hero-grid,
    .movie-grid,
    .compact-grid,
    .rank-list,
    .category-grid,
    .intro-section,
    .footer-inner,
    .detail-side {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .page-hero {
        padding: 32px 24px;
        border-radius: 26px;
    }

    .detail-layout,
    .section-block,
    .page-hero,
    .hero-card-strip,
    .nav-wrap,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }
}
