:root {
    color-scheme: dark;
    --night-950: #070706;
    --night-925: #0c0908;
    --night-900: #12100e;
    --night-850: #191410;
    --night-800: #211a15;
    --night-750: #2a2119;
    --warm-50: #fff7ed;
    --warm-100: #ffedd5;
    --warm-200: #fed7aa;
    --warm-300: #fdba74;
    --warm-400: #d7c5ad;
    --warm-500: #9c8871;
    --maple-300: #fdba74;
    --maple-400: #fb923c;
    --maple-500: #f97316;
    --maple-600: #ea580c;
    --maple-700: #c2410c;
    --line: rgba(255, 237, 213, 0.09);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --container: 1480px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.16), transparent 30%),
        radial-gradient(circle at 84% 12%, rgba(194, 65, 12, 0.12), transparent 26%),
        linear-gradient(180deg, var(--night-950), var(--night-925) 34%, 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.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-page {
    min-height: 100vh;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 8, 7, 0.82);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

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

.logo-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--maple-500), var(--maple-700));
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
}

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

.nav-link,
.nav-trigger {
    border: 0;
    background: transparent;
    color: var(--warm-400);
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-trigger:hover,
.logo:hover {
    color: var(--maple-400);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 14px);
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(18, 16, 14, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 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: 10px 12px;
    border-radius: 10px;
    color: var(--warm-400);
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: rgba(249, 115, 22, 0.12);
    color: var(--maple-300);
}

.header-search {
    position: relative;
    width: 280px;
}

.header-search input,
.filter-input,
.filter-select,
.search-hero-input {
    width: 100%;
    border: 1px solid rgba(255, 237, 213, 0.12);
    outline: none;
    border-radius: 14px;
    color: var(--warm-50);
    background: rgba(33, 26, 21, 0.82);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    height: 42px;
    padding: 0 44px 0 16px;
}

.header-search button {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 10px;
    color: var(--warm-50);
    background: linear-gradient(135deg, var(--maple-500), var(--maple-700));
}

.header-search input:focus,
.filter-input:focus,
.filter-select:focus,
.search-hero-input:focus {
    border-color: rgba(249, 115, 22, 0.72);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
    background: rgba(33, 26, 21, 0.96);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(33, 26, 21, 0.74);
    color: var(--warm-50);
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(18, 16, 14, 0.96);
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu-inner {
    display: grid;
    gap: 12px;
    padding: 18px 0 22px;
}

.mobile-menu a {
    color: var(--warm-300);
    font-weight: 650;
}

.mobile-menu .header-search {
    width: 100%;
}

.main {
    padding-bottom: 72px;
}

.hero-wrap {
    padding-top: 28px;
}

.hero-carousel {
    position: relative;
    min-height: 76vh;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--night-900);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

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

.gradient-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 7, 6, 0.94) 0%, rgba(7, 7, 6, 0.68) 38%, rgba(7, 7, 6, 0.14) 100%),
        linear-gradient(0deg, rgba(7, 7, 6, 0.98) 0%, transparent 42%);
}

.hero-content {
    position: absolute;
    left: clamp(24px, 6vw, 88px);
    right: clamp(24px, 6vw, 88px);
    bottom: clamp(38px, 9vh, 96px);
    max-width: 760px;
    z-index: 2;
}

.hero-kicker,
.category-badge,
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    border: 1px solid rgba(249, 115, 22, 0.34);
    color: var(--maple-300);
    background: rgba(249, 115, 22, 0.12);
    border-radius: 999px;
    line-height: 1;
    font-weight: 750;
}

.hero-kicker,
.category-badge {
    padding: 8px 12px;
    font-size: 13px;
}

.tag {
    padding: 7px 10px;
    color: var(--warm-200);
    font-size: 12px;
}

.hero-title {
    margin: 18px 0 14px;
    font-size: clamp(42px, 7vw, 88px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    text-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
}

.hero-text {
    max-width: 660px;
    margin: 0;
    color: var(--warm-200);
    font-size: clamp(17px, 2vw, 22px);
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
}

.hero-meta,
.video-card-meta,
.movie-meta,
.compact-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    color: var(--warm-500);
    font-size: 14px;
}

.hero-meta {
    margin-top: 22px;
    color: var(--warm-300);
}

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

.btn-primary,
.btn-ghost,
.btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    min-height: 48px;
    padding: 0 22px;
    color: #1b0d05;
    background: linear-gradient(135deg, var(--maple-300), var(--maple-500));
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover,
.btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(249, 115, 22, 0.34);
}

.btn-ghost {
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid rgba(255, 237, 213, 0.18);
    color: var(--warm-100);
    background: rgba(18, 16, 14, 0.52);
    backdrop-filter: blur(12px);
}

.btn-ghost:hover {
    border-color: rgba(249, 115, 22, 0.5);
    color: var(--maple-300);
}

.btn-small {
    min-height: 38px;
    padding: 0 14px;
    color: #1b0d05;
    background: linear-gradient(135deg, var(--maple-300), var(--maple-500));
    font-size: 13px;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 237, 213, 0.14);
    border-radius: 50%;
    color: var(--warm-50);
    background: rgba(18, 16, 14, 0.72);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(33, 26, 21, 0.95);
    transform: translateY(-50%) scale(1.04);
}

.hero-control.prev {
    left: 18px;
}

.hero-control.next {
    right: 18px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 237, 213, 0.42);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
    padding: 58px 0 0;
}

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

.section-title {
    margin: 0;
    color: var(--warm-50);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.section-subtitle {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--warm-500);
    font-size: 16px;
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

.video-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 237, 213, 0.08);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(33, 26, 21, 0.86), rgba(18, 16, 14, 0.94));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.23);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.34);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
}

.video-card-link {
    display: block;
}

.video-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--night-800);
}

.video-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.2s ease;
}

.video-card:hover .video-card-cover {
    transform: scale(1.08);
    opacity: 0.92;
}

.video-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(7, 7, 6, 0.82) 0%, transparent 62%);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.video-card:hover .video-card-shade {
    opacity: 1;
}

.duration-chip {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 6px 9px;
    border-radius: 10px;
    color: var(--warm-100);
    background: rgba(7, 7, 6, 0.78);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 750;
}

.score-chip {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 6px 9px;
    border-radius: 10px;
    color: #1b0d05;
    background: linear-gradient(135deg, var(--maple-300), var(--maple-500));
    font-size: 12px;
    font-weight: 900;
}

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

.video-card-title {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--warm-50);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.36;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

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

.video-card-description {
    display: -webkit-box;
    min-height: 66px;
    margin: 0 0 16px;
    overflow: hidden;
    color: var(--warm-500);
    font-size: 14px;
    line-height: 1.58;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.category-grid-card {
    position: relative;
    min-height: 174px;
    overflow: hidden;
    border: 1px solid rgba(255, 237, 213, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(33, 26, 21, 0.96), rgba(18, 16, 14, 0.92));
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-grid-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(249, 115, 22, 0.36);
}

.category-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 15px;
    color: var(--maple-300);
    background: rgba(249, 115, 22, 0.13);
}

.category-grid-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.2;
}

.category-grid-card p {
    margin: 0;
    color: var(--warm-500);
    font-size: 14px;
}

.scroller {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 2px 2px 18px;
    scrollbar-width: none;
}

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

.scroller .video-card {
    flex: 0 0 318px;
}

.scroll-actions {
    display: flex;
    gap: 10px;
}

.scroll-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--warm-50);
    background: rgba(33, 26, 21, 0.82);
    transition: background 0.2s ease, color 0.2s ease;
}

.scroll-button:hover {
    color: var(--maple-300);
    background: rgba(249, 115, 22, 0.12);
}

.feature-banner {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 237, 213, 0.08);
    box-shadow: var(--shadow);
}

.feature-banner img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-banner:hover img {
    transform: scale(1.04);
}

.feature-banner-content {
    position: absolute;
    inset: auto 0 0 0;
    max-width: 860px;
    padding: clamp(28px, 5vw, 58px);
    z-index: 2;
}

.feature-banner h2 {
    margin: 16px 0 12px;
    font-size: clamp(32px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.ranking-panel {
    display: grid;
    gap: 12px;
}

.rank-item {
    display: grid;
    grid-template-columns: 56px 92px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid rgba(255, 237, 213, 0.08);
    border-radius: 18px;
    background: rgba(18, 16, 14, 0.76);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(249, 115, 22, 0.34);
    background: rgba(33, 26, 21, 0.78);
}

.rank-num {
    color: var(--maple-300);
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.rank-item img {
    width: 92px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-title {
    margin: 0 0 6px;
    color: var(--warm-50);
    font-weight: 800;
}

.rank-item:hover .rank-title {
    color: var(--maple-300);
}

.rank-score {
    padding: 8px 10px;
    border-radius: 12px;
    color: #1b0d05;
    background: var(--maple-300);
    font-weight: 900;
}

.page-hero {
    padding: 62px 0 28px;
}

.page-kicker {
    margin-bottom: 14px;
}

.page-title {
    max-width: 900px;
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.page-description {
    max-width: 760px;
    margin: 20px 0 0;
    color: var(--warm-400);
    font-size: 18px;
}

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

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 14px;
    margin: 24px 0 30px;
}

.filter-input,
.filter-select,
.search-hero-input {
    min-height: 48px;
    padding: 0 16px;
}

.search-panel {
    display: grid;
    gap: 16px;
    max-width: 900px;
    margin-top: 28px;
}

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

.empty-state {
    padding: 60px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    color: var(--warm-500);
    background: rgba(18, 16, 14, 0.74);
    text-align: center;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 237, 213, 0.09);
    border-radius: var(--radius-xl);
    background: #000;
    box-shadow: var(--shadow);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 0;
    color: var(--warm-50);
    background: rgba(7, 7, 6, 0.32);
    z-index: 3;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 44%, rgba(249, 115, 22, 0.22), transparent 28%),
        linear-gradient(0deg, rgba(7, 7, 6, 0.78), rgba(7, 7, 6, 0.2));
}

.player-play-icon {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    color: #1b0d05;
    background: linear-gradient(135deg, var(--maple-300), var(--maple-500));
    box-shadow: 0 20px 44px rgba(249, 115, 22, 0.34);
    font-size: 36px;
    transition: transform 0.2s ease;
}

.player-cover:hover .player-play-icon {
    transform: scale(1.06);
}

.player-message {
    position: absolute;
    left: 24px;
    bottom: 18px;
    z-index: 4;
    color: var(--warm-200);
    font-size: 14px;
}

.movie-panel,
.side-panel,
.content-card {
    border: 1px solid rgba(255, 237, 213, 0.08);
    border-radius: var(--radius-lg);
    background: rgba(18, 16, 14, 0.74);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.movie-panel,
.content-card {
    padding: clamp(20px, 3vw, 30px);
}

.side-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.movie-title {
    margin: 18px 0 12px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0;
}

.article-title {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.25;
}

.article-text {
    margin: 0;
    color: var(--warm-300);
    line-height: 1.88;
}

.article-text + .article-text {
    margin-top: 14px;
}

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

.related-item {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 12px;
    align-items: center;
}

.related-item img {
    width: 104px;
    height: 66px;
    border-radius: 12px;
    object-fit: cover;
}

.related-item-title {
    display: -webkit-box;
    margin: 0 0 6px;
    overflow: hidden;
    color: var(--warm-50);
    font-weight: 750;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-item:hover .related-item-title {
    color: var(--maple-300);
}

.related-item p {
    margin: 0;
    color: var(--warm-500);
    font-size: 13px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(7, 7, 6, 0.62);
}

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

.footer-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 850;
}

.footer-text,
.footer-link {
    color: var(--warm-500);
    font-size: 14px;
}

.footer-link {
    display: block;
    margin-top: 8px;
}

.footer-link:hover {
    color: var(--maple-300);
}

.footer-bottom {
    padding: 18px 0 28px;
    border-top: 1px solid var(--line);
    color: var(--warm-500);
    font-size: 13px;
}

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

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

    .side-panel {
        position: static;
    }
}

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

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

    .header-inner {
        min-height: 64px;
    }

    .hero-carousel {
        min-height: 70vh;
        border-radius: 22px;
    }

    .hero-control {
        display: none;
    }

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

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

    .rank-item {
        grid-template-columns: 44px 76px 1fr;
    }

    .rank-score {
        display: none;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 22px, var(--container));
    }

    .logo {
        font-size: 18px;
    }

    .hero-wrap {
        padding-top: 14px;
    }

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

    .hero-content {
        left: 18px;
        right: 18px;
        bottom: 42px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-actions,
    .section-head,
    .search-hero-form {
        align-items: stretch;
        flex-direction: column;
        display: flex;
    }

    .grid.cols-4,
    .grid.cols-3,
    .grid.cols-2,
    .grid.cols-6 {
        grid-template-columns: 1fr;
    }

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

    .scroller .video-card {
        flex-basis: 82vw;
    }

    .feature-banner,
    .feature-banner img {
        min-height: 470px;
    }

    .rank-item {
        grid-template-columns: 40px 72px 1fr;
        gap: 10px;
    }

    .rank-item img {
        width: 72px;
        height: 52px;
    }

    .related-item {
        grid-template-columns: 92px 1fr;
    }

    .related-item img {
        width: 92px;
        height: 58px;
    }

    .movie-panel,
    .content-card {
        padding: 18px;
    }
}
