:root {
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --accent-500: #8b5cf6;
    --accent-700: #6d28d9;
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.20);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--neutral-900);
    background: var(--neutral-50);
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

.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.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.25);
    font-size: 15px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.brand-text em {
    font-size: 12px;
    color: var(--neutral-500);
    font-style: normal;
    margin-top: 3px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link,
.mobile-link {
    border-radius: 12px;
    color: var(--neutral-600);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 14px;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--primary-700);
    background: var(--primary-50);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid var(--neutral-200);
    border-radius: 14px;
    background: var(--white);
}

.mini-search input {
    width: 170px;
    border: 0;
    outline: 0;
    padding: 9px 8px;
    background: transparent;
}

.mini-search button,
.page-search button {
    border: 0;
    border-radius: 11px;
    background: var(--primary-600);
    color: var(--white);
    padding: 9px 14px;
    cursor: pointer;
    font-weight: 700;
}

.menu-button {
    display: none;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--neutral-100);
    color: var(--neutral-900);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid var(--neutral-200);
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.mobile-link {
    padding: 11px 12px;
}

.hero {
    position: relative;
    overflow: hidden;
    background: var(--neutral-900);
    color: var(--white);
}

.hero-slider {
    position: relative;
    min-height: clamp(520px, 64vh, 720px);
}

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

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 35%, rgba(59, 130, 246, 0.28), transparent 32%), linear-gradient(0deg, rgba(15, 23, 42, 0.80), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: clamp(520px, 64vh, 720px);
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    padding: 84px 0 104px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.16);
    color: #bfdbfe;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-copy h1 {
    margin: 0 0 8px;
    font-size: clamp(44px, 7vw, 82px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(26px, 4vw, 48px);
    line-height: 1.05;
}

.hero-copy p {
    margin: 0 0 22px;
    max-width: 660px;
    color: #e2e8f0;
    font-size: 18px;
}

.hero-meta,
.detail-meta,
.rank-meta,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.hero-meta span,
.detail-meta span,
.rank-meta span,
.movie-meta span {
    color: inherit;
    opacity: 0.86;
}

.hero-meta span:not(:last-child)::after,
.detail-meta span:not(:last-child)::after,
.rank-meta span:not(:last-child)::after,
.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 9px;
    opacity: 0.6;
}

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

.hero-tags {
    margin: 18px 0 26px;
}

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
}

.tag-row span {
    background: var(--primary-50);
    color: var(--primary-700);
}

.tag-row.big span {
    padding: 7px 12px;
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button.primary {
    background: var(--primary-600);
    color: var(--white);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
}

.button.primary:hover {
    background: var(--primary-700);
}

.button.ghost {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

.button.outline {
    border: 1px solid var(--neutral-200);
    background: var(--white);
    color: var(--neutral-900);
}

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.36);
    color: var(--white);
    font-size: 34px;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
}

.hero-arrow.prev {
    left: 22px;
}

.hero-arrow.next {
    right: 22px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--white);
}

.hero-category-bar {
    position: relative;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: -48px;
    padding-bottom: 26px;
}

.hero-category-bar a,
.pill-link {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--neutral-900);
    padding: 10px 15px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.page-stack {
    display: grid;
    gap: 44px;
    padding: 48px 0 64px;
}

.content-section,
.rank-panel,
.spotlight-panel,
.article-card,
.info-card {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
}

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

.section-heading h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--neutral-600);
}

.section-more {
    color: var(--primary-700);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    border-color: var(--primary-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, var(--neutral-200), var(--neutral-100));
}

.poster-link img,
.detail-poster img,
.rank-poster img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

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

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

.movie-meta {
    color: var(--neutral-500);
    font-size: 13px;
    margin-bottom: 8px;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.25;
}

.movie-card h3 a:hover,
.rank-info h2 a:hover {
    color: var(--primary-700);
}

.movie-card p {
    min-height: 54px;
    margin: 0 0 13px;
    color: var(--neutral-600);
    font-size: 14px;
}

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

.category-tile {
    display: grid;
    gap: 8px;
    min-height: 150px;
    border-radius: var(--radius-md);
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-700));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.category-tile strong {
    font-size: 22px;
}

.category-tile span {
    color: #dbeafe;
}

.category-tile em {
    align-self: end;
    font-style: normal;
    font-weight: 800;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 22px;
}

.rank-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-list li {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--neutral-100);
}

.rank-list li:last-child {
    border-bottom: 0;
}

.rank-list span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background: var(--primary-50);
    color: var(--primary-700);
    font-weight: 900;
}

.rank-list a {
    font-weight: 800;
}

.rank-list em {
    color: var(--neutral-500);
    font-size: 13px;
    font-style: normal;
}

.spotlight-panel {
    color: var(--white);
    background: radial-gradient(circle at 85% 20%, rgba(139, 92, 246, 0.42), transparent 30%), linear-gradient(135deg, var(--neutral-900), #172554);
    border: 0;
}

.spotlight-panel h2 {
    margin: 0 0 12px;
    font-size: 32px;
}

.spotlight-panel p {
    color: #dbeafe;
}

.page-hero {
    color: var(--white);
    background: radial-gradient(circle at 82% 25%, rgba(139, 92, 246, 0.36), transparent 32%), linear-gradient(135deg, #0f172a, #1e3a8a);
}

.page-hero.slim {
    padding: 78px 0;
}

.page-hero .eyebrow,
.detail-copy .eyebrow {
    background: rgba(255, 255, 255, 0.12);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 720px;
    margin: 0 0 22px;
    color: #dbeafe;
    font-size: 18px;
}

.page-search {
    display: flex;
    max-width: 620px;
    gap: 10px;
    padding: 6px;
    border-radius: 16px;
    background: var(--white);
}

.page-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 12px;
}

.pill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-link {
    border: 1px solid var(--neutral-200);
}

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

.rank-card {
    display: grid;
    grid-template-columns: 64px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    background: var(--white);
    padding: 14px;
    box-shadow: var(--shadow-sm);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--primary-50);
    color: var(--primary-700);
    font-weight: 900;
}

.rank-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    background: var(--neutral-100);
}

.rank-info h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.rank-info p {
    margin: 0 0 8px;
    color: var(--neutral-600);
}

.rank-action {
    border-radius: 12px;
    background: var(--neutral-900);
    color: var(--white);
    padding: 10px 14px;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--neutral-900);
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.18));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 36px 0 54px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--white);
}

.detail-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-lg);
    background: var(--neutral-800);
    box-shadow: var(--shadow-lg);
}

.detail-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 860px;
    margin: 0 0 18px;
    color: #e2e8f0;
    font-size: 19px;
}

.detail-meta {
    margin-bottom: 18px;
    color: #e2e8f0;
}

.player-section {
    scroll-margin-top: 96px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    background: #000000;
    box-shadow: var(--shadow-lg);
}

.player-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.58));
    color: var(--white);
    cursor: pointer;
}

.player-start span {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.95);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.38);
    font-size: 32px;
    transform: translateX(3px);
}

.player-frame.playing .player-start {
    display: none;
}

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

.detail-content .article-card:first-child {
    grid-column: 1 / 2;
}

.detail-content .article-card:nth-child(2) {
    grid-column: 1 / 2;
}

.info-card {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
}

.article-card h2,
.info-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.article-card p {
    margin: 0;
    color: var(--neutral-700);
    font-size: 16px;
}

.info-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.info-card dt {
    color: var(--neutral-500);
}

.info-card dd {
    margin: 0;
    font-weight: 700;
}

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

.site-footer {
    background: var(--neutral-900);
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.5fr) minmax(160px, 0.5fr);
    gap: 48px;
    padding: 48px 0;
}

.brand-dark .brand-text strong {
    color: var(--white);
}

.brand-dark .brand-text em {
    color: #94a3b8;
}

.footer-brand p {
    max-width: 520px;
    color: #94a3b8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a:hover {
    color: #93c5fd;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 18px 0;
    text-align: center;
    color: #94a3b8;
}

[data-search-item].is-hidden {
    display: none;
}

@media (max-width: 1040px) {
    .movie-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .info-card,
    .detail-content .article-card:first-child,
    .detail-content .article-card:nth-child(2) {
        grid-column: auto;
        grid-row: auto;
    }
}

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

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

    .hero-arrow {
        display: none;
    }

    .detail-grid {
        grid-template-columns: 150px minmax(0, 1fr);
        align-items: center;
    }

    .rank-card {
        grid-template-columns: 42px 76px minmax(0, 1fr);
    }

    .rank-action {
        grid-column: 3 / 4;
        justify-self: start;
    }

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

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

    .brand-text em {
        display: none;
    }

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

    .hero-copy {
        padding: 80px 0 118px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .hero-category-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 18px;
    }

    .hero-category-bar a {
        min-width: max-content;
    }

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

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

    .content-section,
    .rank-panel,
    .spotlight-panel,
    .article-card,
    .info-card {
        padding: 18px;
        border-radius: var(--radius-md);
    }

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

    .movie-card h3 {
        font-size: 16px;
    }

    .movie-card p {
        min-height: auto;
        font-size: 13px;
    }

    .page-hero.slim {
        padding: 54px 0;
    }

    .page-search {
        flex-direction: column;
    }

    .rank-card {
        align-items: start;
        grid-template-columns: 38px 72px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .rank-info p {
        display: none;
    }

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

    .detail-poster {
        width: 180px;
    }

    .player-start span {
        width: 68px;
        height: 68px;
        font-size: 26px;
    }
}
