* {
    box-sizing: border-box;
}

:root {
    --bg-deep: #020617;
    --bg-main: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.78);
    --bg-soft: rgba(30, 41, 59, 0.72);
    --border: rgba(148, 163, 184, 0.18);
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-soft: #94a3b8;
    --accent: #0284c7;
    --accent-strong: #0ea5e9;
    --accent-warm: #f59e0b;
    --shadow: 0 22px 60px rgba(2, 6, 23, 0.45);
    --radius-lg: 24px;
    --radius-md: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.22), transparent 34rem),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-main) 42%, var(--bg-deep) 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(18px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7, #38bdf8 52%, #f59e0b);
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.34);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--text-muted);
    font-size: 15px;
}

.nav-links a {
    padding: 9px 12px;
    border-radius: 999px;
    transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    background: rgba(14, 165, 233, 0.14);
}

.mobile-toggle {
    display: none;
    border: 1px solid var(--border);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.76);
    border-radius: 12px;
    padding: 8px 11px;
    cursor: pointer;
}

.hero {
    position: relative;
    height: 76vh;
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 43%, rgba(2, 6, 23, 0.18) 100%),
        linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.84) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(650px, 100%);
    padding-top: 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(125, 211, 252, 0.25);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 14px;
    margin-bottom: 18px;
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-desc {
    margin: 0 0 26px;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.85;
}

.hero-actions,
.card-actions,
.detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    box-shadow: 0 16px 34px rgba(14, 165, 233, 0.28);
}

.btn-ghost {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.62);
    border-color: var(--border);
}

.hero-arrow {
    position: absolute;
    z-index: 6;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    background: rgba(2, 6, 23, 0.56);
    cursor: pointer;
    transition: 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(14, 165, 233, 0.72);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.hero-dot.is-active {
    width: 32px;
    background: #38bdf8;
}

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

.section {
    margin-bottom: 62px;
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-intro {
    margin: 8px 0 0;
    color: var(--text-soft);
    line-height: 1.75;
}

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

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

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

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.42);
    box-shadow: 0 26px 70px rgba(14, 165, 233, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.24), rgba(15, 23, 42, 0.82));
}

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

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

.card-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    color: #ffffff;
    background: rgba(2, 132, 199, 0.88);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.rank-badge {
    background: rgba(245, 158, 11, 0.92);
}

.card-body {
    padding: 16px;
}

.card-title {
    margin: 0 0 9px;
    font-size: 18px;
    line-height: 1.35;
}

.card-title a:hover {
    color: #7dd3fc;
}

.card-meta,
.breadcrumb,
.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-soft);
    font-size: 13px;
}

.card-meta span,
.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    padding: 4px 9px;
}

.card-summary {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 14px;
    margin: 12px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-card {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    min-height: 150px;
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.16), rgba(15, 23, 42, 0.78));
    transition: 0.22s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.45);
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.category-card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 14px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 170px 170px 170px;
    gap: 12px;
    padding: 16px;
    margin: 0 0 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.68);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.72);
    padding: 0 13px;
    outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(56, 189, 248, 0.76);
}

.page-hero {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 5vw, 54px);
    margin-bottom: 36px;
    background:
        radial-gradient(circle at 86% 20%, rgba(14, 165, 233, 0.28), transparent 22rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.76));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 54px);
    letter-spacing: -0.03em;
}

.page-hero p {
    max-width: 850px;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 56px 82px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
}

.rank-number {
    font-size: 26px;
    font-weight: 900;
    color: #fbbf24;
    text-align: center;
}

.rank-row img {
    width: 82px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-main h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-main p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.score-pill {
    color: #111827;
    background: #fbbf24;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
    white-space: nowrap;
}

.detail-hero {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 32px;
    align-items: end;
    margin-bottom: 42px;
}

.detail-cover {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: var(--shadow);
}

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

.detail-info h1 {
    margin: 12px 0 16px;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.08;
}

.detail-info p {
    color: var(--text-muted);
    line-height: 1.85;
    font-size: 17px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.player-section {
    margin-bottom: 46px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.player-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.76));
    transition: opacity 0.25s ease;
}

.player-frame.is-playing::after {
    opacity: 0;
    pointer-events: none;
}

.movie-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: #000000;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.player-frame.is-playing .movie-video {
    opacity: 1;
}

.play-trigger {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 156px;
    height: 58px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
    box-shadow: 0 20px 45px rgba(14, 165, 233, 0.35);
    cursor: pointer;
}

.player-frame.is-playing .play-trigger {
    display: none;
}

.article-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(22px, 4vw, 34px);
    background: rgba(15, 23, 42, 0.72);
    margin-bottom: 42px;
}

.article-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.article-panel p {
    margin: 0 0 16px;
    color: var(--text-muted);
    line-height: 1.9;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(2, 6, 23, 0.74);
    padding: 34px 0;
}

.footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--text-soft);
}

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

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

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

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

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

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: rgba(2, 6, 23, 0.94);
    }

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

    .hero {
        height: auto;
        min-height: 620px;
    }

    .hero-content {
        padding: 96px 0 88px;
    }

    .hero-arrow {
        display: none;
    }

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

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .section-head,
    .footer-shell {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-row {
        grid-template-columns: 42px 76px 1fr;
    }

    .score-pill {
        grid-column: 2 / 4;
        justify-self: start;
    }

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

    .detail-cover {
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .grid,
    .grid-small,
    .category-grid {
        grid-template-columns: 1fr;
    }

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

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

    .rank-number {
        text-align: left;
    }

    .rank-row img {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 4;
    }
}
