:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --cyan: #06b6d4;
    --cyan-soft: #cffafe;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --white: #ffffff;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-solid: #ffffff;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--slate-900);
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #ecfeff 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.brand-text {
    font-size: 20px;
    background: linear-gradient(90deg, var(--primary-dark), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--slate-600);
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark);
    background: #dbeafe;
}

.header-search {
    width: 280px;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    overflow: hidden;
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 10px 4px 10px 16px;
}

.header-search button,
.search-panel button,
.btn-primary {
    border: 0;
    color: #fff;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.header-search button {
    padding: 10px 16px;
}

.header-search button:hover,
.search-panel button:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.32);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: #eef2ff;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--slate-200);
    padding: 12px 16px 16px;
    background: rgba(255, 255, 255, 0.94);
}

.mobile-nav a {
    display: block;
    padding: 12px 10px;
    border-radius: 14px;
    color: var(--slate-700);
    font-weight: 700;
}

.mobile-nav a:hover {
    background: #eff6ff;
    color: var(--primary-dark);
}

.mobile-nav.open {
    display: block;
}

.hero-slider {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: var(--slate-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease;
}

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

.hero-shade,
.page-hero-shade,
.detail-hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(6, 182, 212, 0.35), transparent 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.58), rgba(2, 6, 23, 0.1));
}

.hero-content {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
    color: #fff;
    animation: fadeUp 0.8s ease both;
}

.hero-label,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #22d3ee;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 14px 0 18px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-stats,
.detail-stats,
.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-stats {
    margin-top: 22px;
    color: #e2e8f0;
}

.hero-stats span,
.detail-stats span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(10px);
}

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

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 900;
}

.btn-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    transition: 0.25s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-tags,
.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags a,
.category-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(125, 211, 252, 0.24);
    font-weight: 700;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(16px);
}

.hero-prev,
.hero-next {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.16);
}

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

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

.hero-dot.active {
    width: 30px;
    background: #22d3ee;
}

.hero-search-panel {
    position: relative;
    z-index: 7;
    margin-top: -48px;
    padding: 22px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    gap: 18px;
}

.search-panel {
    flex: 1;
    display: flex;
    gap: 10px;
}

.search-panel input,
.filter-form input,
.filter-form select {
    width: 100%;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    background: #fff;
    color: var(--slate-800);
    outline: none;
    padding: 14px 16px;
    transition: 0.25s ease;
}

.search-panel input:focus,
.filter-form input:focus,
.filter-form select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
}

.search-panel button {
    border-radius: 16px;
    padding: 0 24px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a {
    padding: 12px 14px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: #dbeafe;
    font-weight: 800;
}

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

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

.section-heading h2 {
    margin: 8px 0;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.12;
}

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

.section-link {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: #dbeafe;
    font-weight: 900;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.16);
    transform: translateZ(0);
}

.category-tile img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    transition: 0.45s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.84));
}

.category-tile strong,
.category-tile em {
    position: absolute;
    left: 18px;
    right: 18px;
    color: #fff;
}

.category-tile strong {
    bottom: 58px;
    font-size: 22px;
}

.category-tile em {
    bottom: 18px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: var(--surface-solid);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.72));
}

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(37, 99, 235, 0.84);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 900;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%) scale(0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    opacity: 0;
    transition: 0.25s ease;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.34);
}

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

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

.movie-meta-line {
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-content h2 a:hover,
.category-card h2 a:hover,
.prose-card a:hover {
    color: var(--primary-dark);
}

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

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

.tag-row span {
    padding: 5px 9px;
    color: #0369a1;
    background: #e0f2fe;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card-compact h3 {
    font-size: 16px;
}

.movie-card-compact p {
    min-height: 42px;
    font-size: 13px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.soft-hero {
    color: var(--slate-900);
    background:
        radial-gradient(circle at 15% 30%, rgba(14, 165, 233, 0.2), transparent 28%),
        linear-gradient(135deg, #eef2ff, #ecfeff);
}

.soft-hero p {
    color: var(--slate-600);
    max-width: 760px;
}

.category-hero .container,
.detail-hero .container {
    position: relative;
}

.filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.filter-form select[name="sort"]:only-child {
    grid-column: span 1;
}

.empty-state {
    display: none;
    margin: 28px 0;
    padding: 28px;
    text-align: center;
    color: var(--slate-600);
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.empty-state.show {
    display: block;
}

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

.category-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    padding: 18px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.1);
}

.category-card-image {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 4 / 3;
}

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

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

.category-card p {
    margin: 0;
    color: var(--slate-600);
    line-height: 1.7;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.mini-links a {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: #dbeafe;
    font-size: 13px;
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 50px 78px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: 0.25s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.rank-num,
.ranking-number {
    color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 24px;
    font-weight: 900;
}

.rank-item img {
    width: 78px;
    height: 104px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info strong {
    margin-bottom: 6px;
    font-size: 16px;
}

.rank-info em {
    color: var(--slate-500);
    font-style: normal;
    line-height: 1.5;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 64px 100px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.ranking-poster {
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 2 / 3;
}

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

.ranking-content h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.ranking-content p {
    margin: 0 0 12px;
    color: var(--slate-600);
    line-height: 1.7;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.detail-hero-inner {
    position: relative;
    padding: 42px 0 56px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 28px;
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #fff;
}

.detail-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 38px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-info h1 {
    max-width: 860px;
}

.detail-stats {
    margin: 22px 0 14px;
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.detail-info .btn-primary {
    margin-top: 26px;
}

.detail-content {
    padding-top: 42px;
}

.player-card {
    padding: 18px;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.7));
    transition: opacity 0.25s ease;
}

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

.play-icon {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.42);
    font-size: 32px;
}

.player-overlay strong {
    font-size: 20px;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    margin-top: 28px;
}

.prose-card,
.info-card {
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.09);
}

.prose-card h2,
.info-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.prose-card p {
    margin: 0 0 24px;
    color: var(--slate-700);
    line-height: 1.9;
    font-size: 16px;
}

.prose-card p:last-child {
    margin-bottom: 0;
}

.info-card dl {
    margin: 0;
    display: grid;
    gap: 14px;
}

.info-card dt {
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 800;
}

.info-card dd {
    margin: -8px 0 0;
    color: var(--slate-800);
    line-height: 1.6;
    font-weight: 700;
}

.info-card a {
    color: var(--primary-dark);
}

.site-footer {
    margin-top: 44px;
    color: #cbd5e1;
    background: var(--slate-950);
}

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

.footer-brand {
    color: #fff;
    margin-bottom: 14px;
    font-size: 20px;
}

.site-footer h3 {
    color: #67e8f9;
    margin: 0 0 14px;
    font-size: 16px;
}

.site-footer p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer a {
    display: block;
    margin: 0 0 9px;
    color: #94a3b8;
}

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

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    text-align: center;
    padding: 20px 16px;
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 50;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: 0.25s ease;
}

.back-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

[data-card-grid] [hidden] {
    display: none !important;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .header-search {
        display: none;
    }

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

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

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

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

    .mobile-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .hero-slider,
    .hero-content {
        min-height: 570px;
    }

    .hero-search-panel,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .search-panel {
        flex-direction: column;
    }

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

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

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

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

    .ranking-row {
        grid-template-columns: 48px 84px 1fr;
        gap: 12px;
    }
}

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

    .brand-text {
        font-size: 17px;
    }

    .hero-slider,
    .hero-content {
        min-height: 620px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 36px;
    }

    .hero-controls {
        bottom: 18px;
    }

    .category-grid,
    .movie-grid,
    .compact-grid,
    .category-overview-grid,
    .rank-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-item {
        grid-template-columns: 42px 74px 1fr;
    }

    .ranking-row {
        grid-template-columns: 44px 74px 1fr;
        padding: 12px;
    }

    .ranking-content h2 {
        font-size: 18px;
    }

    .prose-card,
    .info-card,
    .player-card {
        padding: 16px;
    }
}
