:root {
    --mist-50: #f8f9fa;
    --mist-100: #f1f3f5;
    --mist-200: #e9ecef;
    --mist-300: #dee2e6;
    --mist-500: #868e96;
    --mist-600: #6c757d;
    --mist-700: #495057;
    --mist-800: #343a40;
    --mist-900: #212529;
    --mineral-50: #f0f9ff;
    --mineral-100: #e0f2fe;
    --mineral-500: #0ea5e9;
    --mineral-600: #0284c7;
    --mineral-700: #0369a1;
    --moss-50: #f0fdf4;
    --earth-50: #faf8f5;
    --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 22px 50px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--mist-50);
    color: var(--mist-900);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

[hidden] {
    display: none !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--mist-800), var(--mist-700));
    color: #fff;
    box-shadow: var(--shadow-md);
}

.nav-shell,
.footer-shell,
.section-shell,
.watch-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.nav-shell {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.brand {
    font-size: 20px;
}

.brand-mark {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.18);
    color: #7dd3fc;
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.35);
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--mist-100);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    background: var(--mineral-600);
    color: #fff;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 190px;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    color: var(--mist-800);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(8px);
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.dropdown-panel a,
.mobile-panel a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.dropdown-panel a:hover {
    background: var(--mineral-50);
    color: var(--mineral-700);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.mobile-panel {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0 14px;
}

.mobile-panel a {
    color: var(--mist-100);
}

.mobile-panel a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: var(--mist-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.9s ease;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: absolute;
    top: 50%;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    width: min(650px, calc(100% - 48px));
    transform: translateY(-50%);
    color: #fff;
}

.hero-kicker,
.page-hero span,
.featured-large span,
.small-card span,
.category-tile span,
.ranking-cover strong {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    background: rgba(2, 132, 199, 0.9);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.hero-kicker {
    padding: 4px 12px;
    margin-bottom: 16px;
}

.hero-content h1,
.hero-content h2,
.page-hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-weight: 800;
    line-height: 1.12;
}

.hero-content h1,
.hero-content > h2:not(.hero-movie-title) {
    font-size: clamp(32px, 5vw, 58px);
}

.hero-movie-title {
    margin-top: 10px !important;
    font-size: clamp(28px, 4vw, 46px);
}

.hero-content p {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--mist-100);
    font-size: clamp(16px, 2vw, 19px);
}

.hero-tags,
.detail-tags,
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin-top: 20px;
}

.hero-tags span,
.detail-tags span,
.filter-pills button {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
}

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

.primary-button,
.ghost-button,
.text-button,
.page-search button,
.hero-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    padding: 0 20px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.page-search button,
.hero-search button {
    background: var(--mineral-600);
    color: #fff;
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.28);
}

.primary-button:hover,
.page-search button:hover,
.hero-search button:hover {
    background: var(--mineral-700);
    transform: translateY(-1px);
}

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

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.48);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: #fff;
}

.hero-search {
    position: absolute;
    right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 34px;
    z-index: 4;
    display: flex;
    gap: 10px;
    width: min(420px, calc(100% - 48px));
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.hero-search input,
.page-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    border-radius: 10px;
    padding: 0 14px;
    outline: none;
}

.hero-search input {
    background: rgba(255, 255, 255, 0.92);
    color: var(--mist-900);
}

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

.section-white {
    background: #fff;
}

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

.featured-section {
    background: linear-gradient(135deg, var(--mineral-50), var(--moss-50));
}

.section-heading,
.rail-heading {
    margin-bottom: 28px;
}

.section-heading h2,
.rail-heading h2,
.ranking-shell h2,
.related-panel h2,
.text-block h2,
.footer-shell h2 {
    margin: 0;
    color: var(--mist-900);
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-weight: 800;
}

.section-heading h2,
.rail-heading h2,
.ranking-shell h2 {
    font-size: clamp(26px, 3vw, 34px);
}

.section-heading p,
.rail-heading p,
.ranking-shell p,
.page-hero p {
    margin: 8px 0 0;
    color: var(--mist-600);
}

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--mist-200);
}

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

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

.movie-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.72));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .movie-thumb::after {
    opacity: 1;
}

.card-label,
.card-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 8px;
    padding: 4px 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.card-label {
    top: 10px;
    left: 10px;
    background: rgba(2, 132, 199, 0.92);
}

.card-year {
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.68);
}

.rank-badge {
    left: 10px;
    bottom: 10px;
    background: rgba(245, 158, 11, 0.95);
}

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

.movie-card-body h3 {
    min-height: 48px;
    margin: 0 0 8px;
    color: var(--mist-900);
    font-size: 16px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.movie-card-body p {
    min-height: 44px;
    margin: 0 0 10px;
    color: var(--mist-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.card-meta {
    color: var(--mist-500);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.featured-large {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    box-shadow: var(--shadow-md);
}

.featured-large img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-large:hover img {
    transform: scale(1.04);
}

.featured-large::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
}

.featured-large div {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 28px;
    color: #fff;
}

.featured-large span,
.small-card span,
.category-tile span {
    padding: 4px 10px;
}

.featured-large h3 {
    margin: 14px 0 8px;
    font-size: 28px;
    line-height: 1.2;
}

.featured-large p {
    max-width: 720px;
    margin: 0 0 10px;
    color: var(--mist-100);
}

.featured-large em {
    font-style: normal;
    color: var(--mist-200);
    font-size: 13px;
}

.featured-side {
    display: grid;
    gap: 16px;
}

.small-card {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 14px;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.small-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.small-card img {
    width: 128px;
    height: 112px;
    object-fit: cover;
}

.small-card div {
    min-width: 0;
    padding: 12px 12px 12px 0;
}

.small-card h3 {
    margin: 8px 0 4px;
    font-size: 15px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.small-card p {
    margin: 0;
    color: var(--mist-500);
    font-size: 12px;
}

.rail-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.rail-controls {
    display: flex;
    gap: 10px;
}

.rail-controls button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: var(--mist-200);
    color: var(--mist-800);
    font-size: 26px;
}

.rail-controls button:hover {
    background: var(--mist-300);
}

.movie-rail {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

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

.rail-item {
    width: 290px;
    flex: 0 0 290px;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--mist-900);
    box-shadow: var(--shadow-sm);
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    opacity: 0.75;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.category-tile:hover img {
    transform: scale(1.06);
    opacity: 0.95;
}

.category-tile div {
    position: absolute;
    inset: auto 0 0 0;
    padding: 18px;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
}

.category-tile p {
    margin: 10px 0 0;
    color: var(--mist-100);
    font-size: 13px;
}

.ranking-band {
    background: linear-gradient(135deg, var(--mist-800), var(--mist-900));
    color: #fff;
}

.ranking-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 36px;
    align-items: center;
}

.ranking-shell h2,
.ranking-shell p {
    color: #fff;
}

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

.rank-list a {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.rank-list a:hover {
    background: rgba(255, 255, 255, 0.14);
}

.rank-list span {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--mineral-600);
    color: #fff;
    font-weight: 800;
}

.rank-list strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-list em {
    color: var(--mist-300);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    background: linear-gradient(135deg, var(--mist-800), var(--mist-700));
    color: #fff;
}

.compact-hero {
    padding: 64px 0;
}

.page-hero span {
    padding: 4px 12px;
    margin-bottom: 14px;
}

.page-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
}

.page-hero p {
    max-width: 760px;
    color: var(--mist-100);
    font-size: 17px;
}

.page-search {
    display: flex;
    gap: 10px;
    width: min(620px, 100%);
    margin-top: 24px;
}

.page-search input {
    min-height: 46px;
    background: #fff;
    color: var(--mist-900);
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    color: var(--mist-600);
    font-size: 14px;
}

.crumbs a {
    color: var(--mineral-700);
}

.category-overview-grid {
    display: grid;
    gap: 22px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.category-cover-link img {
    width: 280px;
    height: 190px;
    border-radius: 14px;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 4px 0 8px;
    font-size: 24px;
}

.category-overview-card p {
    margin: 0 0 12px;
    color: var(--mist-600);
}

.category-overview-card ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.category-overview-card li a {
    color: var(--mist-700);
    font-size: 14px;
}

.category-overview-card li a:hover,
.text-button:hover {
    color: var(--mineral-700);
}

.text-button {
    color: var(--mineral-600);
    font-weight: 800;
}

.ranking-hero {
    padding: 56px 0;
}

.ranking-hero-inner {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: center;
}

.ranking-cover {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

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

.ranking-cover strong {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 8px 12px;
    justify-content: center;
}

.filter-pills {
    margin-bottom: 24px;
}

.filter-pills button {
    border: 0;
    background: var(--mist-200);
    color: var(--mist-700);
}

.filter-pills button.is-active,
.filter-pills button:hover {
    background: var(--mineral-600);
    color: #fff;
}

.empty-state {
    margin-bottom: 24px;
    border-radius: 14px;
    background: #fff;
    padding: 24px;
    color: var(--mist-600);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.watch-stage {
    background: #000;
}

.watch-shell {
    padding: 0;
}

.player-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.18), rgba(0, 0, 0, 0.58));
}

.player-button {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(2, 132, 199, 0.92);
    color: #fff;
    padding: 16px 28px;
    font-size: 18px;
    box-shadow: var(--shadow-lg);
}

.player-button span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.player-error {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.86);
    color: #fff;
    font-weight: 700;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.9fr);
    gap: 28px;
    align-items: start;
}

.detail-main,
.related-panel {
    border-radius: 18px;
    background: #fff;
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.detail-main h1 {
    margin: 0 0 16px;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--mist-600);
}

.detail-meta span {
    border-radius: 8px;
    background: var(--mist-100);
    padding: 6px 10px;
    font-size: 14px;
}

.detail-tags {
    margin-bottom: 18px;
}

.detail-tags span {
    background: var(--mineral-50);
    color: var(--mineral-700);
}

.one-line-box {
    margin: 0 0 24px;
    border-left: 4px solid var(--mineral-600);
    border-radius: 12px;
    background: var(--mineral-50);
    padding: 16px 18px;
    color: var(--mist-800);
    font-weight: 700;
}

.text-block + .text-block {
    margin-top: 26px;
}

.text-block h2,
.related-panel h2 {
    margin-bottom: 12px;
    font-size: 22px;
}

.text-block p {
    margin: 0;
    color: var(--mist-700);
    white-space: pre-wrap;
}

.related-grid {
    display: grid;
    gap: 16px;
}

.movie-card-compact {
    display: grid;
    grid-template-columns: 120px 1fr;
}

.movie-card-compact .movie-thumb {
    height: 112px;
    aspect-ratio: auto;
}

.movie-card-compact .movie-card-body {
    padding: 12px;
}

.movie-card-compact .movie-card-body h3 {
    min-height: auto;
    font-size: 14px;
}

.movie-card-compact .movie-card-body p {
    min-height: auto;
    font-size: 12px;
}

.site-footer {
    background: linear-gradient(180deg, var(--mist-800), var(--mist-900));
    color: var(--mist-100);
}

.footer-shell {
    padding: 46px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    margin-bottom: 14px;
    font-size: 18px;
}

.footer-shell p {
    margin: 0;
    color: var(--mist-300);
}

.footer-shell h2 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 17px;
}

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

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

.footer-shell a:hover {
    color: #7dd3fc;
}

.copyright {
    margin-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: var(--mist-300);
    font-size: 13px;
}

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

    .detail-layout,
    .ranking-shell,
    .ranking-hero-inner {
        grid-template-columns: 1fr;
    }
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-carousel {
        height: 680px;
    }

    .hero-content {
        top: 42%;
    }

    .hero-search {
        right: 24px;
        bottom: 78px;
        left: 24px;
        width: auto;
    }

    .hero-arrow {
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .hero-prev {
        left: 24px;
    }

    .hero-next {
        right: 24px;
    }

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

    .category-cover-link img {
        width: 100%;
        height: 220px;
    }

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

    .rail-controls {
        display: none;
    }
}

@media (max-width: 560px) {
    .nav-shell,
    .footer-shell,
    .section-shell,
    .watch-shell,
    .mobile-panel {
        width: min(100% - 24px, 1280px);
    }

    .hero-carousel {
        height: 720px;
    }

    .hero-content {
        left: 18px;
        width: calc(100% - 36px);
    }

    .hero-search,
    .page-search {
        flex-direction: column;
    }

    .hero-search input,
    .page-search input {
        min-height: 44px;
    }

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

    .small-card,
    .movie-card-compact {
        grid-template-columns: 106px 1fr;
    }

    .small-card img {
        width: 106px;
    }

    .detail-main,
    .related-panel {
        padding: 20px;
    }

    .content-section {
        padding: 42px 0;
    }
}
