:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(34, 211, 238, 0.22);
    --line-blue: rgba(37, 99, 235, 0.35);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --blue: #2563eb;
    --orange: #f97316;
    --shadow: 0 24px 80px rgba(8, 47, 73, 0.38);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.24), transparent 34rem),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.24), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #082f49 46%, #020617 100%);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(30, 64, 175, 0.45);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.92), rgba(15, 23, 42, 0.96));
    backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #00111a;
    background: linear-gradient(135deg, var(--cyan), #38bdf8);
    box-shadow: 0 12px 35px rgba(34, 211, 238, 0.35);
}

.logo-text {
    display: grid;
    line-height: 1.12;
}

.logo-text strong,
.footer-logo {
    font-size: 22px;
    letter-spacing: 0.03em;
    font-weight: 900;
}

.logo-text small {
    margin-top: 4px;
    font-size: 12px;
    color: #67e8f9;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #cbd5e1;
    font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--cyan);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-nav input,
.quick-search input,
.filter-toolbar input,
.search-page-form input {
    width: 260px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 999px;
    padding: 11px 16px;
    outline: none;
    color: var(--text);
    background: rgba(15, 23, 42, 0.72);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-nav input:focus,
.quick-search input:focus,
.filter-toolbar input:focus,
.search-page-form input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
}

.header-search button,
.mobile-nav button,
.quick-search button,
.search-page-form button,
.filter-buttons button {
    border: 0;
    border-radius: 999px;
    color: #00111a;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, var(--cyan), #38bdf8);
    box-shadow: 0 14px 34px rgba(34, 211, 238, 0.2);
}

.header-search button,
.mobile-nav button,
.search-page-form button {
    padding: 11px 18px;
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(34, 211, 238, 0.32);
    border-radius: 14px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.68);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 22px;
    background: rgba(2, 6, 23, 0.9);
}

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

.mobile-nav form {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.mobile-nav input {
    width: 100%;
}

.hero-slider {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.36;
    filter: saturate(1.08);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.34) 100%),
        linear-gradient(0deg, #020617 0%, transparent 34%, rgba(2, 6, 23, 0.2) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
    align-items: center;
    gap: clamp(28px, 5vw, 80px);
    padding-top: 48px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(36px, 5.8vw, 76px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.hero-copy h2 {
    margin: 18px 0 0;
    color: #67e8f9;
    font-size: clamp(24px, 3vw, 42px);
    line-height: 1.12;
    font-weight: 900;
}

.hero-copy p,
.page-hero p,
.detail-line {
    max-width: 760px;
    margin: 22px 0 0;
    color: #cbd5e1;
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.8;
}

.hero-tags,
.card-tags,
.detail-tags,
.meta-pills,
.rank-tags,
.topic-links,
.quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-tags,
.detail-tags,
.meta-pills {
    margin-top: 24px;
}

.tag,
.meta-pills span,
.rank-tags span,
.topic-links a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 999px;
    padding: 6px 12px;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.64);
}

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

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

.primary-button {
    color: #00111a;
    background: linear-gradient(135deg, var(--cyan), #38bdf8);
    box-shadow: 0 16px 42px rgba(34, 211, 238, 0.25);
}

.ghost-button {
    border: 1px solid rgba(34, 211, 238, 0.28);
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.55);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(34, 211, 238, 0.2);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: var(--radius);
    aspect-ratio: 3 / 4;
    background: rgba(15, 23, 42, 0.7);
    box-shadow: var(--shadow);
}

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

.hero-poster span,
.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #00111a;
    background: rgba(34, 211, 238, 0.92);
    transform: translate(-50%, -50%);
    box-shadow: 0 16px 42px rgba(34, 211, 238, 0.35);
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 18px;
    transform: translateX(-50%);
}

.hero-controls button {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(34, 211, 238, 0.32);
    border-radius: 999px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.7);
    cursor: pointer;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 11px !important;
    height: 11px !important;
    border: 0 !important;
    background: rgba(148, 163, 184, 0.6) !important;
}

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

.section-shell,
.page-hero,
.detail-main,
.breadcrumb {
    width: min(1440px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.section-shell {
    padding: 72px 0 0;
}

.narrow-shell {
    width: min(980px, calc(100% - 32px));
}

.quick-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 34px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.62);
    box-shadow: var(--shadow);
}

.quick-search form,
.search-page-form {
    display: flex;
    flex: 1;
    gap: 10px;
}

.quick-search input,
.search-page-form input {
    width: 100%;
}

.quick-search button,
.search-page-form button {
    padding: 0 24px;
}

.quick-links a {
    color: #a5f3fc;
    font-weight: 800;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.section-heading a {
    color: var(--cyan);
    font-weight: 900;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.34);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: 0 18px 54px rgba(2, 6, 23, 0.26);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    border-color: rgba(34, 211, 238, 0.56);
    transform: translateY(-8px);
    box-shadow: 0 24px 68px rgba(34, 211, 238, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #020617;
}

.catalog-grid .poster-link,
.related-grid .poster-link,
.movie-card-small .poster-link {
    aspect-ratio: 3 / 4;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.48s ease, opacity 0.3s ease;
}

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

.poster-year {
    position: absolute;
    right: 14px;
    top: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(10px);
}

.poster-play {
    width: 56px;
    height: 56px;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-meta-line {
    margin-bottom: 8px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
}

.movie-card h3 {
    margin: 0;
    min-height: 2.7em;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 950;
}

.movie-card p {
    display: -webkit-box;
    min-height: 4.8em;
    margin: 10px 0 16px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

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

.movie-card-small p {
    -webkit-line-clamp: 2;
    min-height: 3.2em;
}

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

.category-tile,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 26px;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, 0.12), transparent),
        rgba(15, 23, 42, 0.66);
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    border-color: rgba(34, 211, 238, 0.55);
    transform: translateY(-6px);
}

.category-tile span,
.category-overview-card h2 {
    display: block;
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 950;
}

.category-tile small,
.category-overview-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

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

.category-samples a {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4 / 3;
    background: #020617;
}

.category-samples img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.category-samples span {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 8px;
    font-size: 12px;
    font-weight: 900;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.category-more {
    display: inline-flex;
    margin-top: 18px;
    color: var(--cyan);
    font-weight: 900;
}

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

.ranking-panel {
    position: sticky;
    top: 100px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: var(--radius);
    padding: 24px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

.small-heading {
    margin-bottom: 16px;
}

.small-heading h2 {
    font-size: 26px;
}

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

.mini-ranking a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(37, 99, 235, 0.28);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.38);
}

.mini-ranking span {
    color: var(--cyan);
    font-weight: 950;
}

.mini-ranking strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-ranking em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.page-main {
    padding-bottom: 72px;
}

.page-hero {
    margin-top: 34px;
    padding: clamp(44px, 7vw, 84px);
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.2), transparent 28rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 58, 138, 0.52));
    box-shadow: var(--shadow);
}

.slim-hero h1,
.category-hero h1,
.ranking-hero h1 {
    max-width: 980px;
}

.filter-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 420px) 1fr;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.55);
}

.filter-toolbar input {
    width: 100%;
}

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

.filter-buttons button {
    padding: 9px 15px;
    color: #dbeafe;
    background: rgba(30, 41, 59, 0.82);
    box-shadow: none;
}

.filter-buttons button.is-active {
    color: #00111a;
    background: linear-gradient(135deg, var(--cyan), #38bdf8);
}

[data-card].is-hidden {
    display: none !important;
}

.ranking-section {
    width: min(1180px, calc(100% - 32px));
}

.ranking-list {
    display: grid;
    gap: 14px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 70px 94px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(37, 99, 235, 0.28);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.66);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
    border-color: rgba(34, 211, 238, 0.5);
    transform: translateY(-3px);
}

.rank-number {
    color: var(--cyan);
    font-size: 24px;
    font-weight: 950;
    text-align: center;
}

.rank-cover {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 3 / 4;
    background: #020617;
}

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

.rank-content h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 950;
}

.rank-content p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.65;
}

.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 999px;
    padding: 0 16px;
    color: #00111a;
    font-weight: 950;
    background: var(--cyan);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: #a5f3fc;
}

.detail-main {
    padding-bottom: 72px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 42px;
    margin-top: 28px;
    padding: clamp(24px, 4vw, 46px);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 28rem),
        rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    background: #020617;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
}

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

.detail-info {
    align-self: center;
}

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

.player-section h2,
.detail-content h2 {
    margin: 0 0 18px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 950;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 30px;
    aspect-ratio: 16 / 9;
    background: #000;
    box-shadow: var(--shadow);
}

.player-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    background: #000;
    cursor: pointer;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.84));
}

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

.play-button {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #00111a;
    font-size: 28px;
    background: var(--cyan);
    box-shadow: 0 24px 58px rgba(34, 211, 238, 0.34);
}

.detail-content {
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.9;
}

.detail-content p {
    margin: 0 0 28px;
    color: #cbd5e1;
}

.topic-links {
    margin-top: 22px;
}

.search-page-form {
    margin-top: 28px;
    max-width: 760px;
}

.search-empty {
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 24px;
    padding: 36px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.6);
}

.site-footer {
    margin-top: 92px;
    border-top: 1px solid rgba(34, 211, 238, 0.18);
    background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 38px;
    padding: 42px 0;
}

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

.footer-grid p,
.footer-bottom {
    color: var(--muted);
    line-height: 1.8;
}

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

.footer-links a {
    color: #cbd5e1;
}

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

.footer-bottom {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 30px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 14px;
}

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

    .header-search {
        margin-left: auto;
    }

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

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

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

    .ranking-panel {
        position: static;
    }
}

@media (max-width: 860px) {
    .header-search {
        display: none;
    }

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

    .hero-slider {
        min-height: 88vh;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        padding-top: 0;
    }

    .hero-poster {
        display: none;
    }

    .quick-search,
    .filter-toolbar,
    .ranking-row,
    .detail-hero,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .quick-search,
    .quick-search form,
    .search-page-form {
        flex-direction: column;
        align-items: stretch;
    }

    .card-grid,
    .catalog-grid,
    .compact-grid,
    .related-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-cover {
        width: min(320px, 100%);
    }

    .rank-action {
        justify-self: start;
    }
}

@media (max-width: 560px) {
    .header-inner {
        width: min(100% - 24px, 1440px);
        height: 68px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }

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

    .logo-text small {
        display: none;
    }

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

    .hero-copy h2 {
        font-size: 24px;
    }

    .section-shell,
    .page-hero,
    .detail-main,
    .breadcrumb {
        width: min(100% - 24px, 1440px);
    }

    .page-hero,
    .detail-hero {
        border-radius: 24px;
        padding: 26px;
    }

    .card-grid,
    .catalog-grid,
    .compact-grid,
    .related-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-controls {
        bottom: 18px;
    }

    .player-frame {
        border-radius: 20px;
    }
}
