:root {
    --bg: #fff7ed;
    --bg-soft: #fffbeb;
    --panel: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --brand: #ea580c;
    --brand-dark: #c2410c;
    --brand-soft: #ffedd5;
    --gold: #f59e0b;
    --shadow: 0 18px 45px rgba(124, 45, 18, 0.16);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 48%, #fef3c7 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 247, 237, 0.86);
    border-bottom: 1px solid rgba(251, 146, 60, 0.24);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    color: #7c2d12;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--gold));
    box-shadow: 0 12px 28px rgba(234, 88, 12, 0.32);
}

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

.nav-link,
.mobile-nav-link {
    padding: 9px 14px;
    border-radius: 999px;
    color: #7c2d12;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--gold));
    transform: translateY(-1px);
}

.top-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 300px;
    padding: 4px;
    border: 1px solid rgba(251, 146, 60, 0.5);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
}

.top-search input,
.large-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    color: var(--text);
    background: transparent;
}

.top-search input {
    padding: 8px 12px;
}

.top-search button,
.large-search button {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    font-weight: 800;
    border-radius: 999px;
    background: var(--brand);
    transition: background 0.2s ease, transform 0.2s ease;
}

.top-search button {
    padding: 8px 14px;
}

.top-search button:hover,
.large-search button:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    width: min(420px, 90vw);
    max-height: 460px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
    padding: 10px;
}

.search-results.is-open {
    display: block;
}

.search-results.large {
    left: 0;
    right: auto;
    width: min(720px, 92vw);
}

.search-result-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: var(--brand-soft);
}

.search-result-item img {
    width: 52px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: #fde68a;
}

.search-result-item strong {
    display: block;
    color: #7c2d12;
}

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

.empty-result {
    padding: 18px;
    color: var(--muted);
    text-align: center;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: var(--brand);
}

.mobile-panel {
    display: none;
    padding: 18px 24px 28px;
    border-top: 1px solid var(--line);
    background: rgba(255, 247, 237, 0.98);
}

.mobile-logo {
    margin-bottom: 12px;
    color: #7c2d12;
    font-size: 18px;
    font-weight: 800;
}

.mobile-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.mobile-category-links a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 13px;
}

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

.hero-slider {
    position: relative;
    height: 650px;
    min-height: 560px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    filter: saturate(1.1);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 35%, rgba(251, 191, 36, 0.28), transparent 28%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(124, 45, 18, 0.82) 44%, rgba(15, 23, 42, 0.38) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 54px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.18);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.eyebrow.dark {
    color: #9a3412;
    background: #ffedd5;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 20px 0 16px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-line,
.page-hero p,
.detail-one-line {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin: 22px 0 28px;
}

.hero-tags span,
.tag-list span {
    padding: 5px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.hero-actions,
.player-title-row,
.section-heading,
.filter-bar,
.card-meta-line,
.detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    padding: 12px 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--gold));
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.32);
}

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

.primary-button.small {
    padding: 8px 16px;
    font-size: 14px;
}

.ghost-button {
    padding: 11px 20px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
    position: relative;
    display: block;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(12px);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 22px;
}

.hero-poster span {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    padding: 10px;
    color: #ffffff;
    text-align: center;
    border-radius: 999px;
    background: rgba(234, 88, 12, 0.92);
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.38);
    backdrop-filter: blur(10px);
}

.hero-controls button {
    cursor: pointer;
    border: 0;
}

.hero-controls > button {
    width: 36px;
    height: 36px;
    color: #ffffff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 24px;
    line-height: 1;
}

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

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
    width: 30px;
    background: #ffffff;
}

.quick-search-section {
    margin-top: -42px;
    position: relative;
    z-index: 4;
}

.quick-search-card,
.stats-strip,
.content-card,
.player-card,
.sidebar-card,
.ranking-panel,
.category-overview-card {
    border: 1px solid rgba(251, 146, 60, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.quick-search-card {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 32px;
    align-items: center;
    padding: 28px;
}

.quick-search-card h2,
.section-heading h2,
.content-card h2,
.sidebar-card h2,
.player-card h2,
.category-overview-card h2 {
    margin: 6px 0 6px;
    color: #7c2d12;
    line-height: 1.2;
}

.quick-search-card p,
.category-overview-card p,
.content-card p,
.site-footer p,
.movie-card p {
    color: var(--muted);
}

.large-search {
    position: relative;
    display: flex;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.large-search input {
    padding: 12px 16px;
}

.large-search button {
    padding: 12px 22px;
}

.stats-strip {
    width: min(1240px, calc(100% - 32px));
    margin: 28px auto 0;
    padding: 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stat-item {
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    text-align: center;
}

.stat-item strong {
    display: block;
    color: var(--brand);
    font-size: 32px;
    line-height: 1;
}

.stat-item span {
    color: var(--muted);
    font-weight: 700;
}

.section-block {
    padding: 64px 0 0;
}

.section-heading {
    justify-content: space-between;
    margin-bottom: 22px;
}

.section-heading.compact {
    margin-bottom: 16px;
}

.section-more {
    padding: 8px 14px;
    color: #9a3412;
    background: #ffedd5;
}

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

.category-card {
    padding: 16px;
    border: 1px solid rgba(251, 146, 60, 0.24);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(124, 45, 18, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(124, 45, 18, 0.18);
}

.category-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 14px;
}

.category-stack img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #fde68a;
}

.category-card h3,
.movie-card h3 {
    margin: 0 0 8px;
    color: #7c2d12;
    line-height: 1.3;
}

.category-card p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--muted);
}

.category-card > span {
    color: var(--brand);
    font-weight: 800;
}

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

.movie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.movie-grid.wide,
.category-page-grid {
    grid-template-columns: repeat(4, 1fr);
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.24);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(124, 45, 18, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #fde68a;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-overlay {
    position: absolute;
    inset: auto 14px 14px;
    display: grid;
    place-items: center;
    padding: 9px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(234, 88, 12, 0.92);
    font-weight: 800;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-overlay {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--gold));
    font-size: 12px;
    font-weight: 900;
}

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

.card-meta-line {
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.card-meta-line a {
    color: var(--brand);
}

.movie-card p {
    min-height: 44px;
    margin: 0 0 12px;
    font-size: 14px;
}

.ranking-panel {
    padding: 18px;
}

.sticky-panel {
    position: sticky;
    top: 100px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 36px 52px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #fff7ed;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
    background: #ffedd5;
    transform: translateX(4px);
}

.ranking-number {
    color: var(--brand);
    font-weight: 900;
}

.ranking-row img {
    width: 52px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: #fde68a;
}

.ranking-info strong,
.ranking-info em {
    display: block;
}

.ranking-info strong {
    color: #7c2d12;
    line-height: 1.25;
}

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

.ranking-score {
    color: #ffffff;
    border-radius: 999px;
    background: var(--brand);
    padding: 4px 8px;
    font-weight: 900;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(120deg, rgba(124, 45, 18, 0.94), rgba(234, 88, 12, 0.82)),
        var(--hero-image, none) center / cover;
}

.small-hero {
    padding: 88px 0;
}

.category-hero {
    padding: 96px 0 84px;
}

.page-hero h1 {
    margin-bottom: 10px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.category-overview-grid {
    display: grid;
    gap: 22px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover-wall {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.category-cover-wall img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 14px;
    background: #fde68a;
}

.mini-card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.mini-card-row a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 700;
}

.filter-bar {
    position: sticky;
    top: 88px;
    z-index: 5;
    flex-wrap: wrap;
    margin-bottom: 22px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(124, 45, 18, 0.09);
    backdrop-filter: blur(12px);
}

.filter-bar input,
.filter-bar select {
    width: auto;
    min-width: 200px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
}

.filter-count {
    margin-left: auto;
    color: var(--muted);
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--detail-bg) center / cover;
    filter: blur(18px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.56;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 30%, rgba(251, 191, 36, 0.26), transparent 24%),
        linear-gradient(110deg, rgba(17, 24, 39, 0.98), rgba(124, 45, 18, 0.8));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 54px 0 64px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 28px;
    background: #fde68a;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.38);
}

.detail-copy h1 {
    font-size: clamp(38px, 6vw, 68px);
}

.detail-meta {
    flex-wrap: wrap;
    margin: 20px 0;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 700;
}

.detail-tags {
    margin-bottom: 24px;
}

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

.detail-main {
    display: grid;
    gap: 22px;
}

.player-card,
.content-card,
.sidebar-card {
    padding: 22px;
}

.player-title-row {
    justify-content: space-between;
    margin-bottom: 16px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
}

.video-shell video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.58));
    transition: opacity 0.2s ease;
}

.video-start span {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    padding-left: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--gold));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    font-size: 30px;
}

.video-start strong {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.36);
}

.video-shell.is-playing .video-start {
    opacity: 0;
    pointer-events: none;
}

.player-note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.content-card p {
    margin: 0;
    font-size: 17px;
}

.detail-sidebar {
    display: grid;
    gap: 20px;
    align-content: start;
}

.sidebar-card dl {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px 14px;
    margin: 0;
}

.sidebar-card dt {
    color: var(--muted);
    font-weight: 800;
}

.sidebar-card dd {
    margin: 0;
    color: #7c2d12;
    font-weight: 700;
}

.compact-list .ranking-row {
    grid-template-columns: 30px 46px 1fr;
}

.compact-list .ranking-score {
    display: none;
}

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

.site-footer {
    margin-top: 72px;
    padding: 42px 0;
    color: #7c2d12;
    background: linear-gradient(135deg, #ffedd5, #fff7ed);
    border-top: 1px solid rgba(251, 146, 60, 0.24);
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1.2fr;
    gap: 28px;
}

.footer-links,
.footer-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a,
.footer-categories a {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: var(--brand);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.back-to-top.is-visible {
    display: block;
}

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

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

    .ranking-panel,
    .sticky-panel {
        position: static;
    }

    .movie-grid,
    .movie-grid.wide,
    .category-page-grid,
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

    .mobile-panel.is-open {
        display: grid;
        gap: 8px;
    }

    .header-inner {
        min-height: 66px;
    }

    .hero-slider {
        height: auto;
        min-height: 720px;
    }

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

    .hero-poster {
        max-width: 230px;
    }

    .quick-search-card,
    .stats-strip,
    .detail-grid,
    .category-overview-card,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .stats-strip {
        gap: 10px;
    }

    .category-grid,
    .movie-grid,
    .movie-grid.wide,
    .category-page-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-count {
        margin-left: 0;
    }

    .filter-bar input,
    .filter-bar select {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .section-inner,
    .header-inner,
    .footer-inner,
    .stats-strip,
    .hero-content {
        width: min(100% - 24px, 1240px);
    }

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

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

    .hero-actions,
    .player-title-row,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .large-search {
        border-radius: 20px;
        flex-direction: column;
    }

    .stats-strip,
    .category-grid,
    .movie-grid,
    .movie-grid.wide,
    .category-page-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .ranking-row {
        grid-template-columns: 32px 46px 1fr;
    }

    .ranking-score {
        display: none;
    }

    .detail-grid {
        gap: 22px;
    }

    .detail-poster {
        max-width: 230px;
    }
}
