:root {
    color-scheme: dark;
    --page-bg: #0f172a;
    --panel-bg: rgba(30, 41, 59, 0.72);
    --panel-soft: rgba(15, 23, 42, 0.64);
    --line: rgba(148, 163, 184, 0.18);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --green: #34d399;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.42);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 35%),
        radial-gradient(circle at 75% 20%, rgba(59, 130, 246, 0.18), transparent 34%),
        linear-gradient(180deg, #0f172a 0%, #111827 42%, #0f172a 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.86);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 34px rgba(34, 211, 238, 0.28);
}

.brand-text strong,
.footer-brand {
    display: block;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1;
    background: linear-gradient(90deg, #67e8f9, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.nav-link,
.mobile-link {
    color: #cbd5e1;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #67e8f9;
    background: rgba(51, 65, 85, 0.64);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    background: rgba(30, 41, 59, 0.62);
    border-radius: 14px;
    overflow: hidden;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.header-search input {
    width: 210px;
    padding: 10px 12px;
}

.header-search button,
.mobile-search button,
.filter-bar button {
    border: 0;
    color: white;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
}

.menu-toggle {
    width: 44px;
    height: 44px;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.72);
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    margin: 0 auto;
    border-radius: 999px;
    background: #cbd5e1;
}

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

.mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-search {
    grid-column: 1 / -1;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    padding: 11px 12px;
}

.mobile-link {
    display: block;
    padding: 12px 14px;
}

.hero {
    position: relative;
    height: min(780px, 86vh);
    min-height: 560px;
    overflow: hidden;
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.9s ease, transform 1.2s ease;
}

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

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.48), rgba(15, 23, 42, 0.88)),
        linear-gradient(0deg, #0f172a, rgba(15, 23, 42, 0.12) 48%, rgba(15, 23, 42, 0.34));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(54px, 9vh, 110px);
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #67e8f9;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    color: white;
    font-weight: 900;
    line-height: 1.05;
}

.hero h1 {
    max-width: 900px;
    font-size: clamp(42px, 7vw, 88px);
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.hero p {
    max-width: 760px;
    margin: 22px 0 0;
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

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

.btn,
.btn-soft {
    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, background 0.2s ease;
}

.btn {
    color: white;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 44px rgba(34, 211, 238, 0.25);
}

.btn-soft {
    color: #dbeafe;
    border: 1px solid var(--line);
    background: rgba(30, 41, 59, 0.66);
}

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

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

.hero-dot {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.28);
    cursor: pointer;
}

.hero-dot.active {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.main-content,
.page-content,
.detail-content {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.main-content {
    padding: 44px 0 76px;
}

.section {
    margin-top: 56px;
}

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

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

.section-title {
    margin: 0;
    color: white;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.16;
}

.section-lead,
.page-hero p,
.detail-title p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

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

.movie-card,
.compact-card,
.category-card,
.info-panel,
.player-panel,
.detail-side-card {
    border: 1px solid var(--line);
    background: var(--panel-bg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    border-color: rgba(34, 211, 238, 0.44);
    transform: translateY(-6px);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #020617;
}

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

.movie-card:hover img,
.compact-card:hover img {
    transform: scale(1.05);
}

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

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    color: white;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.92);
    font-size: 13px;
    font-weight: 800;
}

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

.movie-meta-line,
.detail-meta,
.compact-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 13px;
}

.movie-meta-line span,
.detail-meta span,
.category-pill,
.tag-list span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.62);
}

.movie-meta-line span,
.detail-meta span {
    padding: 5px 9px;
}

.movie-card h2,
.movie-card h3,
.compact-card h3 {
    margin: 12px 0 8px;
    color: white;
    font-weight: 850;
    line-height: 1.32;
}

.movie-card h2,
.movie-card h3 {
    display: -webkit-box;
    min-height: 2.64em;
    overflow: hidden;
    font-size: 18px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card p,
.compact-card p {
    display: -webkit-box;
    min-height: 4.8em;
    margin: 0;
    overflow: hidden;
    color: #a8b3c4;
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tag-list {
    min-height: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag-list span {
    padding: 5px 8px;
    color: #a5f3fc;
    background: rgba(8, 145, 178, 0.16);
    font-size: 12px;
}

.category-pill {
    margin-top: 13px;
    padding: 7px 10px;
    color: #dbeafe;
    font-size: 13px;
}

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

.category-card {
    position: relative;
    min-height: 188px;
    overflow: hidden;
    padding: 22px;
    border-radius: 24px;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background: radial-gradient(circle at 20% 20%, var(--cyan), transparent 34%), radial-gradient(circle at 80% 60%, var(--blue), transparent 38%);
}

.category-card > * {
    position: relative;
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    color: white;
    font-size: 23px;
}

.category-card p {
    min-height: 72px;
    margin: 0 0 18px;
    color: #cbd5e1;
    line-height: 1.6;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border-radius: 20px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.compact-card:hover {
    border-color: rgba(34, 211, 238, 0.42);
    transform: translateY(-3px);
}

.compact-poster {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 15px;
    background: #020617;
}

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

.compact-body h3 {
    margin: 8px 0 7px;
    font-size: 17px;
}

.rank-number {
    color: #67e8f9;
    font-size: 22px;
    font-weight: 900;
}

.page-hero {
    padding: 68px 0 30px;
}

.page-hero-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.72));
    box-shadow: var(--shadow);
}

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 170px 170px auto;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.64);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.72);
}

.filter-bar button {
    border-radius: 14px;
}

.empty-state {
    display: none;
    padding: 28px;
    color: #cbd5e1;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(30, 41, 59, 0.56);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    padding: 34px 0 76px;
}

.breadcrumb {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: #67e8f9;
}

.player-panel {
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-shell video {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.28));
    cursor: pointer;
}

.player-cover.hidden {
    display: none;
}

.player-cover span {
    display: grid;
    width: 84px;
    height: 84px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 50px rgba(34, 211, 238, 0.34);
    font-size: 32px;
}

.detail-title,
.info-panel {
    margin-top: 18px;
    padding: 24px;
    border-radius: 24px;
}

.detail-title {
    border: 1px solid var(--line);
    background: rgba(30, 41, 59, 0.48);
}

.detail-title h1 {
    margin-top: 14px;
    font-size: clamp(30px, 5vw, 56px);
}

.info-panel h2,
.detail-side-card h2 {
    margin: 0 0 14px;
    color: white;
    font-size: 24px;
}

.info-panel p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.9;
}

.info-panel p + p {
    margin-top: 14px;
}

.detail-side {
    position: sticky;
    top: 98px;
    align-self: start;
    display: grid;
    gap: 18px;
}

.detail-side-card {
    padding: 18px;
    border-radius: 24px;
}

.side-poster {
    overflow: hidden;
    border-radius: 20px;
    background: #020617;
}

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

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

.related-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-item img {
    width: 72px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 12px;
}

.related-item h3 {
    margin: 0 0 5px;
    color: white;
    font-size: 15px;
}

.related-item span {
    color: var(--muted);
    font-size: 13px;
}

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

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.footer-links a {
    padding: 9px 12px;
    color: #cbd5e1;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.64);
}

@media (max-width: 1120px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

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

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

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

    .detail-side {
        position: static;
        grid-template-columns: 260px minmax(0, 1fr);
    }
}

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

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

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

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

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

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

@media (max-width: 520px) {
    .header-inner {
        width: min(100% - 22px, 1280px);
    }

    .brand-text em {
        display: none;
    }

    .hero-content,
    .main-content,
    .page-content,
    .detail-content,
    .footer-inner,
    .page-hero-inner {
        width: min(100% - 22px, 1280px);
    }

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

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

    .mobile-nav.open {
        grid-template-columns: 1fr;
    }

    .compact-card {
        grid-template-columns: 88px minmax(0, 1fr);
    }
}
