:root {
    color-scheme: dark;
    --page: #020617;
    --panel: #0f172a;
    --panel-soft: #172033;
    --panel-glass: rgba(15, 23, 42, 0.78);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --orange: #f97316;
    --rose: #e11d48;
    --green: #10b981;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.23), transparent 34%), radial-gradient(circle at 90% 10%, rgba(6, 182, 212, 0.18), transparent 30%), linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
}

.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 var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.header-inner {
    width: min(1200px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-icon,
.footer-brand span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
    color: #fff;
    transition: transform 0.25s ease;
}

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

.brand-copy strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.brand-copy small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.main-nav a,
.category-menu button {
    color: var(--muted-strong);
    background: transparent;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.category-menu:hover button {
    color: #fff;
}

.category-menu {
    position: relative;
}

.category-menu button {
    padding: 10px 0;
    cursor: pointer;
}

.category-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 260px;
    transform: translateX(-50%) translateY(14px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
}

.category-menu:hover .category-panel,
.category-menu:focus-within .category-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(6px);
}

.category-panel a {
    padding: 10px 12px;
    color: var(--muted-strong);
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.08);
}

.category-panel a:hover {
    background: rgba(37, 99, 235, 0.28);
    color: #fff;
}

.site-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-search input {
    width: 250px;
    min-width: 0;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.84);
    color: var(--text);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.site-search input:focus,
.catalog-tools input:focus,
.catalog-tools select:focus {
    border-color: rgba(6, 182, 212, 0.8);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.site-search button,
.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-search button,
.primary-button {
    padding: 12px 20px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    color: #fff;
    font-weight: 700;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.24);
}

.ghost-button {
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.site-search button:hover,
.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-1px) scale(1.02);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.1);
    padding: 10px;
    margin-left: auto;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid var(--line);
}

.mobile-panel a {
    display: block;
    padding: 13px 4px;
    color: var(--muted-strong);
}

.hero-carousel {
    position: relative;
    height: clamp(540px, 75vh, 760px);
    overflow: hidden;
    background: #020617;
}

.hero-carousel > h1 {
    position: absolute;
    z-index: 3;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.8s ease, transform 1.2s ease;
    pointer-events: none;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade,
.detail-hero-shade,
.category-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.56), rgba(2, 6, 23, 0.16)), linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.12) 42%, rgba(2, 6, 23, 0.2) 100%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1200px) / 2 + 16px));
    top: 50%;
    width: min(680px, calc(100% - 48px));
    transform: translateY(-45%);
    z-index: 2;
}

.hero-pill,
.page-hero span,
.category-hero-copy span,
.detail-copy .breadcrumb,
.section-title span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.95), rgba(6, 182, 212, 0.95));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 7px 14px;
}

.hero-content h2 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    margin: 0;
    max-width: 680px;
    color: var(--muted-strong);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-meta,
.detail-meta,
.card-meta,
.compact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted-strong);
}

.hero-meta {
    margin: 22px 0 26px;
}

.hero-meta span,
.detail-meta span,
.card-meta span,
.compact-meta span {
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 7px 11px;
    font-size: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    font-size: 44px;
    line-height: 42px;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.66);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dot {
    width: 22px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 42px;
    background: #fff;
}

.home-search-panel {
    width: min(1100px, calc(100% - 32px));
    margin: -34px auto 30px;
    position: relative;
    z-index: 5;
    padding: 20px;
    border-radius: 24px;
    background: var(--panel-glass);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-search {
    width: 100%;
}

.hero-search input {
    flex: 1;
    width: auto;
    padding: 15px 18px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.quick-links a {
    color: var(--muted-strong);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
}

.quick-links a:hover {
    color: #fff;
    background: rgba(37, 99, 235, 0.34);
}

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

.inner-page {
    padding-top: 34px;
}

.content-section {
    margin: 0 0 70px;
}

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

.section-title h2 {
    margin: 10px 0 0;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.03em;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.98));
    border: 1px solid var(--line);
    box-shadow: 0 12px 36px rgba(2, 6, 23, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 26px 60px rgba(2, 6, 23, 0.45);
    border-color: rgba(6, 182, 212, 0.4);
}

.movie-card figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #0f172a;
}

.movie-card-large figure {
    aspect-ratio: 16 / 11;
}

.movie-card figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.76) 100%);
    opacity: 0.8;
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-badge,
.card-duration {
    position: absolute;
    z-index: 2;
    border-radius: 10px;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 800;
}

.card-badge {
    top: 12px;
    right: 12px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.card-duration {
    right: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
}

.card-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%) scale(0.8);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 28px;
    opacity: 0;
    backdrop-filter: blur(8px);
    transition: 0.25s ease;
}

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

.card-copy {
    padding: 18px;
}

.card-copy h3,
.compact-copy h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-copy p,
.compact-copy p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag-row {
    margin-bottom: 14px;
}

.tag-row span,
.detail-tags a {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.1);
    color: var(--muted-strong);
    padding: 6px 9px;
    font-size: 12px;
}

.tag-row span:hover,
.detail-tags a:hover {
    background: rgba(37, 99, 235, 0.35);
    color: #fff;
}

.card-meta {
    justify-content: space-between;
    gap: 8px;
}

.card-meta span {
    padding: 0;
    background: transparent;
    border: 0;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.ranking-panel,
.movie-text-card,
.catalog-tools,
.search-panel,
.page-hero,
.category-overview-card,
.player-card {
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.98));
    border: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.24);
}

.ranking-panel {
    position: sticky;
    top: 104px;
    padding: 20px;
}

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

.panel-head h2 {
    margin: 0;
    font-size: 24px;
}

.panel-head a {
    color: #67e8f9;
    font-size: 14px;
}

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

.rank-row,
.full-rank-row {
    display: grid;
    align-items: center;
    gap: 12px;
    color: var(--muted-strong);
}

.rank-row {
    grid-template-columns: 34px 58px minmax(0, 1fr);
    padding: 10px;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.07);
}

.rank-row:hover,
.full-rank-row:hover {
    background: rgba(37, 99, 235, 0.18);
    color: #fff;
}

.rank-row strong,
.full-rank-row strong {
    color: #67e8f9;
    font-size: 15px;
}

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

.rank-row b,
.rank-row small {
    display: block;
}

.rank-row b {
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-row small {
    margin-top: 4px;
    color: var(--muted);
}

.category-browser {
    padding: 30px;
    border-radius: 28px;
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.72), rgba(51, 65, 85, 0.54));
    border: 1px solid var(--line);
}

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

.category-tile {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #0f172a;
    transition: transform 0.25s ease, border 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(6, 182, 212, 0.45);
}

.category-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    filter: saturate(1.05);
    transition: transform 0.45s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.32));
}

.category-tile span,
.category-tile small {
    position: relative;
    z-index: 1;
    display: block;
    padding: 0 16px;
}

.category-tile span {
    padding-top: 98px;
    font-size: 20px;
    font-weight: 900;
}

.category-tile small {
    margin-top: 8px;
    color: var(--muted-strong);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-hero,
.compact-hero {
    padding: clamp(34px, 6vw, 76px);
    margin-bottom: 34px;
    position: relative;
    overflow: hidden;
}

.page-hero::before,
.compact-hero::before {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25), transparent 68%);
}

.page-hero h1,
.compact-hero h1 {
    position: relative;
    margin: 16px 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -0.04em;
}

.page-hero p,
.compact-hero p {
    position: relative;
    max-width: 780px;
    color: var(--muted-strong);
    font-size: 18px;
    line-height: 1.8;
    margin: 0;
}

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

.category-overview-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 220px;
    transition: transform 0.25s ease, border 0.25s ease;
}

.category-overview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.42);
}

.poster-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    background: #0f172a;
}

.poster-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overview-copy {
    padding: 28px;
}

.category-overview-copy h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.category-overview-copy p {
    margin: 0;
    color: var(--muted-strong);
    line-height: 1.8;
}

.category-hero,
.detail-hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    margin-bottom: 34px;
}

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

.category-hero-copy,
.detail-copy {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 120px 0 70px;
}

.category-hero-copy h1,
.detail-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    letter-spacing: -0.04em;
    line-height: 1.04;
}

.category-hero-copy p,
.detail-copy p {
    width: min(760px, 100%);
    margin: 0;
    color: var(--muted-strong);
    font-size: 19px;
    line-height: 1.8;
}

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

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb em {
    color: #64748b;
    font-style: normal;
}

.catalog-tools {
    display: flex;
    gap: 12px;
    padding: 18px;
    margin-bottom: 26px;
}

.catalog-tools input,
.catalog-tools select,
.search-page-form input {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text);
    outline: none;
}

.catalog-tools input {
    flex: 1;
}

.catalog-tools select {
    width: 180px;
}

.catalog-grid {
    margin-bottom: 70px;
}

.full-ranking-list {
    display: grid;
    gap: 10px;
    margin-bottom: 70px;
}

.full-rank-row {
    grid-template-columns: 60px 70px minmax(0, 1fr) 90px 120px 110px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid var(--line);
}

.full-rank-row img {
    width: 70px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
}

.full-rank-main b,
.full-rank-main small {
    display: block;
}

.full-rank-main b {
    margin-bottom: 6px;
    color: #fff;
    font-size: 17px;
}

.full-rank-main small {
    color: var(--muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.full-rank-row em {
    color: #67e8f9;
    font-style: normal;
    font-weight: 700;
}

.detail-hero {
    min-height: 500px;
}

.detail-copy {
    padding-top: 150px;
}

.detail-copy .breadcrumb {
    display: flex;
    background: rgba(15, 23, 42, 0.72);
    letter-spacing: 0;
    font-weight: 600;
}

.detail-meta {
    margin-top: 22px;
}

.detail-layout {
    margin-top: -90px;
    position: relative;
    z-index: 3;
}

.player-card {
    padding: 14px;
    margin-bottom: 30px;
    background: rgba(2, 6, 23, 0.94);
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px;
    background: #000;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.12));
    cursor: pointer;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    color: #fff;
    font-size: 42px;
    padding-left: 6px;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease;
}

.play-overlay:hover span {
    transform: scale(1.08);
}

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

.detail-content {
    display: grid;
    gap: 24px;
    margin-bottom: 70px;
}

.movie-text-card {
    padding: clamp(22px, 3vw, 34px);
}

.movie-text-card h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.movie-text-card p {
    margin: 0;
    color: var(--muted-strong);
    line-height: 1.9;
    font-size: 17px;
}

.meta-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 22px;
}

.meta-card dl div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.08);
}

.meta-card dt {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.meta-card dd {
    margin: 0;
    color: #fff;
    font-weight: 700;
}

.related-section {
    margin-bottom: 0;
}

.search-page .search-panel {
    padding: 18px;
    margin-bottom: 28px;
}

.search-page-form input {
    flex: 1;
    width: auto;
}

.search-results {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 70px;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 38px;
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid var(--line);
    color: var(--muted-strong);
    text-align: center;
}

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

.footer-grid {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 34px;
    padding: 50px 0 34px;
}

.footer-brand strong {
    font-size: 22px;
}

.site-footer p {
    color: var(--muted);
    line-height: 1.8;
    max-width: 430px;
}

.site-footer h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

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

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

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

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 30px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.is-filtered-out {
    display: none !important;
}

@media (max-width: 1100px) {
    .site-search input {
        width: 190px;
    }

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

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

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

    .ranking-panel {
        position: static;
    }
}

@media (max-width: 900px) {
    .main-nav,
    .category-menu,
    .header-inner > .site-search {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

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

    .mobile-panel .site-search {
        margin-top: 10px;
    }

    .mobile-panel .site-search input {
        flex: 1;
        width: auto;
    }

    .hero-arrow {
        display: none;
    }

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

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

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

    .category-overview-card {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .full-rank-row {
        grid-template-columns: 52px 62px minmax(0, 1fr);
    }

    .full-rank-row > span:not(.full-rank-main),
    .full-rank-row em {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header-inner {
        height: 66px;
        width: min(100% - 22px, 1200px);
    }

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

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

    .brand-copy small {
        display: none;
    }

    .hero-carousel {
        height: 620px;
    }

    .hero-content {
        top: 54%;
    }

    .hero-content h2 {
        font-size: 38px;
    }

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

    .hero-actions,
    .home-search-panel .site-search,
    .catalog-tools,
    .search-page-form {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search input,
    .catalog-tools select,
    .search-page-form input,
    .site-search button {
        width: 100%;
    }

    .page-shell {
        width: min(100% - 22px, 1200px);
    }

    .movie-grid,
    .large-grid,
    .search-results {
        grid-template-columns: 1fr;
        gap: 18px;
    }

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

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

    .poster-stack {
        min-height: 220px;
    }

    .category-hero-copy,
    .detail-copy {
        padding-top: 90px;
        padding-bottom: 54px;
        width: min(100% - 22px, 1200px);
    }

    .detail-hero {
        min-height: 530px;
    }

    .detail-layout {
        margin-top: -60px;
    }

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

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

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