:root {
    --color-ink: #24150d;
    --color-muted: #7a5b45;
    --color-line: rgba(120, 72, 31, 0.16);
    --color-honey-50: #fff8e7;
    --color-honey-100: #fff0d1;
    --color-honey-200: #ffe0a3;
    --color-honey-300: #ffd875;
    --color-honey-400: #ffcc47;
    --color-honey-500: #d4a574;
    --color-flame-400: #ffa726;
    --color-flame-500: #ff6b35;
    --color-flame-600: #f4511e;
    --color-cocoa-900: #2d1609;
    --shadow-card: 0 20px 50px rgba(96, 48, 18, 0.12);
    --shadow-strong: 0 30px 90px rgba(45, 22, 9, 0.28);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: linear-gradient(180deg, #fff8e7 0%, #fffdf8 36%, #fff4dd 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 8%, rgba(255, 204, 71, 0.28), transparent 28rem),
        radial-gradient(circle at 92% 20%, rgba(255, 107, 53, 0.16), transparent 26rem),
        radial-gradient(circle at 50% 100%, rgba(212, 165, 116, 0.18), transparent 26rem);
    z-index: -1;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    color: #fff;
    background: linear-gradient(135deg, rgba(45, 22, 9, 0.96), rgba(159, 82, 29, 0.94));
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(45, 22, 9, 0.26);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--color-flame-500), var(--color-honey-400));
    box-shadow: 0 12px 24px rgba(255, 107, 53, 0.35);
    animation: flame-flicker 3s ease-in-out infinite;
}

.brand-text {
    font-size: 1.35rem;
    white-space: nowrap;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input {
    width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 10px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    outline: none;
}

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

.header-search button,
.mobile-search button,
.primary-button,
.ghost-button,
.section-action,
.filter-reset {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--color-flame-500), var(--color-flame-400));
    box-shadow: 0 12px 28px rgba(255, 107, 53, 0.3);
}

.header-search button {
    padding: 10px 16px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    font-weight: 800;
}

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

.header-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.section-action:hover,
.filter-reset:hover {
    transform: translateY(-2px);
}

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

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

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 28px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-nav nav {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #fff;
    background: #1e0f07;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(24, 12, 5, 0.92), rgba(24, 12, 5, 0.72) 42%, rgba(24, 12, 5, 0.25)),
        linear-gradient(0deg, rgba(24, 12, 5, 0.88), transparent 42%),
        var(--hero-image) center / cover no-repeat;
    transform: scale(1.04);
    filter: saturate(1.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1200px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.65fr);
    align-items: center;
    gap: 48px;
    padding: 112px 0 96px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #4a260f;
    background: linear-gradient(135deg, var(--color-honey-400), var(--color-honey-100));
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.hero-copy p {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.9;
}

.hero-tags,
.detail-meta,
.detail-tags,
.movie-tags,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags {
    margin: 24px 0 32px;
}

.hero-tags span,
.detail-meta span,
.detail-tags span,
.movie-tags span {
    border-radius: 999px;
    padding: 6px 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    font-size: 0.86rem;
}

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

.hero-cover {
    position: relative;
    width: min(360px, 100%);
    margin-left: auto;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    aspect-ratio: 2 / 3;
    transform: rotate(2deg);
}

.hero-cover::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 24px;
    z-index: 2;
    pointer-events: none;
}

.hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #5d2b12, #ffb84d);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(-50%);
}

.hero-control,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-control {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    font-size: 2rem;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 32px;
    background: var(--color-honey-400);
}

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

.quick-categories {
    padding: 26px 0 0;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-pills a,
.section-action {
    padding: 11px 16px;
    border: 1px solid rgba(212, 165, 116, 0.4);
    border-radius: 999px;
    color: #6d3519;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(96, 48, 18, 0.08);
}

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

.section-heading .eyebrow,
.ranking-panel-head .eyebrow,
.page-hero .eyebrow,
.detail-copy .eyebrow {
    margin-bottom: 10px;
}

.section-heading h2,
.ranking-panel h2,
.page-hero h1,
.detail-copy h1,
.detail-section-card h2,
.side-card h2,
.ranking-sidebar h2 {
    margin: 0;
    color: var(--color-ink);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading p {
    max-width: 620px;
    margin: 10px 0 0;
    color: var(--color-muted);
    line-height: 1.8;
}

.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 rgba(212, 165, 116, 0.24);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 28px 70px rgba(96, 48, 18, 0.18);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #704121, #ffc96b);
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.66));
    opacity: 0.8;
}

.movie-rating,
.movie-play {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-weight: 900;
}

.movie-rating {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    color: #4a260f;
    background: var(--color-honey-400);
}

.movie-play {
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    color: #fff;
    background: rgba(255, 107, 53, 0.88);
}

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: var(--color-flame-600);
}

.movie-line {
    min-height: 3.2em;
    margin: 10px 0;
    color: var(--color-muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.movie-meta {
    margin-bottom: 10px;
    color: #946a4b;
    font-size: 0.86rem;
}

.movie-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #c49a73;
}

.movie-tags span {
    color: #733716;
    background: var(--color-honey-100);
    font-size: 0.78rem;
}

.warm-section {
    background: linear-gradient(180deg, rgba(255, 240, 209, 0.4), rgba(255, 255, 255, 0.38));
}

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

.ranking-panel,
.ranking-sidebar,
.side-card,
.detail-section-card,
.player-card,
.filter-panel,
.category-card {
    border: 1px solid rgba(212, 165, 116, 0.26);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-card);
}

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

.rank-list,
.ranking-list-page,
.side-related-list {
    display: grid;
    gap: 10px;
}

.rank-row,
.ranking-row,
.side-related {
    display: grid;
    align-items: center;
    gap: 12px;
    border-radius: 18px;
    background: rgba(255, 248, 231, 0.8);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    padding: 12px;
}

.rank-row:hover,
.ranking-row:hover,
.side-related:hover {
    background: #fff;
    transform: translateX(4px);
}

.rank-number,
.ranking-index {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-flame-500), var(--color-honey-400));
    font-weight: 900;
}

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

.rank-score,
.ranking-rating {
    color: var(--color-flame-600);
    font-weight: 900;
}

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

.category-card {
    display: grid;
    gap: 12px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 70px rgba(96, 48, 18, 0.16);
}

.category-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-flame-500), var(--color-honey-400));
}

.category-card strong {
    font-size: 1.22rem;
}

.category-card small {
    color: var(--color-muted);
    line-height: 1.7;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 94px 0 76px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(45, 22, 9, 0.92), rgba(159, 82, 29, 0.86)),
        radial-gradient(circle at 20% 10%, rgba(255, 204, 71, 0.35), transparent 26rem);
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.page-hero p {
    max-width: 720px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.9;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(140px, 1fr)) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 28px;
    padding: 18px;
}

.filter-field {
    display: grid;
    gap: 8px;
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.filter-field input,
.filter-field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(212, 165, 116, 0.35);
    border-radius: 14px;
    padding: 0 12px;
    color: var(--color-ink);
    background: #fffaf1;
    outline: none;
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: var(--color-flame-400);
    box-shadow: 0 0 0 4px rgba(255, 167, 38, 0.16);
}

.filter-reset {
    min-height: 44px;
    padding: 0 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-cocoa-900), #824420);
}

.empty-state {
    margin: 28px 0 0;
    padding: 28px;
    border-radius: var(--radius-md);
    color: var(--color-muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.72);
}

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

.ranking-list-page {
    gap: 12px;
}

.ranking-row {
    grid-template-columns: 54px 74px minmax(0, 1fr) auto;
    padding: 12px;
}

.ranking-row img {
    width: 74px;
    height: 102px;
    border-radius: 14px;
    object-fit: cover;
    background: linear-gradient(135deg, #704121, #ffc96b);
}

.ranking-main strong,
.ranking-main small {
    display: block;
}

.ranking-main small {
    margin-top: 6px;
    color: var(--color-muted);
}

.sidebar-grid {
    grid-template-columns: 1fr;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(45, 22, 9, 0.96), rgba(45, 22, 9, 0.72)),
        var(--detail-image) center / cover no-repeat;
}

.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 12%, rgba(255, 204, 71, 0.22), transparent 28rem),
        linear-gradient(0deg, rgba(45, 22, 9, 0.9), transparent 60%);
    backdrop-filter: blur(2px);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    align-items: end;
    padding: 82px 0 74px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow-strong);
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #704121, #ffc96b);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.72);
}

.breadcrumb a:hover {
    color: #fff;
}

.detail-copy h1 {
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 5rem);
}

.detail-copy p {
    max-width: 820px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.1rem;
    line-height: 1.9;
}

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

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

.detail-main,
.detail-side {
    display: grid;
    gap: 24px;
}

.player-card {
    padding: 14px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 16 / 9;
    background: #000;
    cursor: pointer;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.64));
}

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

.play-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-flame-500), var(--color-honey-400));
    box-shadow: 0 18px 42px rgba(255, 107, 53, 0.38);
}

.player-status {
    position: absolute;
    left: 16px;
    bottom: 12px;
    z-index: 3;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
}

.detail-section-card,
.side-card {
    padding: 24px;
}

.detail-section-card p {
    margin: 12px 0 0;
    color: var(--color-muted);
    font-size: 1.02rem;
    line-height: 2;
}

.movie-data-list {
    display: grid;
    gap: 12px;
    margin: 16px 0 0;
}

.movie-data-list div {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(212, 165, 116, 0.36);
}

.movie-data-list dt {
    color: #9a6a4b;
    font-weight: 800;
}

.movie-data-list dd {
    margin: 0;
}

.side-related {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 8px;
}

.side-related img {
    width: 58px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #704121, #ffc96b);
}

.side-related strong,
.side-related small {
    display: block;
}

.side-related small {
    margin-top: 5px;
    color: var(--color-muted);
}

.related-section {
    padding-top: 0;
}

.site-footer {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(135deg, #2d1609, #623112);
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.footer-brand p {
    max-width: 560px;
    margin: 14px 0 0;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.82);
}

.footer-links a:hover {
    color: #fff;
}

[hidden] {
    display: none !important;
}

@keyframes flame-flicker {
    0%,
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    50% {
        opacity: 0.86;
        transform: translateY(-1px) scale(1.03);
    }
}

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

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

    .ranking-panel {
        position: static;
    }

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

    .filter-reset {
        grid-column: 1 / -1;
    }
}

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

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

    .mobile-nav.is-open {
        display: block;
    }

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

    .hero {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 92px;
        padding-bottom: 110px;
    }

    .hero-cover {
        width: min(240px, 70vw);
        margin: 0;
        transform: rotate(0deg);
    }

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

    .detail-poster {
        width: min(220px, 70vw);
    }

    .section-heading,
    .footer-inner {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1200px);
    }

    .brand-text {
        font-size: 1.08rem;
    }

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

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

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

    .movie-info {
        padding: 12px;
    }

    .movie-line {
        min-height: auto;
        font-size: 0.86rem;
    }

    .filter-panel {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .ranking-row {
        grid-template-columns: 46px 60px minmax(0, 1fr);
    }

    .ranking-row img {
        width: 60px;
        height: 82px;
    }

    .ranking-rating {
        grid-column: 3;
    }

    .page-hero {
        padding: 70px 0 56px;
    }
}

@media (max-width: 430px) {
    .movie-grid,
    .compact-grid,
    .category-card-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .detail-copy h1 {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }
}
