:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --cyan: #22d3ee;
    --blue: #2563eb;
    --amber: #f59e0b;
    --radius: 18px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(8, 145, 178, 0.20), transparent 34rem),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 36rem),
        var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.page-main {
    min-height: 70vh;
    padding-top: 64px;
}

.site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    right: 0;
    left: 0;
    border-bottom: 1px solid rgba(30, 41, 59, 0.95);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(1320px, calc(100% - 32px));
    height: 64px;
    margin: 0 auto;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.24);
}

.brand-text,
.footer-brand span:last-child {
    font-size: 21px;
    background: linear-gradient(90deg, #67e8f9, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    overflow: hidden;
    white-space: nowrap;
}

.nav-link {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.search-open,
.mobile-toggle {
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(8, 145, 178, 0.13);
    cursor: pointer;
}

.search-open {
    padding: 9px 18px;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
}

.mobile-nav {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px 18px 18px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.96);
}

.mobile-nav.open {
    display: grid;
}

.mobile-nav a {
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.78);
}

.hero {
    position: relative;
}

.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img,
.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.02);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 24%, rgba(34, 211, 238, 0.22), transparent 26rem),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.56), rgba(2, 6, 23, 0.16));
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(0deg, var(--bg), rgba(2, 6, 23, 0.64) 38%, transparent 100%);
}

.hero-content {
    position: absolute;
    z-index: 3;
    bottom: 12%;
    left: max(24px, calc((100vw - 1320px) / 2));
    width: min(760px, calc(100% - 64px));
}

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

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    color: #ffffff;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content h1 {
    max-width: 760px;
    font-size: clamp(42px, 7vw, 82px);
}

.hero-content p,
.page-hero p,
.detail-one-line {
    max-width: 760px;
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.75;
}

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

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    box-shadow: 0 18px 40px rgba(6, 182, 212, 0.26);
}

.ghost-button {
    border: 1px solid rgba(148, 163, 184, 0.26);
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(12px);
}

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

.hero-control {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-control.prev {
    left: 24px;
}

.hero-control.next {
    right: 24px;
}

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

.hero-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #64748b;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.home-search-section,
.section-shell,
.page-hero,
.detail-hero-inner,
.site-footer .footer-grid {
    width: min(1320px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.home-search-section {
    margin-top: -54px;
    position: relative;
    z-index: 6;
}

.home-search-card,
.ranking-panel,
.category-tile,
.movie-card,
.category-overview-card,
.stat-card,
.detail-section,
.player-section,
.detail-meta-card,
.ranking-full-panel {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.home-search-card {
    padding: 28px;
    border-radius: 24px;
}

.home-search-card h2,
.section-title-row h2,
.ranking-panel h2,
.detail-section h2,
.ranking-full-panel h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.inline-search,
.filter-bar {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.inline-search input,
.filter-bar input,
.filter-bar select,
.global-search-input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    outline: none;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.65);
}

.inline-search input,
.filter-bar input,
.global-search-input {
    padding: 0 18px;
}

.filter-bar select {
    max-width: 180px;
    padding: 0 14px;
}

.inline-search button {
    min-width: 130px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    cursor: pointer;
}

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

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

.section-title-row.compact {
    margin-bottom: 18px;
}

.section-more {
    color: var(--cyan);
    font-weight: 800;
}

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

.category-tile {
    min-height: 210px;
    padding: 22px;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile::before {
    content: "";
    position: absolute;
    inset: auto -40px -70px auto;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.12);
}

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

.category-count {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    color: #a5f3fc;
    font-size: 12px;
    font-weight: 800;
    background: rgba(6, 182, 212, 0.16);
}

.category-tile h3,
.movie-card h3,
.category-overview-card h2 {
    margin: 14px 0 8px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.category-tile p,
.movie-desc,
.site-footer p,
.detail-section p,
.category-overview-card p {
    color: var(--muted);
    line-height: 1.65;
}

.category-samples {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 16px;
    color: #cbd5e1;
    font-size: 13px;
}

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

.movie-grid {
    display: grid;
    gap: 18px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(37, 99, 235, 0.08)),
        #0f172a;
}

.movie-poster img,
.category-cover img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
}

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.74), transparent 48%);
}

.play-mark {
    position: absolute;
    z-index: 3;
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(6, 182, 212, 0.9);
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.28);
}

.rank-badge {
    position: absolute;
    z-index: 4;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(90deg, #fde68a, #f59e0b);
}

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

.movie-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.35;
}

.movie-meta {
    margin: 0 0 8px;
    color: #94a3b8;
    font-size: 13px;
}

.movie-desc {
    display: -webkit-box;
    min-height: 44px;
    margin: 0;
    overflow: hidden;
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.tag,
.chip-row button {
    display: inline-flex;
    padding: 5px 9px;
    border: 1px solid rgba(34, 211, 238, 0.20);
    border-radius: 999px;
    color: #bae6fd;
    font-size: 12px;
    background: rgba(6, 182, 212, 0.10);
}

.chip-row button {
    cursor: pointer;
}

.ranking-panel,
.ranking-full-panel {
    border-radius: 22px;
    padding: 22px;
}

.sticky-panel {
    position: sticky;
    top: 88px;
    align-self: start;
}

.rank-list {
    display: grid;
    gap: 9px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.rank-item a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.35);
    transition: background 0.2s ease;
}

.rank-item a:hover {
    background: rgba(6, 182, 212, 0.12);
}

.rank-num {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #111827;
    font-weight: 900;
    background: linear-gradient(135deg, #67e8f9, #60a5fa);
}

.rank-title {
    overflow: hidden;
    color: #ffffff;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-meta {
    color: var(--muted);
    font-size: 12px;
}

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

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.page-hero {
    margin-top: 0;
    padding: 88px 0 52px;
}

.page-hero::before,
.category-hero::before,
.ranking-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.18), transparent 30rem),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.18), transparent 34rem);
}

.page-hero h1 {
    max-width: 880px;
    font-size: clamp(36px, 6vw, 62px);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
    border-radius: 22px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-cover {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(6, 182, 212, 0.12);
}

.mini-link-list {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.mini-link-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #e2e8f0;
    font-size: 13px;
}

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

.stat-card {
    padding: 22px;
    border-radius: 20px;
}

.stat-card strong {
    display: block;
    color: #ffffff;
    font-size: 32px;
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
}

.detail-hero {
    min-height: 580px;
    padding: 72px 0 56px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    filter: blur(2px);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, var(--bg), rgba(2, 6, 23, 0.64)),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.56));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
}

.breadcrumb,
.breadcrumb-sep {
    color: #bae6fd;
    font-size: 14px;
    font-weight: 700;
}

.detail-intro {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
    margin-top: 36px;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(6, 182, 212, 0.12);
    box-shadow: var(--shadow);
}

.detail-info h1 {
    max-width: 920px;
    font-size: clamp(36px, 6vw, 70px);
}

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

.player-section,
.detail-section {
    margin-bottom: 24px;
    border-radius: 24px;
    overflow: hidden;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    text-align: center;
    background:
        radial-gradient(circle, rgba(6, 182, 212, 0.20), transparent 18rem),
        rgba(2, 6, 23, 0.40);
    cursor: pointer;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    margin: 0 auto;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 20px 48px rgba(6, 182, 212, 0.32);
}

.player-overlay strong {
    font-size: 20px;
}

.player-overlay small {
    color: #cbd5e1;
}

.player-shell.is-playing .player-overlay {
    display: none;
}

.player-source {
    margin: 0;
    padding: 12px 16px;
    overflow-wrap: anywhere;
    color: #94a3b8;
    font-size: 12px;
    background: rgba(2, 6, 23, 0.58);
}

.detail-section {
    padding: 26px;
}

.detail-section p {
    margin: 16px 0 0;
    color: #cbd5e1;
    font-size: 16px;
}

.detail-sidebar {
    display: grid;
    gap: 22px;
    align-self: start;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.detail-meta-card {
    padding: 16px;
    border-radius: 18px;
}

.detail-meta-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.detail-meta-card strong {
    display: block;
    margin-top: 6px;
    color: #ffffff;
    line-height: 1.35;
}

.compact-panel {
    box-shadow: none;
}

.site-footer {
    margin-top: 76px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.5fr) minmax(0, 1fr);
    gap: 36px;
    padding: 44px 0;
}

.site-footer h3 {
    margin: 0 0 16px;
    color: #ffffff;
}

.site-footer p {
    max-width: 580px;
}

.footer-small {
    color: #64748b;
    font-size: 13px;
}

.footer-links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-links a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #cbd5e1;
    font-size: 14px;
}

.search-modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: none;
    place-items: start center;
    padding: 92px 18px 18px;
    background: rgba(2, 6, 23, 0.74);
    backdrop-filter: blur(12px);
}

.search-modal.open {
    display: grid;
}

.search-panel {
    position: relative;
    width: min(760px, 100%);
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
}

.search-panel h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.search-panel p {
    margin: 0 0 18px;
    color: var(--muted);
}

.search-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.46);
    cursor: pointer;
}

.global-search-results {
    display: grid;
    gap: 10px;
    max-height: 55vh;
    margin-top: 16px;
    overflow: auto;
}

.search-result-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.42);
}

.search-result-item img {
    width: 58px;
    height: 82px;
    object-fit: cover;
    border-radius: 10px;
    background: rgba(6, 182, 212, 0.12);
}

.search-result-item strong {
    display: block;
    overflow: hidden;
    color: #ffffff;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.search-result-item span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.card-hidden {
    display: none !important;
}

.cover-missing {
    background:
        linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(37, 99, 235, 0.10)),
        #0f172a;
}

@media (max-width: 1200px) {
    .desktop-nav {
        gap: 14px;
    }

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

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

    .two-column-layout,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .sticky-panel {
        position: static;
    }
}

@media (max-width: 900px) {
    .desktop-nav,
    .search-open {
        display: none;
    }

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

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

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

    .hero-control {
        display: none;
    }

    .inline-search,
    .filter-bar,
    .section-title-row,
    .detail-intro {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-intro {
        display: block;
    }

    .detail-poster {
        width: 210px;
        margin-bottom: 22px;
    }

    .cards-6,
    .cards-5,
    .cards-4,
    .category-grid,
    .category-overview-grid,
    .category-stat-row,
    .multi-column,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .filter-bar select {
        max-width: none;
    }
}

@media (max-width: 620px) {
    .nav-shell,
    .home-search-section,
    .section-shell,
    .page-hero,
    .detail-hero-inner,
    .site-footer .footer-grid {
        width: min(100% - 24px, 1320px);
    }

    .brand-text {
        font-size: 18px;
    }

    .hero-slider {
        height: 72vh;
        min-height: 520px;
    }

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

    .hero-content p,
    .page-hero p,
    .detail-one-line {
        font-size: 15px;
    }

    .cards-6,
    .cards-5,
    .cards-4,
    .category-grid,
    .category-overview-grid,
    .category-stat-row,
    .detail-meta-grid,
    .footer-grid,
    .footer-links.two-col,
    .multi-column {
        grid-template-columns: 1fr;
    }

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

    .category-cover {
        max-height: 260px;
    }

    .detail-poster {
        width: 180px;
    }

    .section-shell {
        padding-top: 48px;
    }

    .home-search-card,
    .ranking-panel,
    .ranking-full-panel,
    .detail-section {
        padding: 18px;
    }
}
