:root {
    --page-bg: #020617;
    --panel-bg: rgba(15, 23, 42, 0.78);
    --panel-strong: #0f172a;
    --panel-soft: rgba(30, 41, 59, 0.72);
    --line: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #22d3ee;
    --cyan-deep: #0891b2;
    --cyan-soft: rgba(34, 211, 238, 0.18);
    --shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(8, 145, 178, 0.18), transparent 36rem),
        radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.12), transparent 34rem),
        var(--page-bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
    background: rgba(15, 23, 42, 0.45);
}

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

.page-main {
    min-height: 70vh;
    padding-top: 72px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.30));
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.is-scrolled .site-header {
    background: rgba(2, 6, 23, 0.96);
    border-color: var(--line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--cyan-soft);
    color: var(--cyan);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.25);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.18;
}

.brand-text strong,
.footer-logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-text em {
    margin-top: 3px;
    font-size: 12px;
    color: var(--muted);
    font-style: normal;
}

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

.nav-link,
.mobile-link {
    color: var(--muted-strong);
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #a5f3fc;
    background: rgba(34, 211, 238, 0.14);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.88);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
}

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

.mobile-link {
    padding: 12px 14px;
    font-size: 15px;
}

.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    margin-top: -72px;
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.78) 38%, rgba(2, 6, 23, 0.12) 100%),
        linear-gradient(to right, rgba(2, 6, 23, 0.80), rgba(2, 6, 23, 0.18));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 72px;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 7px 13px;
    border: 1px solid rgba(34, 211, 238, 0.26);
    border-radius: 999px;
    color: #a5f3fc;
    background: rgba(8, 145, 178, 0.16);
    font-weight: 700;
    font-size: 14px;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p {
    margin-top: 18px;
    color: var(--muted-strong);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.75;
}

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

.hero-meta {
    margin-top: 22px;
}

.hero-meta span,
.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid var(--line);
}

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

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

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

.btn-primary {
    background: var(--cyan);
    color: #06202a;
    box-shadow: 0 14px 30px rgba(34, 211, 238, 0.22);
}

.btn-primary:hover {
    background: #67e8f9;
}

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

.btn-link {
    color: #a5f3fc;
    background: transparent;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    transform: translateY(-50%);
    color: var(--text);
    background: rgba(15, 23, 42, 0.70);
    backdrop-filter: blur(8px);
    font-size: 36px;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(15, 23, 42, 0.92);
    transform: translateY(-50%) scale(1.04);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.75);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.home-content,
.page-content,
.detail-content {
    padding: 54px 0 72px;
}

.content-section {
    margin-top: 56px;
}

.content-section:first-child {
    margin-top: 0;
}

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

.section-heading span {
    color: var(--cyan);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.section-heading h2 {
    margin-top: 8px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    font-weight: 850;
}

.section-heading p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.7;
}

.section-link {
    flex: 0 0 auto;
    color: #a5f3fc;
    font-weight: 700;
}

.filter-panel {
    position: relative;
    z-index: 5;
    margin-top: -28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.search-box {
    display: grid;
    gap: 8px;
}

.search-box span {
    color: #a5f3fc;
    font-size: 13px;
    font-weight: 800;
}

.search-box input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.56);
    outline: none;
}

.search-box input:focus {
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.10);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.filter-chip {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid transparent;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: #a5f3fc;
    border-color: rgba(34, 211, 238, 0.28);
    background: rgba(34, 211, 238, 0.14);
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(34, 211, 238, 0.30);
    box-shadow: 0 24px 46px rgba(8, 145, 178, 0.18);
}

.card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

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

.card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.12));
    opacity: 0.72;
    transition: opacity 0.25s ease;
}

.movie-card:hover .card-shade {
    opacity: 0.9;
}

.card-type,
.rank-badge {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 800;
}

.card-type {
    right: 12px;
    padding: 5px 9px;
}

.rank-badge {
    left: 12px;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #06202a;
    background: var(--cyan);
}

.card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #06202a;
    background: rgba(103, 232, 249, 0.92);
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.card-body {
    padding: 15px;
}

.card-body h3 {
    min-height: 46px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.movie-card:hover h3 {
    color: #a5f3fc;
}

.card-body p {
    min-height: 44px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin-top: 12px;
    color: #64748b;
    font-size: 12px;
}

.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.card-tags span,
.detail-tags span {
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--muted-strong);
    background: rgba(30, 41, 59, 0.88);
    font-size: 12px;
}

.feature-panel,
.rank-section {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.70));
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--panel-strong);
    border: 1px solid var(--line);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.category-tile:hover img {
    transform: scale(1.06);
    opacity: 0.46;
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 2;
}

.category-tile span {
    font-size: 20px;
    font-weight: 850;
}

.category-tile p {
    margin-top: 9px;
    color: var(--muted-strong);
    line-height: 1.6;
}

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

.page-hero {
    position: relative;
    padding: 92px 0 62px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.20), transparent 30rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.92));
    border-bottom: 1px solid var(--line);
}

.page-hero-inner {
    max-width: 820px;
}

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

.overview-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.86);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.overview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.3);
}

.overview-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 120px;
    overflow: hidden;
}

.overview-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overview-card div:last-child {
    padding: 18px;
}

.overview-card h2 {
    font-size: 22px;
    font-weight: 850;
}

.overview-card p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.7;
}

.overview-card span {
    display: inline-block;
    margin-top: 14px;
    color: #a5f3fc;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(12px);
    transform: scale(1.08);
    opacity: 0.34;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, #020617, rgba(2, 6, 23, 0.74), rgba(2, 6, 23, 0.42)),
        linear-gradient(to right, rgba(2, 6, 23, 0.90), rgba(2, 6, 23, 0.28));
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 42px;
    align-items: center;
    padding: 62px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(34, 211, 238, 0.20);
    background: var(--panel-strong);
    box-shadow: var(--shadow);
}

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

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

.breadcrumb a {
    color: #a5f3fc;
}

.detail-copy h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-line {
    max-width: 780px;
    margin-top: 18px;
    color: var(--muted-strong);
    font-size: 19px;
    line-height: 1.75;
}

.detail-meta {
    margin-top: 20px;
}

.detail-tags {
    margin-top: 16px;
    margin-bottom: 26px;
}

.watch-section,
.movie-article,
.related-section {
    margin-top: 48px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(34, 211, 238, 0.24);
    background: #000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.14), rgba(2, 6, 23, 0.42));
    transition: opacity 0.25s ease;
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.big-play {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #06202a;
    background: #67e8f9;
    font-size: 38px;
    box-shadow: 0 20px 50px rgba(34, 211, 238, 0.34);
}

.movie-article {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.82);
}

.movie-article h2 {
    margin-top: 28px;
    font-size: 26px;
    font-weight: 900;
}

.movie-article h2:first-child {
    margin-top: 0;
}

.movie-article p {
    margin-top: 14px;
    color: var(--muted-strong);
    font-size: 17px;
    line-height: 1.9;
}

.detail-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.detail-nav a {
    max-width: 48%;
    padding: 13px 16px;
    border-radius: 14px;
    color: #a5f3fc;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty-state {
    margin-top: 24px;
    padding: 28px;
    text-align: center;
    color: var(--muted-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.72);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.92);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 26px;
    padding: 36px 0;
}

.footer-inner p,
.footer-copy {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    color: var(--muted-strong);
}

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

.footer-copy {
    grid-column: 1 / -1;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

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

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

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

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

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

    .hero-content {
        padding-bottom: 92px;
    }

    .movie-grid,
    .movie-grid-large,
    .compact-grid,
    .rank-list,
    .overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-poster {
        width: min(300px, 76%);
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

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

    .brand-text em {
        display: none;
    }

    .page-main {
        padding-top: 64px;
    }

    .site-header-inner {
        height: 64px;
    }

    .hero-slider {
        margin-top: -64px;
        height: 82vh;
        min-height: 580px;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 34px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section-heading {
        display: block;
    }

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

    .movie-grid,
    .movie-grid-large,
    .compact-grid,
    .rank-list,
    .category-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .feature-panel,
    .rank-section,
    .movie-article {
        padding: 20px;
    }

    .detail-nav {
        display: grid;
    }

    .detail-nav a {
        max-width: 100%;
    }

    .big-play {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }
}
