
:root {
    color-scheme: light;
    --bg: #f8fafc;
    --text: #1e293b;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #f97316;
    --primary-dark: #c2410c;
    --accent: #ef4444;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --card: #ffffff;
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

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

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

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    font-size: 14px;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.32);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    color: rgba(255, 255, 255, 0.82);
    padding: 10px 13px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.menu-toggle {
    display: none;
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 11px;
}

.hero {
    position: relative;
    min-height: 75vh;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
}

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

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

.hero-backdrop {
    position: absolute;
    inset: -28px;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.1);
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.42));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 75vh;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 840px;
    color: #ffffff;
    padding: 72px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fed7aa;
    font-size: 14px;
    font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-weight: 900;
}

.hero h1 span,
.page-hero h1 span {
    background: linear-gradient(90deg, #fb923c, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero h2 {
    margin: 24px 0 10px;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
}

.hero p,
.page-hero p,
.detail-one-line {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(17px, 2vw, 22px);
    margin: 16px 0 0;
}

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

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

.hero-tags span,
.tag-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 11px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 14px 32px rgba(249, 115, 22, 0.34);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 34px;
    background: #ffffff;
}

.category-strip {
    padding: 30px 0;
    background: #ffffff;
}

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

.category-card {
    display: grid;
    gap: 7px;
    min-height: 132px;
    border-radius: 24px;
    padding: 22px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid #fed7aa;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #ef4444);
}

.category-card strong {
    font-size: 20px;
}

.category-card em,
.category-card small {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.content-section {
    padding: 70px 0;
    background: #ffffff;
}

.content-section.section-gradient {
    color: #ffffff;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 900;
}

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

.section-gradient .section-heading p {
    color: rgba(255, 255, 255, 0.72);
}

.section-link {
    min-height: 40px;
    color: var(--primary-dark);
    background: #fff7ed;
}

.section-gradient .section-link {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.section-gradient .movie-card {
    background: rgba(255, 255, 255, 0.94);
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.16);
}

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

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

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

.play-mark {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.94);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 30px;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    font-size: 14px;
}

.movie-info {
    padding: 14px;
}

.movie-meta-line {
    display: flex;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.movie-info h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 850;
}

.movie-info h3 a:hover {
    color: var(--primary-dark);
}

.movie-info p {
    margin: 8px 0 12px;
    min-height: 42px;
    color: var(--muted);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    gap: 6px;
}

.rank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.movie-card-compact {
    display: grid;
    grid-template-columns: 94px 1fr;
    min-height: 128px;
}

.movie-card-compact .poster-wrap {
    aspect-ratio: auto;
    height: 100%;
}

.movie-card-compact .movie-info p {
    min-height: auto;
}

.page-main {
    background: #f8fafc;
}

.page-hero,
.detail-hero {
    position: relative;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    overflow: hidden;
}

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

.page-hero::after {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    right: -120px;
    top: -180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.28), transparent 65%);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.search-panel {
    margin-top: 28px;
    display: grid;
    gap: 14px;
    max-width: 720px;
}

.site-search {
    width: 100%;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    padding: 0 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

.site-search::placeholder {
    color: rgba(255, 255, 255, 0.68);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 14px;
}

.filter-button.active,
.filter-button:hover {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.overview-grid {
    margin-top: -10px;
}

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

.ranking-aside {
    position: sticky;
    top: 96px;
    border-radius: 24px;
    padding: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.ranking-aside h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.ranking-list {
    display: grid;
    gap: 10px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 8px 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
}

.ranking-row strong {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.ranking-row span {
    font-weight: 800;
}

.ranking-row em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.detail-hero {
    min-height: 580px;
    display: flex;
    align-items: center;
}

.detail-bg {
    position: absolute;
    inset: -30px;
    background-size: cover;
    background-position: center;
    filter: blur(22px);
    transform: scale(1.1);
}

.detail-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.72));
}

.detail-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 72px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

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

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fed7aa;
}

.breadcrumb em {
    font-style: normal;
}

.detail-copy h1 {
    max-width: 900px;
}

.detail-meta {
    margin-top: 24px;
}

.detail-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.player-section {
    padding-top: 44px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 16 / 9;
    background: #020617;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.video-player {
    width: 100%;
    height: 100%;
    background: #000000;
    display: block;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.16);
}

.play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.play-overlay img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.58);
}

.play-button {
    position: relative;
    z-index: 2;
    width: 88px;
    height: 88px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-size: 28px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36);
}

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

.detail-article,
.detail-side-card {
    border-radius: 26px;
    padding: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-article h2,
.detail-side-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-article p {
    margin: 0 0 26px;
    color: #334155;
    font-size: 17px;
}

.detail-side-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    margin: 0;
}

.detail-side-card dt {
    color: var(--muted);
}

.detail-side-card dd {
    margin: 0;
    font-weight: 750;
}

.related-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.site-footer {
    color: #e2e8f0;
    background: linear-gradient(90deg, #1e293b, #0f172a, #1e293b);
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 32px;
    padding: 54px 0;
}

.site-footer p,
.site-footer a,
.site-footer li {
    color: #cbd5e1;
}

.site-footer h3 {
    color: #fb923c;
    margin: 0 0 12px;
}

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

.site-footer a:hover {
    color: #ffffff;
}

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

.hidden-card {
    display: none !important;
}

@media (max-width: 980px) {
    .nav-menu {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        padding: 14px;
        border-radius: 20px;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: var(--shadow);
    }

    .nav-menu.open {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

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

    .ranking-layout,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ranking-aside {
        position: static;
    }

    .detail-grid {
        grid-template-columns: 220px 1fr;
        gap: 26px;
    }
}

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

    .header-inner {
        min-height: 66px;
    }

    .brand {
        font-size: 18px;
    }

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

    .hero-copy {
        padding: 58px 0 86px;
    }

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

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

    .movie-info {
        padding: 12px;
    }

    .movie-info p,
    .movie-meta-line,
    .tag-row {
        display: none;
    }

    .movie-card-compact {
        grid-template-columns: 82px 1fr;
    }

    .detail-hero {
        min-height: auto;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        padding: 44px 0;
    }

    .detail-poster {
        width: 190px;
    }

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

    .play-button {
        width: 70px;
        height: 70px;
    }

    .detail-article,
    .detail-side-card {
        padding: 22px;
    }
}
