:root {
    --site-blue: #0f2e5f;
    --site-blue-soft: #163e7a;
    --site-amber: #f59e0b;
    --site-amber-soft: #fbbf24;
    --site-slate: #0f172a;
    --site-slate-2: #1e293b;
    --site-slate-3: #334155;
    --site-paper: #f8fafc;
    --site-muted: #64748b;
    --site-border: rgba(148, 163, 184, 0.22);
    --site-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    --site-radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #172033;
    background:
        radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.12), transparent 28rem),
        linear-gradient(180deg, #f8fafc 0%, #eef2f7 44%, #f8fafc 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.78);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    color: var(--site-blue);
    letter-spacing: -0.03em;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-amber), #ef4444);
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.35);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.logo-title {
    font-size: 20px;
}

.logo-subtitle {
    margin-top: 3px;
    color: var(--site-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
}

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

.main-nav a {
    padding: 10px 14px;
    border-radius: 14px;
    color: #334155;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #ffffff;
    background: var(--site-blue);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: var(--site-blue);
    background: #eef2ff;
    font-size: 26px;
    line-height: 1;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid var(--site-border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--site-shadow);
}

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

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    color: #334155;
    font-weight: 700;
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: #ffffff;
    background: var(--site-blue);
}

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

.hero {
    position: relative;
    min-height: 680px;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    background: var(--site-slate);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 18%, rgba(245, 158, 11, 0.34), transparent 25rem),
        radial-gradient(circle at 15% 70%, rgba(37, 99, 235, 0.34), transparent 28rem),
        linear-gradient(130deg, #020617 0%, #0f172a 44%, #12346d 100%);
}

.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-backdrop {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.28)),
        var(--hero-bg);
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
    transform: scale(1.04);
}

.hero-grid {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 54px;
    align-items: center;
    padding: 64px 0;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(251, 191, 36, 0.38);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.07em;
}

.hero h1 span {
    color: var(--site-amber-soft);
}

.hero-summary {
    max-width: 720px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.75;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-meta span,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    font-size: 13px;
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 18px;
    border: 0;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #0f172a;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 18px 35px rgba(245, 158, 11, 0.32);
}

.btn-dark {
    color: #ffffff;
    background: var(--site-blue);
    box-shadow: 0 18px 35px rgba(15, 46, 95, 0.24);
}

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

.hero-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 32px 80px rgba(2, 6, 23, 0.44);
    backdrop-filter: blur(18px);
}

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

.hero-card-caption {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(18px);
}

.hero-card-caption strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 22px;
}

.hero-card-caption p {
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    right: max(16px, calc((100vw - 1180px) / 2));
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-control,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.hero-control {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 22px;
}

.hero-dot {
    width: 36px;
    height: 6px;
    border-radius: 999px;
    opacity: 0.58;
}

.hero-dot.is-active {
    width: 52px;
    opacity: 1;
    background: var(--site-amber);
}

.search-panel {
    position: relative;
    z-index: 5;
    width: min(980px, calc(100% - 32px));
    margin: -46px auto 44px;
    padding: 18px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--site-shadow);
    backdrop-filter: blur(18px);
}

.search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.search-input,
.select-input {
    min-height: 50px;
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    color: #0f172a;
    background: #ffffff;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
}

.search-input:focus,
.select-input:focus {
    border-color: var(--site-amber);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.section {
    padding: 44px 0;
}

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

.section-eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--site-amber);
    font-size: 14px;
    font-weight: 900;
}

.section-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.section-desc {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--site-muted);
    font-size: 16px;
    line-height: 1.75;
}

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

.movie-card {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
}

.movie-cover {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

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

.movie-card:hover .movie-cover img {
    transform: scale(1.07);
}

.movie-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #111827;
    background: #fbbf24;
    font-size: 12px;
    font-weight: 900;
}

.movie-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.movie-title {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.28;
    font-weight: 900;
}

.movie-title a:hover {
    color: var(--site-blue);
}

.movie-line {
    display: -webkit-box;
    min-height: 48px;
    margin: 10px 0 14px;
    overflow: hidden;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.movie-tags span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 26px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(15, 46, 95, 0.84)),
        var(--category-bg);
    background-size: cover;
    background-position: center;
    box-shadow: var(--site-shadow);
}

.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #dbeafe;
    line-height: 1.75;
}

.category-card span {
    position: absolute;
    right: 20px;
    bottom: 18px;
    color: #fbbf24;
    font-weight: 900;
}

.sub-hero {
    padding: 64px 0 52px;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.26), transparent 22rem),
        linear-gradient(135deg, #020617, #0f2e5f 54%, #1e293b);
}

.sub-hero h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.sub-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #bfdbfe;
    font-size: 14px;
    font-weight: 700;
}

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

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

.filter-chip {
    border: 0;
    padding: 9px 14px;
    border-radius: 999px;
    color: #475569;
    background: #e2e8f0;
    font-weight: 800;
    cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: #ffffff;
    background: var(--site-blue);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 96px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.rank-number {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    font-size: 20px;
    font-weight: 950;
}

.rank-poster {
    width: 96px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: #0f172a;
}

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

.rank-copy h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 950;
}

.rank-copy p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #64748b;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.player-card,
.detail-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--site-shadow);
}

.player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.7), rgba(15, 46, 95, 0.44));
}

.player-cover.is-hidden {
    display: none;
}

.play-button {
    position: relative;
    z-index: 3;
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 50%;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 24px 50px rgba(245, 158, 11, 0.34);
    font-size: 34px;
    cursor: pointer;
}

.player-info {
    padding: 24px;
}

.player-info h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.player-info p {
    margin: 0;
    color: #64748b;
    line-height: 1.8;
}

.detail-card {
    padding: 24px;
}

.detail-card h2,
.detail-card h3 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-card p {
    margin: 0 0 16px;
    color: #475569;
    line-height: 1.9;
}

.detail-poster {
    width: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: #0f172a;
}

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

.meta-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    color: #475569;
    font-size: 14px;
}

.meta-list strong {
    color: #0f172a;
}

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

.empty-state {
    display: none;
    padding: 36px;
    border: 1px dashed #cbd5e1;
    border-radius: 22px;
    color: #64748b;
    background: #ffffff;
    text-align: center;
    font-weight: 800;
}

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

.site-footer {
    margin-top: 48px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #020617, #0f172a 54%, #0f2e5f);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 28px;
}

.footer-title {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
}

.footer-text {
    margin: 0;
    color: #94a3b8;
    line-height: 1.75;
}

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

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

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

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

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

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

    .hero-card {
        max-width: 420px;
    }
}

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero,
    .hero-grid {
        min-height: auto;
    }

    .hero-grid {
        padding: 52px 0 96px;
        gap: 32px;
    }

    .hero-controls {
        right: 16px;
        bottom: 24px;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

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

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

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

    .rank-item .btn {
        grid-column: 2 / -1;
        width: 100%;
    }

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

@media (max-width: 560px) {
    .header-inner,
    .container,
    .footer-inner,
    .mobile-nav {
        width: min(100% - 22px, 1180px);
    }

    .logo-subtitle {
        display: none;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-summary {
        font-size: 16px;
    }

    .hero-card {
        border-radius: 22px;
    }

    .card-grid,
    .category-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 42px 72px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-number {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .sub-hero {
        padding: 44px 0 38px;
    }

    .player-info h2 {
        font-size: 24px;
    }
}
