:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.12);
}

* {
    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(--slate-900);
    background: var(--slate-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-800), var(--slate-700), var(--slate-800));
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.24);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
    box-shadow: 0 10px 24px rgba(6, 182, 212, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon,
.footer-brand:hover .brand-icon {
    transform: scale(1.08) rotate(-2deg);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 24px;
    letter-spacing: -0.02em;
}

.brand-copy small {
    color: #cbd5e1;
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 700;
    font-size: 15px;
}

.nav-link {
    color: #e2e8f0;
    transition: color 0.2s ease;
}

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

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.mobile-nav a {
    display: block;
    padding: 10px 0;
    color: #e2e8f0;
    font-weight: 700;
}

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

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: var(--white);
    background: var(--slate-950);
}

.hero-slide {
    display: none;
    min-height: 620px;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.18)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-slide.is-active {
    display: block;
    animation: heroFade 0.45s ease both;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: scale(1.01);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.20), transparent 36%), linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 44%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 52px;
    min-height: 620px;
    padding: 70px 0 118px;
}

.hero-copy h1,
.page-hero h1,
.rank-hero h1,
.detail-copy h1 {
    margin: 8px 0 14px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-copy h2 {
    margin: 0 0 16px;
    color: var(--cyan-400);
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1.15;
}

.hero-copy p,
.page-hero p,
.rank-hero p,
.detail-one-line {
    max-width: 780px;
    margin: 0 0 22px;
    color: #dbeafe;
    font-size: 18px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--cyan-500);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #0e7490;
    background: #cffafe;
    font-size: 12px;
    font-weight: 800;
}

.tag-row.large span {
    min-height: 32px;
    padding: 6px 13px;
}

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

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

.primary-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

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

.ghost-button {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.ghost-button.dark {
    color: var(--slate-900);
    border-color: rgba(15, 23, 42, 0.12);
    background: var(--white);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.46);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 22px;
    pointer-events: none;
    z-index: 2;
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-poster:hover img {
    transform: scale(1.05);
}

.hero-controls {
    position: absolute;
    right: 0;
    bottom: 28px;
    left: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: 46px 1fr 46px;
    align-items: center;
    gap: 16px;
}

.hero-controls > button {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    font-size: 28px;
    backdrop-filter: blur(10px);
}

.hero-dots {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.hero-dot {
    min-height: 46px;
    padding: 0 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.62);
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(12px);
}

.hero-dot.is-active {
    color: var(--slate-950);
    background: var(--white);
}

.section-block,
.search-section {
    padding: 64px 0 0;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading.centered {
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

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

.section-heading h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading p:not(.eyebrow) {
    margin: 10px 0 0;
    color: var(--slate-600);
}

.text-link {
    color: var(--blue-600);
    font-weight: 900;
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr repeat(3, minmax(120px, 1fr)) auto;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: var(--slate-600);
    font-size: 12px;
    font-weight: 900;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: var(--slate-900);
    background: var(--slate-50);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--cyan-500);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.reset-button {
    align-self: end;
    color: var(--slate-800);
    background: var(--slate-100);
}

.empty-result {
    display: none;
    padding: 18px;
    margin: 22px 0 0;
    border-radius: 18px;
    color: var(--slate-600);
    background: var(--white);
    text-align: center;
}

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

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 22px;
}

.featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.movie-card.is-hidden {
    display: none;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--slate-800);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

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

.type-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.72);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.rank-badge {
    right: auto;
    left: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.card-body {
    padding: 15px;
}

.card-body h3 {
    margin: 0 0 7px;
    font-size: 17px;
    line-height: 1.25;
}

.card-body h3 a:hover {
    color: var(--blue-600);
}

.card-meta {
    margin: 0 0 8px;
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 800;
}

.card-desc {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--slate-600);
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category-tile,
.category-panel,
.content-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.category-tile {
    padding: 22px;
}

.category-main-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.category-main-link span {
    font-size: 24px;
    font-weight: 900;
}

.category-main-link strong {
    color: var(--cyan-500);
    font-size: 13px;
}

.category-tile p {
    color: var(--slate-600);
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-samples a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #0e7490;
    background: #ecfeff;
    font-size: 12px;
    font-weight: 800;
}

.rank-band {
    margin-top: 74px;
    padding: 64px 0;
    color: var(--white);
    background: radial-gradient(circle at 15% 0%, rgba(34, 211, 238, 0.28), transparent 30%), linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: start;
}

.rank-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.06;
}

.rank-copy p:not(.eyebrow) {
    color: #cbd5e1;
}

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

.rank-list.expanded {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.mini-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--slate-900);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-soft);
}

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

.mini-card span {
    min-width: 0;
}

.mini-card strong,
.mini-card em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-card strong {
    font-size: 15px;
}

.mini-card em {
    color: var(--slate-500);
    font-size: 12px;
    font-style: normal;
}

.mini-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    margin-bottom: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    font-size: 12px;
    font-weight: 900;
}

.page-main {
    min-height: 70vh;
}

.page-hero,
.rank-hero,
.detail-hero {
    color: var(--white);
    background: radial-gradient(circle at 10% 10%, rgba(34, 211, 238, 0.22), transparent 28%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero-inner {
    padding: 76px 0;
}

.stacked-panels {
    display: grid;
    gap: 28px;
    padding: 56px 0 0;
}

.category-panel {
    padding: 26px;
}

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

.category-panel h2 {
    margin: 0 0 6px;
    font-size: 30px;
}

.category-panel p {
    margin: 0;
    color: var(--slate-600);
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.rank-hero {
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.74)), var(--rank-image);
    background-size: cover;
    background-position: center;
}

.rank-hero-inner {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 40px;
    align-items: center;
    padding: 76px 0;
}

.rank-hero-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.38);
    backdrop-filter: blur(8px);
}

.rank-hero-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.rank-hero-card strong,
.rank-hero-card span {
    display: block;
    padding: 0 16px;
}

.rank-hero-card strong {
    padding-top: 14px;
    font-size: 18px;
}

.rank-hero-card span {
    padding-bottom: 16px;
    color: #cbd5e1;
    font-size: 13px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    padding-top: 24px;
    color: #cbd5e1;
    font-size: 14px;
}

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

.detail-head {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
    padding: 40px 0 70px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.46);
}

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

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 800;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    border: 0;
    color: var(--white);
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.12));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 50%;
    color: var(--slate-950);
    background: var(--white);
    font-size: 34px;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.36);
}

.player-overlay strong {
    font-size: clamp(20px, 3vw, 34px);
}

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

.content-card {
    padding: 26px;
}

.content-card:nth-child(3) {
    grid-column: 1 / -1;
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.content-card p {
    margin: 0;
    color: var(--slate-600);
    font-size: 16px;
}

.site-footer {
    margin-top: 76px;
    color: #cbd5e1;
    background: var(--slate-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 36px;
    padding: 52px 0;
}

.footer-brand {
    color: var(--white);
    font-size: 20px;
    font-weight: 900;
}

.site-footer p {
    max-width: 520px;
    color: #94a3b8;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

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

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

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    text-align: center;
}

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

    .mobile-toggle {
        display: block;
    }

    .hero-content,
    .rank-layout,
    .detail-head,
    .rank-hero-inner,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .rank-hero-card {
        max-width: 300px;
    }

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

    .filter-panel .search-field {
        grid-column: 1 / -1;
    }

    .reset-button {
        align-self: auto;
    }
}

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

    .brand-copy strong {
        font-size: 19px;
    }

    .brand-icon {
        width: 40px;
        height: 40px;
    }

    .hero,
    .hero-slide,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        padding: 48px 0 110px;
    }

    .hero-poster {
        display: none;
    }

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

    .hero-dot {
        display: none;
    }

    .hero-dot.is-active {
        display: block;
    }

    .section-heading.split,
    .category-panel-head {
        align-items: start;
        flex-direction: column;
    }

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

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

    .card-body {
        padding: 12px;
    }

    .card-desc {
        display: none;
    }

    .detail-head {
        gap: 24px;
    }

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

    .content-card:nth-child(3) {
        grid-column: auto;
    }

    .player-wrap {
        border-radius: 16px;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .featured-grid,
    .category-grid,
    .mini-grid,
    .rank-list.expanded {
        grid-template-columns: 1fr;
    }

    .hero-controls {
        grid-template-columns: 42px 1fr 42px;
        gap: 8px;
    }

    .hero-actions,
    .page-actions {
        flex-direction: column;
    }

    .primary-button,
    .ghost-button,
    .reset-button {
        width: 100%;
    }
}
