:root {
    --page-bg: #020617;
    --panel-bg: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(56, 189, 248, 0.18);
    --line-strong: rgba(56, 189, 248, 0.42);
    --cyan: #22d3ee;
    --cyan-dark: #0891b2;
    --blue: #2563eb;
    --purple: #a855f7;
    --orange: #f97316;
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --shadow: 0 24px 80px rgba(8, 145, 178, 0.22);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 5%, rgba(34, 211, 238, 0.20), transparent 28rem),
        radial-gradient(circle at 86% 15%, rgba(37, 99, 235, 0.24), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(56, 189, 248, 0.18);
    background: rgba(2, 6, 23, 0.86);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

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

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

.main-nav a,
.mobile-nav a {
    color: var(--soft);
    border-radius: 999px;
    padding: 10px 14px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.mobile-nav a:hover,
.main-nav a.active,
.mobile-nav a.active {
    color: white;
    background: rgba(34, 211, 238, 0.14);
}

.header-search {
    position: relative;
    flex: 0 1 260px;
}

.header-search input,
.search-panel input,
.filter-select {
    width: 100%;
    color: white;
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 999px;
    outline: none;
    background: rgba(15, 23, 42, 0.72);
    padding: 12px 44px 12px 16px;
    transition: border 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search input:focus,
.search-panel input:focus,
.filter-select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
    background: rgba(15, 23, 42, 0.94);
}

.header-search button,
.search-panel button[type="submit"] {
    position: absolute;
    right: 6px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: white;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    transform: translateY(-50%);
}

.menu-toggle {
    display: none;
    color: white;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.84);
    padding: 10px 12px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(56, 189, 248, 0.16);
    padding: 12px 0 18px;
}

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

.mobile-nav a {
    display: block;
    margin: 4px 0;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 76vh;
    border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

.hero-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.14), #020617 94%);
    pointer-events: none;
    z-index: 4;
}

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

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.70) 46%, rgba(2, 6, 23, 0.38) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.12);
    transform: scale(1.04);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 28%, rgba(34, 211, 238, 0.24), transparent 24rem),
        radial-gradient(circle at 82% 52%, rgba(168, 85, 247, 0.14), transparent 24rem);
}

.hero-content-wrap {
    position: relative;
    z-index: 6;
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    gap: 46px;
    min-height: 76vh;
    padding: 104px 0 78px;
}

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

.hero-eyebrow,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.12);
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-title {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 78px);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.hero-title span {
    display: block;
    color: var(--cyan);
    font-size: clamp(24px, 3vw, 42px);
    letter-spacing: -0.03em;
    margin-top: 8px;
}

.hero-movie-title {
    margin: 0 0 18px;
    font-size: clamp(30px, 4.2vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-desc {
    color: #dbeafe;
    max-width: 660px;
    margin: 0 0 26px;
    font-size: clamp(16px, 1.7vw, 20px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    color: white;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 16px 34px rgba(34, 211, 238, 0.26);
}

.btn-secondary {
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(15, 23, 42, 0.72);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(34, 211, 238, 0.24);
}

.hero-poster {
    position: relative;
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(15, 23, 42, 0.70);
    box-shadow: var(--shadow);
}

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

.hero-poster-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.94));
}

.hero-tags,
.tag-list,
.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag,
.meta-pill {
    display: inline-flex;
    align-items: center;
    color: #bae6fd;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.14);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.hero-controls {
    position: absolute;
    z-index: 9;
    left: 50%;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-50%);
}

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

.hero-dot.active {
    width: 42px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.hero-arrow {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
}

.main-section {
    padding: 74px 0;
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.section-desc {
    color: var(--muted);
    margin: 8px 0 0;
    max-width: 680px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: var(--radius-lg);
    background: var(--panel-bg);
    box-shadow: 0 16px 44px rgba(2, 6, 23, 0.28);
    transition: transform 0.28s ease, border 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: var(--line-strong);
    box-shadow: 0 26px 60px rgba(34, 211, 238, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.80);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.25s ease;
}

.movie-grid.featured .poster-link img {
    aspect-ratio: 16 / 9;
}

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(2, 6, 23, 0.88));
    opacity: 0.86;
}

.card-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    color: white;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(12px);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    left: 12px;
    right: auto;
    background: linear-gradient(135deg, var(--orange), var(--purple));
}

.play-orb {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: white;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
    padding: 15px;
}

.card-title {
    margin: 8px 0 8px;
    color: white;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
}

.movie-grid.featured .card-title {
    font-size: 20px;
}

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

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

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 178px;
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(37, 99, 235, 0.10)),
        rgba(15, 23, 42, 0.78);
    padding: 24px;
    transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    color: var(--muted);
    margin: 0 0 18px;
}

.category-card span {
    color: var(--cyan);
    font-weight: 800;
}

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

.page-hero-panel {
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 24% 20%, rgba(34, 211, 238, 0.20), transparent 26rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.70));
    padding: clamp(30px, 5vw, 56px);
    box-shadow: var(--shadow);
}

.page-title {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-desc {
    color: var(--soft);
    max-width: 760px;
    margin: 0;
    font-size: 18px;
}

.search-panel,
.filter-panel {
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.70);
    padding: 18px;
    margin-bottom: 28px;
}

.search-panel form,
.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
    gap: 12px;
    align-items: center;
}

.search-panel .input-wrap {
    position: relative;
}

.filter-select {
    padding-right: 16px;
    appearance: none;
}

.ranking-list {
    display: grid;
    gap: 16px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 86px 136px 1fr auto;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: var(--radius-lg);
    background: var(--panel-bg);
    padding: 14px;
    transition: transform 0.25s ease, border 0.25s ease;
}

.ranking-item:hover {
    transform: translateX(5px);
    border-color: var(--line-strong);
}

.ranking-number {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    color: white;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--orange), var(--purple));
    font-size: 24px;
    font-weight: 900;
}

.ranking-cover img {
    width: 136px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-copy h2,
.ranking-copy h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.ranking-copy p {
    color: var(--muted);
    margin: 0;
}

.detail-main {
    padding: 34px 0 78px;
}

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

.breadcrumb a:hover {
    color: var(--cyan);
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    align-items: start;
}

.player-card,
.detail-card,
.related-panel {
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: var(--radius-xl);
    background: var(--panel-bg);
    box-shadow: 0 22px 56px rgba(2, 6, 23, 0.30);
    overflow: hidden;
}

.video-shell {
    position: relative;
    overflow: hidden;
    background: black;
    aspect-ratio: 16 / 9;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: black;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.74));
    z-index: 4;
}

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

.player-button-core {
    display: grid;
    place-items: center;
    gap: 14px;
    text-align: center;
}

.player-button-icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 20px 44px rgba(34, 211, 238, 0.32);
    font-size: 32px;
}

.player-status {
    min-height: 28px;
    color: var(--soft);
    background: rgba(2, 6, 23, 0.72);
    padding: 12px 18px;
    margin: 0;
}

.detail-card {
    padding: 24px;
}

.detail-poster {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 18px;
}

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

.detail-title {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.14;
    letter-spacing: -0.03em;
}

.detail-intro {
    color: var(--soft);
    font-size: 18px;
    margin: 0 0 22px;
}

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

.detail-info div {
    border: 1px solid rgba(56, 189, 248, 0.14);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.30);
    padding: 12px;
}

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

.content-panel {
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: var(--radius-xl);
    background: var(--panel-bg);
    padding: clamp(24px, 4vw, 36px);
    margin-top: 26px;
}

.content-panel h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.content-panel p {
    color: var(--soft);
    margin: 0 0 16px;
}

.quote-line {
    color: #bae6fd;
    border-left: 4px solid var(--cyan);
    border-radius: 12px;
    background: rgba(8, 145, 178, 0.13);
    padding: 16px 18px;
    margin-bottom: 22px;
}

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

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

.hidden-card {
    display: none !important;
}

.no-result {
    display: none;
    color: var(--soft);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: var(--radius-lg);
    background: var(--panel-bg);
    padding: 24px;
    text-align: center;
}

.no-result.show {
    display: block;
}

.site-footer {
    border-top: 1px solid rgba(56, 189, 248, 0.14);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.96));
    padding: 48px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
}

.footer-title {
    color: white;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 14px;
}

.footer-links {
    display: grid;
    gap: 9px;
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    color: var(--muted);
    border-top: 1px solid rgba(56, 189, 248, 0.12);
    padding-top: 22px;
    text-align: center;
    font-size: 14px;
}

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

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

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

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

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .header-inner {
        gap: 12px;
    }

    .hero-content-wrap,
    .watch-layout {
        grid-template-columns: 1fr;
    }

    .hero-content-wrap {
        gap: 28px;
        padding-top: 92px;
    }

    .hero-poster {
        max-width: 300px;
    }

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

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

    .ranking-item {
        grid-template-columns: 54px 98px 1fr;
    }

    .ranking-number {
        width: 46px;
        height: 46px;
        border-radius: 16px;
        font-size: 18px;
    }

    .ranking-cover img {
        width: 98px;
    }

    .ranking-item .btn {
        grid-column: 1 / -1;
    }

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

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

    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
    }

    .hero-slider,
    .hero-content-wrap {
        min-height: 86vh;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-controls {
        bottom: 18px;
    }

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

    .main-section {
        padding: 52px 0;
    }

    .card-body {
        padding: 12px;
    }

    .card-title {
        font-size: 15px;
    }

    .card-desc {
        font-size: 13px;
    }

    .category-card {
        grid-column: 1 / -1;
    }

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

    .content-panel,
    .detail-card,
    .related-panel {
        border-radius: 20px;
    }
}
