:root {
    --bg: #0f172a;
    --bg-soft: #111827;
    --panel: rgba(30, 41, 59, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.92);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #22d3ee;
    --blue: #2563eb;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 28rem),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 30rem),
        linear-gradient(180deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 28px rgba(34, 211, 238, 0.24);
    transition: transform 0.2s ease;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
    transform: scale(1.08);
}

.brand-text,
.footer-brand span:last-child {
    font-size: 1.25rem;
    background: linear-gradient(90deg, #67e8f9, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted-strong);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 650;
    transition: color 0.2s ease;
}

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

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

.search-form input,
.mobile-search-form input,
.hero-search input {
    min-width: 220px;
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    outline: none;
    background: rgba(30, 41, 59, 0.86);
    padding: 10px 14px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.mobile-search-form input:focus,
.hero-search input:focus {
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.search-form button,
.mobile-search-form button,
.hero-search button,
.primary-btn {
    border: none;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    padding: 11px 20px;
    font-weight: 760;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-form button:hover,
.mobile-search-form button:hover,
.hero-search button:hover,
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(34, 211, 238, 0.32);
}

.menu-toggle {
    display: none;
    color: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.82);
    padding: 8px 12px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.98);
    padding: 16px 24px 20px;
}

.mobile-panel nav {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.content-wrap {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

.hero-carousel {
    position: relative;
    height: 72vh;
    min-height: 520px;
    overflow: hidden;
    background: #020617;
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.72) 38%, rgba(15, 23, 42, 0.2) 100%),
        linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.05) 42%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 86px;
    width: min(720px, calc(100% - 48px));
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.88);
    padding: 7px 14px;
    font-size: 0.85rem;
    font-weight: 760;
    letter-spacing: 0.04em;
}

.hero-content h1,
.page-hero h1,
.detail-info-card h1 {
    margin: 18px 0 14px;
    color: #ffffff;
    font-size: clamp(2.4rem, 6vw, 5.4rem);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-content p,
.page-hero p {
    max-width: 760px;
    color: var(--muted-strong);
    font-size: clamp(1rem, 2vw, 1.28rem);
    line-height: 1.8;
}

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

.ghost-btn {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.52);
    padding: 10px 18px;
    font-weight: 760;
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, border 0.2s ease;
}

.ghost-btn:hover {
    border-color: rgba(34, 211, 238, 0.5);
    background: rgba(15, 23, 42, 0.82);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(8px);
    font-size: 2rem;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.home-channel-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 22px 24px;
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.home-channel-strip a {
    color: var(--muted-strong);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 16px;
    background: rgba(30, 41, 59, 0.55);
    transition: color 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.home-channel-strip a:hover {
    color: #ffffff;
    border-color: rgba(34, 211, 238, 0.45);
    transform: translateY(-2px);
}

.home-sections {
    display: grid;
    gap: 76px;
    padding: 68px 0 86px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
}

.section-title span {
    width: 6px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.section-title h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.15;
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

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

.movie-card a {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

.movie-card-large .poster-wrap,
.movie-card-horizontal .poster-wrap {
    aspect-ratio: 16 / 9;
}

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

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

.poster-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.88);
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 760;
    backdrop-filter: blur(6px);
}

.card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.card-body h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.35;
}

.card-body p {
    display: -webkit-box;
    margin: 0;
    min-height: 3.1em;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

.card-meta span:last-child {
    color: var(--cyan);
}

.movie-card-horizontal a {
    display: grid;
    grid-template-columns: 45% 1fr;
}

.movie-card-horizontal .poster-wrap {
    height: 100%;
}

.glass-section,
.latest-section {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(30, 41, 59, 0.32);
    padding: 30px;
    backdrop-filter: blur(12px);
}

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

.category-card,
.category-panel-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    padding: 22px;
    transition: transform 0.24s ease, border 0.24s ease, background 0.24s ease;
}

.category-card:hover,
.category-panel-card:hover {
    border-color: rgba(34, 211, 238, 0.4);
    background: rgba(30, 41, 59, 0.82);
    transform: translateY(-4px);
}

.category-card span,
.category-panel-head span {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 850;
}

.category-card p,
.category-panel-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.92rem;
}

.category-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.category-panel-head strong {
    color: var(--cyan);
    font-size: 0.86rem;
    white-space: nowrap;
}

.category-samples {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.category-samples a {
    color: var(--muted-strong);
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.rank-panel {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 30px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.48));
    padding: 30px;
}

.rank-panel p {
    color: var(--muted-strong);
    line-height: 1.8;
    margin: 0 0 24px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.62);
    padding: 12px 14px;
}

.rank-item:hover {
    border-color: rgba(34, 211, 238, 0.42);
}

.rank-no {
    color: var(--cyan);
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-year {
    color: var(--muted);
    font-size: 0.9rem;
}

.scroll-row {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scroll-snap-type: x proximity;
}

.scroll-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

.page-hero,
.detail-hero {
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 34rem),
        linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.92));
    padding: 72px 0;
}

.page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.category-list-section {
    padding: 56px 0 86px;
}

.rank-page-list {
    display: grid;
    gap: 18px;
    padding: 56px 0 86px;
}

.rank-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    overflow: hidden;
}

.rank-card a {
    display: grid;
    grid-template-columns: auto 132px minmax(0, 1fr);
    align-items: stretch;
    gap: 18px;
    min-height: 132px;
}

.rank-card-no {
    display: grid;
    place-items: center;
    min-width: 78px;
    color: var(--cyan);
    background: rgba(8, 47, 73, 0.5);
    font-size: 1.4rem;
    font-weight: 900;
}

.rank-card img {
    width: 132px;
    height: 132px;
    object-fit: cover;
}

.rank-card div {
    align-self: center;
    padding: 18px 18px 18px 0;
}

.rank-card h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.rank-card p {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.hero-search input {
    width: 100%;
}

.empty-state {
    margin: 50px auto 80px;
    color: var(--muted-strong);
    text-align: center;
    font-size: 1.1rem;
}

.detail-hero {
    padding: 18px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 34px;
    padding: 42px 0 64px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: #ffffff;
    border: none;
    background:
        radial-gradient(circle, rgba(34, 211, 238, 0.24), transparent 18rem),
        rgba(2, 6, 23, 0.52);
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 20px 48px rgba(37, 99, 235, 0.36);
    font-size: 2rem;
}

.play-overlay strong {
    font-size: 1.08rem;
    letter-spacing: 0.05em;
}

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

.detail-text {
    margin-top: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.74);
    padding: 28px;
}

.detail-text h2 {
    margin: 0 0 12px;
    font-size: 1.3rem;
}

.detail-text p {
    margin: 0 0 26px;
    color: var(--muted-strong);
    line-height: 1.9;
}

.detail-text p:last-child {
    margin-bottom: 0;
}

.detail-sidebar {
    display: grid;
    gap: 20px;
    align-content: start;
}

.detail-poster {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #111827;
    box-shadow: var(--shadow);
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-info-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.78);
    padding: 24px;
}

.detail-info-card h1 {
    margin: 18px 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.detail-info-card p {
    color: var(--muted-strong);
    line-height: 1.8;
}

.detail-info-card dl {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}

.detail-info-card dl div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    color: var(--muted-strong);
}

.detail-info-card dt {
    color: var(--muted);
}

.detail-info-card dd {
    margin: 0;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud span {
    color: var(--muted-strong);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.72);
    padding: 6px 10px;
    font-size: 0.84rem;
}

.related-section {
    padding-bottom: 86px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
    color: var(--muted-strong);
    padding: 52px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 48px;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

.footer-grid p {
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.footer-grid h3 {
    margin: 0 0 16px;
    color: #ffffff;
}

.footer-links {
    display: grid;
    gap: 10px;
}

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

.copyright {
    width: min(1280px, calc(100% - 48px));
    margin: 34px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
    font-size: 0.9rem;
}

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

    .menu-toggle {
        display: inline-flex;
    }

    .site-header.is-open .mobile-panel {
        display: block;
    }

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

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

    .rank-panel,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        grid-template-columns: minmax(180px, 300px) 1fr;
    }
}

@media (max-width: 720px) {
    .nav-inner {
        height: 64px;
        padding: 0 16px;
    }

    .content-wrap {
        width: min(100% - 32px, 1280px);
    }

    .hero-carousel {
        min-height: 560px;
        height: 78vh;
    }

    .hero-content {
        left: 18px;
        bottom: 86px;
        width: calc(100% - 36px);
    }

    .hero-arrow {
        display: none;
    }

    .home-sections {
        gap: 48px;
        padding: 46px 0 64px;
    }

    .glass-section,
    .latest-section,
    .rank-panel {
        padding: 20px;
        border-radius: 22px;
    }

    .grid-four,
    .grid-three,
    .category-grid,
    .category-panel-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-card a {
        grid-template-columns: 58px 92px minmax(0, 1fr);
        gap: 12px;
        min-height: 110px;
    }

    .rank-card img {
        width: 92px;
        height: 110px;
    }

    .rank-card div {
        padding: 12px 12px 12px 0;
    }

    .rank-card p {
        display: none;
    }

    .detail-layout {
        padding-top: 26px;
    }

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

    .detail-poster {
        max-width: 280px;
    }

    .footer-grid {
        gap: 28px;
    }
}
