:root {
    --bg: #fffaf2;
    --bg-soft: #fff4df;
    --text: #1c1209;
    --muted: #766657;
    --border: rgba(117, 75, 26, 0.14);
    --amber: #f59e0b;
    --orange: #ea580c;
    --brown: #78350f;
    --brown-dark: #431407;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(120, 53, 15, 0.15);
    --shadow-strong: 0 28px 70px rgba(67, 20, 7, 0.32);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #78350f 0%, #92400e 45%, #c2410c 100%);
    box-shadow: 0 18px 35px rgba(67, 20, 7, 0.22);
}

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

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

.brand {
    font-size: 21px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7c2d12;
    background: linear-gradient(135deg, #fde68a, #ffffff);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.desktop-nav,
.desktop-category-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.desktop-nav a,
.desktop-category-nav a {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
    font-size: 14px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-category-nav a:hover,
.desktop-nav a.is-active {
    color: #fde68a;
    transform: translateY(-1px);
}

.desktop-category-nav {
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

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

.header-search input,
.mobile-panel input,
.search-card input,
.filter-panel input,
.filter-panel select {
    border: 1px solid rgba(255, 255, 255, 0.22);
    outline: none;
    border-radius: 999px;
    color: inherit;
}

.header-search input {
    width: 230px;
    padding: 9px 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

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

.header-search button,
.mobile-panel button,
.search-card button {
    border: 0;
    border-radius: 999px;
    color: #7c2d12;
    background: #ffffff;
    font-weight: 800;
    padding: 9px 16px;
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    padding: 10px;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: currentColor;
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 18px 16px 22px;
    background: rgba(67, 20, 7, 0.98);
}

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

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

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

.mobile-panel input {
    min-width: 0;
    flex: 1;
    padding: 10px 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 70% 30%, rgba(251, 191, 36, 0.38), transparent 30%), linear-gradient(110deg, #431407 0%, #78350f 42%, #c2410c 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.9) 1.5px, transparent 1.5px);
    background-size: 42px 42px;
    animation: pulsePattern 7s ease-in-out infinite alternate;
}

.hero-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.24;
}

.hero-glow-one {
    top: 80px;
    right: 8%;
    background: #fde68a;
}

.hero-glow-two {
    left: 4%;
    bottom: 20px;
    background: #fb923c;
}

.hero-container {
    position: relative;
    z-index: 2;
    min-height: 640px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 56px;
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fcd34d;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 18px 0 10px;
    max-width: 820px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero h2 {
    margin: 0 0 16px;
    font-size: clamp(25px, 3vw, 42px);
}

.hero p {
    max-width: 720px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 19px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 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: #ffffff;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.button-glass {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: var(--shadow-strong);
    aspect-ratio: 3 / 4;
    background: rgba(255, 255, 255, 0.08);
}

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

.hero-poster:hover img {
    transform: scale(1.04);
}

.hero-poster span {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #7c2d12;
    background: #fde68a;
    font-weight: 900;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 54px;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 38px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.35);
}

.hero-dots button.is-active {
    background: #ffffff;
}

.home-search-block {
    position: relative;
    z-index: 4;
    margin-top: -44px;
}

.search-card {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

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

.search-card form {
    display: flex;
    gap: 10px;
}

.search-card input {
    min-width: 0;
    flex: 1;
    padding: 13px 16px;
    color: var(--text);
    border-color: var(--border);
    background: #fffaf2;
}

.search-card button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

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

.soft-bg {
    background: linear-gradient(180deg, #fff7eb 0%, #ffffff 100%);
}

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

.section-heading span {
    color: var(--orange);
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.14;
}

.section-heading a {
    color: var(--orange);
    font-weight: 900;
}

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

.movie-grid-compact {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.movie-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.09);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f8e4c5;
}

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

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

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #7c2d12;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #7c2d12;
    background: #fde68a;
    font-weight: 900;
}

.movie-info {
    padding: 16px;
}

.movie-meta,
.movie-score-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.movie-meta span,
.movie-score-row span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #fff4df;
}

.movie-info h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.32;
}

.movie-info h3 a:hover,
.ranking-row h2 a:hover,
.info-list a:hover {
    color: var(--orange);
}

.movie-info p {
    min-height: 56px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 26px;
    margin-bottom: 12px;
}

.movie-tags span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

.movie-card-compact .movie-info {
    padding: 13px;
}

.movie-card-compact .movie-info h3 {
    font-size: 15px;
}

.movie-card-compact .movie-info p {
    min-height: 48px;
    font-size: 13px;
}

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

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

.category-card {
    overflow: hidden;
    border-radius: var(--radius);
    color: #ffffff;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #b45309, #ea580c);
}

.category-card-main {
    display: block;
    min-height: 190px;
    padding: 22px;
}

.category-icon {
    display: block;
    font-size: 34px;
    margin-bottom: 16px;
}

.category-name {
    display: block;
    font-size: 22px;
    font-weight: 900;
}

.category-card strong {
    display: inline-flex;
    margin: 8px 0;
    padding: 3px 10px;
    border-radius: 999px;
    color: #7c2d12;
    background: rgba(255, 255, 255, 0.86);
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.category-samples {
    display: grid;
    gap: 6px;
    padding: 0 22px 22px;
}

.category-samples a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

.category-samples a:hover {
    color: #fde68a;
}

.from-red-orange {
    background: linear-gradient(135deg, #991b1b, #ea580c);
}

.from-amber-gold {
    background: linear-gradient(135deg, #92400e, #f59e0b);
}

.from-brown-amber {
    background: linear-gradient(135deg, #78350f, #d97706);
}

.from-slate-orange {
    background: linear-gradient(135deg, #1f2937, #ea580c);
}

.from-rose-orange {
    background: linear-gradient(135deg, #be123c, #fb923c);
}

.from-indigo-amber {
    background: linear-gradient(135deg, #4338ca, #f59e0b);
}

.from-green-amber {
    background: linear-gradient(135deg, #047857, #d97706);
}

.from-stone-gold {
    background: linear-gradient(135deg, #44403c, #ca8a04);
}

.from-pink-amber {
    background: linear-gradient(135deg, #be185d, #f59e0b);
}

.from-blue-orange {
    background: linear-gradient(135deg, #1d4ed8, #ea580c);
}

.page-hero {
    color: #ffffff;
    padding: 92px 0 82px;
    background: radial-gradient(circle at 76% 18%, rgba(253, 230, 138, 0.35), transparent 28%), linear-gradient(110deg, #431407, #78350f 48%, #c2410c);
}

.page-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
}

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

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

.filter-panel {
    margin-bottom: 26px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
}

.filter-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 0.8fr;
    gap: 14px;
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 12px 14px;
    color: var(--text);
    border-color: var(--border);
    background: #fffaf2;
}

.filter-count {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.no-results {
    display: none;
    padding: 28px;
    text-align: center;
    color: var(--muted);
    border-radius: var(--radius);
    background: #ffffff;
}

.no-results.is-visible {
    display: block;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 54px 82px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
}

.ranking-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #7c2d12;
    background: #fde68a;
    font-weight: 900;
}

.ranking-cover {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 3 / 4;
    background: #f8e4c5;
}

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

.ranking-row h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.ranking-row p {
    margin: 0 0 8px;
    color: var(--muted);
}

.ranking-row > strong {
    color: var(--orange);
    font-size: 24px;
}

.detail-hero {
    color: #ffffff;
    padding: 72px 0;
    background: radial-gradient(circle at 80% 20%, rgba(253, 230, 138, 0.35), transparent 30%), linear-gradient(120deg, #431407 0%, #78350f 50%, #c2410c 100%);
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 46px;
    align-items: center;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-strong);
}

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

.detail-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #7c2d12;
    background: #ffffff;
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.26);
}

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

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

.detail-copy h1 {
    margin: 14px 0 14px;
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1.08;
}

.detail-copy p {
    max-width: 800px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.detail-stats span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

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

.player-section {
    padding: 56px 0 20px;
    background: #120a05;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #000000;
    box-shadow: var(--shadow-strong);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.74));
    cursor: pointer;
}

.player-overlay.is-hidden {
    display: none;
}

.player-play-icon {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #7c2d12;
    background: #ffffff;
    font-size: 30px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.26);
}

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

.detail-content-block {
    background: #fffaf2;
}

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

.detail-article,
.detail-side {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
}

.detail-article {
    padding: 30px;
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 16px;
    font-size: 25px;
}

.detail-article h2:not(:first-child) {
    margin-top: 28px;
}

.detail-article p {
    margin: 0;
    color: #4d3d30;
    font-size: 17px;
}

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

.info-list div {
    padding: 12px;
    border-radius: 16px;
    background: #fff7eb;
}

.info-list dt {
    color: var(--muted);
    font-size: 13px;
}

.info-list dd {
    margin: 3px 0 0;
    font-weight: 800;
}

.detail-side {
    padding: 20px;
    position: sticky;
    top: 88px;
}

.side-related {
    display: grid;
    gap: 14px;
}

.side-related .movie-card {
    display: grid;
    grid-template-columns: 92px 1fr;
}

.side-related .movie-poster {
    height: 100%;
    aspect-ratio: 3 / 4;
}

.side-related .movie-info p,
.side-related .movie-tags,
.side-related .movie-score-row {
    display: none;
}

.site-footer {
    color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(180deg, #1f1208 0%, #050302 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr;
    gap: 34px;
    padding: 48px 0;
}

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

.site-footer h2 {
    color: #ffffff;
    font-size: 18px;
    margin: 0 0 14px;
}

.site-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-bottom {
    padding: 18px 16px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

@keyframes pulsePattern {
    from {
        opacity: 0.12;
        transform: scale(1);
    }

    to {
        opacity: 0.26;
        transform: scale(1.03);
    }
}

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

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

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

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

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

    .hero,
    .hero-container {
        min-height: 780px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 26px;
        align-content: center;
        padding: 52px 0 82px;
    }

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

    .hero-dots {
        left: 0;
        bottom: 34px;
    }

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

    .filter-grid,
    .detail-hero-grid,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-side {
        position: static;
    }
}

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

    .brand {
        font-size: 18px;
    }

    .hero h1,
    .page-hero h1,
    .detail-copy h1 {
        letter-spacing: -0.03em;
    }

    .search-card form,
    .mobile-panel form {
        flex-direction: column;
    }

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

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

    .movie-info p,
    .movie-tags {
        display: none;
    }

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

    .ranking-row > strong {
        grid-column: 3;
        font-size: 18px;
    }

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

    .side-related .movie-card {
        grid-template-columns: 82px 1fr;
    }
}
