:root {
    --night-950: #0f1115;
    --night-925: #151820;
    --night-900: #1a1c23;
    --night-850: #242733;
    --night-800: #3b3d44;
    --night-700: #454750;
    --warm-50: #faf8f3;
    --warm-100: #f4eddd;
    --warm-300: #e7dbc0;
    --warm-400: #c8a670;
    --maple-400: #f88171;
    --maple-500: #ef5844;
    --maple-600: #dc3a26;
    --maple-900: #7f281d;
    --shadow-deep: 0 24px 70px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.28);
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(239, 88, 68, 0.16), transparent 32rem),
        radial-gradient(circle at 80% 10%, rgba(200, 166, 112, 0.1), transparent 28rem),
        var(--night-950);
    color: var(--warm-50);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

img {
    display: block;
    max-width: 100%;
    background: linear-gradient(135deg, var(--night-850), var(--night-900));
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(69, 71, 80, 0.75);
    background: rgba(26, 28, 35, 0.92);
    backdrop-filter: blur(14px);
}

.nav-shell {
    max-width: 1536px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--warm-50);
    font-weight: 800;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.logo-mark {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--maple-500), var(--maple-900));
    box-shadow: 0 10px 24px rgba(239, 88, 68, 0.25);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--warm-300);
    font-weight: 600;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--maple-400);
    background: rgba(239, 88, 68, 0.1);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 12px);
    width: 220px;
    padding: 8px;
    border: 1px solid rgba(69, 71, 80, 0.9);
    border-radius: 14px;
    background: rgba(26, 28, 35, 0.98);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.25s ease;
}

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

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--warm-300);
}

.dropdown-panel a:hover {
    color: var(--maple-400);
    background: var(--night-800);
}

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

.nav-search input,
.mobile-panel input,
.big-search input,
.filter-panel input {
    width: min(360px, 38vw);
    border: 1px solid var(--night-700);
    border-radius: 12px;
    padding: 11px 14px;
    color: var(--warm-50);
    background: var(--night-850);
    outline: none;
    transition: border 0.25s ease, box-shadow 0.25s ease;
}

.nav-search input:focus,
.mobile-panel input:focus,
.big-search input:focus,
.filter-panel input:focus {
    border-color: var(--maple-500);
    box-shadow: 0 0 0 4px rgba(239, 88, 68, 0.16);
}

.nav-search button,
.big-search button,
.mobile-panel button {
    border: 0;
    border-radius: 12px;
    padding: 11px 16px;
    color: #ffffff;
    background: var(--maple-600);
    cursor: pointer;
    transition: 0.25s ease;
}

.nav-search button:hover,
.big-search button:hover,
.mobile-panel button:hover {
    background: var(--maple-500);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid var(--night-700);
    border-radius: 10px;
    padding: 8px 10px;
    color: var(--warm-50);
    background: var(--night-850);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 24px 18px;
    border-top: 1px solid rgba(69, 71, 80, 0.5);
    background: rgba(26, 28, 35, 0.98);
}

.mobile-panel.is-open {
    display: grid;
    gap: 12px;
}

.mobile-panel a {
    padding: 10px 0;
    color: var(--warm-300);
}

.mobile-panel form {
    display: grid;
    gap: 10px;
}

.mobile-panel input {
    width: 100%;
}

.page-main {
    width: min(1536px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.narrow-page {
    width: min(1180px, calc(100% - 32px));
}

.animate-fade-in {
    animation: fadeIn 0.55s ease both;
}

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

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    border: 1px solid rgba(69, 71, 80, 0.78);
    border-radius: 30px;
    background: var(--night-900);
    box-shadow: var(--shadow-deep);
}

.hero-slides {
    position: relative;
    min-height: 70vh;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
    gap: 40px;
    align-items: center;
    padding: clamp(28px, 6vw, 72px);
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.015);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 17, 21, 0.96), rgba(15, 17, 21, 0.76) 48%, rgba(15, 17, 21, 0.45)),
        linear-gradient(0deg, rgba(15, 17, 21, 0.86), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero-kicker,
.section-kicker {
    margin: 0 0 12px;
    color: var(--maple-400);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-content h1 {
    margin: 0;
    color: var(--warm-50);
    font-size: clamp(2.4rem, 6vw, 5.5rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.hero-summary {
    margin: 22px 0 0;
    max-width: 680px;
    color: var(--warm-300);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid rgba(200, 166, 112, 0.32);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--warm-300);
    background: rgba(26, 28, 35, 0.72);
}

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

.btn-primary,
.btn-ghost,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    min-height: 46px;
    padding: 0 20px;
    font-weight: 800;
    transition: transform 0.25s ease, background 0.25s ease, border 0.25s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--maple-600), var(--maple-500));
    box-shadow: 0 14px 30px rgba(239, 88, 68, 0.24);
}

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

.btn-ghost,
.section-more {
    border: 1px solid rgba(200, 166, 112, 0.3);
    color: var(--warm-100);
    background: rgba(26, 28, 35, 0.62);
}

.hero-poster {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(200, 166, 112, 0.25);
    border-radius: 24px;
    box-shadow: var(--shadow-deep);
    transform: rotate(1.5deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    left: clamp(28px, 6vw, 72px);
    bottom: 122px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 30px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(250, 248, 243, 0.35);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--maple-500);
}

.hero-strip {
    position: absolute;
    left: clamp(20px, 4vw, 52px);
    right: clamp(20px, 4vw, 52px);
    bottom: 24px;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.hero-thumb {
    display: grid;
    grid-template-columns: 78px 1fr;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(69, 71, 80, 0.88);
    border-radius: 16px;
    color: var(--warm-100);
    background: rgba(26, 28, 35, 0.78);
    backdrop-filter: blur(10px);
}

.hero-thumb img {
    width: 78px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 11px;
}

.hero-thumb span {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 700;
}

.home-search-panel,
.page-hero,
.content-section,
.detail-body,
.player-section {
    margin-top: 32px;
    border: 1px solid rgba(69, 71, 80, 0.72);
    border-radius: var(--radius-xl);
    background: rgba(26, 28, 35, 0.74);
    box-shadow: var(--shadow-soft);
}

.home-search-panel {
    padding: clamp(24px, 4vw, 40px);
    display: grid;
    gap: 12px;
    background:
        radial-gradient(circle at top right, rgba(239, 88, 68, 0.16), transparent 28rem),
        rgba(26, 28, 35, 0.74);
}

.home-search-panel h2,
.page-hero h1,
.section-head h2,
.large-feature h2,
.detail-copy h1,
.detail-body h2,
.player-section h2 {
    margin: 0;
    color: var(--warm-50);
    line-height: 1.15;
}

.home-search-panel h2,
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.8rem);
}

.home-search-panel p,
.page-hero p,
.large-feature p,
.detail-one-line,
.detail-body p {
    color: var(--warm-300);
}

.big-search {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.big-search input {
    width: min(680px, 100%);
}

.content-section {
    padding: clamp(20px, 3vw, 32px);
}

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

.section-head h2 {
    font-size: clamp(1.5rem, 2.2vw, 2.3rem);
}

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

.video-card {
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(69, 71, 80, 0.78);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(36, 39, 51, 0.92), rgba(26, 28, 35, 0.96));
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(239, 88, 68, 0.65);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34);
}

.video-card-cover-wrap {
    position: relative;
    display: block;
    overflow: hidden;
}

.video-card-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.video-card:hover .video-card-cover {
    transform: scale(1.06);
}

.play-badge,
.card-rank {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(220, 58, 38, 0.9);
}

.play-badge {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.card-rank {
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    font-weight: 900;
}

.video-card-content {
    padding: 16px;
}

.video-card-title {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 8px;
    color: var(--warm-50);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.25s ease;
}

.video-card-title:hover {
    color: var(--maple-400);
}

.video-card-description {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--warm-300);
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--warm-400);
    font-size: 0.82rem;
}

.video-card .tag-row {
    margin-top: 12px;
}

.video-card .tag-row span {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 0.78rem;
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 300px);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
    display: none;
}

.movie-card-compact .video-card-content {
    padding: 14px;
}

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

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 160px;
    padding: 22px;
    border: 1px solid rgba(69, 71, 80, 0.78);
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(239, 88, 68, 0.2), transparent 11rem),
        linear-gradient(135deg, rgba(36, 39, 51, 0.95), rgba(26, 28, 35, 0.94));
    transition: transform 0.28s ease, border 0.28s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(239, 88, 68, 0.7);
}

.category-tile span {
    display: block;
    margin-bottom: 12px;
    color: var(--maple-400);
    font-size: 1.35rem;
    font-weight: 900;
}

.category-tile strong,
.category-tile em {
    display: block;
    color: var(--warm-300);
    font-style: normal;
    font-weight: 500;
}

.category-tile em {
    margin-top: 14px;
    color: var(--warm-400);
    font-size: 0.9rem;
}

.large-feature {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    margin-top: 32px;
    border: 1px solid rgba(69, 71, 80, 0.72);
    border-radius: 28px;
    background-image: var(--feature-image);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-deep);
}

.large-feature-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 17, 21, 0.98), rgba(15, 17, 21, 0.76), rgba(15, 17, 21, 0.3)),
        linear-gradient(0deg, rgba(15, 17, 21, 0.9), transparent);
}

.large-feature-content {
    position: relative;
    z-index: 1;
    max-width: 740px;
    padding: clamp(28px, 5vw, 60px);
}

.large-feature h2 {
    font-size: clamp(2rem, 4vw, 4.5rem);
}

.large-feature p {
    margin: 18px 0 0;
    font-size: 1.05rem;
}

.large-feature .btn-primary {
    margin-top: 26px;
}

.split-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.mini-list {
    display: grid;
    gap: 12px;
}

.mini-item,
.ranking-item {
    display: grid;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(69, 71, 80, 0.72);
    border-radius: 16px;
    background: rgba(36, 39, 51, 0.68);
    transition: transform 0.25s ease, border 0.25s ease;
}

.mini-item {
    grid-template-columns: 96px 1fr;
    padding: 8px;
}

.mini-item:hover,
.ranking-item:hover {
    transform: translateX(4px);
    border-color: rgba(239, 88, 68, 0.55);
}

.mini-item img,
.ranking-item img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

.mini-item strong,
.ranking-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--warm-50);
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.mini-item small,
.ranking-copy small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--warm-400);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-grid,
.ranking-page-list {
    display: grid;
    gap: 12px;
}

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

.ranking-item {
    grid-template-columns: 44px 108px 1fr;
    padding: 10px;
}

.ranking-number {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 900;
    background: var(--maple-600);
}

.page-hero {
    padding: clamp(28px, 5vw, 56px);
}

.simple-hero,
.category-hero {
    background:
        radial-gradient(circle at right top, rgba(239, 88, 68, 0.18), transparent 28rem),
        linear-gradient(135deg, rgba(36, 39, 51, 0.9), rgba(26, 28, 35, 0.96));
}

.filter-panel {
    margin-top: 22px;
}

.filter-panel input {
    width: min(560px, 100%);
}

.filter-panel-wide input {
    width: min(760px, 100%);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.chip-row button {
    border: 1px solid rgba(200, 166, 112, 0.28);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--warm-300);
    background: rgba(26, 28, 35, 0.75);
    cursor: pointer;
}

.chip-row button.is-active,
.chip-row button:hover {
    color: #ffffff;
    border-color: var(--maple-500);
    background: var(--maple-600);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--warm-400);
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
    gap: 32px;
    align-items: stretch;
    border: 1px solid rgba(69, 71, 80, 0.72);
    border-radius: 28px;
    padding: clamp(18px, 3vw, 34px);
    background:
        radial-gradient(circle at 0 0, rgba(239, 88, 68, 0.18), transparent 24rem),
        rgba(26, 28, 35, 0.78);
    box-shadow: var(--shadow-soft);
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(200, 166, 112, 0.24);
    border-radius: 22px;
}

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

.detail-copy {
    align-self: center;
}

.detail-copy h1 {
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    letter-spacing: -0.05em;
}

.detail-one-line {
    margin: 18px 0 0;
    max-width: 960px;
    font-size: 1.1rem;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.detail-meta span {
    display: grid;
    gap: 4px;
    border: 1px solid rgba(69, 71, 80, 0.65);
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--warm-300);
    background: rgba(36, 39, 51, 0.62);
}

.detail-meta b {
    color: var(--warm-400);
    font-size: 0.82rem;
}

.scroll-to-player {
    margin-top: 28px;
}

.player-section {
    padding: clamp(20px, 3vw, 32px);
}

.player-shell {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid rgba(69, 71, 80, 0.82);
    border-radius: 22px;
    background: #000000;
    box-shadow: var(--shadow-deep);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle, rgba(239, 88, 68, 0.2), rgba(0, 0, 0, 0.66)),
        rgba(0, 0, 0, 0.32);
    cursor: pointer;
}

.player-overlay span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--maple-600), var(--maple-500));
    box-shadow: 0 20px 45px rgba(239, 88, 68, 0.28);
}

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

.detail-body {
    padding: clamp(22px, 3vw, 36px);
}

.detail-body h2 + p {
    margin-top: 12px;
}

.detail-body p {
    font-size: 1.05rem;
}

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

.site-footer {
    border-top: 1px solid rgba(69, 71, 80, 0.7);
    background: rgba(15, 17, 21, 0.96);
}

.footer-inner {
    width: min(1536px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--warm-300);
}

.footer-inner p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 14px;
}

.footer-links a:hover {
    color: var(--maple-400);
}

.is-filtered-out {
    display: none !important;
}

@media (max-width: 1180px) {
    .card-grid,
    .related-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

    .hero-thumb:nth-child(n + 4) {
        display: none;
    }
}

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

    .mobile-toggle {
        display: inline-flex;
    }

    .nav-shell {
        height: 64px;
        padding: 0 16px;
    }

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

    .hero-slide {
        padding: 28px 22px 150px;
    }

    .hero-dots {
        bottom: 116px;
        left: 22px;
    }

    .hero-strip {
        left: 14px;
        right: 14px;
        bottom: 16px;
        grid-template-columns: 1fr;
    }

    .hero-thumb:nth-child(n + 2) {
        display: none;
    }

    .card-grid,
    .related-grid,
    .category-grid,
    .category-grid-large,
    .ranking-grid,
    .split-sections,
    .detail-hero {
        grid-template-columns: 1fr;
    }

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

    .detail-poster img {
        min-height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 560px) {
    .page-main,
    .footer-inner {
        width: min(100% - 20px, 1536px);
    }

    .hero-carousel,
    .hero-slides {
        min-height: 720px;
        border-radius: 22px;
    }

    .hero-content h1,
    .detail-copy h1 {
        font-size: 2.4rem;
    }

    .hero-actions,
    .big-search {
        display: grid;
    }

    .btn-primary,
    .btn-ghost,
    .section-more,
    .big-search button {
        width: 100%;
    }

    .ranking-item {
        grid-template-columns: 38px 86px 1fr;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
