:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.74);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.18);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --soft: #64748b;
    --brand: #06b6d4;
    --brand-2: #2563eb;
    --accent: #f59e0b;
    --danger: #ef4444;
    --radius: 18px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 8%, rgba(6, 182, 212, 0.20), transparent 28rem),
        radial-gradient(circle at 82% 2%, rgba(37, 99, 235, 0.18), transparent 30rem),
        linear-gradient(135deg, #020617 0%, #0f172a 45%, #020617 100%);
}

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

img {
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(18px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo-mark {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 0 34px rgba(6, 182, 212, 0.35);
}

.logo-mark::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid currentColor;
}

.logo-text strong {
    display: block;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.logo-text small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #cbd5e1;
    font-weight: 650;
}

.main-nav a {
    position: relative;
    transition: color 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: var(--brand);
    transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    color: #fff;
    background: rgba(15, 23, 42, 0.7);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: currentColor;
}

.mobile-nav {
    display: none;
    padding: 0 0 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.56);
}

.hero {
    position: relative;
    min-height: 68vh;
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-slider {
    position: relative;
    min-height: 68vh;
}

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

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

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 74% 32%, rgba(6, 182, 212, 0.2), transparent 32rem),
        linear-gradient(135deg, #0f172a, #020617);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    opacity: 0.78;
    filter: saturate(1.08) contrast(1.04);
}

.hero-media img.is-missing {
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.68) 42%, rgba(2, 6, 23, 0.24) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.15) 48%, rgba(2, 6, 23, 0.28) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 68vh;
    display: flex;
    align-items: center;
    padding: 72px 0 82px;
}

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

.eyebrow,
.card-meta,
.detail-meta,
.section-kicker {
    color: var(--muted);
}

.eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.badge,
.meta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(6, 182, 212, 0.14);
    font-size: 12px;
    font-weight: 750;
}

.badge.hot {
    color: #ffffff;
    border-color: rgba(6, 182, 212, 0.35);
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.hero h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.hero p {
    margin: 0;
    color: #cbd5e1;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.85;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    font-weight: 800;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: rgba(6, 182, 212, 0.45);
    background: rgba(30, 41, 59, 0.9);
}

.btn.primary {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.hero-controls {
    position: absolute;
    z-index: 5;
    inset: auto 0 26px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.28);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 54px;
    background: var(--brand);
}

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

.hero-arrow:hover {
    background: rgba(2, 6, 23, 0.82);
    transform: translateY(-50%) scale(1.04);
}

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

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

.section {
    padding: 54px 0;
}

.section.compact {
    padding: 34px 0;
}

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

.section-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(25px, 3vw, 36px);
    letter-spacing: -0.03em;
}

.section-kicker {
    margin: 8px 0 0;
    line-height: 1.75;
}

.more-link {
    color: #67e8f9;
    font-weight: 800;
    white-space: nowrap;
}

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.20);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 28px 70px rgba(6, 182, 212, 0.14);
}

.poster-link,
.poster-frame {
    position: relative;
    display: block;
}

.poster-frame {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 25%, rgba(6, 182, 212, 0.22), transparent 7rem),
        linear-gradient(145deg, #1e293b, #020617);
}

.poster-frame.landscape {
    aspect-ratio: 16 / 9;
}

.poster-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.2s ease;
}

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

.poster-frame img.is-missing {
    opacity: 0;
}

.poster-shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 48%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent);
}

.card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    background: rgba(6, 182, 212, 0.88);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.card-year {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
}

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

.movie-title {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card:hover .movie-title {
    color: #67e8f9;
}

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

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
}

.rating {
    color: #fbbf24;
    font-weight: 850;
}

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

.category-card {
    position: relative;
    min-height: 176px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.22), transparent 12rem),
        rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.35);
}

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

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

.category-card span {
    display: inline-flex;
    margin-top: 18px;
    color: #67e8f9;
    font-weight: 850;
}

.feature-panel {
    position: relative;
    overflow: hidden;
    padding: 32px;
    border: 1px solid rgba(6, 182, 212, 0.24);
    border-radius: 28px;
    background:
        radial-gradient(circle at 85% 5%, rgba(6, 182, 212, 0.18), transparent 22rem),
        linear-gradient(135deg, rgba(8, 47, 73, 0.42), rgba(15, 23, 42, 0.88));
    box-shadow: var(--shadow);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 70px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.68);
}

.rank-num {
    color: #67e8f9;
    font-size: 22px;
    font-weight: 900;
    text-align: center;
}

.rank-thumb {
    width: 70px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(145deg, #1e293b, #020617);
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.rank-thumb img.is-missing {
    opacity: 0;
}

.rank-info h3 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 16px;
}

.rank-info p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    margin: 0 0 26px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    color: #e2e8f0;
    background: rgba(2, 6, 23, 0.62);
    outline: 0;
    padding: 0 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(6, 182, 212, 0.6);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    margin: 28px 0 18px;
    font-size: 14px;
}

.breadcrumb a {
    color: #67e8f9;
}

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

.detail-panel,
.side-panel,
.text-panel {
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

.detail-panel {
    overflow: hidden;
}

.video-player {
    position: relative;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    background: #000000;
}

.video-player video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    background: #000000;
    cursor: pointer;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.22), rgba(0, 0, 0, 0.72));
    cursor: pointer;
}

.player-start span {
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 0 38px rgba(6, 182, 212, 0.45);
    font-size: 30px;
}

.player-start strong {
    font-size: 18px;
}

.video-player.is-playing .player-start {
    opacity: 0;
    pointer-events: none;
}

.player-error {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 5;
    padding: 12px 14px;
    border-radius: 14px;
    color: #fecaca;
    background: rgba(127, 29, 29, 0.86);
}

.player-controls {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.video-player:hover .player-controls,
.video-player.is-playing .player-controls {
    opacity: 1;
}

.player-controls button {
    min-width: 44px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
}

.detail-content {
    padding: 26px;
}

.detail-content h1 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
}

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

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.info-cell {
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.34);
}

.info-cell span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
}

.info-cell strong {
    color: #ffffff;
    font-size: 15px;
}

.text-panel {
    margin-top: 24px;
    padding: 26px;
}

.text-panel h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 24px;
}

.text-panel p {
    color: #cbd5e1;
    line-height: 1.95;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tag-list span {
    padding: 7px 11px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(2, 6, 23, 0.3);
    font-size: 13px;
}

.side-panel {
    padding: 18px;
}

.side-panel .poster-frame {
    border-radius: 20px;
}

.side-panel h2 {
    color: #ffffff;
}

.empty-state {
    display: none;
    padding: 32px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
    background: rgba(15, 23, 42, 0.72);
}

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

.site-footer {
    margin-top: 54px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.58);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
    padding: 42px 0;
}

.footer-grid h3,
.footer-grid h4 {
    margin: 0 0 14px;
    color: #ffffff;
}

.footer-grid p,
.footer-grid a {
    color: var(--muted);
    line-height: 1.78;
}

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

.footer-bottom {
    padding: 18px 0 28px;
    color: var(--soft);
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.10);
}

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

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

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

@media (max-width: 760px) {
    .header-inner {
        height: 66px;
    }

    .logo-text small {
        display: none;
    }

    .main-nav {
        display: none;
    }

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

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

    .hero-content {
        align-items: end;
        padding: 86px 0 76px;
    }

    .hero-arrow {
        display: none;
    }

    .section-head {
        display: block;
    }

    .more-link {
        display: inline-block;
        margin-top: 12px;
    }

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

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

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

    .rank-item {
        grid-template-columns: 34px 56px 1fr;
    }

    .rank-score {
        display: none;
    }

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

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

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

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

    .movie-title {
        font-size: 14px;
    }

    .movie-desc {
        font-size: 12px;
    }
}
