:root {
    color-scheme: light;
    --amber-950: #451a03;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-300: #fcd34d;
    --amber-100: #fef3c7;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-100: #f1f5f9;
    --paper: #fffaf0;
    --white: #ffffff;
    --black: #000000;
    --shadow-soft: 0 18px 45px rgba(69, 26, 3, 0.15);
    --shadow-card: 0 14px 32px rgba(15, 23, 42, 0.13);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: #fff7ed;
}

body {
    margin: 0;
    color: var(--slate-900);
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #f8fafc 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, rgba(69, 26, 3, 0.96), rgba(146, 64, 14, 0.96), rgba(69, 26, 3, 0.96));
    box-shadow: 0 10px 30px rgba(69, 26, 3, 0.28);
    backdrop-filter: blur(14px);
}

.topbar {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    color: var(--amber-950);
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 10px 22px rgba(245, 158, 11, 0.35);
}

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

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

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

.nav-link {
    color: #ffedd5;
    padding: 10px 14px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #451a03;
    background: #facc15;
    transform: translateY(-1px);
}

.header-search,
.hero-search,
.search-page-form {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.header-search input,
.hero-search input,
.search-page-form input {
    min-width: 220px;
    border: 0;
    outline: 0;
    color: var(--white);
    background: transparent;
    padding: 11px 16px;
}

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

.header-search button,
.hero-search button,
.search-page-form button {
    border: 0;
    color: var(--amber-950);
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    font-weight: 800;
    padding: 11px 18px;
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

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

.hero-shell {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: radial-gradient(circle at top left, rgba(253, 224, 71, 0.34), transparent 34%), linear-gradient(135deg, #451a03 0%, #78350f 44%, #92400e 100%);
    padding: 52px 0 82px;
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(42px);
    opacity: 0.42;
    pointer-events: none;
}

.hero-glow--one {
    width: 260px;
    height: 260px;
    left: 8%;
    top: 12%;
    background: #facc15;
}

.hero-glow--two {
    width: 340px;
    height: 340px;
    right: 7%;
    bottom: 8%;
    background: #fb923c;
}

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

.hero-slider {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    display: grid;
    position: absolute;
    inset: 0;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: center;
    gap: 44px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.hero-slide::before {
    position: absolute;
    inset: -42px;
    z-index: -2;
    content: "";
    opacity: 0.22;
    background-image: var(--poster-image), linear-gradient(135deg, #78350f, #111827);
    background-size: cover;
    background-position: center;
    filter: blur(34px) saturate(1.2);
}

.hero-slide::after {
    position: absolute;
    inset: -64px;
    z-index: -1;
    content: "";
    background: linear-gradient(90deg, rgba(69, 26, 3, 0.94), rgba(69, 26, 3, 0.74), rgba(69, 26, 3, 0.55));
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    color: #facc15;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-copy h1,
.sub-hero h1,
.detail-hero h1 {
    margin: 12px 0 16px;
    font-size: clamp(2.4rem, 7vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-one-line {
    max-width: 720px;
    margin: 0 0 24px;
    color: #ffedd5;
    font-size: clamp(1.05rem, 2.2vw, 1.4rem);
    line-height: 1.75;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #78350f;
    background: #fef3c7;
    font-size: 0.82rem;
    font-weight: 800;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    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: var(--amber-950);
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.3);
}

.button-ghost {
    color: #fef3c7;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-poster-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(14px);
}

.hero-poster-image {
    aspect-ratio: 3 / 4;
    min-height: 430px;
    background-image: var(--poster-image), linear-gradient(135deg, #fbbf24, #78350f 55%, #0f172a);
    background-size: cover;
    background-position: center;
}

.hero-poster-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    color: #fef3c7;
}

.hero-poster-info strong {
    font-size: 1.08rem;
}

.hero-poster-info span {
    color: #fcd34d;
    font-size: 0.9rem;
}

.hero-thumb-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.hero-thumb {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    color: #ffedd5;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    text-align: left;
    cursor: pointer;
}

.hero-thumb.is-active,
.hero-thumb:hover {
    color: #451a03;
    background: #facc15;
}

.thumb-index,
.slim-rank {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    color: #451a03;
    background: #fde68a;
    font-weight: 900;
}

.hero-search {
    width: min(100%, 760px);
    margin: 28px auto 0;
    background: rgba(255, 255, 255, 0.16);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 15px 18px;
}

.hero-search button {
    padding: 15px 24px;
}

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

.section-overlap {
    position: relative;
    z-index: 4;
    margin-top: -42px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    padding: 34px;
}

.section-block--compact {
    padding-top: 20px;
}

.section-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 26px;
}

.section-title-row h2 {
    margin: 5px 0 0;
    font-size: clamp(1.55rem, 3.2vw, 2.45rem);
    line-height: 1.12;
}

.section-title-row--inside {
    margin-bottom: 18px;
}

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

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

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

.movie-grid--dense {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.movie-grid--related,
.mini-card-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.movie-card {
    min-width: 0;
}

.movie-card__link {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(146, 64, 14, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card__link:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: var(--shadow-card);
}

.movie-poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-image: var(--poster-image), linear-gradient(135deg, #fbbf24, #92400e 52%, #111827);
    background-size: cover;
    background-position: center;
}

.movie-grid--dense .movie-poster,
.movie-grid--related .movie-poster,
.mini-card-row .movie-poster {
    aspect-ratio: 3 / 4;
}

.movie-poster::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.64));
}

.poster-year,
.poster-type,
.rank-corner {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.poster-year {
    top: 10px;
    right: 10px;
    color: #451a03;
    background: #facc15;
    padding: 5px 9px;
}

.poster-type {
    left: 10px;
    bottom: 10px;
    color: #fef3c7;
    background: rgba(69, 26, 3, 0.78);
    padding: 5px 9px;
}

.rank-corner {
    left: 10px;
    top: 10px;
    color: #451a03;
    background: linear-gradient(135deg, #fde68a, #f97316);
    padding: 5px 10px;
}

.movie-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--amber-700);
    font-size: 0.8rem;
    font-weight: 800;
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 2.8em;
    margin: 0;
    overflow: hidden;
    color: var(--slate-950);
    font-size: 1.05rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--slate-700);
    font-size: 0.9rem;
    line-height: 1.65;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.movie-grid--dense .movie-card p,
.movie-grid--related .movie-card p,
.mini-card-row .movie-card p {
    -webkit-line-clamp: 2;
}

.tag-row {
    margin-top: auto;
}

.tag-row span {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 0.74rem;
    background: #ffedd5;
}

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

.category-card,
.category-overview-card,
.content-card,
.sidebar-card,
.player-card {
    border: 1px solid rgba(146, 64, 14, 0.13);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
}

.category-card,
.category-overview-card {
    padding: 22px;
}

.category-card__head,
.category-overview-card__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.category-card__head span,
.category-overview-card__title span {
    font-size: 1.35rem;
    font-weight: 900;
}

.category-card__head strong,
.category-overview-card__title strong {
    color: var(--amber-950);
    border-radius: 999px;
    background: #facc15;
    padding: 6px 12px;
    font-size: 0.86rem;
}

.category-card p,
.category-overview-card p {
    color: var(--slate-700);
    line-height: 1.7;
}

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

.slim-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    background: #fff7ed;
    padding: 10px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.slim-link:hover {
    background: #fde68a;
    transform: translateX(4px);
}

.slim-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--amber-500);
}

.slim-title {
    min-width: 0;
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slim-meta {
    color: var(--slate-700);
    font-size: 0.82rem;
    white-space: nowrap;
}

.rank-entry {
    padding: 70px 0;
    color: #fef3c7;
    background: linear-gradient(135deg, #451a03, #78350f 52%, #92400e);
}

.rank-entry__inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 36px;
}

.rank-entry__copy h2 {
    margin: 8px 0 12px;
    color: var(--white);
    font-size: clamp(1.9rem, 4vw, 3.5rem);
}

.rank-entry__copy p {
    color: #ffedd5;
    line-height: 1.8;
}

.rank-list--home .slim-link,
.rank-list--columns .slim-link {
    background: rgba(255, 255, 255, 0.12);
    color: #fef3c7;
}

.rank-list--home .slim-link:hover,
.rank-list--columns .slim-link:hover {
    color: #451a03;
    background: #facc15;
}

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

.sub-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: radial-gradient(circle at top right, rgba(250, 204, 21, 0.28), transparent 30%), linear-gradient(135deg, #451a03, #78350f 52%, #92400e);
    padding: 72px 0;
}

.sub-hero p,
.detail-hero p {
    max-width: 820px;
    color: #ffedd5;
    font-size: 1.08rem;
    line-height: 1.8;
}

.sub-hero--rank {
    background: radial-gradient(circle at top left, rgba(248, 113, 113, 0.24), transparent 32%), linear-gradient(135deg, #3b0707, #78350f, #b45309);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #fde68a;
    font-size: 0.92rem;
    font-weight: 800;
}

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

.stat-row,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.stat-row span,
.chip-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    color: #451a03;
    background: #fde68a;
    padding: 9px 13px;
    font-weight: 900;
}

.stat-row strong,
.chip-link span {
    border-radius: 999px;
    background: rgba(69, 26, 3, 0.12);
    padding: 2px 7px;
}

.chip-link.is-active,
.chip-link:hover {
    color: #fef3c7;
    background: #78350f;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto auto;
    gap: 12px;
    margin: 24px 0 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 14px;
}

.filter-panel input,
.filter-panel select,
.filter-panel button,
.search-page-form input {
    border: 1px solid rgba(146, 64, 14, 0.18);
    border-radius: 999px;
    color: var(--slate-900);
    background: #fffaf0;
    padding: 12px 14px;
    outline: 0;
}

.filter-panel button {
    color: #451a03;
    background: #facc15;
    font-weight: 900;
    cursor: pointer;
}

.result-count {
    margin-bottom: 18px;
    color: var(--slate-700);
    font-weight: 800;
}

.detail-hero {
    background-image: linear-gradient(90deg, rgba(69, 26, 3, 0.96), rgba(69, 26, 3, 0.82), rgba(69, 26, 3, 0.7)), var(--poster-image), linear-gradient(135deg, #451a03, #111827);
    background-size: cover;
    background-position: center;
}

.detail-hero__content {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: center;
    gap: 34px;
}

.detail-cover {
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 26px;
    background-image: var(--poster-image), linear-gradient(135deg, #f59e0b, #78350f 55%, #0f172a);
    background-size: cover;
    background-position: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

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

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

.player-card,
.content-card,
.sidebar-card {
    padding: 22px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.76), rgba(69, 26, 3, 0.72)), var(--poster-image), linear-gradient(135deg, #111827, #78350f);
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.72);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 10px;
    border: 0;
    color: #fef3c7;
    background: radial-gradient(circle, rgba(69, 26, 3, 0.18), rgba(2, 6, 23, 0.62));
    text-align: center;
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.play-icon {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    margin-inline: auto;
    border-radius: 999px;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    box-shadow: 0 18px 45px rgba(245, 158, 11, 0.38);
}

.play-icon::before {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 22px solid #451a03;
    content: "";
}

.play-overlay strong {
    font-size: 1.25rem;
}

.play-overlay small {
    color: #fde68a;
}

.player-status {
    position: absolute;
    right: 14px;
    bottom: 14px;
    border-radius: 999px;
    color: #fef3c7;
    background: rgba(2, 6, 23, 0.72);
    padding: 7px 12px;
    font-size: 0.82rem;
}

.content-card h2,
.sidebar-card h2 {
    margin: 0 0 12px;
    font-size: 1.45rem;
}

.content-card p,
.review-card p,
.info-list {
    color: var(--slate-700);
    line-height: 1.85;
}

.info-list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.info-list li {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    border-bottom: 1px dashed rgba(146, 64, 14, 0.18);
    padding-bottom: 10px;
}

.info-list strong {
    color: var(--amber-700);
}

.info-list a {
    color: var(--amber-700);
    font-weight: 900;
}

.tag-row--block {
    margin-top: 12px;
}

.search-page-form {
    width: min(100%, 780px);
    margin-bottom: 26px;
    border: 0;
    background: transparent;
}

.search-page-form input {
    min-width: 0;
    flex: 1;
    color: var(--slate-900);
}

.search-results {
    display: grid;
    gap: 16px;
}

.search-result-card,
.empty-state {
    border: 1px solid rgba(146, 64, 14, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.search-result-card h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.search-result-card p {
    color: var(--slate-700);
    line-height: 1.7;
}

.sitemap-page h2 {
    margin-top: 34px;
}

.sitemap-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
}

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

.sitemap-list a {
    color: var(--amber-800);
    font-weight: 700;
}

.site-footer {
    color: #ffedd5;
    background: linear-gradient(135deg, #451a03, #78350f 55%, #451a03);
    padding: 46px 0;
}

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

.footer-brand {
    margin-bottom: 12px;
    color: #facc15;
    font-size: 1.4rem;
    font-weight: 900;
}

.site-footer p {
    color: #fed7aa;
    line-height: 1.75;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #facc15;
    font-size: 1.08rem;
}

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

.footer-links--simple {
    grid-template-columns: 1fr;
}

.footer-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
}

.footer-links a:hover {
    color: #451a03;
    background: #facc15;
}

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

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

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

    .hero-poster-image {
        min-height: 360px;
    }

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

@media (max-width: 860px) {
    .mobile-menu-button {
        display: block;
    }

    .nav-panel {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 78px;
        flex-direction: column;
        align-items: stretch;
        border-radius: 22px;
        background: rgba(69, 26, 3, 0.98);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
        padding: 18px;
    }

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

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

    .header-search input {
        min-width: 0;
    }

    .hero-slider {
        min-height: 760px;
    }

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

    .hero-thumb-row {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .movie-grid--featured,
    .movie-grid--rank,
    .movie-grid--dense,
    .category-grid,
    .category-overview-grid,
    .rank-entry__inner,
    .footer-grid,
    .detail-hero__content,
    .sitemap-list--movies {
        grid-template-columns: 1fr 1fr;
    }

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

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

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

    .hero-shell {
        padding-top: 30px;
    }

    .hero-slider {
        min-height: 720px;
    }

    .hero-copy h1,
    .sub-hero h1,
    .detail-hero h1 {
        font-size: clamp(2.2rem, 12vw, 3.4rem);
    }

    .hero-poster-image {
        min-height: 300px;
    }

    .hero-search,
    .search-page-form {
        border-radius: 22px;
        flex-direction: column;
        align-items: stretch;
    }

    .movie-grid,
    .movie-grid--featured,
    .movie-grid--rank,
    .movie-grid--dense,
    .movie-grid--related,
    .mini-card-row,
    .category-grid,
    .category-overview-grid,
    .rank-entry__inner,
    .footer-grid,
    .detail-hero__content,
    .sitemap-list--movies {
        grid-template-columns: 1fr;
    }

    .section-overlap {
        padding: 22px;
    }

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

    .detail-cover {
        width: min(100%, 280px);
    }
}
