:root {
    --bg: #f8fafc;
    --paper: #ffffff;
    --ink: #111827;
    --muted: #64748b;
    --line: #e5e7eb;
    --cyan: #0891b2;
    --cyan-dark: #0e7490;
    --blue: #2563eb;
    --slate: #0f172a;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

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(--ink);
    background: linear-gradient(135deg, #f8fafc 0%, #eef6fb 44%, #f1f5f9 100%);
    line-height: 1.65;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.82);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.header-inner {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 800;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 10px 24px rgba(8, 145, 178, 0.28);
    font-size: 13px;
}

.brand-text {
    font-size: 21px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.nav-link {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--cyan);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-form input {
    width: 220px;
    padding: 10px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.search-form button,
.btn {
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-form button {
    padding: 10px 18px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.search-form button:hover,
.btn:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 22px;
}

.mobile-nav {
    display: none;
    padding: 12px 22px 18px;
    border-top: 1px solid #e2e8f0;
}

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

.mobile-nav .nav-link {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
}

.hero-slider {
    position: relative;
    min-height: 630px;
    overflow: hidden;
    background: var(--slate);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 42px;
    padding: 86px max(28px, calc((100vw - 1200px) / 2)) 90px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(0.55);
    transform: scale(1.12);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(8, 145, 178, 0.56), transparent 32%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72) 55%, rgba(15, 23, 42, 0.38));
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-flex;
    margin: 0 0 16px;
    padding: 8px 13px;
    border-radius: 999px;
    color: #cffafe;
    background: rgba(8, 145, 178, 0.22);
    border: 1px solid rgba(165, 243, 252, 0.22);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-content h1 {
    margin: 0;
    max-width: 820px;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-summary {
    max-width: 760px;
    margin: 24px 0 0;
    color: #e2e8f0;
    font-size: 18px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 38px rgba(8, 145, 178, 0.36);
}

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

.hero-poster {
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
    background: linear-gradient(135deg, #0f172a, #164e63);
}

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

.hero-dots {
    position: absolute;
    z-index: 3;
    left: max(28px, calc((100vw - 1200px) / 2));
    bottom: 34px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 36px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

.hero-dot.active {
    background: #22d3ee;
}

.page-wrap,
.section-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 22px;
}

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

.section-head h1,
.section-head h2,
.page-title h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.section-head p,
.page-title p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
}

.more-link {
    color: var(--cyan);
    font-weight: 800;
    white-space: nowrap;
}

.category-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 0 12px;
    margin: 0 0 28px;
}

.category-strip a,
.tag-pill {
    flex: 0 0 auto;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--cyan-dark);
    background: #ecfeff;
    border: 1px solid #bae6fd;
    font-weight: 800;
    font-size: 14px;
}

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

.movie-card {
    overflow: hidden;
    background: var(--paper);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card.is-hidden {
    display: none;
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(145deg, #0f172a, #164e63);
}

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

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.76), transparent);
}

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.year-badge {
    top: 10px;
    right: 10px;
    background: rgba(8, 145, 178, 0.92);
}

.rank-badge {
    top: 10px;
    left: 10px;
    background: linear-gradient(90deg, #f97316, #ef4444);
}

.card-body {
    padding: 14px;
}

.card-body h2 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
}

.card-body h2 a:hover {
    color: var(--cyan);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.card-desc {
    min-height: 42px;
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.55;
}

.card-tags {
    margin: 10px 0 0;
    color: var(--cyan-dark);
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    min-height: 170px;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

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

.breadcrumb a {
    color: var(--cyan);
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
}

.player-card,
.detail-panel,
.side-panel {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--soft-shadow);
}

.player-card {
    position: relative;
    overflow: hidden;
    background: #020617;
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.16), rgba(2, 6, 23, 0.45));
    cursor: pointer;
}

.play-layer span {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    padding-left: 5px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 22px 60px rgba(8, 145, 178, 0.48);
    font-size: 28px;
}

.play-layer.is-hidden {
    display: none;
}

.detail-panel {
    margin-top: 24px;
    padding: 28px;
}

.detail-panel h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 24px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #0e7490;
    background: #ecfeff;
    font-weight: 800;
    font-size: 13px;
}

.detail-panel h2,
.side-panel h2 {
    margin: 26px 0 12px;
    font-size: 22px;
}

.detail-panel p {
    margin: 0 0 16px;
    color: #334155;
    font-size: 16px;
}

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

.side-panel {
    padding: 20px;
    align-self: start;
    position: sticky;
    top: 90px;
}

.side-poster {
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(145deg, #0f172a, #164e63);
}

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

.side-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.side-list a {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.side-list a:hover {
    background: #ecfeff;
    transform: translateX(3px);
}

.side-list img {
    width: 56px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
    background: #0f172a;
}

.side-list strong {
    display: block;
    line-height: 1.35;
}

.side-list span {
    color: #64748b;
    font-size: 12px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 62px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-weight: 900;
}

.rank-row img {
    width: 92px;
    height: 126px;
    object-fit: cover;
    border-radius: 14px;
    background: #0f172a;
}

.rank-info h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-info p {
    margin: 0;
    color: #64748b;
}

.site-footer {
    margin-top: 48px;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 22px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 38px;
}

.footer-logo {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.footer-col h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col li + li {
    margin-top: 8px;
}

.footer-col a:hover {
    color: #67e8f9;
}

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

.content-page {
    padding: 30px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.content-page h2 {
    margin-top: 28px;
}

.content-page p {
    color: #334155;
}

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

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

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 62px;
        padding: 0 16px;
    }

    .brand-text {
        font-size: 18px;
    }

    .hero-slider {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 42px 20px 74px;
        gap: 26px;
    }

    .hero-poster {
        width: min(74vw, 280px);
        margin: 0 auto;
        transform: none;
        order: -1;
    }

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

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

    .hero-dots {
        left: 20px;
        bottom: 24px;
    }

    .section-head {
        display: block;
    }

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

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

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

    .side-panel {
        position: static;
    }

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

    .rank-row {
        grid-template-columns: 44px 70px minmax(0, 1fr);
    }

    .rank-row .btn {
        grid-column: 1 / -1;
    }
}
