:root {
    --alley-50: #faf9f7;
    --alley-100: #f5f3ef;
    --rain-50: #f8f9fa;
    --rain-100: #e9ecef;
    --rain-200: #dee2e6;
    --rain-300: #ced4da;
    --rain-400: #adb5bd;
    --rain-500: #6c757d;
    --rain-600: #495057;
    --rain-700: #343a40;
    --rain-800: #212529;
    --rain-900: #121416;
    --mist-50: #f0f4f8;
    --mist-100: #d9e2ec;
    --mist-300: #9fb3c8;
    --mist-400: #829ab1;
    --mist-500: #627d98;
    --mist-600: #486581;
    --mist-700: #334e68;
    --mist-800: #243b53;
    --gold: #facc15;
    --white: #ffffff;
    --shadow-md: 0 10px 24px rgba(18, 20, 22, 0.08);
    --shadow-xl: 0 24px 60px rgba(18, 20, 22, 0.18);
    --radius: 16px;
    --max-width: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--rain-800);
    background: var(--alley-50);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

h1,
h2,
h3 {
    font-family: Georgia, Cambria, "Times New Roman", "Noto Serif SC", serif;
    line-height: 1.2;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--rain-200);
    box-shadow: 0 4px 18px rgba(18, 20, 22, 0.05);
    backdrop-filter: blur(14px);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 76px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.brand-mark,
.footer-logo span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--mist-600), var(--mist-800));
    color: var(--white);
    font-weight: 800;
    box-shadow: var(--shadow-md);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-family: Georgia, Cambria, "Times New Roman", "Noto Serif SC", serif;
    font-size: 22px;
    color: var(--rain-800);
}

.brand-text small {
    color: var(--rain-500);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    white-space: nowrap;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--rain-700);
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--mist-700);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--rain-100);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-button span {
    width: 18px;
    height: 2px;
    background: var(--rain-700);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    padding: 0 24px 18px;
    border-top: 1px solid var(--rain-200);
    background: var(--white);
}

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

.mobile-nav-link {
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--rain-700);
    font-weight: 600;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    background: var(--mist-50);
    color: var(--mist-700);
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: var(--rain-900);
}

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

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

.hero-bg,
.detail-bg,
.page-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg {
    position: absolute;
    inset: 0;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.06));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px 96px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    color: var(--white);
}

.hero-kicker,
.page-hero span {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 820px;
    margin: 16px 0;
    font-size: clamp(36px, 7vw, 72px);
    font-weight: 800;
}

.hero p {
    max-width: 760px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-tags span,
.detail-tags span {
    padding: 7px 13px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-size: 13px;
}

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

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.primary-button {
    color: var(--rain-900);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.ghost-button {
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(10px);
}

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

.hero-controls button {
    border: 0;
    cursor: pointer;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 28px;
    line-height: 1;
    backdrop-filter: blur(12px);
}

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

.hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.content-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 72px 24px;
}

.white-section,
.mist-section,
.editor-section {
    max-width: none;
}

.white-section > *,
.mist-section > *,
.editor-section > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.white-section {
    background: var(--white);
}

.mist-section {
    background: var(--mist-50);
}

.editor-section {
    color: var(--white);
    background: linear-gradient(135deg, var(--mist-600), var(--mist-800));
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.section-heading > div {
    flex: 1;
}

.section-heading h2 {
    margin: 0;
    color: var(--rain-800);
    font-size: clamp(26px, 3vw, 36px);
}

.editor-section .section-heading h2,
.editor-section .section-heading p {
    color: var(--white);
}

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

.section-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: var(--mist-50);
    color: var(--mist-700);
    font-weight: 900;
}

.editor-section .section-icon {
    background: rgba(255, 255, 255, 0.16);
    color: var(--gold);
}

.section-link {
    min-height: 40px;
    background: var(--mist-50);
    color: var(--mist-700);
}

.movie-grid {
    display: grid;
    gap: 24px;
}

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

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

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

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

.movie-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.2s ease;
}

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

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

.card-link {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    height: 270px;
    overflow: hidden;
    background: var(--rain-100);
}

.movie-card.large .poster-wrap {
    height: 360px;
}

.movie-card.small .poster-wrap {
    height: 220px;
}

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

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

.poster-hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    color: var(--white);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.2), transparent);
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-hover {
    opacity: 1;
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 62px;
    height: 62px;
    transform: translate(-50%, -50%) scale(0.85);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.9);
    color: var(--rain-800);
    font-size: 24px;
    transition: transform 0.25s ease;
}

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

.poster-hover p {
    margin: 0;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.type-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 4px 9px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.72);
    color: var(--white);
    font-size: 12px;
    backdrop-filter: blur(8px);
}

.movie-card-body {
    padding: 16px;
}

.movie-card h3 {
    margin: 0 0 10px;
    color: var(--rain-800);
    font-family: inherit;
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--rain-500);
    font-size: 13px;
}

.movie-meta span {
    padding: 3px 8px;
    border-radius: 8px;
    background: var(--mist-50);
    color: var(--mist-700);
    font-weight: 700;
}

.movie-meta em {
    font-style: normal;
}

.horizontal-scroller {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 6px 0 18px;
    scroll-snap-type: x mandatory;
}

.scroller-item {
    width: 300px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

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

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

.category-tile,
.category-overview-card a {
    display: block;
    min-height: 170px;
    padding: 22px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--mist-50), var(--alley-50));
    border: 1px solid rgba(72, 101, 129, 0.12);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-overview-card a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.category-tile span,
.category-overview-body h2 {
    display: block;
    color: var(--rain-800);
    font-size: 22px;
    font-weight: 900;
    font-family: Georgia, Cambria, "Times New Roman", "Noto Serif SC", serif;
}

.category-tile p,
.category-overview-body p {
    margin: 10px 0 0;
    color: var(--rain-600);
    font-size: 14px;
}

.ranking-panel {
    position: sticky;
    top: 100px;
    padding: 24px;
    border-radius: var(--radius);
    color: var(--white);
    background: linear-gradient(135deg, var(--mist-600), var(--mist-800));
    box-shadow: var(--shadow-xl);
}

.ranking-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.ranking-head span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--rain-900);
    background: var(--gold);
    font-weight: 900;
}

.ranking-head h2 {
    margin: 0;
    color: var(--white);
    font-size: 24px;
}

.ranking-panel ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.ranking-panel a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

.rank-index {
    color: var(--gold);
    font-weight: 900;
}

.ranking-panel strong,
.ranking-panel em {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-panel em {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-style: normal;
}

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

.latest-row {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.latest-link {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    min-height: 150px;
}

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

.latest-link div {
    padding: 18px;
}

.latest-link h3 {
    margin: 0 0 8px;
    font-family: inherit;
    font-size: 18px;
}

.latest-link p {
    margin: 0 0 12px;
    color: var(--rain-600);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-link span {
    color: var(--mist-700);
    font-size: 13px;
    font-weight: 700;
}

.glass-card {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    backdrop-filter: blur(12px);
}

.glass-card h3,
.glass-card .movie-meta,
.glass-card .movie-meta em {
    color: var(--white);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--mist-600), var(--mist-800));
}

.page-hero {
    min-height: 360px;
    display: flex;
    align-items: end;
    padding: 96px 24px 56px;
}

.compact-page-hero > div,
.category-page-hero > div {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
}

.page-hero h1 {
    margin: 12px 0 12px;
    font-size: clamp(38px, 6vw, 64px);
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.category-page-hero > img {
    position: absolute;
    inset: 0;
    opacity: 0.38;
}

.category-page-hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.28));
}

.category-page-hero .primary-button {
    margin-top: 26px;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    height: 130px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 18px;
}

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, 180px);
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.filter-bar label {
    display: grid;
    gap: 6px;
    color: var(--rain-600);
    font-size: 13px;
    font-weight: 800;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--rain-200);
    border-radius: 12px;
    padding: 0 14px;
    background: var(--rain-50);
    color: var(--rain-800);
    outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--mist-500);
    box-shadow: 0 0 0 3px rgba(98, 125, 152, 0.16);
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: var(--radius);
    text-align: center;
    background: var(--white);
    color: var(--rain-500);
}

.empty-state.is-visible {
    display: block;
}

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

.ranking-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.ranking-card a {
    display: grid;
    grid-template-columns: 72px 112px minmax(0, 1fr) 72px;
    gap: 18px;
    align-items: center;
    padding: 14px 18px;
}

.ranking-number {
    color: var(--mist-600);
    font-size: 26px;
    font-weight: 900;
}

.ranking-card img {
    width: 112px;
    height: 148px;
    object-fit: cover;
    border-radius: 12px;
}

.ranking-card h2 {
    margin: 0 0 8px;
    color: var(--rain-800);
    font-family: inherit;
}

.ranking-card p {
    margin: 0 0 10px;
    color: var(--rain-600);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-card small {
    color: var(--mist-700);
    font-weight: 700;
}

.ranking-card strong {
    color: var(--gold);
    font-size: 28px;
    text-align: right;
}

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

.detail-bg,
.detail-shade {
    position: absolute;
    inset: 0;
}

.detail-bg {
    opacity: 0.52;
    filter: blur(1px);
}

.detail-shade {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.22));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    min-height: 560px;
    margin: 0 auto;
    padding: 72px 24px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: end;
}

.detail-poster {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

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

.breadcrumb em {
    font-style: normal;
}

.detail-title-block h1 {
    margin: 18px 0;
    font-size: clamp(38px, 6vw, 68px);
}

.detail-title-block p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

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

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

.player-section,
.story-section,
.info-card {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.player-section h2,
.story-section h2,
.info-card h2 {
    margin: 0 0 18px;
    color: var(--rain-800);
    font-size: 24px;
}

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

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.play-button {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
    cursor: pointer;
}

.play-button span {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding-left: 6px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--rain-900);
    font-size: 36px;
    box-shadow: var(--shadow-xl);
}

.player-shell.is-playing .play-button {
    display: none;
}

.player-status {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.58);
    font-size: 12px;
    backdrop-filter: blur(8px);
}

.story-section p {
    margin: 0;
    color: var(--rain-700);
    font-size: 16px;
    line-height: 1.9;
}

.detail-meta-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.detail-meta-list div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rain-100);
}

.detail-meta-list dt {
    color: var(--rain-500);
    font-weight: 800;
}

.detail-meta-list dd {
    margin: 0;
    color: var(--rain-800);
}

.detail-meta-list a {
    color: var(--mist-700);
    font-weight: 800;
}

.compact-list {
    display: grid;
    gap: 12px;
}

.compact-movie {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.compact-movie img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
}

.compact-movie span,
.compact-movie small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-movie span {
    color: var(--rain-800);
    font-weight: 800;
}

.compact-movie small {
    color: var(--rain-500);
}

.site-footer {
    color: var(--rain-300);
    background: var(--rain-800);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 56px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, 0.5fr));
    gap: 36px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 22px;
}

.footer-brand p {
    max-width: 520px;
    color: var(--rain-300);
}

.footer-column h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-family: inherit;
    font-size: 17px;
}

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

.footer-column a:hover {
    color: var(--mist-300);
}

.footer-bottom {
    border-top: 1px solid var(--rain-700);
    padding: 18px 24px;
    text-align: center;
    color: var(--rain-400);
}

@media (max-width: 1120px) {
    .desktop-nav {
        gap: 14px;
    }

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

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

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

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .brand {
        min-width: 0;
    }

    .three-columns,
    .four-columns,
    .five-columns,
    .six-columns,
    .category-grid,
    .category-overview-grid,
    .latest-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

    .ranking-card a {
        grid-template-columns: 52px 86px minmax(0, 1fr);
    }

    .ranking-card strong {
        display: none;
    }

    .ranking-card img {
        width: 86px;
        height: 118px;
    }

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

@media (max-width: 640px) {
    .nav-container {
        min-height: 66px;
        padding: 0 16px;
    }

    .brand-text small {
        display: none;
    }

    .brand-text strong {
        font-size: 19px;
    }

    .hero {
        height: 78vh;
        min-height: 560px;
    }

    .hero-content {
        padding: 0 18px 92px;
    }

    .hero-actions {
        width: 100%;
    }

    .primary-button,
    .ghost-button {
        flex: 1 1 140px;
    }

    .content-section {
        padding: 52px 16px;
    }

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

    .three-columns,
    .four-columns,
    .five-columns,
    .six-columns,
    .category-grid,
    .category-overview-grid,
    .latest-list {
        grid-template-columns: 1fr;
    }

    .poster-wrap,
    .movie-card.large .poster-wrap,
    .movie-card.small .poster-wrap {
        height: 320px;
    }

    .latest-link {
        grid-template-columns: 128px minmax(0, 1fr);
    }

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

    .page-hero {
        min-height: 300px;
        padding: 82px 16px 42px;
    }

    .detail-hero,
    .detail-hero-inner {
        min-height: auto;
    }

    .detail-hero-inner {
        padding: 48px 16px;
    }

    .detail-title-block h1 {
        font-size: 36px;
    }

    .player-section,
    .story-section,
    .info-card {
        padding: 18px;
    }

    .play-button span {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }

    .ranking-card a {
        grid-template-columns: 42px 76px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
    }

    .ranking-card img {
        width: 76px;
        height: 104px;
    }
}
