* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #e5e7eb;
    background: linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.32);
    backdrop-filter: blur(16px);
}

.header-inner,
.content-shell,
.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb 52%, #7c3aed);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.45);
}

.brand-text {
    font-size: 19px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 9px 14px;
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 14px;
    transition: 0.24s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(14, 165, 233, 0.16);
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.76);
    padding: 10px;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #e2e8f0;
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: radial-gradient(circle at 16% 18%, rgba(14, 165, 233, 0.24), transparent 32%), radial-gradient(circle at 82% 12%, rgba(124, 58, 237, 0.22), transparent 34%), #020617;
}

.hero-slide {
    display: none;
    min-height: 680px;
    position: relative;
}

.hero-slide.active {
    display: block;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
    opacity: 0.56;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.82) 43%, rgba(15, 23, 42, 0.42) 70%, rgba(2, 6, 23, 0.88) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 390px;
    align-items: center;
    gap: 48px;
    padding: 72px 0;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 13px;
    color: #7dd3fc;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    margin: 22px 0 18px;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-desc {
    max-width: 720px;
    color: #cbd5e1;
    font-size: 18px;
}

.hero-tags,
.tag-cloud,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin: 24px 0 30px;
}

.hero-tags span,
.tag-cloud span,
.detail-tags span {
    padding: 7px 12px;
    color: #dbeafe;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    font-size: 13px;
}

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

.btn-primary,
.btn-secondary,
.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.24s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 16px 34px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(14, 165, 233, 0.42);
}

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

.btn-secondary:hover,
.btn-soft:hover {
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(14, 165, 233, 0.14);
}

.hero-poster {
    position: relative;
    padding: 16px;
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(15,23,42,0.72));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 35px 90px rgba(2, 6, 23, 0.66);
    backdrop-filter: blur(12px);
}

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

.poster-float {
    position: absolute;
    left: -22px;
    bottom: 30px;
    width: calc(100% - 26px);
    padding: 18px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.poster-float strong {
    display: block;
    color: #ffffff;
    font-size: 20px;
}

.poster-float span {
    color: #bae6fd;
    font-size: 13px;
}

.hero-controls {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.35);
}

.hero-dot.active {
    background: #38bdf8;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.8);
}

.content-shell {
    padding: 52px 0;
}

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

.section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-heading p {
    margin: 8px 0 0;
    color: #94a3b8;
}

.section-more {
    color: #38bdf8;
    font-weight: 800;
}

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

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

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

.movie-card,
.category-card,
.panel,
.detail-panel,
.filter-panel {
    overflow: hidden;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.28);
}

.movie-card {
    transition: 0.24s ease;
}

.movie-card:hover,
.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.38);
    box-shadow: 0 24px 58px rgba(2, 6, 23, 0.42);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #0f172a;
}

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

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

.poster-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.poster-play {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.86);
    border-radius: 999px;
    box-shadow: 0 0 24px rgba(14, 165, 233, 0.45);
}

.card-body {
    padding: 14px;
}

.card-body h3 {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.4;
}

.card-meta,
.card-line,
.card-tags {
    margin: 8px 0 0;
    font-size: 13px;
}

.card-meta {
    color: #7dd3fc;
}

.card-line,
.card-tags {
    color: #94a3b8;
}

.feature-band {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.78));
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.category-card {
    position: relative;
    min-height: 245px;
    overflow: hidden;
    border-radius: 24px;
    transition: 0.24s ease;
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 245px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.88) 100%);
}

.category-card div {
    position: absolute;
    z-index: 1;
    left: 20px;
    right: 20px;
    bottom: 20px;
}

.category-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
}

.category-card p {
    margin: 6px 0 0;
    color: #cbd5e1;
}

.filter-panel {
    padding: 18px;
    margin-bottom: 24px;
}

.toolbar input,
.toolbar select {
    min-height: 44px;
    color: #e2e8f0;
    background: rgba(2, 6, 23, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    outline: none;
    padding: 0 14px;
}

.toolbar input {
    flex: 1 1 260px;
}

.toolbar select {
    flex: 0 0 150px;
}

.rank-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    gap: 22px;
    align-items: start;
}

.rank-row {
    display: grid;
    grid-template-columns: 54px 72px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    transition: 0.2s ease;
}

.rank-row:hover {
    background: rgba(14, 165, 233, 0.08);
}

.rank-row img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-no {
    color: #38bdf8;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.rank-copy strong {
    display: block;
    color: #ffffff;
    font-size: 17px;
}

.rank-copy em,
.rank-arrow {
    display: block;
    color: #94a3b8;
    font-style: normal;
    font-size: 13px;
}

.rank-arrow {
    color: #7dd3fc;
    font-weight: 800;
}

.page-hero {
    padding: 70px 0 34px;
    background: radial-gradient(circle at 18% 0%, rgba(14, 165, 233, 0.22), transparent 35%), radial-gradient(circle at 82% 4%, rgba(124, 58, 237, 0.18), transparent 34%);
}

.page-hero h1 {
    margin: 18px 0 12px;
    color: #ffffff;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    color: #cbd5e1;
    font-size: 17px;
}

.detail-hero {
    padding: 34px 0 54px;
}

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

.breadcrumb a {
    color: #7dd3fc;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

.player-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.78));
    border: 0;
    cursor: pointer;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    box-shadow: 0 0 50px rgba(14, 165, 233, 0.54);
    font-size: 30px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 26px;
    margin-top: 26px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

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

.detail-panel {
    padding: 28px;
}

.detail-panel h1 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.1;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.meta-line span {
    padding: 7px 12px;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.86);
    border-radius: 12px;
    font-size: 13px;
}

.detail-text h2 {
    margin: 24px 0 10px;
    color: #ffffff;
    font-size: 22px;
}

.detail-text p {
    margin: 0 0 12px;
    color: #cbd5e1;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.13);
    background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding: 34px 0;
    color: #94a3b8;
}

.footer-inner strong {
    color: #ffffff;
}

.footer-inner p {
    margin: 8px 0 0;
}

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

.footer-links a {
    color: #cbd5e1;
}

.empty-state {
    display: none;
    padding: 24px;
    color: #94a3b8;
    text-align: center;
}

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

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

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

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

@media (max-width: 820px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 68px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 20px;
        background: rgba(15, 23, 42, 0.98);
        border: 1px solid rgba(148, 163, 184, 0.2);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-link {
        text-align: center;
    }

    .hero,
    .hero-slide,
    .hero-inner {
        min-height: 760px;
    }

    .hero-inner {
        padding: 42px 0 86px;
        gap: 28px;
    }

    .poster-float {
        left: 14px;
        right: 14px;
        width: auto;
    }

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

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

    .rank-row {
        grid-template-columns: 42px 58px minmax(0, 1fr);
    }

    .rank-row img {
        width: 58px;
        height: 78px;
    }

    .rank-arrow {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
    }

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

@media (max-width: 520px) {
    .header-inner,
    .content-shell,
    .footer-inner,
    .hero-inner {
        width: min(100% - 22px, 1180px);
    }

    .brand-text {
        font-size: 16px;
    }

    .hero h1,
    .page-hero h1 {
        letter-spacing: -0.03em;
    }

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

    .card-body {
        padding: 11px;
    }

    .card-body h3 {
        font-size: 14px;
    }

    .card-line {
        display: none;
    }

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