:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --secondary-400: #fbbf24;
    --neutral-50: #fafaf9;
    --neutral-100: #f5f5f4;
    --neutral-200: #e7e5e4;
    --neutral-300: #d6d3d1;
    --neutral-500: #78716c;
    --neutral-600: #57534e;
    --neutral-700: #44403c;
    --neutral-800: #292524;
    --neutral-900: #1c1917;
    --white: #ffffff;
    --shadow-soft: 0 20px 45px rgba(28, 25, 23, 0.10);
    --shadow-card: 0 12px 30px rgba(28, 25, 23, 0.08);
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--neutral-900);
    background: var(--neutral-50);
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 12px rgba(28, 25, 23, 0.08);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(100% - 32px, var(--container));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.25);
}

.brand-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.brand-icon svg path:last-child {
    fill: var(--primary-700);
    stroke: var(--white);
    stroke-width: 1;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.brand-copy small {
    color: var(--neutral-500);
    font-size: 12px;
    margin-top: 3px;
}

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

.nav-link,
.mobile-link {
    color: var(--neutral-600);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 14px;
}

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

.header-search {
    width: 250px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    border-radius: 999px;
    padding: 5px 5px 5px 14px;
}

.header-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--neutral-800);
    font-size: 14px;
}

.header-search button,
.search-form button,
.filter-bar button {
    border: 0;
    color: var(--white);
    background: var(--primary-600);
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button {
    padding: 7px 13px;
    font-size: 13px;
}

.header-search button:hover,
.search-form button:hover,
.filter-bar button:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
}

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

.menu-button span {
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: var(--neutral-700);
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 0 0 16px;
}

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

.mobile-link {
    padding: 12px 14px;
}

.hero-carousel {
    position: relative;
    min-height: 560px;
    height: 62vh;
    max-height: 680px;
    overflow: hidden;
    background: var(--neutral-900);
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

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

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.05);
}

.hero-overlay {
    background:
        radial-gradient(circle at 75% 18%, rgba(14, 165, 233, 0.22), transparent 30%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.18));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--container));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 46px;
    color: var(--white);
    padding-bottom: 88px;
}

.hero-copy {
    max-width: 760px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-600);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy .kicker,
.detail-copy .kicker,
.page-hero .kicker,
.panel-heading .kicker {
    color: var(--secondary-400);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 12px 0 16px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.hero-desc,
.page-hero p,
.detail-line {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.primary-button,
.ghost-button,
.section-action,
.panel-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    min-height: 46px;
    padding: 0 24px;
    color: var(--white);
    background: var(--primary-600);
    box-shadow: 0 14px 28px rgba(2, 132, 199, 0.28);
}

.ghost-button {
    min-height: 46px;
    padding: 0 22px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

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

.hero-poster {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
    aspect-ratio: 2 / 3;
    background: rgba(255, 255, 255, 0.08);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    font-size: 34px;
    line-height: 1;
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
}

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

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

.hero-thumbs {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 5;
    width: min(100% - 32px, var(--container));
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    transform: translateX(-50%);
}

.hero-thumb {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 8px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(12px);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-thumb.active,
.hero-thumb:hover {
    border-color: rgba(14, 165, 233, 0.85);
    background: rgba(14, 165, 233, 0.28);
}

.hero-thumb img {
    width: 44px;
    height: 58px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 9px;
}

.hero-thumb span {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-section {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 58px 0;
}

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

.section-heading h2,
.panel-heading h2,
.article-card h2 {
    margin: 6px 0 0;
    color: var(--neutral-900);
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 720px;
    margin: 9px 0 0;
    color: var(--neutral-600);
}

.section-action,
.panel-more {
    min-height: 42px;
    padding: 0 18px;
    color: var(--primary-700);
    background: var(--primary-50);
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    border-color: rgba(14, 165, 233, 0.45);
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--neutral-200);
}

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), transparent);
}

.heat-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.heat-badge {
    right: 10px;
    bottom: 10px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.52);
    padding: 5px 8px;
    backdrop-filter: blur(8px);
}

.rank-badge {
    left: 10px;
    top: 10px;
    width: 36px;
    height: 36px;
    color: var(--neutral-900);
    background: var(--secondary-400);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: var(--neutral-900);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.2s ease;
}

.movie-title:hover {
    color: var(--primary-700);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
    color: var(--neutral-500);
    font-size: 12px;
}

.movie-meta span {
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--neutral-100);
}

.movie-desc {
    display: -webkit-box;
    min-height: 42px;
    margin: 10px 0 0;
    overflow: hidden;
    color: var(--neutral-600);
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag {
    color: var(--primary-700);
    background: var(--primary-50);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags .tag,
.detail-copy .tag {
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.category-card,
.category-overview-card,
.rank-panel,
.article-card,
.filter-bar,
.global-search {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.category-card {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    padding: 22px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    border-color: rgba(14, 165, 233, 0.5);
    transform: translateY(-4px);
}

.category-card strong {
    font-size: 22px;
    letter-spacing: -0.03em;
}

.category-card small {
    margin-top: 6px;
    color: var(--neutral-600);
}

.category-count {
    width: fit-content;
    margin-top: 14px;
    color: var(--white);
    background: var(--primary-600);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
}

.category-sample {
    display: grid;
    gap: 3px;
    margin-top: auto;
    color: var(--neutral-500);
    font-size: 12px;
}

.category-sample span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-panel {
    padding: 22px;
    position: sticky;
    top: 90px;
}

.rank-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.rank-row {
    display: grid;
    grid-template-columns: 38px 54px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--neutral-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: var(--primary-50);
    transform: translateX(3px);
}

.rank-num {
    color: var(--primary-700);
    font-size: 15px;
    font-weight: 900;
}

.rank-row img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--neutral-200);
}

.rank-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.rank-copy strong,
.rank-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy strong {
    color: var(--neutral-900);
    font-size: 14px;
}

.rank-copy small {
    color: var(--neutral-500);
    font-size: 12px;
}

.rank-score {
    color: var(--neutral-900);
    background: var(--secondary-400);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 900;
}

.panel-more {
    width: 100%;
    margin-top: 16px;
}

.dark-strip {
    width: 100%;
    max-width: none;
    padding: 62px max(16px, calc((100% - var(--container)) / 2));
    color: var(--white);
    background:
        radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.22), transparent 28%),
        linear-gradient(135deg, var(--neutral-900), #0f172a);
}

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

.horizontal-scroll {
    display: grid;
    grid-auto-columns: 220px;
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    padding: 2px 2px 18px;
    scroll-snap-type: x mandatory;
}

.horizontal-scroll .movie-card {
    scroll-snap-align: start;
}

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

.compact-card .movie-title {
    min-height: 44px;
    font-size: 14px;
}

.compact-card .movie-desc {
    display: none;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: var(--neutral-900);
}

.page-hero {
    min-height: 330px;
    display: flex;
    align-items: center;
    padding: 70px max(16px, calc((100% - var(--container)) / 2));
    background:
        radial-gradient(circle at 76% 12%, rgba(14, 165, 233, 0.32), transparent 28%),
        linear-gradient(135deg, var(--neutral-900), #0f172a 62%, #082f49);
}

.slim-hero {
    min-height: 290px;
}

.category-hero {
    min-height: 300px;
}

.ranking-hero {
    background:
        radial-gradient(circle at 22% 24%, rgba(251, 191, 36, 0.25), transparent 26%),
        linear-gradient(135deg, #111827, #0f172a 55%, #164e63);
}

.search-hero {
    background:
        radial-gradient(circle at 72% 12%, rgba(14, 165, 233, 0.30), transparent 26%),
        linear-gradient(135deg, #111827, #172554);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    overflow: hidden;
}

.category-cover {
    position: relative;
    min-height: 260px;
    background: var(--neutral-200);
}

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

.category-cover span {
    position: absolute;
    left: 14px;
    bottom: 14px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.55);
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.category-overview-body {
    min-width: 0;
    padding: 24px;
}

.category-overview-body h2 {
    margin: 6px 0 8px;
    font-size: 28px;
    line-height: 1.1;
}

.category-overview-body p {
    color: var(--neutral-600);
    margin: 0 0 16px;
}

.mini-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-link-list a {
    max-width: 100%;
    overflow: hidden;
    color: var(--primary-700);
    background: var(--primary-50);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 160px auto;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
}

.filter-bar input,
.filter-bar select,
.search-form input {
    width: 100%;
    border: 1px solid var(--neutral-200);
    border-radius: 14px;
    outline: none;
    background: var(--neutral-50);
    color: var(--neutral-900);
    padding: 12px 14px;
}

.filter-bar input:focus,
.filter-bar select:focus,
.search-form input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.filter-bar button {
    padding: 0 20px;
}

.global-search {
    padding: 22px;
}

.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 12px;
}

.search-form button {
    border: 0;
}

.search-status {
    margin: 18px 0;
    color: var(--neutral-600);
    font-weight: 700;
}

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

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

.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.42;
}

.detail-shade {
    background:
        radial-gradient(circle at 78% 14%, rgba(14, 165, 233, 0.20), transparent 30%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.54));
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 38px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    margin-bottom: 38px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    border-radius: 26px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

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

.detail-copy h1 {
    max-width: 850px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 20px 0 6px;
}

.detail-meta span {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 800;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 16 / 9;
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.video-play {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-shell.is-playing .video-play {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--primary-600);
    box-shadow: 0 18px 34px rgba(2, 132, 199, 0.32);
    font-size: 28px;
    padding-left: 4px;
}

.video-play strong {
    font-size: 18px;
}

.detail-section {
    padding-top: 42px;
    padding-bottom: 42px;
}

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

.article-card {
    padding: 28px;
}

.article-card p {
    margin: 14px 0 0;
    color: var(--neutral-700);
    font-size: 16px;
}

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

.site-footer {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.76);
    background: var(--neutral-900);
}

.footer-inner {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 180px minmax(0, 1fr);
    gap: 32px;
    padding: 46px 0;
}

.footer-logo .brand-icon {
    color: var(--white);
}

.footer-logo .brand-copy strong {
    color: var(--white);
}

.footer-brand p {
    max-width: 520px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.66);
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-links h3 {
    margin: 0 0 6px;
    color: var(--white);
    font-size: 16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.66);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-500);
}

.footer-grid-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.footer-grid-links a {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 6px 10px;
}

[hidden] {
    display: none !important;
}

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

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

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

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

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

    .rank-panel {
        position: static;
    }
}

@media (max-width: 860px) {
    .header-inner {
        gap: 12px;
    }

    .desktop-nav,
    .header-search {
        display: none;
    }

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

    .hero-carousel {
        min-height: 620px;
        height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;
        padding: 96px 0 170px;
    }

    .hero-poster {
        display: none;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: clamp(38px, 14vw, 58px);
    }

    .hero-control {
        display: none;
    }

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

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

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

    .category-grid,
    .category-overview-grid,
    .two-column-detail,
    .expanded-list {
        grid-template-columns: 1fr;
    }

    .category-overview-card {
        grid-template-columns: 150px minmax(0, 1fr);
    }

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

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

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

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

@media (max-width: 560px) {
    .brand-copy strong {
        font-size: 17px;
    }

    .brand-copy small {
        display: none;
    }

    .hero-thumbs {
        display: none;
    }

    .hero-content {
        padding-bottom: 96px;
    }

    .movie-grid,
    .featured-grid,
    .ranking-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

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

    .category-cover {
        min-height: 220px;
    }

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

    .rank-row {
        grid-template-columns: 32px 48px minmax(0, 1fr);
    }

    .rank-score {
        display: none;
    }
}
