:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-soft: rgba(30, 41, 59, 0.72);
    --line: rgba(148, 163, 184, 0.22);
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #06b6d4;
    --accent-deep: #0891b2;
    --gold: #facc15;
    --radius: 22px;
    --shadow: 0 26px 70px rgba(2, 8, 23, 0.45);
}

html {
    scroll-behavior: smooth;
}

body.site-body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 4%, rgba(6, 182, 212, 0.18), transparent 28rem),
        radial-gradient(circle at 82% 10%, rgba(59, 130, 246, 0.14), transparent 24rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 38px rgba(2, 8, 23, 0.35);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #06202a;
    background: linear-gradient(135deg, #22d3ee, #67e8f9);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.4);
}

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

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: rgba(6, 182, 212, 0.16);
    transform: translateY(-1px);
}

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

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

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

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

.hero-slide img,
.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::after,
.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.2)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 55%, rgba(2, 6, 23, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
}

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

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

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 16px 0;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero p,
.page-hero p,
.detail-copy p {
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.meta-pill,
.movie-tags span,
.detail-tags span,
.category-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #dffbff;
    background: rgba(6, 182, 212, 0.16);
    border: 1px solid rgba(103, 232, 249, 0.2);
    font-size: 12px;
    font-weight: 700;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 18px 38px rgba(6, 182, 212, 0.32);
}

.secondary-button {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
}

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

.hero-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(620px, 100%);
    margin-top: 30px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-search input,
.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 46px;
    border-radius: 13px;
    outline: none;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.22);
    padding: 0 14px;
}

.hero-search button {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 13px;
    color: #06202a;
    font-weight: 900;
    background: #67e8f9;
}

.hero-nav {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.58);
    border: 1px solid var(--line);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-nav:hover {
    background: rgba(8, 145, 178, 0.72);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: #22d3ee;
}

.section {
    padding: 58px 0;
}

.section-soft {
    padding: 38px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(8, 47, 73, 0.34), rgba(22, 78, 99, 0.18));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

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

.section-head h2,
.filter-panel h2,
.content-block h2 {
    color: #ffffff;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-head p,
.filter-panel p,
.content-block p {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.7;
}

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

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

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

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

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

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 26px 70px rgba(6, 182, 212, 0.12);
}

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.7));
}

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

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

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent);
}

.poster-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.16) 45%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.movie-card:hover .poster-shine {
    transform: translateX(120%);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 32px;
    padding: 0 10px;
    border-radius: 12px;
    color: #06202a;
    background: linear-gradient(135deg, #fde047, #22d3ee);
    font-weight: 900;
}

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

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 850;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: #67e8f9;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    color: #94a3b8;
    font-size: 12px;
}

.movie-line {
    display: -webkit-box;
    min-height: 42px;
    margin-top: 12px;
    overflow: hidden;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.movie-card-large {
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 286px;
}

.movie-card-large .poster-frame {
    height: 100%;
    aspect-ratio: auto;
}

.movie-card-large .movie-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.mini-movie {
    display: grid;
    grid-template-columns: auto 58px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--line);
    transition: transform 0.2s ease, border 0.2s ease;
}

.mini-movie:hover {
    transform: translateX(4px);
    border-color: rgba(34, 211, 238, 0.5);
}

.mini-movie img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
}

.mini-rank {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #06202a;
    background: #67e8f9;
    font-weight: 900;
}

.mini-movie strong,
.mini-movie em {
    display: block;
}

.mini-movie em {
    margin-top: 5px;
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
}

.category-card {
    position: relative;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    min-height: 220px;
    padding: 18px;
    overflow: hidden;
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.category-card img {
    width: 150px;
    height: 190px;
    object-fit: cover;
    border-radius: 20px;
}

.category-card h2 {
    margin: 6px 0 10px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
}

.category-card p {
    color: #cbd5e1;
    line-height: 1.75;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.page-hero {
    padding: 84px 0 64px;
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.18), transparent 22rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(8, 47, 73, 0.38));
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 24px;
    align-items: center;
    margin: 34px auto 0;
    padding: 24px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.filter-controls {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 0.72fr);
    gap: 10px;
}

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

.detail-hero {
    min-height: 620px;
    display: flex;
    align-items: center;
}

.detail-backdrop {
    background-size: cover;
    background-position: center;
    filter: blur(2px) saturate(1.05);
    transform: scale(1.02);
}

.detail-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: center;
    gap: 42px;
    padding: 70px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

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

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    padding: 56px 0;
}

.content-block,
.player-card,
.side-card {
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.content-block {
    padding: 28px;
    margin-bottom: 24px;
}

.content-block p {
    color: #dbeafe;
    font-size: 16px;
    line-height: 2;
}

.player-card {
    padding: 18px;
    margin-bottom: 24px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #020617;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #ffffff;
    background:
        radial-gradient(circle, rgba(6, 182, 212, 0.22), transparent 17rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.82));
    border: 0;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.play-layer.is-hidden {
    display: none;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    color: #06202a;
    background: linear-gradient(135deg, #67e8f9, #22d3ee);
    box-shadow: 0 0 46px rgba(34, 211, 238, 0.46);
    font-size: 34px;
}

.side-card {
    padding: 18px;
    position: sticky;
    top: 92px;
}

.side-card h2 {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

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

.breadcrumb a {
    color: #67e8f9;
}

.site-footer {
    margin-top: 30px;
    padding: 46px 0;
    color: #94a3b8;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
}

.footer-brand {
    margin-bottom: 12px;
    font-size: 20px;
}

.footer-grid p {
    max-width: 560px;
    line-height: 1.8;
}

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

.footer-links a {
    padding: 9px 12px;
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
}

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

    .detail-main,
    .detail-content,
    .filter-panel {
        grid-template-columns: 1fr;
    }

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

    .side-card {
        position: static;
    }
}

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .main-nav {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: rgba(2, 6, 23, 0.96);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .hero {
        height: auto;
        min-height: 650px;
    }

    .hero-copy {
        padding-top: 90px;
        padding-bottom: 80px;
    }

    .hero h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 38px;
    }

    .hero-search {
        display: grid;
    }

    .hero-nav {
        display: none;
    }

    .section {
        padding: 38px 0;
    }

    .section-soft {
        padding: 22px;
    }

    .section-head,
    .footer-grid {
        display: block;
    }

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

    .movie-card-large {
        display: block;
    }

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

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

    .category-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .detail-content {
        padding-top: 110px;
    }

    .footer-links {
        justify-content: flex-start;
        margin-top: 18px;
    }
}

@media (max-width: 480px) {
    .grid-5,
    .grid-4,
    .grid-categories {
        grid-template-columns: 1fr;
    }
}
