:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.95);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --brand: #0ea5e9;
    --brand-strong: #0284c7;
    --glow: rgba(14, 165, 233, 0.35);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.18), transparent 32rem),
        radial-gradient(circle at 80% 12%, rgba(147, 51, 234, 0.14), transparent 34rem),
        linear-gradient(135deg, #020617 0%, #0f172a 46%, #020617 100%);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.is-menu-open {
    overflow: hidden;
}

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

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

main {
    min-height: 70vh;
}

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

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), #7c3aed);
    box-shadow: 0 14px 36px rgba(14, 165, 233, 0.35);
    font-weight: 900;
    color: #fff;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 18px;
    letter-spacing: 0.02em;
}

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

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

.nav-link {
    color: var(--soft);
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #38bdf8;
}

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

.header-search input,
.mobile-search input,
.hero-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.75);
    color: var(--text);
    border-radius: 999px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 245px;
    padding: 12px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(56, 189, 248, 0.85);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.header-search button,
.mobile-search button,
.hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}

.search-suggest {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 360px;
    max-height: 430px;
    overflow: auto;
    display: none;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    padding: 10px;
}

.search-suggest.is-open {
    display: grid;
    gap: 8px;
}

.suggest-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.suggest-item:hover {
    background: rgba(30, 41, 59, 0.9);
}

.suggest-item img {
    width: 46px;
    height: 62px;
    border-radius: 10px;
    object-fit: cover;
    background: #0f172a;
}

.suggest-item strong {
    display: block;
    font-size: 14px;
}

.suggest-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.78);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #e2e8f0;
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.96);
    padding: 18px;
}

.mobile-nav {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.mobile-search {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.mobile-search input {
    min-width: 0;
    padding: 12px 16px;
}

.hero-shell {
    width: min(100% - 32px, 1280px);
    min-height: 660px;
    margin: 38px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 660px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: #020617;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

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

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

.hero-backdrop,
.page-hero-overlay,
.detail-hero-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.7) 48%, rgba(2, 6, 23, 0.32)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.94), transparent 55%),
        var(--hero-image) center / cover no-repeat;
    filter: saturate(1.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 34px;
    padding: clamp(28px, 5vw, 70px);
}

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

.hero-kicker,
.page-kicker,
.section-kicker {
    margin: 0 0 14px;
    color: #38bdf8;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-line {
    max-width: 640px;
    margin: 26px 0 0;
    color: #dbeafe;
    font-size: clamp(17px, 2.1vw, 22px);
    line-height: 1.8;
}

.hero-tags,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #cbd5e1;
    padding: 7px 12px;
    font-size: 13px;
}

.hero-actions,
.page-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    color: #fff;
    box-shadow: 0 16px 36px rgba(14, 165, 233, 0.32);
}

.btn.ghost {
    border: 1px solid rgba(125, 211, 252, 0.28);
    background: rgba(15, 23, 42, 0.66);
    color: #e0f2fe;
}

.btn.text {
    color: #7dd3fc;
}

.hero-poster {
    position: relative;
    display: block;
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #0f172a;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.94);
    padding: 8px 14px;
    font-weight: 800;
}

.hero-dots {
    position: absolute;
    left: clamp(28px, 5vw, 70px);
    bottom: 30px;
    z-index: 8;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 38px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.35);
}

.hero-dot.is-active {
    background: #38bdf8;
}

.hero-panel {
    display: grid;
    align-content: start;
    gap: 24px;
}

.hero-search,
.hero-mini-list,
.ranking-card,
.text-panel,
.player-wrap,
.category-card,
.ranking-feature {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--panel);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}

.hero-search {
    position: relative;
    padding: 24px;
}

.hero-search label {
    display: block;
    margin-bottom: 14px;
    color: #e0f2fe;
    font-size: 20px;
    font-weight: 900;
}

.hero-search div:first-of-type {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.hero-search input {
    min-width: 0;
    padding: 13px 16px;
}

.hero-mini-list {
    padding: 20px;
}

.hero-mini-list h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.hero-mini-card {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-mini-card:hover {
    background: rgba(30, 41, 59, 0.82);
    transform: translateX(4px);
}

.hero-mini-card img {
    width: 76px;
    height: 102px;
    border-radius: 14px;
    object-fit: cover;
    background: #0f172a;
}

.hero-mini-card strong,
.hero-mini-card em {
    display: block;
}

.hero-mini-card strong {
    margin-top: 8px;
    color: #fff;
}

.hero-mini-card em {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.5;
}

.content-section {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
    padding: 64px 0 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.section-more {
    color: #7dd3fc;
    font-weight: 800;
}

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

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

.rail-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 20px;
    overflow-x: auto;
    padding: 2px 0 18px;
    scrollbar-width: none;
}

.rail-grid::-webkit-scrollbar {
    display: none;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(56, 189, 248, 0.46);
    box-shadow: 0 24px 62px rgba(14, 165, 233, 0.14);
}

.card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.card-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.movie-card:hover .card-cover img {
    transform: scale(1.06);
    opacity: 0.9;
}

.card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 52%);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 3;
    border-radius: 999px;
    font-weight: 900;
}

.play-chip {
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    background: rgba(14, 165, 233, 0.95);
    font-size: 13px;
}

.rank-badge {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
}

.card-body h3 {
    margin: 10px 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: #7dd3fc;
}

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

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

.tag-row.large span {
    padding: 9px 14px;
}

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

.ranking-card {
    padding: 24px;
    position: sticky;
    top: 100px;
}

.ranking-head p,
.ranking-feature-copy p:first-child {
    margin: 0 0 8px;
    color: #38bdf8;
    font-size: 12px;
    letter-spacing: 0.18em;
    font-weight: 900;
}

.ranking-head h2,
.ranking-feature-copy h2 {
    margin: 0;
    font-size: 28px;
}

.ranking-list {
    margin-top: 18px;
    display: grid;
    gap: 8px;
}

.ranking-list a {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.48);
}

.ranking-list a:hover {
    background: rgba(30, 41, 59, 0.9);
}

.ranking-list strong {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.18);
    color: #7dd3fc;
}

.ranking-list span,
.ranking-list em {
    grid-column: 2;
}

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

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

.category-tile {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.18), transparent 60%),
        rgba(15, 23, 42, 0.68);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.5);
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile em {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
    line-height: 1.7;
}

.page-hero {
    position: relative;
    width: min(100% - 32px, 1280px);
    min-height: 380px;
    margin: 38px auto 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.78);
}

.page-hero > div:not(.page-hero-overlay) {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: clamp(34px, 6vw, 78px);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.page-hero p:not(.page-kicker) {
    margin: 20px 0 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.small-hero {
    min-height: 320px;
    background:
        radial-gradient(circle at 15% 10%, rgba(14, 165, 233, 0.2), transparent 34rem),
        rgba(15, 23, 42, 0.82);
}

.category-card {
    display: block;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 190px;
    background: #0f172a;
}

.category-covers img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.category-card-body {
    padding: 22px;
}

.category-card-body span {
    font-size: 22px;
    font-weight: 900;
}

.category-card-body p {
    min-height: 70px;
    color: var(--muted);
    line-height: 1.7;
}

.category-card-body em {
    color: #7dd3fc;
    font-style: normal;
    font-weight: 800;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 12px;
    margin-bottom: 24px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    padding: 14px 18px;
}

.related-channel-links h2 {
    margin: 0 0 18px;
}

.related-channel-links div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-channel-links a {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    color: #cbd5e1;
}

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

.detail-shell {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
    padding: 36px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    margin-bottom: 36px;
}

.breadcrumb a:hover {
    color: #7dd3fc;
}

.detail-grid {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-cover {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #0f172a;
}

.detail-cover span {
    position: absolute;
    right: 16px;
    bottom: 16px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.95);
    padding: 9px 14px;
    font-weight: 900;
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(44px, 7vw, 86px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.detail-line {
    max-width: 820px;
    margin: 24px 0 0;
    color: #dbeafe;
    font-size: 20px;
    line-height: 1.85;
}

.player-section {
    padding-top: 56px;
}

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

.movie-player,
.player-overlay,
.player-overlay img,
.overlay-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-player {
    z-index: 1;
    background: #000;
}

.player-overlay {
    z-index: 2;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000;
}

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

.player-overlay img {
    object-fit: cover;
    opacity: 0.78;
}

.overlay-shade {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.22), rgba(2, 6, 23, 0.82));
}

.overlay-play {
    position: relative;
    z-index: 4;
    width: clamp(74px, 9vw, 110px);
    height: clamp(74px, 9vw, 110px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.92);
    color: #fff;
    font-size: clamp(32px, 5vw, 52px);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.3);
}

.detail-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.text-panel {
    padding: 28px;
}

.text-panel h2 {
    margin: 0 0 18px;
    font-size: 26px;
}

.text-panel p {
    color: #cbd5e1;
    line-height: 1.9;
    font-size: 16px;
}

.ranking-feature {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 30px;
    align-items: center;
    padding: 24px;
    margin-bottom: 28px;
}

.ranking-feature .movie-card {
    margin: 0;
}

.ranking-feature-copy p:last-of-type {
    color: #cbd5e1;
    line-height: 1.9;
}

.search-page-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    max-width: 780px;
    margin-top: 30px;
}

.search-page-form input {
    padding: 15px 20px;
}

.site-footer {
    margin-top: 78px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 36px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-content: start;
}

.footer-links a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 12px;
    color: #cbd5e1;
}

.footer-links a:hover {
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.45);
}

.footer-bottom {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
    padding: 18px 0 28px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.is-hidden-by-filter,
.search-empty {
    display: none !important;
}

.search-empty.is-visible {
    display: block !important;
    grid-column: 1 / -1;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 22px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.72);
}

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

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

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

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

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

@media (max-width: 860px) {
    .header-inner {
        height: 68px;
        gap: 12px;
    }

    .header-search {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    body.is-menu-open .mobile-menu {
        display: block;
    }

    .hero-shell {
        min-height: auto;
        margin-top: 20px;
    }

    .hero-slider {
        min-height: 760px;
    }

    .hero-content {
        min-height: 760px;
        grid-template-columns: 1fr;
        align-content: center;
        padding: 34px 24px 80px;
    }

    .hero-poster {
        width: min(250px, 70vw);
        transform: none;
    }

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

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

    .detail-grid,
    .detail-text,
    .footer-inner,
    .ranking-feature {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        max-width: 260px;
    }

    .filter-bar,
    .search-page-form {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .brand-text em {
        display: none;
    }

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

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

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

    .hero-copy h1,
    .hero-copy h2,
    .detail-copy h1,
    .page-hero h1 {
        letter-spacing: -0.04em;
    }

    .hero-actions,
    .page-actions,
    .detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .category-covers {
        min-height: 150px;
    }

    .category-covers img {
        height: 150px;
    }
}
