:root {
    color-scheme: light;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;
    --emerald-600: #059669;
    --amber-500: #f59e0b;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
    --shadow-xl: 0 22px 55px rgba(15, 23, 42, 0.22);
    --radius: 0.75rem;
}

html {
    scroll-behavior: smooth;
}

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

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

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container-custom {
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
}

.narrow {
    max-width: 860px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}

.nav-shell {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--slate-900);
    text-decoration: none;
}

.brand-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-grid;
    place-items: center;
    border-radius: 0.65rem;
    background: var(--blue-600);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
}

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

.brand-text strong {
    font-size: 1.18rem;
    font-weight: 800;
}

.brand-text em {
    margin-top: 0.16rem;
    font-size: 0.72rem;
    color: var(--slate-500);
    font-style: normal;
    letter-spacing: 0.08em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.desktop-nav a,
.nav-dropdown button {
    border: 0;
    background: transparent;
    color: var(--slate-700);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.nav-dropdown button:hover {
    color: var(--blue-600);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 13rem;
    padding: 0.6rem;
    margin-top: 0.6rem;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

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

.dropdown-menu a {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 0.55rem;
    font-size: 0.92rem;
}

.dropdown-menu a:hover {
    background: var(--blue-50);
}

.nav-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-search input,
.mobile-search input,
.search-page-form input,
.hero-search-panel input,
.filter-panel input,
.filter-panel select {
    border: 1px solid var(--slate-200);
    border-radius: 0.7rem;
    background: var(--slate-100);
    color: var(--slate-900);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-search input {
    width: 16rem;
    padding: 0.65rem 0.85rem;
}

.nav-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.hero-search-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--blue-500);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.nav-search button,
.mobile-search button,
.search-page-form button,
.hero-search-panel button {
    border: 0;
    border-radius: 0.7rem;
    background: var(--blue-600);
    color: var(--white);
    padding: 0.65rem 0.9rem;
    cursor: pointer;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    border: 0;
    background: var(--slate-100);
    color: var(--slate-800);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 1rem;
    border-top: 1px solid var(--slate-200);
    background: var(--white);
}

.mobile-nav.is-open {
    display: grid;
    gap: 0.8rem;
}

.mobile-nav a {
    color: var(--slate-700);
    text-decoration: none;
    font-weight: 600;
}

.mobile-category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.8rem;
    background: var(--slate-50);
    border-radius: var(--radius);
}

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

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

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

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
    transform: scale(1.02);
}

.hero-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.12));
}

.hero-content {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
    align-items: center;
    gap: 3rem;
    z-index: 2;
}

.hero-copy {
    max-width: 720px;
    color: var(--white);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--blue-500);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-copy h1,
.sub-hero h1,
.detail-main h1 {
    margin: 0.8rem 0 1rem;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 640px;
    margin: 0 0 1.6rem;
    color: var(--slate-300);
    font-size: 1.13rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.btn-primary,
.btn-glass,
.inline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.72rem 1.35rem;
    border-radius: 0.7rem;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--blue-600);
    color: var(--white);
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover,
.nav-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover,
.hero-search-panel button:hover {
    background: var(--blue-700);
}

.btn-primary:hover,
.btn-glass:hover {
    transform: translateY(-1px);
}

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

.hero-meta {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 1rem;
    border-radius: 0.7rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.10);
}

.hero-feature-card {
    display: block;
    overflow: hidden;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    color: var(--white);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-xl);
}

.hero-feature-card .poster {
    border-radius: 0.75rem;
    margin-bottom: 0.8rem;
}

.hero-feature-card strong,
.hero-feature-card span {
    display: block;
    padding: 0 0.25rem;
}

.hero-feature-card strong {
    font-size: 1.05rem;
}

.hero-feature-card span {
    color: var(--slate-300);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 6.5rem;
    z-index: 4;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

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

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

.hero-search-panel {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    z-index: 5;
    transform: translateX(-50%);
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-search-panel form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
}

.hero-search-panel input {
    min-width: min(620px, 64vw);
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.95);
}

.hero-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hero-category-links a {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    text-decoration: none;
    font-size: 0.88rem;
}

.section {
    padding: 4rem 0;
}

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

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

.gradient-section {
    background: linear-gradient(135deg, var(--blue-50), var(--slate-50));
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-heading h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.2;
    font-weight: 900;
}

.section-heading p {
    max-width: 720px;
    margin: 0.45rem 0 0;
    color: var(--slate-600);
    line-height: 1.7;
}

.section-more {
    color: var(--blue-600);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.horizontal-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 360px);
    gap: 1rem;
    overflow-x: auto;
    padding: 0.25rem 0 1rem;
}

.scrollbar-hide {
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.movie-grid {
    display: grid;
    gap: 1.35rem;
}

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

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

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

.movie-card,
.horizontal-card,
.category-card,
.ranking-row {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover,
.horizontal-card:hover,
.category-card:hover,
.ranking-row:hover {
    transform: translateY(-3px);
    border-color: var(--slate-300);
    box-shadow: var(--shadow-md);
}

.card-link,
.horizontal-card a,
.ranking-row a,
.category-card {
    color: inherit;
    text-decoration: none;
}

.poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--slate-800), var(--blue-700));
}

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

.movie-card:hover .poster img,
.horizontal-card:hover .poster img,
.ranking-row:hover .poster img {
    transform: scale(1.06);
}

.poster.is-missing::after {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    color: var(--white);
    font-weight: 800;
    text-align: center;
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.78), rgba(15, 23, 42, 0.96));
}

.type-badge,
.category-badge,
.rank-badge,
.rank-number {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 800;
}

.type-badge {
    right: 0.65rem;
    bottom: 0.65rem;
    padding: 0.25rem 0.55rem;
    background: rgba(0, 0, 0, 0.72);
}

.category-badge {
    left: 0.65rem;
    top: 0.65rem;
    padding: 0.25rem 0.55rem;
    background: rgba(37, 99, 235, 0.88);
}

.rank-badge,
.rank-number {
    left: 0.65rem;
    bottom: 0.65rem;
    padding: 0.25rem 0.55rem;
    background: rgba(245, 158, 11, 0.95);
}

.card-body {
    padding: 1rem;
}

.card-body h3,
.horizontal-info h3,
.ranking-row h3 {
    margin: 0 0 0.45rem;
    color: var(--slate-900);
    font-size: 1.02rem;
    font-weight: 850;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.card-body p,
.horizontal-info p,
.ranking-row p {
    margin: 0 0 0.8rem;
    color: var(--slate-600);
    font-size: 0.92rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.card-meta,
.tag-row,
.info-pills,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.card-meta {
    color: var(--slate-500);
    font-size: 0.8rem;
    justify-content: space-between;
}

.tag-row {
    margin-top: 0.8rem;
}

.tag-row span,
.info-pills span,
.tag-cloud a {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.5rem;
    border-radius: 0.45rem;
    background: var(--slate-100);
    color: var(--slate-600);
    font-size: 0.78rem;
    text-decoration: none;
}

.horizontal-card a {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 1rem;
    height: 100%;
    padding: 0.85rem;
}

.horizontal-card .poster {
    border-radius: 0.65rem;
}

.horizontal-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.category-grid.large {
    gap: 1.25rem;
}

.category-card {
    padding: 1rem;
}

.category-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.mini-thumb {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 0.6rem;
    background: var(--slate-200);
}

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

.category-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1.2rem;
    font-weight: 900;
}

.category-card p {
    min-height: 3.2rem;
    margin: 0 0 0.8rem;
    color: var(--slate-600);
    line-height: 1.6;
}

.category-card > span {
    color: var(--blue-600);
    font-weight: 800;
}

.filter-panel {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    background: var(--slate-50);
}

.filter-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    color: var(--slate-700);
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 190px));
    gap: 0.85rem;
}

.filter-controls label {
    display: grid;
    gap: 0.3rem;
    color: var(--slate-600);
    font-size: 0.86rem;
    font-weight: 700;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 0.75rem 0.8rem;
}

.empty-state {
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--slate-100);
    color: var(--slate-600);
    text-align: center;
}

.sub-hero {
    padding: 5rem 0;
    color: var(--white);
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.55), transparent 35%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.sub-hero p {
    max-width: 760px;
    color: var(--slate-300);
    font-size: 1.05rem;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--slate-500);
    font-size: 0.9rem;
}

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

.breadcrumb.dark,
.breadcrumb.dark a {
    color: var(--slate-300);
}

.search-page-form {
    display: flex;
    max-width: 720px;
    gap: 0.75rem;
    margin-top: 1.3rem;
}

.search-page-form input {
    flex: 1;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.95);
}

.ranking-list {
    display: grid;
    gap: 0.8rem;
}

.ranking-row a {
    display: grid;
    grid-template-columns: 3.2rem 138px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem;
}

.ranking-index {
    color: var(--blue-600);
    font-size: 1.35rem;
    font-weight: 900;
    text-align: center;
}

.ranking-row .poster {
    border-radius: 0.65rem;
}

.player-stage {
    padding: 2rem 0 3rem;
    background: #000000;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    background: var(--slate-900);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.video-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.6rem;
    border: 0;
    color: var(--white);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.26));
    cursor: pointer;
}

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

.play-circle {
    width: 4.5rem;
    height: 4.5rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--blue-600);
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.36);
    font-size: 1.8rem;
}

.player-overlay strong {
    font-size: 1.2rem;
}

.player-overlay em {
    color: var(--slate-300);
    font-style: normal;
}

.player-message {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 4;
    margin: 0;
    padding: 0.45rem 0.7rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.72);
    color: var(--white);
    font-size: 0.9rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 2rem;
    align-items: start;
}

.detail-poster-card {
    position: sticky;
    top: 5.5rem;
    padding: 1rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.detail-poster-card .poster {
    border-radius: 0.8rem;
    margin-bottom: 1rem;
}

.full-width {
    width: 100%;
}

.detail-main {
    color: var(--slate-800);
    line-height: 1.85;
}

.detail-main h1 {
    color: var(--slate-900);
    font-size: clamp(2rem, 4vw, 3.3rem);
}

.detail-main .lead {
    margin: 0 0 1rem;
    color: var(--slate-600);
    font-size: 1.12rem;
}

.info-pills {
    margin: 1rem 0;
}

.info-pills span {
    background: var(--blue-50);
    color: var(--blue-700);
    font-weight: 700;
}

.tag-cloud {
    margin: 1rem 0 2rem;
}

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

.detail-main h2,
.prose-section h2 {
    margin: 2rem 0 0.75rem;
    color: var(--slate-900);
    font-size: 1.45rem;
    font-weight: 900;
}

.detail-main p,
.prose-section p {
    color: var(--slate-700);
    line-height: 1.9;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem 0;
}

.footer-brand {
    color: var(--white);
    font-weight: 900;
    margin-bottom: 1rem;
}

.site-footer h2 {
    margin: 0 0 1rem;
    color: var(--white);
    font-size: 1rem;
}

.site-footer p,
.site-footer li {
    color: var(--slate-400);
    line-height: 1.75;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.45rem;
}

.site-footer a {
    color: var(--slate-300);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--blue-500);
}

.footer-bottom {
    padding: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.12);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--slate-500);
}

[hidden] {
    display: none !important;
}

@media (max-width: 1180px) {
    .grid-5 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .desktop-nav {
        gap: 1rem;
    }

    .nav-search input {
        width: 13rem;
    }
}

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

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

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

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 1.5rem;
    }

    .hero-feature-card {
        display: none;
    }

    .hero-search-panel {
        width: min(96vw, 760px);
    }

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

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

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

    .detail-poster-card {
        position: static;
        max-width: 420px;
    }
}

@media (max-width: 640px) {
    .container-custom {
        width: min(100% - 1rem, 1280px);
    }

    .brand-text strong {
        font-size: 1rem;
    }

    .hero-carousel {
        min-height: 720px;
    }

    .hero-copy h1,
    .sub-hero h1 {
        font-size: 2.25rem;
    }

    .hero-search-panel form,
    .search-page-form {
        grid-template-columns: 1fr;
        display: grid;
    }

    .hero-search-panel input {
        min-width: 0;
        width: 100%;
    }

    .hero-dots {
        bottom: 8.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-heading {
        display: grid;
        gap: 0.8rem;
    }

    .horizontal-scroll {
        grid-auto-columns: minmax(260px, 86vw);
    }

    .grid-3,
    .grid-4,
    .grid-5,
    .category-grid,
    .category-grid.large,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .horizontal-card a {
        grid-template-columns: 1fr;
    }

    .ranking-row a {
        grid-template-columns: 2.7rem 96px 1fr;
        gap: 0.7rem;
    }

    .ranking-row p {
        display: none;
    }

    .player-stage {
        padding: 1rem 0 2rem;
    }

    .player-shell {
        border-radius: 0.7rem;
    }
}
