:root {
    --bg: #fffaf0;
    --bg-soft: #fff7ed;
    --surface: #ffffff;
    --surface-strong: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(120, 53, 15, 0.12);
    --brand: #c2410c;
    --brand-dark: #7c2d12;
    --brand-soft: #fed7aa;
    --gold: #f59e0b;
    --shadow: 0 18px 45px rgba(124, 45, 18, 0.16);
    --radius: 22px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: #ffffff;
    background: linear-gradient(90deg, #78350f 0%, #92400e 48%, #c2410c 100%);
    box-shadow: 0 12px 30px rgba(124, 45, 18, 0.22);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 68px;
}

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

.brand {
    flex: 0 0 auto;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #7c2d12;
    background: linear-gradient(135deg, #fef3c7, #f97316);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.brand-text {
    font-size: 20px;
    white-space: nowrap;
}

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

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    font-weight: 650;
    transition: color 0.2s ease;
}

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

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    background: #fbbf24;
    border-radius: 999px;
}

.category-shortcut {
    opacity: 0.86;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(12px);
}

.header-search input {
    width: 190px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 8px 8px 8px 14px;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.wide-search button,
.search-page-form button {
    border: 0;
    cursor: pointer;
    color: #7c2d12;
    background: #fef3c7;
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.wide-search button:hover,
.search-page-form button:hover {
    transform: translateY(-1px);
    background: #fde68a;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.16);
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 16px;
    background: rgba(120, 53, 15, 0.98);
}

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

.mobile-panel a {
    color: #ffffff;
    font-weight: 700;
    padding: 10px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.mobile-panel input {
    min-width: 0;
    flex: 1;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    padding: 10px 12px;
}

.mobile-panel input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.mobile-panel button {
    color: #7c2d12;
    border: 0;
    background: #fef3c7;
    border-radius: 14px;
    padding: 10px 14px;
    font-weight: 800;
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.34), transparent 32%),
        linear-gradient(135deg, #431407, #7c2d12 48%, #111827);
}

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

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

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

.hero-slide img.image-missing,
.detail-backdrop.image-missing,
.category-page-hero > img.image-missing {
    display: none;
}

.hero-shade,
.detail-shade,
.page-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(67, 20, 7, 0.76) 46%, rgba(67, 20, 7, 0.22) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.88), transparent 44%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 650px;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(680px, 100%);
    padding-top: 30px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #ea580c;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.detail-hero .eyebrow {
    color: #fbbf24;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero p,
.page-hero p,
.detail-info p {
    width: min(680px, 100%);
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero-tags,
.tag-list,
.pill-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-list span,
.category-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    color: #7c2d12;
    background: #ffedd5;
    border: 1px solid rgba(251, 146, 60, 0.28);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
}

.hero .hero-tags span,
.page-hero .hero-tags span,
.detail-hero .hero-tags span {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
    color: #7c2d12;
    background: linear-gradient(135deg, #fde68a, #fb923c);
    box-shadow: 0 16px 30px rgba(234, 88, 12, 0.3);
}

.button-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.button-small {
    min-height: 38px;
    padding: 8px 15px;
    color: #ffffff;
    background: #c2410c;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-controls button {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    cursor: pointer;
    font-size: 28px;
    backdrop-filter: blur(12px);
}

.hero-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    pointer-events: auto;
}

.hero-dot {
    width: 34px !important;
    height: 8px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.34) !important;
    padding: 0;
}

.hero-dot.is-active {
    background: #fbbf24 !important;
}

.quick-search-band {
    margin-top: -54px;
    position: relative;
    z-index: 8;
}

.quick-search-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 22px;
    align-items: center;
    padding: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-search-inner h2 {
    margin: 0 0 6px;
    font-size: 24px;
}

.quick-search-inner p {
    margin: 0;
    color: var(--muted);
}

.wide-search,
.search-page-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.wide-search input,
.search-page-form input,
.search-page-form select,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    outline: 0;
    padding: 13px 16px;
    color: var(--text);
}

.search-page-form {
    grid-template-columns: 1fr 220px auto;
    margin-top: 24px;
}

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

.section-soft {
    background: linear-gradient(180deg, #fff7ed, #fffbeb);
}

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

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

.section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.text-link {
    color: var(--brand);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 32px rgba(124, 45, 18, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(234, 88, 12, 0.34);
    box-shadow: var(--shadow);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: radial-gradient(circle at 20% 10%, #fed7aa, transparent 34%),
        linear-gradient(135deg, #7c2d12, #111827);
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.2s ease;
}

.poster-frame img.image-missing {
    opacity: 0;
}

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

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent 42%);
    opacity: 0.82;
}

.poster-play {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.poster-duration {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    color: #ffffff;
    background: rgba(194, 65, 12, 0.92);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 850;
}

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

.movie-meta-row,
.card-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
}

.movie-meta-row a {
    color: #c2410c;
}

.movie-card h3 {
    min-height: 54px;
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--brand);
}

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

.card-stats {
    justify-content: space-between;
    margin-top: 14px;
    color: var(--muted);
}

.tag-list {
    align-items: flex-start;
    gap: 7px;
}

.tag-list span {
    min-height: 27px;
    padding: 4px 9px;
    font-size: 12px;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    color: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #7c2d12, #111827);
}

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

.category-tile img.image-missing {
    opacity: 0;
}

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

.category-tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.86), rgba(124, 45, 18, 0.25));
}

.category-tile strong,
.category-tile small,
.category-tile em {
    position: relative;
    z-index: 2;
    display: block;
    margin: 0 18px;
}

.category-tile strong {
    margin-top: 112px;
    font-size: 22px;
    line-height: 1.2;
}

.category-tile small {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
}

.category-tile em {
    margin-top: 14px;
    color: #fde68a;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

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

.ranking-panel,
.content-panel,
.side-panel,
.category-overview-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 35px rgba(124, 45, 18, 0.1);
}

.ranking-panel {
    position: sticky;
    top: 96px;
    padding: 24px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 44px 52px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(124, 45, 18, 0.08);
    border-radius: 17px;
    background: #fffaf0;
    transition: transform 0.2s ease, background 0.2s ease;
}

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

.rank-number {
    color: #c2410c;
    font-size: 20px;
    font-weight: 950;
}

.rank-row img {
    width: 52px;
    height: 68px;
    border-radius: 12px;
    object-fit: cover;
    background: #fed7aa;
}

.rank-row img.image-missing {
    opacity: 0.08;
}

.rank-title {
    overflow: hidden;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    grid-column: 3 / 4;
    color: var(--muted);
    font-size: 12px;
}

.rank-score {
    color: #9a3412;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.rank-list-large .rank-row {
    grid-template-columns: 54px 62px minmax(0, 1fr) minmax(190px, auto) 110px;
}

.rank-list-large .rank-meta {
    grid-column: auto;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    padding: 100px 0;
    background: radial-gradient(circle at 18% 20%, rgba(251, 191, 36, 0.42), transparent 30%),
        linear-gradient(135deg, #431407 0%, #7c2d12 48%, #111827 100%);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    max-width: 820px;
}

.page-hero p {
    max-width: 760px;
}

.pill-row {
    margin-top: 26px;
}

.category-pill {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
}

.category-overview-cover {
    overflow: hidden;
    border-radius: 18px;
    background: #fed7aa;
}

.category-overview-cover img {
    width: 100%;
    height: 100%;
    min-height: 245px;
    object-fit: cover;
}

.category-overview-cover img.image-missing {
    opacity: 0;
}

.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.category-overview-card p {
    margin: 0 0 14px;
    color: var(--muted);
}

.category-overview-card ul {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.category-overview-card li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px dashed rgba(124, 45, 18, 0.14);
    color: var(--muted);
    font-size: 14px;
}

.category-overview-card li a {
    color: var(--text);
    font-weight: 750;
}

.category-page-hero {
    min-height: 360px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 32px rgba(124, 45, 18, 0.08);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #9a3412;
    font-size: 13px;
    font-weight: 850;
}

.empty-state {
    display: none;
    color: var(--muted);
    text-align: center;
    padding: 34px;
}

.empty-state.is-visible {
    display: block;
}

.search-hero,
.rankings-hero {
    padding-bottom: 110px;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #431407, #111827);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 42px;
    align-items: end;
    min-height: 560px;
    padding: 80px 0 58px;
}

.detail-poster {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.34);
}

.detail-info h1 {
    max-width: 860px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: 0 30px 70px rgba(17, 24, 39, 0.24);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15), rgba(0, 0, 0, 0.62));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    color: #7c2d12;
    background: linear-gradient(135deg, #fde68a, #fb923c);
    border-radius: 999px;
    font-size: 32px;
    box-shadow: 0 18px 36px rgba(234, 88, 12, 0.34);
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 14px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

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

.content-panel,
.side-panel {
    padding: 28px;
}

.content-panel p {
    color: #374151;
    font-size: 17px;
}

.sub-heading {
    margin-top: 34px;
}

.side-panel {
    position: sticky;
    top: 96px;
}

.side-panel h2 {
    margin: 0 0 18px;
}

.side-panel dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.side-panel dl div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(124, 45, 18, 0.16);
}

.side-panel dt {
    color: #9a3412;
    font-weight: 900;
}

.side-panel dd {
    margin: 0;
    color: #374151;
}

.detail-tags {
    margin-top: 20px;
}

.site-footer {
    color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(135deg, #111827, #431407);
    padding: 56px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr;
    gap: 34px;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
}

.site-footer p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.68);
}

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

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin: 8px 0;
}

.site-footer a:hover {
    color: #fbbf24;
}

.footer-category-list {
    columns: 2;
}

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

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

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

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

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

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

    .mobile-menu-button {
        display: inline-block;
        margin-left: auto;
    }

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

    .hero,
    .hero-content {
        min-height: 590px;
    }

    .hero-copy {
        padding-top: 10px;
    }

    .hero p,
    .page-hero p,
    .detail-info p {
        font-size: 16px;
    }

    .quick-search-inner {
        grid-template-columns: 1fr;
        padding: 22px;
    }

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

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

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

    .overview-grid,
    .category-overview-card,
    .detail-hero-inner,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-hero-inner {
        gap: 26px;
        align-items: end;
    }

    .detail-poster {
        width: 220px;
    }

    .rank-list-large .rank-row,
    .rank-row {
        grid-template-columns: 42px 50px minmax(0, 1fr);
    }

    .rank-score {
        display: none;
    }

    .rank-list-large .rank-meta,
    .rank-meta {
        grid-column: 3 / 4;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, var(--container));
    }

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

    .hero,
    .hero-content {
        min-height: 560px;
    }

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

    .hero-controls {
        bottom: 18px;
    }

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

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

    .movie-card {
        display: grid;
        grid-template-columns: 128px minmax(0, 1fr);
    }

    .poster-frame {
        height: 100%;
        min-height: 192px;
    }

    .movie-card h3 {
        min-height: auto;
        font-size: 17px;
    }

    .movie-card p {
        min-height: auto;
    }

    .category-tile {
        min-height: 190px;
    }

    .category-tile strong {
        margin-top: 86px;
    }

    .content-panel,
    .side-panel {
        padding: 22px;
    }

    .player-icon {
        width: 62px;
        height: 62px;
        font-size: 26px;
    }

    .footer-category-list {
        columns: 1;
    }
}
