:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --purple-700: #6d28d9;
    --rose-600: #e11d48;
    --orange-500: #f97316;
    --green-600: #16a34a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 25px 60px rgba(15, 23, 42, 0.18);
    --radius-lg: 18px;
    --radius-xl: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: var(--gray-50);
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
    box-shadow: 0 12px 35px rgba(2, 6, 23, 0.22);
}

.nav-shell {
    width: min(1280px, calc(100% - 32px));
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue-600), var(--purple-700));
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.brand-short {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 15px;
}

.nav-links a,
.brand {
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.brand:hover {
    color: #93c5fd;
}

.nav-search {
    display: flex;
    align-items: center;
    min-width: 280px;
}

.nav-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    color: #ffffff;
    background: rgba(51, 65, 85, 0.92);
    border-radius: 999px 0 0 999px;
}

.nav-search input::placeholder {
    color: #cbd5e1;
}

.nav-search button {
    border: 0;
    padding: 10px 16px;
    color: #ffffff;
    background: var(--blue-600);
    border-radius: 0 999px 999px 0;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
}

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

.hero-carousel {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--slate-900), #172554, var(--slate-900));
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(1.02);
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.56), rgba(15, 23, 42, 0.18));
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 760px;
    margin-left: max(16px, calc((100vw - 1280px) / 2));
    padding: 92px 0 110px;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #facc15;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    margin: 0 0 22px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 30px;
    color: #dbeafe;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.75;
}

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

.primary-button,
.glass-button,
.hero-pill,
.detail-actions button,
.detail-actions a,
.search-panel button,
.view-switch button,
.ranking-toolbar select,
.ranking-toolbar input,
.search-filters select,
.filter-panel select,
.filter-panel input {
    border-radius: 999px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 28px;
    color: #ffffff;
    background: var(--blue-600);
    font-weight: 800;
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.32);
    transition: transform 0.2s ease, background 0.2s ease;
}

.primary-button:hover {
    background: var(--blue-700);
    transform: translateY(-2px);
}

.glass-button,
.hero-pill {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

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

.hero-arrow,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 32px;
    background: var(--blue-500);
}

.hero-wave {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
}

.content-section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0;
}

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

.section-title > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
    font-size: 22px;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.03em;
}

.section-title p {
    margin: 6px 0 0;
    color: var(--gray-500);
    line-height: 1.6;
}

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

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

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

.movie-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-800), var(--blue-600));
}

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

.movie-card:hover .movie-cover img,
.related-card:hover img,
.ranking-card:hover img {
    transform: scale(1.06);
}

.cover-mask,
.cover-gradient {
    position: absolute;
    inset: 0;
    transition: opacity 0.3s ease;
}

.cover-mask {
    opacity: 0;
    background: rgba(0, 0, 0, 0.42);
}

.movie-card:hover .cover-mask {
    opacity: 1;
}

.cover-gradient {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0));
}

.play-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.9);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.play-mark-large {
    width: 70px;
    height: 70px;
    font-size: 24px;
}

.year-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.74);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.movie-card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.movie-card-body strong {
    min-height: 48px;
    color: var(--gray-900);
    font-size: 18px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card:hover .movie-card-body strong {
    color: var(--blue-600);
}

.line-clamp-two {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-500);
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--gray-500);
    font-size: 13px;
}

.movie-meta-line em {
    flex: 0 0 auto;
    padding: 6px 10px;
    color: #1d4ed8;
    background: #dbeafe;
    border-radius: 999px;
    font-style: normal;
    font-weight: 700;
}

.movie-meta-line small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.category-section,
.feature-band {
    background: #ffffff;
}

.category-inner {
    padding-top: 56px;
    padding-bottom: 56px;
}

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

.category-tile,
.overview-head,
.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue-700), var(--purple-700));
}

.category-tile {
    min-height: 150px;
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 26px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.28), transparent 32%);
}

.category-tile strong {
    position: relative;
    font-size: 42px;
}

.category-tile em {
    position: relative;
    font-style: normal;
    font-size: 18px;
    font-weight: 800;
}

.gradient-red {
    background: linear-gradient(135deg, #ef4444, #be123c);
}

.gradient-orange {
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.gradient-rose {
    background: linear-gradient(135deg, #e11d48, #9f1239);
}

.gradient-pink {
    background: linear-gradient(135deg, #ec4899, #7e22ce);
}

.gradient-blue {
    background: linear-gradient(135deg, #2563eb, #0891b2);
}

.gradient-purple {
    background: linear-gradient(135deg, #7c3aed, #312e81);
}

.gradient-indigo {
    background: linear-gradient(135deg, #4f46e5, #0f766e);
}

.gradient-green {
    background: linear-gradient(135deg, #16a34a, #047857);
}

.feature-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
    gap: 24px;
}

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

.feature-side {
    display: grid;
    gap: 18px;
}

.movie-card-large .movie-cover {
    aspect-ratio: 16 / 12;
}

.large-card-copy {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: grid;
    gap: 10px;
    color: #ffffff;
}

.large-card-copy em {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--blue-600);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.large-card-copy strong {
    font-size: 26px;
    line-height: 1.25;
}

.large-card-copy span {
    color: #dbeafe;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    min-height: 128px;
}

.movie-cover-side {
    aspect-ratio: auto;
    height: 100%;
}

.movie-card-horizontal .movie-card-body {
    align-content: space-between;
}

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

.ranking-panel,
.filter-panel,
.related-panel,
.detail-card,
.search-panel,
.overview-card,
.ranking-toolbar,
.search-filters {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.ranking-panel {
    position: sticky;
    top: 86px;
    padding: 22px;
}

.ranking-panel h2,
.filter-panel h2,
.related-panel h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

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

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

.rank-row:hover {
    background: #dbeafe;
    transform: translateX(4px);
}

.rank-row span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--blue-600);
    border-radius: 12px;
    font-weight: 900;
}

.rank-row strong,
.rank-row em {
    grid-column: 2;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-row em {
    color: var(--gray-500);
    font-size: 13px;
    font-style: normal;
}

.text-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--blue-600);
    font-weight: 800;
}

.page-hero {
    min-height: 250px;
    display: flex;
    align-items: center;
    padding: 68px 0;
    background: linear-gradient(135deg, #1e3a8a, #581c87, #1e3a8a);
}

.page-hero > div {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #dbeafe;
    font-size: 19px;
    line-height: 1.8;
}

.overview-card {
    overflow: hidden;
}

.overview-head {
    min-height: 190px;
    display: grid;
    gap: 10px;
    align-content: center;
    padding: 24px;
}

.overview-head span {
    font-size: 42px;
}

.overview-head strong {
    font-size: 24px;
}

.overview-head em {
    color: #e0f2fe;
    font-style: normal;
    line-height: 1.55;
}

.overview-links {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.overview-links a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.overview-links span {
    flex: 0 0 auto;
    color: var(--gray-500);
}

.overview-card .text-link {
    margin: 0 18px 20px;
}

.list-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.filter-panel {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 20px;
    padding: 22px;
}

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

.filter-panel nav a {
    padding: 11px 14px;
    border-radius: 12px;
    color: var(--gray-700);
    transition: background 0.2s ease, color 0.2s ease;
}

.filter-panel nav a:hover,
.filter-panel nav a.is-current {
    color: #ffffff;
    background: var(--blue-600);
}

.filter-panel label,
.ranking-toolbar label,
.search-filters label {
    display: grid;
    gap: 8px;
    color: var(--gray-700);
    font-weight: 700;
}

.filter-panel input,
.filter-panel select,
.ranking-toolbar input,
.ranking-toolbar select,
.search-filters select {
    width: 100%;
    border: 1px solid var(--gray-200);
    outline: 0;
    padding: 12px 14px;
    color: var(--gray-900);
    background: #ffffff;
}

.list-toolbar,
.ranking-toolbar,
.search-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 18px;
}

.list-toolbar h2 {
    margin: 0;
}

.view-switch {
    display: flex;
    gap: 8px;
}

.view-switch button {
    border: 0;
    padding: 10px 16px;
    color: var(--gray-700);
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--gray-200);
}

.view-switch button.is-active {
    color: #ffffff;
    background: var(--blue-600);
    box-shadow: none;
}

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

.movie-grid.is-list .movie-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
}

.movie-grid.is-list .movie-cover {
    height: 100%;
    aspect-ratio: auto;
}

.ranking-toolbar {
    align-items: end;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 64px 160px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 16px;
    overflow: hidden;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ranking-number {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange-500), var(--rose-600));
    border-radius: 17px;
    font-weight: 900;
}

.ranking-card img {
    width: 160px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.3s ease;
}

.ranking-copy {
    display: grid;
    gap: 7px;
}

.ranking-copy strong {
    font-size: 20px;
}

.ranking-copy em,
.ranking-copy small {
    color: var(--gray-500);
    font-style: normal;
    line-height: 1.55;
}

.search-page {
    display: grid;
    gap: 22px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    padding: 18px;
}

.search-panel input {
    border: 0;
    outline: 0;
    padding: 16px 20px;
    background: var(--gray-100);
    border-radius: 999px 0 0 999px;
}

.search-panel button {
    border: 0;
    color: #ffffff;
    background: var(--blue-600);
    border-radius: 0 999px 999px 0;
    font-weight: 800;
}

.search-state {
    color: var(--gray-500);
    font-size: 18px;
    line-height: 1.7;
}

.detail-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 60px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--gray-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--blue-600);
    font-weight: 700;
}

.breadcrumb em {
    color: var(--gray-700);
    font-style: normal;
}

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

.movie-player {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.site-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-center-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.9);
    border-radius: 50%;
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.35);
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-player.is-playing .player-center-button {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.9);
}

.detail-card {
    margin-top: 24px;
    padding: 26px;
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.22;
}

.detail-meta,
.detail-tags,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.detail-meta span,
.detail-tags span {
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 700;
}

.detail-meta span:nth-child(2) {
    color: #1d4ed8;
    background: #dbeafe;
}

.detail-tags span {
    color: #047857;
    background: #dcfce7;
}

.detail-actions button,
.detail-actions a {
    border: 0;
    padding: 11px 18px;
    font-weight: 800;
}

.detail-actions button:first-child {
    color: #ffffff;
    background: var(--blue-600);
}

.detail-actions button:nth-child(2),
.detail-actions a {
    color: var(--gray-700);
    background: var(--gray-100);
}

.detail-text {
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.detail-text h2 {
    margin: 20px 0 12px;
    font-size: 22px;
}

.detail-text p,
.detail-text blockquote {
    margin: 0 0 18px;
    color: var(--gray-700);
    line-height: 1.95;
    font-size: 17px;
}

.detail-text blockquote {
    padding: 22px;
    border-left: 5px solid var(--blue-600);
    background: linear-gradient(135deg, #eff6ff, #faf5ff);
    border-radius: 16px;
}

.related-panel {
    position: sticky;
    top: 86px;
    padding: 22px;
}

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

.related-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-card img {
    width: 120px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.related-card span {
    display: grid;
    gap: 6px;
}

.related-card strong {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-card em {
    color: var(--gray-500);
    font-size: 12px;
    font-style: normal;
}

.site-footer {
    color: #cbd5e1;
    background: var(--slate-900);
}

.footer-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 32px;
}

.footer-grid h3,
.footer-grid h4 {
    margin: 0 0 16px;
    color: #ffffff;
}

.footer-grid p,
.footer-grid a {
    display: block;
    margin: 0 0 10px;
    color: #cbd5e1;
    line-height: 1.75;
}

.footer-grid a:hover {
    color: #93c5fd;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    color: #94a3b8;
    font-size: 14px;
}

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

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

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

    .ranking-panel,
    .related-panel {
        position: static;
    }
}

@media (max-width: 900px) {
    .nav-shell {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .nav-links {
        order: 4;
        width: 100%;
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px 0 4px;
    }

    .nav-links.is-open {
        display: grid;
    }

    .nav-links a {
        padding: 11px 12px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.08);
    }

    .nav-search {
        flex: 1;
        min-width: 180px;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-copy {
        margin-left: 16px;
        margin-right: 16px;
        padding-top: 96px;
    }

    .movie-grid-three,
    .movie-grid-four,
    .category-grid,
    .overview-grid,
    .feature-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .filter-panel {
        position: static;
    }

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

@media (max-width: 640px) {
    .brand-full {
        display: none;
    }

    .brand-short {
        display: inline;
    }

    .nav-search {
        order: 3;
        width: 100%;
        flex-basis: 100%;
    }

    .hero-carousel {
        min-height: 76vh;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

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

    .primary-button,
    .glass-button,
    .hero-pill {
        justify-content: center;
        width: 100%;
    }

    .hero-controls {
        bottom: 32px;
    }

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

    .movie-grid-three,
    .movie-grid-four,
    .category-grid,
    .overview-grid,
    .feature-large {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal,
    .movie-grid.is-list .movie-card,
    .ranking-card,
    .related-card {
        grid-template-columns: 1fr;
    }

    .movie-cover-side,
    .movie-grid.is-list .movie-cover {
        aspect-ratio: 16 / 9;
    }

    .ranking-card img,
    .related-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .list-toolbar,
    .ranking-toolbar,
    .search-filters,
    .footer-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .search-panel {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .search-panel input,
    .search-panel button {
        border-radius: 999px;
    }

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