:root {
    --color-bg: #fff7ed;
    --color-surface: #ffffff;
    --color-surface-soft: #fffbeb;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-line: #fde68a;
    --color-primary: #d97706;
    --color-primary-dark: #92400e;
    --color-secondary: #ea580c;
    --shadow-soft: 0 18px 45px rgba(146, 64, 14, 0.14);
    --shadow-card: 0 12px 30px rgba(120, 53, 15, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-text);
    background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 42%, #ffffff 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
    border-bottom: 1px solid rgba(217, 119, 6, 0.18);
    box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.28);
}

.brand-name {
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #92400e, #ea580c, #b45309);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    padding: 9px 14px;
    border-radius: 999px;
    color: #78350f;
    font-weight: 700;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: var(--color-primary);
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.22);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(330px, 32vw);
    padding: 6px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #fde68a;
}

.header-search input,
.wide-search input,
.filter-controls input,
.filter-controls select {
    border: 0;
    outline: 0;
    min-width: 0;
    background: transparent;
    color: var(--color-text);
}

.header-search input {
    flex: 1;
    padding: 6px 8px 6px 12px;
}

.header-search button,
.wide-search button,
.primary-button,
.ghost-button,
.text-button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: 0.22s ease;
}

.header-search button,
.wide-search button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.25);
}

.header-search button {
    padding: 7px 13px;
}

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

.primary-button:hover,
.wide-search button:hover,
.header-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(217, 119, 6, 0.34);
}

.ghost-button {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.22);
}

.text-button {
    display: inline-flex;
    margin-top: 14px;
    color: var(--color-primary-dark);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #ffedd5;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #92400e;
}

.mobile-nav {
    display: none;
    padding: 8px 16px 18px;
    border-top: 1px solid #fde68a;
    background: #fffbeb;
}

.mobile-nav a {
    display: block;
    padding: 12px;
    border-radius: 12px;
    color: #78350f;
    font-weight: 800;
}

.mobile-nav a:hover {
    background: #ffedd5;
}

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

.hero-carousel {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: #1c1917;
}

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

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

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

.hero-overlay,
.detail-hero-overlay,
.category-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 28%, rgba(245, 158, 11, 0.25), transparent 30%),
        linear-gradient(90deg, rgba(28, 25, 23, 0.94), rgba(120, 53, 15, 0.72) 48%, rgba(28, 25, 23, 0.5));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    gap: 44px;
    align-items: center;
}

.hero-copy {
    max-width: 760px;
    color: #fff7ed;
}

.hero-kicker,
.detail-kicker,
.page-hero span,
.category-hero-content span {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(217, 119, 6, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.35);
    font-weight: 800;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero-copy p {
    max-width: 690px;
    margin: 0 0 22px;
    color: #ffedd5;
    font-size: clamp(1rem, 2vw, 1.35rem);
}

.hero-meta,
.movie-meta,
.horizontal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.11);
}

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

.hero-poster {
    position: relative;
    display: block;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
}

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

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

.hero-arrow,
.hero-dot {
    border: 0;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
}

.hero-dot.is-active {
    width: 34px;
    border-radius: 999px;
    background: #f59e0b;
}

.page-section {
    padding: 54px 0;
}

.quick-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
    gap: 22px;
    align-items: center;
    margin-top: -42px;
    position: relative;
    z-index: 6;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(251, 191, 36, 0.45);
    box-shadow: var(--shadow-soft);
}

.quick-search-panel h2,
.section-heading h2,
.ranking-heading h2,
.filter-bar h2,
.detail-card h2,
.related-panel h2,
.poster-card h2,
.ranking-card-list h2,
.ranking-side-note h2 {
    margin: 0;
    color: #78350f;
    line-height: 1.15;
}

.quick-search-panel p,
.section-heading p,
.filter-bar p,
.ranking-side-note p {
    margin: 6px 0 0;
    color: var(--color-muted);
}

.wide-search {
    display: flex;
    gap: 10px;
    padding: 8px;
    border: 1px solid #fde68a;
    border-radius: 999px;
    background: #fffbeb;
}

.wide-search input {
    flex: 1;
    padding: 12px 14px;
}

.wide-search button {
    padding: 0 22px;
}

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

.section-heading > div {
    display: grid;
    gap: 6px;
}

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

.section-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    border-radius: 14px;
    font-weight: 900;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px solid rgba(251, 191, 36, 0.24);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(120, 53, 15, 0.18);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #451a03;
}

.movie-card.compact .movie-cover {
    aspect-ratio: 3 / 4;
}

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

.movie-card:hover .movie-cover img,
.horizontal-card:hover img,
.category-tile:hover img {
    transform: scale(1.07);
}

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 44%, rgba(0, 0, 0, 0.6));
}

.score-badge,
.rank-badge,
.mini-rank {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
}

.score-badge {
    top: 12px;
    right: 12px;
    min-width: 46px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.rank-badge {
    left: 12px;
    top: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(28, 25, 23, 0.72);
}

.movie-info {
    padding: 16px;
}

.movie-info h2,
.horizontal-card h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    line-height: 1.32;
}

.movie-info h2 a:hover,
.horizontal-card h3 a:hover {
    color: var(--color-primary);
}

.movie-info p,
.horizontal-card p {
    display: -webkit-box;
    min-height: 3.1em;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 0.94rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta span,
.horizontal-meta span {
    color: #78716c;
    font-size: 0.82rem;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.movie-tags span,
.tag-list span,
.category-samples span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    color: #92400e;
    background: #ffedd5;
    font-size: 0.82rem;
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: 18px;
    border-radius: var(--radius-md);
    color: #ffffff;
    box-shadow: var(--shadow-card);
}

.category-tile img,
.category-glow {
    position: absolute;
    inset: 0;
}

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

.category-glow {
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(67, 20, 7, 0.92));
}

.category-tile strong,
.category-tile small,
.category-tile em {
    position: relative;
    z-index: 2;
}

.category-tile strong {
    font-size: 1.28rem;
}

.category-tile small,
.category-tile em {
    color: #fed7aa;
    font-style: normal;
}

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

.ranking-panel,
.ranking-side-note,
.ranking-card-list,
.detail-card,
.related-panel,
.poster-card,
.player-card {
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid rgba(251, 191, 36, 0.24);
    box-shadow: var(--shadow-card);
}

.ranking-panel,
.ranking-side-note,
.ranking-card-list,
.related-panel,
.poster-card {
    padding: 22px;
}

.ranking-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.ranking-heading a {
    color: var(--color-primary);
    font-weight: 900;
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.horizontal-card:hover {
    background: #fffbeb;
}

.horizontal-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: #451a03;
}

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

.mini-rank {
    left: 6px;
    top: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d97706, #ea580c);
    font-size: 0.8rem;
}

.page-hero,
.category-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff7ed;
    background: #451a03;
}

.page-hero {
    padding: 86px 0;
    background:
        radial-gradient(circle at 18% 10%, rgba(251, 191, 36, 0.33), transparent 32%),
        linear-gradient(120deg, #92400e, #ea580c);
}

.page-hero h1,
.category-hero h1,
.detail-hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p,
.category-hero p,
.detail-hero p {
    max-width: 780px;
    margin: 16px 0 0;
    color: #ffedd5;
    font-size: 1.15rem;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.category-overview-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 18px;
}

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

.category-overview-cover span {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.6);
    font-weight: 900;
}

.category-overview-card h2 {
    margin: 6px 0;
    color: #78350f;
}

.category-overview-card p {
    color: var(--color-muted);
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

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

.category-hero-content {
    position: relative;
    z-index: 2;
    padding: 86px 0;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(360px, 1.3fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 26px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.filter-controls {
    display: grid;
    grid-template-columns: 1fr 150px 150px;
    gap: 10px;
}

.filter-controls.full {
    grid-template-columns: minmax(220px, 1fr) 150px 130px 130px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #fde68a;
    background: #fffbeb;
}

.movie-card.is-hidden,
.horizontal-card.is-hidden {
    display: none;
}

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

.ranking-card-list .horizontal-card {
    grid-template-columns: 160px minmax(0, 1fr);
}

.ranking-side-note {
    position: sticky;
    top: 92px;
}

.ranking-side-note .primary-button {
    margin-top: 18px;
}

.detail-hero {
    min-height: 430px;
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 44px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 62px;
    color: #fed7aa;
    font-size: 0.95rem;
}

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

.detail-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: 28px;
    align-items: end;
}

.detail-score {
    width: 130px;
    height: 130px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.detail-score strong {
    display: block;
    font-size: 2.6rem;
    line-height: 1;
    color: #fde68a;
}

.detail-score span {
    color: #ffedd5;
    font-weight: 800;
}

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

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

.player-card {
    overflow: hidden;
    padding: 0;
    background: #000000;
}

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

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

.player-cover-button {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.52), rgba(0, 0, 0, 0.82));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    color: #92400e;
    background: #fef3c7;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    font-size: 2rem;
}

.player-cover-button strong {
    font-size: 1.35rem;
}

.player-cover-button small {
    color: #fed7aa;
}

.detail-card {
    padding: 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.info-grid span {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 14px;
    background: #fffbeb;
    color: #57534e;
}

.info-grid strong {
    color: #92400e;
}

.prose-card p {
    margin: 16px 0 0;
    color: #44403c;
    font-size: 1.04rem;
    line-height: 1.9;
}

.review-card {
    border-left: 5px solid #d97706;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.detail-sidebar {
    position: sticky;
    top: 94px;
    display: grid;
    gap: 20px;
}

.poster-card img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 16px;
}

.primary-button.block {
    width: 100%;
}

.mobile-related {
    display: none;
}

.site-footer {
    margin-top: 50px;
    color: #ffedd5;
    background: linear-gradient(180deg, #78350f, #451a03);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 30px;
    padding: 46px 0;
}

.footer-grid p {
    max-width: 360px;
    color: #fed7aa;
}

.footer-grid h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 1.05rem;
}

.footer-grid a {
    display: block;
    margin: 7px 0;
    color: #fed7aa;
}

.footer-grid a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 18px 0;
    text-align: center;
    color: #fdba74;
    border-top: 1px solid rgba(253, 186, 116, 0.18);
}

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

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

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

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

    .detail-sidebar,
    .ranking-side-note {
        position: static;
    }
}

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

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

    .hero-carousel {
        height: 640px;
    }

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

    .hero-poster {
        display: none;
    }

    .quick-search-panel,
    .filter-bar,
    .detail-title-row {
        grid-template-columns: 1fr;
    }

    .filter-controls,
    .filter-controls.full {
        grid-template-columns: 1fr;
    }

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

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

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

    .detail-score {
        width: 110px;
        height: 110px;
    }

    .mobile-related {
        display: block;
    }
}

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

    .brand-name {
        font-size: 1.15rem;
    }

    .hero-carousel {
        height: 610px;
    }

    .hero-copy h1,
    .page-hero h1,
    .category-hero h1,
    .detail-hero h1 {
        font-size: 2.25rem;
    }

    .hero-actions,
    .wide-search {
        flex-direction: column;
        align-items: stretch;
        border-radius: 24px;
    }

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

    .horizontal-card,
    .ranking-card-list .horizontal-card {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .info-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
