:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.76);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(14, 165, 233, 0.18);
    --line-strong: rgba(14, 165, 233, 0.46);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --dim: #64748b;
    --sky: #38bdf8;
    --cyan: #22d3ee;
    --amber: #f59e0b;
    --shadow: 0 24px 60px rgba(2, 6, 23, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 36rem), var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.38);
    font-size: 14px;
}

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

.desktop-nav a,
.mobile-panel a {
    color: var(--muted);
    padding: 9px 12px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel a:hover,
.mobile-panel a.is-active {
    color: white;
    background: rgba(14, 165, 233, 0.12);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-panel input,
.filter-bar input,
.large-search input {
    border: 1px solid var(--line);
    outline: none;
    border-radius: 999px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.72);
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    width: 245px;
    padding: 10px 16px;
}

.header-search input:focus,
.mobile-panel input:focus,
.filter-bar input:focus,
.large-search input:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
    background: rgba(15, 23, 42, 0.94);
}

.header-search button,
.mobile-panel button,
.large-search button {
    border: 0;
    border-radius: 999px;
    color: white;
    padding: 10px 16px;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.72);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
    border-radius: 4px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
}

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-panel form {
    display: flex;
    gap: 8px;
}

.mobile-panel input {
    width: 100%;
    padding: 10px 14px;
}

body.nav-open .mobile-panel {
    display: block;
}

main {
    padding-top: 64px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
    transition: opacity 1s ease, visibility 1s ease, transform 6s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.28) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 46%);
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

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

.hero-copy {
    max-width: 680px;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.hero-meta span,
.detail-meta span {
    color: var(--text);
    font-size: 14px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(10px);
}

.hero-meta strong,
.detail-meta strong {
    color: white;
    font-size: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: white;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 72px);
}

.hero p {
    max-width: 620px;
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 19px;
    line-height: 1.8;
}

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

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

.tag,
.mini-tags span {
    display: inline-flex;
    color: #7dd3fc;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.13);
    border: 1px solid rgba(14, 165, 233, 0.20);
}

.tag {
    padding: 7px 12px;
    font-size: 14px;
}

.mini-tags span {
    padding: 4px 8px;
    font-size: 12px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

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

.primary-btn {
    color: white;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.36);
}

.ghost-btn {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(14, 165, 233, 0.28);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: white;
    font-size: 36px;
    line-height: 1;
    background: rgba(2, 6, 23, 0.56);
    backdrop-filter: blur(14px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-arrow:hover {
    transform: translateY(-50%) scale(1.08);
    background: rgba(14, 165, 233, 0.28);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dots button {
    width: 18px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.58);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 38px;
    background: var(--sky);
}

.section {
    padding: 60px 0;
}

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

.eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--sky);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section h2,
.content-card h2 {
    margin: 0;
    color: white;
    font-size: clamp(24px, 3vw, 34px);
}

.section-head a {
    color: #7dd3fc;
    font-weight: 700;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.56);
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.24);
    transition: transform 0.22s ease, border 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: 0 22px 52px rgba(14, 165, 233, 0.20);
}

.poster-frame,
.rank-cover,
.detail-poster,
.player-bg,
.category-thumbs span {
    background-color: #0f172a;
    background-image: linear-gradient(135deg, rgba(14, 165, 233, 0.20), rgba(2, 6, 23, 0.88));
    background-position: center;
    background-size: cover;
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 58%);
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: rgba(14, 165, 233, 0.80);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(10px);
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.year-pill,
.rank-badge {
    position: absolute;
    z-index: 1;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(10px);
}

.year-pill {
    left: 10px;
    bottom: 10px;
    padding: 5px 8px;
}

.rank-badge {
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.card-body {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.card-body strong {
    color: white;
    font-size: 15px;
    line-height: 1.4;
    min-height: 2.8em;
}

.card-body em {
    min-height: 3.8em;
    color: var(--dim);
    font-style: normal;
    font-size: 13px;
    line-height: 1.45;
}

.feature-panel {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.40));
    box-shadow: var(--shadow);
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 72px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.62);
    transition: border 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.88);
}

.rank-number {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.rank-cover {
    width: 72px;
    height: 96px;
    border-radius: 12px;
}

.rank-copy {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.rank-copy strong {
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.score {
    color: #fbbf24;
    font-weight: 900;
}

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

.category-card,
.category-overview-card,
.content-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.58);
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.22);
}

.category-card {
    display: grid;
    gap: 12px;
    min-height: 156px;
    padding: 22px;
    transition: transform 0.2s ease, border 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
}

.category-card strong,
.category-overview-card strong {
    color: white;
    font-size: 21px;
}

.category-card span,
.category-overview-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.page-hero {
    padding-top: 78px;
}

.compact-hero {
    padding-bottom: 20px;
}

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

.page-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    padding: 16px;
    transition: transform 0.2s ease, border 0.2s ease;
}

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

.category-thumbs span {
    aspect-ratio: 2 / 3;
    border-radius: 10px;
}

.filter-bar,
.large-search {
    margin-top: 24px;
}

.filter-bar input {
    width: min(620px, 100%);
    padding: 14px 18px;
}

.large-search {
    display: flex;
    max-width: 720px;
    gap: 10px;
}

.large-search input {
    width: 100%;
    padding: 15px 18px;
}

.large-search button {
    padding: 0 26px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    padding: 96px 0 54px;
    background: #020617;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.26;
    filter: blur(3px) saturate(1.12);
    background-position: center;
    background-size: cover;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.92)), linear-gradient(0deg, #020617, transparent 52%);
}

.detail-inner {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: #7dd3fc;
}

.breadcrumb strong {
    color: var(--text);
    font-weight: 600;
}

.detail-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 36px;
    align-items: end;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.detail-copy h1 {
    font-size: clamp(34px, 4.8vw, 62px);
}

.lead {
    max-width: 820px;
    color: #cbd5e1;
    font-size: 19px;
    line-height: 1.78;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

.video-player,
.player-start {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-player {
    display: none;
    background: #000;
}

.player-start {
    z-index: 2;
    border: 0;
    color: white;
    background: #020617;
}

.player-bg,
.player-gradient {
    position: absolute;
    inset: 0;
}

.player-bg {
    opacity: 0.72;
    filter: saturate(1.1);
}

.player-gradient {
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.14), transparent 22rem), linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.38));
}

.player-button {
    position: relative;
    z-index: 3;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    margin: auto;
    border-radius: 999px;
    font-size: 38px;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    box-shadow: 0 22px 60px rgba(14, 165, 233, 0.44);
}

.player-shell.is-playing .player-start {
    display: none;
}

.player-shell.is-playing .video-player {
    display: block;
}

.article-section {
    padding-top: 22px;
}

.content-card {
    padding: 30px;
}

.content-card h2 + p {
    margin-top: 14px;
}

.content-card p {
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.9;
}

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

.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 40px auto 0;
    padding: 28px 0 42px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--line);
    color: var(--dim);
}

.site-footer div {
    display: grid;
    gap: 8px;
}

.site-footer strong {
    color: white;
}

.site-footer p {
    margin: 0;
}

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

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

    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 760px) {
    .hero {
        min-height: 620px;
    }

    .hero-arrow {
        display: none;
    }

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

    .rank-grid,
    .category-grid,
    .category-overview-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

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

    .rank-row .score {
        display: none;
    }

    .rank-cover {
        width: 58px;
        height: 78px;
    }

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

    .category-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

    .detail-poster {
        max-width: 230px;
    }

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

    .site-footer,
    .section-head,
    .large-search {
        flex-direction: column;
        align-items: stretch;
    }

    .feature-panel {
        padding: 22px;
        border-radius: 22px;
    }
}

@media (max-width: 460px) {
    .shell,
    .nav-shell,
    .mobile-panel,
    .site-footer {
        width: min(100% - 20px, 1180px);
    }

    .card-body {
        padding: 12px;
    }

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

    .hero p,
    .lead {
        font-size: 16px;
    }
}
