:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-soft: rgba(30, 41, 59, 0.68);
    --line: rgba(148, 163, 184, 0.18);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --blue: #38bdf8;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.14), transparent 32%), linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(18px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #ffffff;
    white-space: nowrap;
}

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

.brand-name {
    font-size: 21px;
    background: linear-gradient(135deg, #67e8f9, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 14px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #67e8f9;
    background: rgba(15, 23, 42, 0.86);
}

.nav-link-sub {
    color: #94a3b8;
}

.top-search,
.mobile-search,
.search-page-form,
.inline-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-search input,
.mobile-search input,
.search-page-form input,
.inline-filter input {
    min-width: 0;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.9);
    color: #e2e8f0;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
    width: 220px;
    padding: 11px 14px;
}

.top-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.inline-filter input:focus {
    border-color: rgba(34, 211, 238, 0.72);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.top-search button,
.mobile-search button,
.search-page-form button {
    border: 0;
    border-radius: 14px;
    padding: 11px 16px;
    font-weight: 800;
    color: #020617;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.86);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 4px;
    background: #cbd5e1;
}

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

.mobile-panel.is-open {
    display: grid;
    gap: 10px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: #cbd5e1;
}

.mobile-link:hover,
.mobile-link.is-active {
    color: #67e8f9;
    background: rgba(30, 41, 59, 0.8);
}

.mobile-search input {
    width: 100%;
    padding: 12px 14px;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-slider,
.hero-slide {
    min-height: 680px;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.06);
}

.hero-bg span {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 38%, rgba(2, 6, 23, 0.22) 100%), linear-gradient(0deg, #020617 0%, transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    padding: 122px 0 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 760px;
    margin-left: max(16px, calc((100% - 1180px) / 2));
}

.hero-tags,
.tag-row,
.detail-meta,
.meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #a5f3fc;
    background: rgba(8, 145, 178, 0.16);
    border: 1px solid rgba(34, 211, 238, 0.22);
    font-size: 13px;
}

.hero h1 {
    margin: 18px 0 10px;
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.02;
    color: #ffffff;
    letter-spacing: -0.05em;
}

.hero h2 {
    margin: 0 0 18px;
    font-size: clamp(24px, 3vw, 42px);
    color: #67e8f9;
}

.hero p {
    max-width: 720px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 15px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

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

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

.hero-dots {
    position: absolute;
    left: max(16px, calc((100% - 1180px) / 2));
    bottom: 112px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 42px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    cursor: pointer;
}

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

.hero-category-bar {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 5;
    transform: translateX(-50%);
    width: min(1180px, calc(100% - 32px));
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(16px);
}

.hero-category-bar a {
    flex: 1 1 120px;
    text-align: center;
    padding: 12px 10px;
    border-radius: 14px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.68);
}

.hero-category-bar a:hover {
    color: #67e8f9;
    background: rgba(8, 145, 178, 0.18);
}

.page-main {
    padding: 46px 0 76px;
}

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

.page-hero h1,
.section-head h2,
.spotlight-copy h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.04em;
}

.page-hero p,
.spotlight-copy p {
    max-width: 760px;
    color: #b6c3d1;
    line-height: 1.85;
    font-size: 17px;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: #67e8f9;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section {
    padding: 54px 0;
}

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

.section-head a {
    color: #67e8f9;
    font-weight: 800;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 16px 42px rgba(2, 6, 23, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.38);
    background: rgba(30, 41, 59, 0.86);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.92);
}

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

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

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

.play-dot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #020617;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 10px 24px rgba(34, 211, 238, 0.24);
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #020617;
    background: linear-gradient(135deg, #facc15, #fb923c);
    box-shadow: 0 10px 22px rgba(251, 146, 60, 0.25);
}

.card-body {
    padding: 16px;
}

.meta-line,
.detail-meta {
    color: #94a3b8;
    font-size: 12px;
}

.meta-line span,
.detail-meta span {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.72);
}

.card-body h3 {
    margin: 12px 0 8px;
    color: #f8fafc;
    font-size: 18px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: #67e8f9;
}

.card-body p {
    min-height: 48px;
    margin: 0 0 13px;
    color: #aebdcc;
    font-size: 14px;
    line-height: 1.65;
}

.compact-card .card-body p {
    min-height: 42px;
}

.spotlight {
    margin-top: 36px;
    padding: 34px;
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 30px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.14), rgba(30, 41, 59, 0.72));
    box-shadow: var(--shadow);
}

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

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

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

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

.category-card a {
    display: block;
    overflow: hidden;
    min-height: 100%;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.76);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card a:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.38);
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 150px;
}

.category-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-copy {
    padding: 22px;
}

.category-copy h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 24px;
}

.category-copy p {
    margin: 0 0 16px;
    color: #aebdcc;
    line-height: 1.75;
}

.category-copy span {
    color: #67e8f9;
    font-weight: 900;
}

.category-title-panel {
    border-bottom: 1px solid var(--line);
}

.inline-filter {
    margin-top: 22px;
}

.inline-filter input {
    width: min(520px, 100%);
    padding: 14px 16px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #67e8f9;
}

.detail-main {
    padding-top: 30px;
}

.detail-hero {
    padding-top: 20px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) 380px;
    gap: 28px;
    align-items: stretch;
}

.player-card,
.detail-panel,
.content-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 360px;
    background: #000000;
}

.video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.2), transparent 36%), rgba(2, 6, 23, 0.42);
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.big-play {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #020617;
    font-size: 32px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 42px rgba(34, 211, 238, 0.3);
}

.player-overlay strong {
    font-size: 22px;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.55);
}

.detail-panel {
    padding: 22px;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 22px;
    object-fit: cover;
    background: rgba(30, 41, 59, 0.92);
}

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

.detail-panel h1 {
    margin: 16px 0 12px;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.18;
}

.one-line {
    color: #cbd5e1;
    line-height: 1.75;
}

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

.detail-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.content-card {
    padding: 26px;
}

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

.content-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.9;
}

.search-page-form {
    margin-top: 26px;
    width: min(680px, 100%);
}

.search-page-form input {
    flex: 1;
    padding: 15px 16px;
}

.empty-state {
    display: none;
    margin: 30px 0 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 24px;
    color: #cbd5e1;
    text-align: center;
    background: rgba(15, 23, 42, 0.72);
}

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

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

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.9fr;
    gap: 34px;
    padding: 46px 0 28px;
}

.footer-brand p {
    max-width: 520px;
    color: #94a3b8;
    line-height: 1.75;
}

.footer-col {
    display: grid;
    gap: 10px;
    align-content: start;
}

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

.footer-col a {
    color: #94a3b8;
}

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

.footer-bottom {
    padding: 18px 0 28px;
    color: #64748b;
    text-align: center;
}

@media (max-width: 1120px) {
    .top-search {
        display: none;
    }

    .desktop-nav {
        justify-content: flex-end;
    }

    .nav-link-sub {
        display: none;
    }

    .card-grid,
    .small-grid,
    .category-grid,
    .search-grid,
    .ranking-list,
    .ranking-page-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .detail-panel {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 20px;
        align-items: start;
    }

    .detail-cover {
        grid-row: span 4;
    }
}

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

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

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

    .hero-content {
        min-height: 620px;
        padding: 92px 0 190px;
    }

    .hero-category-bar {
        max-height: 156px;
        overflow: auto;
    }

    .featured-grid,
    .card-grid,
    .small-grid,
    .category-grid,
    .search-grid,
    .ranking-list,
    .ranking-page-list,
    .category-overview,
    .spotlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spotlight {
        grid-template-columns: 1fr;
        padding: 24px;
    }

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

    .video-shell {
        min-height: 260px;
    }
}

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

    .header-inner {
        height: 64px;
    }

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

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

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

    .hero-actions,
    .search-page-form,
    .mobile-search {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-btn,
    .ghost-btn,
    .search-page-form button,
    .mobile-search button {
        width: 100%;
    }

    .featured-grid,
    .card-grid,
    .small-grid,
    .category-grid,
    .search-grid,
    .ranking-list,
    .ranking-page-list,
    .category-overview,
    .spotlight-grid {
        grid-template-columns: 1fr;
    }

    .detail-panel {
        display: block;
    }

    .detail-cover {
        width: min(240px, 100%);
    }

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