:root {
    --slate-950: #020617;
    --slate-925: #07111f;
    --slate-900: #0f172a;
    --slate-850: #111c31;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --white: #ffffff;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --cyan-300: #67e8f9;
    --cyan-soft: rgba(34, 211, 238, 0.18);
    --panel: rgba(15, 23, 42, 0.82);
    --line: rgba(148, 163, 184, 0.16);
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-300);
    background:
        radial-gradient(circle at top left, rgba(8, 145, 178, 0.18), transparent 32rem),
        linear-gradient(180deg, var(--slate-950), #050b16 42rem, var(--slate-950));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    right: 0;
    left: 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.08));
}

.site-header.is-scrolled,
.inner-body .site-header {
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.42);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.header-inner {
    max-width: 1180px;
    height: 76px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.brand-icon,
.section-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-400);
    background: rgba(8, 145, 178, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 999px;
    box-shadow: 0 0 36px rgba(34, 211, 238, 0.18);
}

.brand-icon svg,
.section-icon svg,
.hero-kicker svg,
.play-mark svg,
.player-start svg,
.filter-search svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.play-mark svg,
.player-start svg {
    fill: currentColor;
    stroke: none;
}

.brand-text strong {
    display: block;
    color: var(--white);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.brand-text em {
    display: block;
    color: var(--slate-400);
    font-size: 12px;
    font-style: normal;
    margin-top: 2px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link,
.mobile-nav-link {
    color: var(--slate-300);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 12px;
    transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.mobile-nav-link:hover,
.nav-link.active,
.mobile-nav-link.active {
    color: var(--cyan-300);
    background: rgba(8, 145, 178, 0.16);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
    color: var(--white);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--slate-300);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 16px;
}

.mobile-nav.is-open {
    display: grid;
    gap: 6px;
}

.hero-carousel {
    position: relative;
    min-height: 70vh;
    height: 720px;
    overflow: hidden;
    background: var(--slate-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease, transform 1s ease;
    transform: scale(1.02);
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) brightness(0.8);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.72)),
        linear-gradient(0deg, var(--slate-950), rgba(2, 6, 23, 0.3) 42%, transparent 74%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 74px;
    width: min(1180px, calc(100% - 48px));
    transform: translateX(-50%);
    max-width: 1180px;
}

.hero-content h1 {
    max-width: 820px;
    margin: 0 0 16px;
    color: var(--white);
    font-size: clamp(42px, 8vw, 76px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.045em;
    text-shadow: 0 10px 40px rgba(2, 6, 23, 0.68);
}

.hero-content p {
    max-width: 760px;
    margin: 0 0 20px;
    color: var(--slate-300);
    font-size: clamp(16px, 2vw, 20px);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--cyan-300);
    font-weight: 800;
}

.hero-kicker span {
    display: inline-flex;
}

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

.hero-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    color: var(--slate-300);
    background: rgba(15, 23, 42, 0.64);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

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

.btn-primary,
.btn-ghost,
.home-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary,
.home-search button {
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), #0284c7);
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.28);
    border: 0;
}

.btn-primary:hover,
.home-search button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(6, 182, 212, 0.34);
}

.btn-ghost {
    color: var(--white);
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(30, 41, 59, 0.72);
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(12px);
    font-size: 36px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
    background: rgba(15, 23, 42, 0.86);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--slate-500);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.home-search-wrap,
.page-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.home-search-wrap {
    position: relative;
    z-index: 8;
    margin-top: -38px;
}

.home-search {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(34, 211, 238, 0.22);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.home-search span,
.filter-search span {
    color: var(--cyan-400);
    display: inline-flex;
}

.home-search input,
.filter-search input,
.filter-selects select {
    width: 100%;
    min-height: 46px;
    color: var(--white);
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    outline: none;
    padding: 0 14px;
}

.home-search input:focus,
.filter-search input:focus,
.filter-selects select:focus {
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 120px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.82));
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.category-tile:hover,
.category-card:hover,
.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.34);
    box-shadow: 0 18px 45px rgba(6, 182, 212, 0.15);
}

.category-tile span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    color: var(--cyan-400);
    margin-bottom: 14px;
}

.category-tile svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.category-tile strong,
.category-tile em {
    display: block;
}

.category-tile strong {
    color: var(--white);
    font-size: 17px;
}

.category-tile em {
    color: var(--slate-400);
    font-size: 13px;
    font-style: normal;
    margin-top: 4px;
}

.home-stack {
    padding: 76px 0 88px;
}

.content-section {
    margin-top: 72px;
}

.content-section:first-child {
    margin-top: 0;
}

.panel-section,
.rank-panel,
.category-card,
.side-card,
.detail-copy,
.filter-panel,
.ranking-list-block {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: var(--radius-xl);
    box-shadow: 0 14px 50px rgba(2, 6, 23, 0.25);
}

.panel-section {
    padding: 28px;
}

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

.section-heading > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-heading h2 {
    margin: 0;
    color: var(--white);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
}

.section-heading.compact h2 {
    font-size: 24px;
}

.section-more,
.text-link {
    color: var(--cyan-400);
    font-weight: 800;
    transition: color 0.2s ease;
}

.section-more:hover,
.text-link:hover {
    color: var(--cyan-300);
}

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

.catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 28px;
}

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--slate-900);
}

.movie-card-large .movie-thumb {
    aspect-ratio: 16 / 10;
}

.movie-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.55s ease, filter 0.55s ease;
}

.movie-card:hover .movie-thumb img {
    transform: scale(1.08);
    filter: saturate(1.12);
}

.movie-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.2) 52%, transparent);
    opacity: 0.86;
    transition: opacity 0.25s ease;
}

.movie-card:hover .movie-shade {
    opacity: 0.96;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(6, 182, 212, 0.86);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    min-width: 38px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), #0f766e);
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.25);
}

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

.movie-meta {
    margin: 0 0 8px;
    color: var(--cyan-300);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 0;
    color: var(--white);
    font-size: 18px;
    line-height: 1.32;
}

.movie-card-small h3 {
    font-size: 16px;
}

.movie-card h3 a:hover {
    color: var(--cyan-300);
}

.movie-line {
    margin: 8px 0 0;
    color: var(--slate-400);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag-list span {
    color: var(--cyan-300);
    background: var(--cyan-soft);
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
}

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

.rank-panel {
    padding: 24px;
    align-self: start;
    position: sticky;
    top: 96px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-areas: "num title" "num meta";
    gap: 0 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.34);
    border: 1px solid rgba(148, 163, 184, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: rgba(8, 145, 178, 0.12);
    transform: translateX(4px);
}

.rank-row span {
    grid-area: num;
    color: var(--cyan-400);
    font-weight: 900;
    font-size: 20px;
}

.rank-row strong {
    grid-area: title;
    color: var(--white);
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-row em {
    grid-area: meta;
    color: var(--slate-500);
    font-size: 13px;
    font-style: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.52), var(--slate-950));
}

.footer-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 44px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

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

.footer-brand p,
.footer-copy {
    margin: 4px 0 0;
    color: var(--slate-400);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 22px;
}

.footer-links a {
    color: var(--slate-300);
}

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

.page-top {
    padding-top: 116px;
    padding-bottom: 88px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--slate-400);
    margin-bottom: 22px;
    font-size: 14px;
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 42px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 16% 24%, rgba(34, 211, 238, 0.22), transparent 16rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.72));
    border: 1px solid rgba(34, 211, 238, 0.18);
    box-shadow: var(--shadow);
}

.compact-hero h1 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: clamp(34px, 6vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.compact-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--slate-300);
    font-size: 17px;
}

.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.category-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    overflow: hidden;
    padding: 18px;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.category-card-cover {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 6px;
    min-height: 160px;
}

.category-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    background: var(--slate-900);
}

.category-card-body p:first-child {
    color: var(--cyan-300);
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
}

.category-card-body h2 {
    margin: 0 0 8px;
    color: var(--white);
    font-size: 24px;
}

.category-card-body p {
    margin: 0 0 16px;
    color: var(--slate-400);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    margin-top: 28px;
    padding: 14px;
}

.filter-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-selects {
    display: flex;
    gap: 10px;
}

.filter-selects select {
    min-width: 146px;
}

.empty-state {
    display: none;
    margin: 28px 0 0;
    padding: 28px;
    color: var(--slate-400);
    text-align: center;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--radius-lg);
}

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

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

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    background: #000000;
    box-shadow: var(--shadow);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    color: var(--white);
    background: #000000;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.74;
}

.player-cover-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18), rgba(2, 6, 23, 0.78));
}

.player-start {
    position: relative;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 0 28px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.9);
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.35);
}

.detail-copy {
    margin-top: 24px;
    padding: 28px;
}

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

.detail-copy h2,
.side-card h2 {
    margin: 28px 0 12px;
    color: var(--white);
    font-size: 22px;
}

.detail-copy h2:first-of-type {
    margin-top: 24px;
}

.detail-copy p {
    margin: 0;
    color: var(--slate-300);
    font-size: 17px;
}

.detail-side {
    position: sticky;
    top: 96px;
    align-self: start;
}

.detail-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius-xl);
    background: var(--slate-900);
    box-shadow: var(--shadow);
}

.side-card {
    margin-top: 18px;
    padding: 22px;
}

.side-card h2 {
    margin-top: 0;
}

.side-card dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.side-card dt {
    color: var(--slate-500);
    font-size: 13px;
}

.side-card dd {
    margin: -10px 0 0;
    color: var(--white);
    font-weight: 700;
}

.related-section {
    margin-top: 46px;
}

.ranking-lead {
    margin-top: 28px;
    grid-template-columns: 2fr 1fr 1fr;
}

.ranking-list-block {
    display: grid;
    gap: 10px;
    margin-top: 28px;
    padding: 18px;
}

.ranking-line {
    display: grid;
    grid-template-columns: 54px 78px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.08);
    transition: background 0.22s ease, transform 0.22s ease;
}

.ranking-line:hover {
    background: rgba(8, 145, 178, 0.12);
    transform: translateX(4px);
}

.ranking-num {
    color: var(--cyan-400);
    font-size: 22px;
    font-weight: 900;
}

.ranking-line img {
    width: 78px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
    background: var(--slate-900);
}

.ranking-line strong {
    color: var(--white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-line em {
    color: var(--slate-400);
    font-style: normal;
    font-size: 14px;
    white-space: nowrap;
}

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

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

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

    .split-section,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .rank-panel,
    .detail-side {
        position: static;
    }

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

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

@media (max-width: 760px) {
    .header-inner {
        height: 66px;
        padding: 0 18px;
    }

    .brand-text em {
        display: none;
    }

    .hero-carousel {
        height: 620px;
        min-height: 620px;
    }

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

    .hero-content h1 {
        font-size: clamp(36px, 13vw, 54px);
    }

    .hero-arrow {
        display: none;
    }

    .home-search-wrap,
    .page-container,
    .footer-inner {
        width: min(100% - 32px, 1180px);
    }

    .home-search {
        display: grid;
        grid-template-columns: auto 1fr;
    }

    .home-search button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .category-strip,
    .movie-grid,
    .catalog-grid,
    .hot-grid,
    .ranking-lead {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panel-section {
        padding: 18px;
    }

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

    .page-top {
        padding-top: 94px;
    }

    .page-hero {
        padding: 26px;
    }

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

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

    .filter-selects {
        flex-direction: column;
    }

    .ranking-line {
        grid-template-columns: 42px 64px minmax(0, 1fr);
    }

    .ranking-line em {
        grid-column: 3;
    }

    .detail-copy,
    .side-card {
        padding: 20px;
    }
}

@media (max-width: 520px) {
    .category-strip,
    .movie-grid,
    .catalog-grid,
    .hot-grid,
    .ranking-lead {
        grid-template-columns: 1fr;
    }

    .hero-meta span,
    .detail-meta span {
        font-size: 12px;
    }

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