:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.18);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --cyan: #22d3ee;
    --blue: #60a5fa;
    --amber: #f59e0b;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 30rem),
        radial-gradient(circle at 80% 10%, rgba(96, 165, 250, 0.14), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
}

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

.nav-shell {
    width: min(1240px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #07111f;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 32px rgba(34, 211, 238, 0.26);
    font-weight: 900;
}

.brand-text {
    display: grid;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 22px;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #67e8f9, #93c5fd);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.brand-text em {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #cbd5e1;
    font-size: 15px;
}

.desktop-nav a {
    position: relative;
    transition: color 0.24s ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    transition: transform 0.24s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #67e8f9;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.75);
    color: var(--text);
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 18px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-strong);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    color: #cbd5e1;
    border-radius: 12px;
}

.mobile-nav a:hover {
    background: rgba(34, 211, 238, 0.1);
    color: #67e8f9;
}

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

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

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.52), rgba(2, 6, 23, 0.78)),
        linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(96, 165, 250, 0.1));
}

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

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    min-height: 78vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: end;
    gap: 48px;
    padding: 116px 0 72px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 999px;
    color: #67e8f9;
    background: rgba(8, 145, 178, 0.12);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.hero h1 {
    margin: 20px 0 16px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero h1 span,
.section-head h2 span {
    background: linear-gradient(135deg, #67e8f9, #93c5fd 52%, #f8fafc);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-text {
    max-width: 660px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.66);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.48);
    background: rgba(15, 23, 42, 0.9);
}

.btn-primary {
    color: #031322;
    border-color: transparent;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 14px 32px rgba(34, 211, 238, 0.22);
    font-weight: 800;
}

.hero-panel {
    align-self: center;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-panel img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(96, 165, 250, 0.12));
}

.hero-panel-body {
    padding: 22px;
}

.hero-panel-body strong {
    display: block;
    font-size: 22px;
    margin-bottom: 10px;
}

.hero-panel-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.hero-dots button {
    width: 34px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.28);
}

.hero-dots button.active {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.page-main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 72px;
}

.section-block {
    margin: 0 0 64px;
}

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

.section-head h1,
.section-head h2 {
    margin: 12px 0 10px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-head p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-link {
    min-width: max-content;
    color: #67e8f9;
}

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

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

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

.poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.25), transparent 11rem),
        linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.98));
}

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

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

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.68);
    backdrop-filter: blur(12px);
    color: #f8fafc;
    font-size: 12px;
}

.movie-info {
    padding: 18px;
}

.movie-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 18px;
    font-weight: 800;
    color: #f8fafc;
}

.movie-info p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
    margin: 10px 0 14px;
    color: var(--muted);
    line-height: 1.65;
}

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #cbd5e1;
    font-size: 13px;
}

.movie-meta span,
.detail-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-row span {
    padding: 5px 8px;
    border-radius: 999px;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.1);
    font-size: 12px;
}

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

.category-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 80% 0%, rgba(34, 211, 238, 0.18), transparent 11rem),
        rgba(15, 23, 42, 0.72);
    transition: transform 0.24s ease, border-color 0.24s ease;
}

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

.category-card strong {
    display: block;
    margin-bottom: 10px;
    color: #f8fafc;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.category-card span {
    margin-top: 18px;
    color: #67e8f9;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 26px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
}

.search-bar input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.search-bar input::placeholder {
    color: var(--muted-2);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) minmax(160px, 320px);
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.66);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(34, 211, 238, 0.32);
}

.rank-no {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #031322;
    background: linear-gradient(135deg, #67e8f9, #60a5fa);
    font-weight: 900;
}

.rank-no.small {
    color: #67e8f9;
    background: rgba(34, 211, 238, 0.1);
}

.rank-main strong,
.rank-main em {
    display: block;
}

.rank-main strong {
    color: #f8fafc;
    font-size: 17px;
}

.rank-main em {
    margin-top: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--muted);
    font-style: normal;
}

.rank-side {
    color: var(--muted-2);
    font-size: 13px;
    text-align: right;
}

.detail-hero {
    position: relative;
    padding: 92px 0 54px;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.66)),
        radial-gradient(circle at 75% 20%, rgba(34, 211, 238, 0.18), transparent 28rem);
}

.detail-wrap {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 42px;
    align-items: center;
}

.detail-copy h1 {
    margin: 16px 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.detail-copy p {
    max-width: 760px;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.9;
}

.detail-poster {
    border: 1px solid var(--line);
    border-radius: 30px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

.detail-poster .poster {
    aspect-ratio: 3 / 4;
}

.player-panel {
    margin: 0 0 46px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #031322;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.56));
}

.play-overlay.hidden {
    display: none;
}

.play-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: linear-gradient(135deg, #67e8f9, #60a5fa);
    box-shadow: 0 18px 60px rgba(34, 211, 238, 0.28);
    font-size: 30px;
    font-weight: 900;
}

.player-caption {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    align-items: start;
}

.article-panel,
.side-panel {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.66);
}

.article-panel {
    padding: 30px;
}

.article-panel h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.article-panel p {
    margin: 0 0 24px;
    color: #cbd5e1;
    line-height: 1.95;
}

.side-panel {
    padding: 20px;
}

.side-panel h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

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

.side-list a {
    padding: 12px;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.08);
}

.side-list a:hover {
    background: rgba(34, 211, 238, 0.1);
}

.side-list strong {
    display: block;
    color: #f8fafc;
}

.side-list span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

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

.breadcrumb a {
    color: #67e8f9;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.96));
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0;
    color: var(--muted);
}

.footer-inner strong {
    display: block;
    margin-bottom: 8px;
    color: #f8fafc;
    font-size: 22px;
}

.footer-inner p {
    margin: 0;
    line-height: 1.8;
}

.footer-links {
    margin: 20px 0;
    color: #cbd5e1;
}

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

.copyright {
    color: var(--muted-2);
}

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

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

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

    .hero-panel,
    .detail-poster {
        max-width: 420px;
    }
}

@media (max-width: 820px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
        min-height: auto;
        padding: 84px 0 86px;
    }

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

    .section-head {
        display: block;
    }

    .section-link {
        display: inline-block;
        margin-top: 16px;
    }

    .rank-item {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .rank-side {
        grid-column: 2;
        text-align: left;
    }

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

@media (max-width: 560px) {
    .nav-shell {
        height: 68px;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text em {
        display: none;
    }

    .hero h1,
    .detail-copy h1 {
        letter-spacing: -0.035em;
    }

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

    .article-panel {
        padding: 22px;
    }

    .player-caption {
        display: block;
    }
}
