:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    --cyan-50: #ecfeff;
    --green-500: #22c55e;
    --purple-600: #7c3aed;
    --orange-500: #f97316;
    --red-600: #dc2626;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.10);
    --shadow-strong: 0 24px 70px rgba(15, 23, 42, 0.20);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, var(--blue-600), var(--blue-700), var(--blue-800));
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.25);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-icon,
.footer-brand span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.brand strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
}

.brand em {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: var(--blue-100);
}

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

.nav-link,
.nav-dropdown > button {
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.86);
    border: 0;
    background: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown > button:hover {
    color: #fff;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    left: 0;
    top: 42px;
    min-width: 160px;
    padding: 10px;
    border-radius: 14px;
    color: var(--gray-800);
    background: #fff;
    box-shadow: var(--shadow-strong);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
}

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

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

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 260px;
}

.header-search input {
    width: 100%;
    height: 40px;
    padding: 0 46px 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #fff;
    outline: 0;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.header-search input::placeholder {
    color: rgba(219, 234, 254, 0.88);
}

.header-search button {
    position: absolute;
    right: 4px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    color: var(--blue-700);
    background: #fff;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

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

.mobile-panel a,
.mobile-panel form {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
}

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

.mobile-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.mobile-panel form {
    display: flex;
    gap: 8px;
}

.mobile-panel input {
    min-width: 0;
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 10px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-panel button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--blue-700);
    background: #fff;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #fff;
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.45), transparent 32%), linear-gradient(135deg, #0f172a, var(--blue-900) 52%, var(--blue-700));
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: radial-gradient(circle at center, #93c5fd 1px, transparent 1.5px);
    background-size: 32px 32px;
}

.hero-container {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 390px;
    align-items: center;
    gap: 60px;
    padding: 80px 0 100px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(24px);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-kicker,
.sub-hero span,
.detail-kicker,
.spotlight-panel span,
.category-overview-head span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(36px, 5.2vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy h2 {
    margin: 20px 0 10px;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.16;
}

.hero-copy p {
    max-width: 640px;
    margin: 0 0 24px;
    font-size: 20px;
    color: var(--blue-100);
}

.hero-tags,
.card-tags,
.rank-meta,
.detail-tags,
.spotlight-links,
.genre-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.card-tags span,
.rank-meta span,
.detail-tags a,
.spotlight-links a,
.genre-filter button {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--blue-800);
    background: var(--blue-50);
}

.hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

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

.primary-button,
.ghost-button,
.small-button,
.filter-bar button,
.large-search button,
.spotlight-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--blue-700);
    background: #fff;
    box-shadow: 0 16px 34px rgba(255, 255, 255, 0.20);
}

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

.ghost-button {
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
}

.ghost-button.dark {
    color: var(--blue-700);
    border-color: var(--blue-100);
    background: var(--blue-50);
}

.hero-poster {
    position: relative;
    z-index: 2;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 30px;
    box-shadow: var(--shadow-strong);
    transform: rotate(2deg);
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
    filter: blur(22px) saturate(1.2);
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.hero-controls > button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

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

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

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

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

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.2;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--gray-500);
}

.section-link {
    flex: 0 0 auto;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--blue-700);
    background: var(--blue-50);
    font-weight: 700;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--blue-100), #fff);
}

.wide-grid .card-poster,
.search-results .card-poster {
    aspect-ratio: 16 / 10;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.78));
    transition: opacity 0.25s ease;
}

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

.play-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
}

.play-pill {
    left: 14px;
    bottom: 14px;
    padding: 7px 11px;
    font-size: 13px;
    background: rgba(37, 99, 235, 0.95);
    opacity: 0;
    transform: translateY(8px);
    transition: 0.25s ease;
}

.movie-card:hover .play-pill {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    top: 12px;
    right: 12px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: var(--red-600);
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.32);
}

.card-body {
    padding: 16px;
}

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

.card-title:hover {
    color: var(--blue-700);
}

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

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    color: var(--gray-500);
    font-size: 13px;
}

.category-band {
    padding: 72px 0;
    background: linear-gradient(135deg, var(--blue-50), var(--cyan-50));
}

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

.category-tile,
.category-overview {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: #fff;
    background: var(--tile-gradient);
    box-shadow: var(--shadow-soft);
}

.category-tile {
    min-height: 220px;
    padding: 28px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-strong);
}

.category-tile span,
.category-tile em {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
}

.category-tile strong {
    display: block;
    margin: 8px 0 12px;
    font-size: 30px;
}

.mini-links {
    display: grid;
    gap: 6px;
    margin-top: 20px;
    font-size: 14px;
}

.ranking-band {
    padding: 72px 0;
    background: linear-gradient(135deg, #0f172a, var(--gray-900));
}

.ranking-band .section-head h2,
.ranking-band .section-head p {
    color: #fff;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
    gap: 34px;
    align-items: start;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 82px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.compact-rank .rank-row {
    background: rgba(255, 255, 255, 0.96);
}

.rank-index strong {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-600), var(--purple-600));
}

.rank-thumb {
    overflow: hidden;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    background: var(--gray-100);
}

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

.rank-title {
    font-weight: 800;
    color: var(--gray-900);
}

.rank-row p {
    display: -webkit-box;
    overflow: hidden;
    margin: 4px 0 10px;
    color: var(--gray-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.small-button {
    min-height: 38px;
    color: #fff;
    background: var(--blue-600);
}

.spotlight-panel {
    position: sticky;
    top: 100px;
    padding: 34px;
    border-radius: var(--radius-lg);
    color: #fff;
    background: linear-gradient(135deg, var(--blue-700), var(--purple-600));
    box-shadow: var(--shadow-strong);
}

.spotlight-panel h2 {
    margin: 6px 0 12px;
    font-size: 34px;
}

.spotlight-panel p {
    color: rgba(255, 255, 255, 0.82);
}

.spotlight-search,
.large-search {
    display: flex;
    gap: 10px;
    margin: 24px 0;
}

.spotlight-search input,
.large-search input {
    min-width: 0;
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 12px 16px;
    outline: 0;
}

.spotlight-search input {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.spotlight-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.spotlight-search button,
.large-search button {
    color: var(--blue-700);
    background: #fff;
}

.spotlight-links a {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.sub-hero {
    color: #fff;
    background: var(--sub-gradient, linear-gradient(90deg, var(--blue-600), var(--blue-800)));
}

.sub-hero .container {
    padding: 64px 0;
}

.sub-hero h1 {
    max-width: 860px;
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.12;
}

.sub-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.blue-hero {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
}

.ranking-hero {
    background: linear-gradient(135deg, #111827, var(--blue-800));
}

.search-hero {
    background: linear-gradient(135deg, #047857, #0f766e);
}

.category-overview-wrap {
    display: grid;
    gap: 34px;
    padding: 56px 0;
}

.category-overview {
    padding: 30px;
}

.category-overview .movie-card {
    color: var(--gray-900);
}

.category-overview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.category-overview-head h2 {
    margin: 0;
    font-size: 34px;
}

.category-overview-head p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.80);
}

.filter-panel {
    padding: 44px 0 72px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px auto;
    gap: 12px;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.filter-bar input,
.filter-bar select {
    min-height: 44px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 0 16px;
    outline: 0;
    background: var(--gray-50);
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.filter-bar button,
.genre-filter button {
    color: #fff;
    background: var(--blue-600);
}

.genre-filter {
    margin-bottom: 26px;
}

.genre-filter button {
    border: 0;
    cursor: pointer;
}

.genre-filter button:not(.is-active) {
    color: var(--gray-700);
    background: #fff;
}

.empty-result {
    margin-top: 28px;
    padding: 34px;
    border-radius: var(--radius-md);
    color: var(--gray-500);
    text-align: center;
    background: #fff;
}

.player-section {
    padding: 28px 0;
    background: #050816;
}

.player-container {
    max-width: 1080px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #000;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.38));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 34px;
    background: rgba(37, 99, 235, 0.92);
    box-shadow: 0 20px 54px rgba(37, 99, 235, 0.44);
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 30px;
    padding: 44px 0 18px;
}

.detail-main,
.detail-side {
    min-width: 0;
}

.detail-head,
.content-card,
.side-card,
.info-grid {
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.detail-head {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    padding: 24px;
}

.detail-head img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.detail-kicker {
    color: var(--blue-700);
    background: var(--blue-50);
}

.detail-head h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
}

.detail-head p {
    margin: 0;
    color: var(--gray-600);
    font-size: 18px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
    margin: 22px 0;
    background: var(--gray-200);
}

.info-grid div {
    padding: 18px;
    background: #fff;
}

.info-grid strong,
.info-grid span {
    display: block;
}

.info-grid strong {
    color: var(--gray-500);
    font-size: 13px;
    margin-bottom: 6px;
}

.content-card,
.side-card {
    margin-bottom: 22px;
    padding: 24px;
}

.content-card h2,
.side-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.content-card p,
.side-card p {
    margin: 0;
    color: var(--gray-600);
}

.detail-tags a {
    color: var(--blue-700);
}

.detail-side {
    position: relative;
}

.side-card {
    display: grid;
    gap: 12px;
}

.side-card a:not(.primary-button) {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--blue-700);
    background: var(--blue-50);
    font-weight: 700;
}

.site-footer {
    color: var(--gray-300);
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 54px 0 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 22px;
    margin-bottom: 14px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
}

.footer-grid p {
    margin: 0;
    color: var(--gray-400);
}

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

.footer-links a {
    color: var(--gray-300);
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 18px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gray-400);
    text-align: center;
}

@media (max-width: 1040px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero-slide {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }

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

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

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

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

    .spotlight-panel {
        position: static;
    }
}

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

    .brand strong {
        font-size: 20px;
    }

    .brand em {
        display: none;
    }

    .hero-carousel,
    .hero-container {
        min-height: 740px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 46px 0 90px;
    }

    .hero-poster {
        width: min(280px, 76vw);
        margin: 0 auto;
        transform: none;
    }

    .hero-copy p {
        font-size: 17px;
    }

    .section-head,
    .category-overview-head,
    .detail-head {
        display: block;
    }

    .section-link,
    .category-overview-head .primary-button {
        margin-top: 14px;
    }

    .movie-grid,
    .featured-grid,
    .wide-grid,
    .compact-grid,
    .category-movie-grid,
    .category-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-body {
        padding: 12px;
    }

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

    .rank-row .small-button {
        grid-column: 2 / -1;
        justify-self: start;
    }

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

    .detail-head img {
        width: 180px;
        margin-bottom: 18px;
    }

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

    .player-section {
        padding: 12px 0;
    }

    .player-shell {
        border-radius: 14px;
    }

    .large-search,
    .spotlight-search {
        display: grid;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .featured-grid,
    .wide-grid,
    .compact-grid,
    .category-movie-grid,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .mobile-categories,
    .info-grid {
        grid-template-columns: 1fr;
    }
}
