:root {
    color-scheme: light;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-700: #c2410c;
    --yellow-500: #eab308;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 8px 20px rgba(120, 53, 15, 0.08);
    --shadow-md: 0 18px 42px rgba(120, 53, 15, 0.14);
    --shadow-lg: 0 26px 60px rgba(120, 53, 15, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--amber-50), #fff7ed 45%, #fefce8);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--amber-100), #fed7aa);
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96), rgba(254, 252, 232, 0.96));
    border-bottom: 1px solid rgba(217, 119, 6, 0.16);
    box-shadow: 0 10px 24px rgba(146, 64, 14, 0.08);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--amber-800);
    font-weight: 800;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.brand-text {
    display: grid;
    line-height: 1.1;
}

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

.brand-text small {
    color: var(--amber-600);
    font-size: 0.74rem;
    font-weight: 600;
}

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

.nav-link,
.mobile-link {
    color: var(--amber-700);
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--orange-600);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    position: relative;
}

.header-search input,
.mobile-search input,
.filter-toolbar input,
.filter-toolbar select {
    border: 1px solid rgba(217, 119, 6, 0.32);
    outline: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--gray-800);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 250px;
    padding: 11px 46px 11px 18px;
    border-radius: 999px;
}

.header-search button {
    position: absolute;
    right: 7px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: var(--amber-700);
    background: transparent;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-toolbar input:focus,
.filter-toolbar select:focus {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.menu-button {
    display: none;
    border: 0;
    color: var(--amber-700);
    background: transparent;
    font-size: 1.6rem;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(217, 119, 6, 0.14);
    padding: 14px 20px 18px;
}

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

.mobile-search {
    gap: 10px;
    margin-bottom: 12px;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border-radius: 18px;
}

.mobile-search button,
.primary-button,
.secondary-button,
.section-more,
.filter-reset {
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mobile-search button,
.primary-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.22);
}

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

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

main {
    min-height: 60vh;
}

.hero-slider {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    background: linear-gradient(135deg, #78350f, #9a3412 50%, #ca8a04);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 900ms ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    filter: saturate(1.08);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.15), rgba(17, 24, 39, 0.72)), linear-gradient(90deg, rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.34), rgba(17, 24, 39, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: end;
    min-height: 590px;
    padding: 88px 0 78px;
}

.hero-copy {
    width: min(680px, 100%);
    color: var(--white);
}

.eyebrow,
.badge,
.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    border-radius: 999px;
    font-weight: 800;
}

.eyebrow {
    padding: 8px 15px;
    margin-bottom: 18px;
    background: var(--orange-500);
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 12px;
    font-size: clamp(2.45rem, 5vw, 4.7rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy h2 {
    font-size: clamp(2.2rem, 4.2vw, 4.2rem);
}

.hero-copy p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.12rem;
    max-width: 620px;
}

.hero-meta,
.detail-meta,
.card-meta,
.search-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-meta {
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
}

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

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
}

.secondary-button {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.secondary-button:hover,
.section-more:hover,
.filter-reset:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 1.7rem;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
    width: 34px;
    background: var(--white);
}

.hero-category-strip {
    position: absolute;
    right: 0;
    bottom: 86px;
    z-index: 5;
    display: grid;
    gap: 10px;
    width: min(370px, calc(100% - 40px));
}

.hero-category-strip a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px 0 0 18px;
    background: rgba(17, 24, 39, 0.34);
    backdrop-filter: blur(14px);
}

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

.section-block.soft {
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.72), rgba(254, 243, 199, 0.62));
}

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

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

.section-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.section-heading h2 {
    margin: 0;
    color: var(--gray-800);
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 0;
    color: var(--gray-600);
}

.section-more,
.filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 17px;
    color: var(--orange-700);
    background: var(--white);
    border: 1px solid rgba(217, 119, 6, 0.22);
    box-shadow: var(--shadow-sm);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    background: var(--amber-100);
}

.poster-link img,
.compact-poster img,
.rank-thumb img,
.detail-poster img,
.category-tile img {
    transition: transform 0.45s ease;
}

.movie-card:hover img,
.compact-card:hover img,
.rank-row:hover img,
.category-tile:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.82));
    opacity: 0.76;
}

.play-badge {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    backdrop-filter: blur(12px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.card-label,
.card-year {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    color: var(--white);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.card-label {
    top: 14px;
    right: 14px;
    background: var(--orange-500);
}

.card-year {
    right: 14px;
    bottom: 14px;
    background: rgba(17, 24, 39, 0.72);
}

.card-body {
    padding: 18px;
}

.card-body h2,
.card-body h3 {
    margin: 0 0 8px;
    color: var(--gray-900);
    font-size: 1.08rem;
    line-height: 1.28;
}

.card-body h2 a:hover,
.card-body h3 a:hover,
.compact-card:hover strong,
.rank-row:hover strong {
    color: var(--orange-600);
}

.card-body p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    justify-content: space-between;
    color: var(--gray-600);
    font-size: 0.88rem;
}

.card-meta span:last-child,
.rank-score {
    color: var(--amber-700);
    font-weight: 900;
}

.tag-line {
    margin-top: 10px;
    color: var(--orange-700);
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scroll-shell {
    position: relative;
}

.scroll-rail {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 6px 3px 18px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.scroll-rail::-webkit-scrollbar {
    display: none;
}

.scroll-rail .movie-card {
    flex: 0 0 300px;
}

.rail-controls {
    display: flex;
    justify-content: end;
    gap: 10px;
    margin-top: -8px;
}

.rail-controls button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--gray-700);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

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

.category-tile {
    display: grid;
    overflow: hidden;
    min-height: 250px;
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.tile-art {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: 1fr 1fr;
    height: 150px;
    overflow: hidden;
}

.tile-art img:first-child {
    grid-row: 1 / 3;
}

.tile-copy {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.tile-copy strong {
    color: var(--gray-900);
    font-size: 1.1rem;
}

.tile-copy em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-600);
    font-style: normal;
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.split-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
}

.compact-list,
.rank-list {
    display: grid;
    gap: 14px;
}

.compact-card,
.rank-row {
    display: grid;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card {
    grid-template-columns: 138px 1fr;
}

.compact-card:hover,
.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.compact-poster,
.rank-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: var(--amber-100);
}

.compact-poster {
    height: 84px;
}

.compact-poster em {
    position: absolute;
    right: 8px;
    bottom: 7px;
    padding: 2px 8px;
    color: var(--white);
    background: rgba(17, 24, 39, 0.72);
    border-radius: 999px;
    font-style: normal;
    font-size: 0.75rem;
}

.compact-info {
    display: grid;
    min-width: 0;
}

.compact-info strong,
.rank-info strong {
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-info small,
.rank-info small {
    color: var(--gray-500);
}

.compact-info span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-row {
    grid-template-columns: 58px 92px 1fr auto;
}

.rank-num {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--white);
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    border-radius: 14px;
    font-weight: 900;
}

.rank-thumb {
    height: 58px;
}

.rank-info {
    display: grid;
    min-width: 0;
}

.banner-strip,
.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(120deg, var(--amber-700), var(--orange-600), var(--yellow-500));
}

.banner-strip {
    padding: 66px 0;
    text-align: center;
}

.banner-strip h2,
.page-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1.08;
}

.banner-strip p,
.page-hero p {
    margin: 0 auto 24px;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
}

.page-hero {
    padding: 74px 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.94rem;
}

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

.filter-section {
    padding: 36px 0 58px;
}

.filter-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 190px));
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid rgba(217, 119, 6, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.filter-toolbar label {
    display: grid;
    gap: 7px;
    color: var(--amber-800);
    font-size: 0.86rem;
    font-weight: 800;
}

.filter-toolbar input,
.filter-toolbar select {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border-radius: 15px;
}

.filter-toolbar .filter-search {
    min-width: 0;
}

.detail-hero {
    padding: 46px 0 58px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 34px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4.25;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-lg);
}

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(2.25rem, 4vw, 4rem);
    line-height: 1.05;
}

.detail-copy p {
    margin: 0 0 22px;
    max-width: 780px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
}

.detail-meta {
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.9);
}

.detail-badge {
    padding: 6px 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    padding: 46px 0 60px;
}

.content-card,
.side-card {
    border-radius: 26px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.content-card {
    padding: 28px;
    margin-bottom: 26px;
}

.content-card h2,
.side-card h2 {
    margin: 0 0 16px;
    color: var(--gray-900);
    font-size: 1.45rem;
}

.content-card p {
    margin: 0 0 14px;
    color: var(--gray-700);
}

.content-card .review-text {
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--amber-50), #fff7ed);
}

.player-shell {
    padding: 18px;
}

.video-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #080808;
}

.video-wrap video {
    display: block;
    width: 100%;
    height: 100%;
    background: #050505;
    object-fit: contain;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.92);
    box-shadow: 0 18px 42px rgba(234, 88, 12, 0.34);
    font-size: 2rem;
    transform: translateX(3px);
}

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

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

.info-table div {
    padding: 13px 15px;
    border-radius: 16px;
    background: var(--amber-50);
}

.info-table span {
    display: block;
    color: var(--amber-700);
    font-size: 0.82rem;
    font-weight: 900;
}

.info-table strong {
    color: var(--gray-900);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud span {
    padding: 7px 12px;
    color: var(--orange-700);
    background: #ffedd5;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
}

.side-card {
    position: sticky;
    top: 96px;
    padding: 20px;
}

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

.static-page {
    padding: 52px 0;
}

.static-card {
    max-width: 880px;
    margin: 0 auto 24px;
    padding: 32px;
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.static-card h2 {
    margin: 0 0 14px;
    color: var(--gray-900);
    font-size: 1.7rem;
}

.static-card p,
.static-card li {
    color: var(--gray-700);
}

.is-hidden {
    display: none !important;
}

.site-footer {
    color: var(--amber-100);
    background: linear-gradient(135deg, #78350f, #9a3412 48%, #713f12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.8fr 0.8fr 1fr;
    gap: 34px;
    padding: 52px 0 38px;
}

.footer-brand {
    color: var(--white);
    margin-bottom: 14px;
}

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

.site-footer p {
    margin: 0;
    color: rgba(254, 243, 199, 0.84);
}

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

.site-footer a {
    color: rgba(254, 243, 199, 0.86);
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(253, 230, 138, 0.18);
    color: rgba(254, 243, 199, 0.76);
    font-size: 0.92rem;
}

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

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

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

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

    .side-card {
        position: static;
    }
}

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

    .menu-button {
        display: block;
    }

    .hero-slider,
    .hero-content {
        min-height: 560px;
    }

    .hero-content {
        padding: 78px 0 86px;
    }

    .hero-category-strip {
        display: none;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
    }

    .hero-arrow.prev {
        left: 10px;
    }

    .hero-arrow.next {
        right: 10px;
    }

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

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

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

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

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

    .detail-poster {
        width: min(280px, 72vw);
    }

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

    .footer-bottom {
        flex-direction: column;
    }
}

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

    .brand-text small {
        display: none;
    }

    .hero-slider,
    .hero-content {
        min-height: 520px;
    }

    .hero-copy p {
        font-size: 1rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

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

    .movie-grid,
    .movie-grid.dense,
    .related-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .scroll-rail .movie-card {
        flex-basis: 78vw;
    }

    .compact-card {
        grid-template-columns: 112px 1fr;
    }

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

    .rank-score {
        grid-column: 3;
        width: fit-content;
    }

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

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

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