:root {
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
    --earth-50: #fdf8ed;
    --earth-100: #f7edd6;
    --earth-300: #e7c47b;
    --earth-500: #c88a2e;
    --earth-600: #a66e22;
    --earth-700: #84521c;
    --canyon-500: #bf5a35;
    --canyon-700: #923d25;
    --moss-500: #63744d;
    --white: #ffffff;
    --shadow: 0 18px 50px rgba(41, 37, 36, 0.12);
    --shadow-soft: 0 10px 28px rgba(41, 37, 36, 0.10);
    --radius: 18px;
    --radius-lg: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--stone-800);
    background: var(--stone-50);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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(250, 250, 249, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(214, 211, 209, 0.8);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--stone-900);
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--earth-600), var(--canyon-500));
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(166, 110, 34, 0.28);
}

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

.nav-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 9px 14px;
    color: var(--stone-700);
    border-radius: 12px;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--earth-700);
    background: var(--earth-50);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.search-panel input,
.catalog-tools input,
.catalog-tools select {
    min-height: 42px;
    border: 1px solid var(--stone-300);
    border-radius: 12px;
    background: var(--white);
    color: var(--stone-900);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
    width: 210px;
    padding: 0 14px;
}

.nav-search input:focus,
.search-panel input:focus,
.catalog-tools input:focus,
.catalog-tools select:focus {
    border-color: var(--earth-500);
    box-shadow: 0 0 0 4px rgba(200, 138, 46, 0.16);
}

.nav-search button,
.search-panel button {
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    padding: 0 16px;
    cursor: pointer;
    color: var(--white);
    background: var(--earth-600);
    font-weight: 700;
}

.menu-toggle {
    display: none;
    border: 0;
    background: var(--stone-100);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--stone-800);
}

.quick-cats {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 12px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.quick-cats a {
    flex: 0 0 auto;
    padding: 6px 12px;
    color: var(--stone-600);
    background: rgba(245, 245, 244, 0.8);
    border: 1px solid var(--stone-200);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    color: var(--white);
    background: radial-gradient(circle at 20% 20%, rgba(200, 138, 46, 0.32), transparent 32%), linear-gradient(135deg, #1c1917 0%, #292524 48%, #6f351f 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 62px 62px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 380px;
    align-items: center;
    gap: 54px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
    position: absolute;
    inset: -100px -24vw;
    z-index: -1;
    opacity: 0.22;
    filter: blur(1px) saturate(0.9);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(28, 25, 23, 0.98) 0%, rgba(28, 25, 23, 0.72) 46%, rgba(28, 25, 23, 0.35) 100%);
}

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

.hero-kicker,
.eyebrow {
    color: var(--earth-300);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 14px 0 12px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.hero-content h2 {
    margin: 0 0 18px;
    color: var(--earth-300);
    font-size: clamp(24px, 3vw, 38px);
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.hero-tags span,
.tag-row span,
.meta-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

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

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

.btn.primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--earth-600), var(--canyon-500));
    box-shadow: 0 16px 28px rgba(146, 61, 37, 0.25);
}

.btn.ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.hero-poster {
    position: relative;
    width: min(100%, 380px);
    justify-self: end;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    transform: rotate(1.5deg);
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--stone-900);
    background: var(--earth-300);
    font-weight: 800;
}

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

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

.hero-dot.is-active {
    background: var(--earth-300);
}

.search-band {
    width: min(1180px, calc(100% - 32px));
    margin: -46px auto 0;
    position: relative;
    z-index: 3;
}

.search-panel {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(231, 229, 228, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.search-panel label {
    display: block;
    margin-bottom: 10px;
    font-weight: 800;
    color: var(--stone-900);
}

.search-panel div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.search-panel input {
    padding: 0 16px;
}

.section-wrap,
.showcase-block {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
}

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

.section-head h2 {
    margin: 0 0 8px;
    color: var(--stone-900);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 0;
    color: var(--stone-600);
}

.section-head a {
    flex: 0 0 auto;
    color: var(--earth-700);
    font-weight: 800;
}

.compact-head {
    align-items: center;
}

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(231, 229, 228, 0.82);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(41, 37, 36, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--stone-200), var(--earth-100));
}

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

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

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.66));
}

.play-chip {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    color: var(--earth-700);
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.year-chip,
.rank-badge {
    position: absolute;
    top: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.68);
    font-size: 12px;
    font-weight: 800;
}

.year-chip {
    right: 10px;
}

.rank-badge {
    left: 10px;
    background: var(--canyon-500);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    color: var(--stone-900);
    font-size: 17px;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: var(--earth-700);
}

.card-body p {
    margin: 0 0 12px;
    color: var(--stone-600);
    font-size: 14px;
}

.tag-row span {
    color: var(--stone-600);
    background: var(--stone-100);
}

.category-wrap {
    padding-top: 50px;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: var(--radius);
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
}

.category-tile span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 1;
}

.category-tile strong {
    display: block;
    font-size: 22px;
}

.category-tile em {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
    font-size: 14px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 28px;
    align-items: stretch;
}

.rank-list,
.mini-list {
    display: grid;
    gap: 12px;
}

.mini-card {
    display: grid;
    grid-template-columns: auto 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--stone-200);
    border-radius: 16px;
    background: var(--white);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.mini-card:hover {
    transform: translateX(4px);
    border-color: var(--earth-300);
}

.mini-card img {
    width: 64px;
    height: 82px;
    border-radius: 12px;
    object-fit: cover;
}

.mini-card span {
    min-width: 0;
}

.mini-card strong {
    display: block;
    color: var(--stone-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-card em {
    display: block;
    color: var(--stone-500);
    font-size: 13px;
    font-style: normal;
}

.mini-rank {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--white);
    border-radius: 12px;
    background: var(--earth-600);
    font-weight: 900;
}

.feature-panel {
    padding: 34px;
    border-radius: var(--radius-lg);
    color: var(--white);
    background: linear-gradient(135deg, var(--stone-900), var(--canyon-700));
    box-shadow: var(--shadow);
}

.feature-panel h2 {
    margin: 0 0 16px;
    font-size: 34px;
}

.feature-panel p {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.82);
}

.muted-section {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100vw - 1180px) / 2));
    padding-right: max(16px, calc((100vw - 1180px) / 2));
    background: linear-gradient(180deg, var(--stone-100), var(--earth-50));
}

.page-hero,
.rank-hero,
.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.page-hero {
    padding: 58px;
    color: var(--white);
    background: radial-gradient(circle at 18% 22%, rgba(231, 196, 123, 0.26), transparent 34%), linear-gradient(135deg, var(--stone-900), var(--canyon-700));
}

.page-hero h1,
.rank-hero h1,
.detail-info h1 {
    margin: 10px 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p,
.rank-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

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

.category-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--stone-200);
    box-shadow: var(--shadow-soft);
}

.category-cover {
    display: block;
    overflow: hidden;
    border-radius: 20px;
}

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

.category-card h2 {
    margin: 6px 0 8px;
    color: var(--stone-900);
}

.category-card p {
    margin: 0 0 18px;
    color: var(--stone-600);
}

.catalog-tools {
    position: sticky;
    top: 82px;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 170px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid var(--stone-200);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.search-tools {
    grid-template-columns: minmax(220px, 1fr) 170px 170px 160px;
}

.catalog-tools input,
.catalog-tools select {
    width: 100%;
    padding: 0 14px;
}

.catalog-grid .movie-card.is-hidden {
    display: none;
}

.rank-hero {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 34px;
    align-items: center;
    padding: 46px;
    color: var(--white);
    background: linear-gradient(135deg, var(--stone-900), var(--canyon-700));
}

.rank-hero img {
    width: 100%;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.ranking-table {
    margin-top: 26px;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.ranking-row {
    display: grid;
    grid-template-columns: 52px 1fr 1.4fr;
    gap: 14px;
    align-items: center;
    padding: 15px 18px;
    border-bottom: 1px solid var(--stone-200);
}

.ranking-row:last-child {
    border-bottom: 0;
}

.ranking-row:hover {
    background: var(--earth-50);
}

.ranking-row span {
    color: var(--earth-700);
    font-weight: 900;
}

.ranking-row strong {
    color: var(--stone-900);
}

.ranking-row em {
    color: var(--stone-500);
    font-style: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--stone-500);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--earth-700);
}

.detail-hero {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 36px;
    padding: 34px;
    color: var(--white);
    background: radial-gradient(circle at 75% 12%, rgba(231, 196, 123, 0.22), transparent 34%), linear-gradient(135deg, var(--stone-900), var(--canyon-700));
}

.detail-poster img {
    width: 100%;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

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

.detail-info .lead {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

.meta-pills span {
    color: var(--stone-900);
    background: var(--earth-300);
}

.detail-tags {
    margin: 18px 0 28px;
}

.detail-tags span {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.player-section h2 {
    margin: 0 0 16px;
    color: var(--stone-900);
    font-size: 30px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000000;
    box-shadow: var(--shadow);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 14px;
    align-content: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.70));
    cursor: pointer;
    transition: opacity 0.22s ease;
}

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

.player-button {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--earth-700);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
    font-size: 28px;
}

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

.player-message {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    place-items: center;
    padding: 24px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.78);
    text-align: center;
}

.player-shell.player-error .player-message {
    display: grid;
}

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

.story-card {
    padding: 28px;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.story-card h2 {
    margin: 0 0 14px;
    color: var(--stone-900);
}

.story-card p {
    margin: 0;
    color: var(--stone-700);
    font-size: 17px;
}

.site-footer {
    margin-top: 60px;
    color: var(--stone-300);
    background: var(--stone-900);
}

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

.footer-brand {
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
}

.footer-inner p {
    max-width: 520px;
    margin: 10px 0 0;
    color: var(--stone-300);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.14);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    text-align: center;
    color: var(--stone-500);
}

@media (max-width: 1024px) {
    .movie-grid,
    .small-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-slide {
        grid-template-columns: 1fr 300px;
    }

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

@media (max-width: 820px) {
    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .nav-panel {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--stone-200);
        border-radius: 18px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .nav-panel.is-open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-search {
        display: grid;
        grid-template-columns: 1fr auto;
    }

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

    .hero {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;
    }

    .hero-poster {
        justify-self: start;
        width: 180px;
        transform: none;
    }

    .search-panel div,
    .catalog-tools,
    .search-tools,
    .rank-hero,
    .detail-hero,
    .category-card,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .catalog-tools {
        position: static;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .brand-text {
        font-size: 18px;
    }

    .quick-cats {
        padding-bottom: 10px;
    }

    .hero {
        min-height: 700px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-wrap,
    .showcase-block {
        padding: 46px 0;
    }

    .section-head {
        display: block;
    }

    .section-head a {
        display: inline-flex;
        margin-top: 10px;
    }

    .movie-grid,
    .small-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        font-size: 15px;
    }

    .page-hero,
    .rank-hero,
    .detail-hero {
        padding: 26px;
    }

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

    .ranking-row em {
        grid-column: 2;
    }

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

    .story-card {
        padding: 22px;
    }
}
