* {
    box-sizing: border-box;
}

:root {
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --secondary-50: #fff7ed;
    --secondary-100: #ffedd5;
    --secondary-500: #f97316;
    --secondary-600: #ea580c;
    --accent-50: #fefce8;
    --accent-500: #eab308;
    --accent-600: #ca8a04;
    --success-50: #f0fdf4;
    --dark-50: #f8fafc;
    --dark-100: #f1f5f9;
    --dark-200: #e2e8f0;
    --dark-300: #cbd5e1;
    --dark-500: #64748b;
    --dark-600: #475569;
    --dark-700: #334155;
    --dark-800: #1e293b;
    --dark-900: #0f172a;
    --shadow-soft: 0 2px 15px rgba(15, 23, 42, 0.06);
    --shadow-medium: 0 8px 25px rgba(15, 23, 42, 0.12);
    --shadow-hard: 0 18px 48px rgba(15, 23, 42, 0.2);
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--dark-800);
    background: #ffffff;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.card {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.nav-shell {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--primary-600), var(--secondary-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

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

.nav-link {
    color: var(--dark-700);
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link.active {
    color: var(--primary-600);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--dark-100);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-button span {
    width: 19px;
    height: 2px;
    border-radius: 99px;
    background: var(--dark-700);
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--dark-200);
    background: #ffffff;
    padding: 8px 16px 18px;
}

.mobile-nav.open {
    display: grid;
    gap: 6px;
}

.mobile-link {
    padding: 12px 10px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--dark-700);
}

.mobile-link:hover {
    background: var(--primary-50);
    color: var(--primary-600);
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: var(--dark-900);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.06);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 40%, rgba(249, 115, 22, 0.26), transparent 32%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.76) 45%, rgba(15, 23, 42, 0.18) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.75), transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 540px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    gap: 54px;
    align-items: center;
    padding-top: 42px;
}

.eyebrow {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--secondary-100);
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.07em;
    color: #ffffff;
}

.hero-text {
    margin: 24px 0 0;
    max-width: 710px;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.82);
}

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

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.3);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-hard);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 68px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.82);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 92px;
    z-index: 4;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

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

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

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

.hero-search {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 480px) 1fr;
    gap: 20px;
    align-items: center;
    margin-top: -76px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-hard);
    backdrop-filter: blur(18px);
}

.search-pill {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    border-radius: 999px;
    background: var(--dark-100);
    padding: 6px;
}

.search-pill input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 16px;
    color: var(--dark-800);
}

.search-pill button {
    border: 0;
    border-radius: 999px;
    padding: 0 20px;
    font-weight: 800;
    color: #ffffff;
    background: var(--primary-600);
    cursor: pointer;
}

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

.hero-channel-links a {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    color: var(--dark-700);
    background: var(--dark-100);
}

.page-section {
    padding: 70px 0 0;
}

.soft-section {
    margin-top: 72px;
    padding: 70px 0;
    background: linear-gradient(180deg, var(--primary-50), #ffffff);
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--dark-900);
}

.section-heading p {
    margin: 10px 0 0;
    color: var(--dark-500);
}

.section-more {
    flex: 0 0 auto;
    color: var(--primary-600);
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    color: #ffffff;
}

.category-card img,
.category-card span {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-card img {
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-card:hover img {
    transform: scale(1.06);
}

.category-card span {
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.92) 100%);
}

.category-card div {
    position: absolute;
    inset: auto 18px 18px;
}

.category-card h3 {
    margin: 0 0 6px;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.88);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--dark-100);
}

.poster-wrap img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.72) 100%);
    opacity: 0.8;
}

.play-mini {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.88);
    font-size: 13px;
}

.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 3;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--secondary-600), var(--accent-500));
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.32);
}

.movie-info {
    padding: 15px;
}

.movie-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
    color: var(--dark-900);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
}

.movie-title:hover {
    color: var(--primary-600);
}

.movie-meta {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--dark-500);
}

.movie-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
    margin: 10px 0 0;
    color: var(--dark-600);
    font-size: 14px;
}

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

.tag-row span {
    padding: 4px 8px;
    color: var(--primary-700);
    background: var(--primary-50);
}

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

.wide-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
}

.wide-card .poster-wrap img {
    height: 100%;
    aspect-ratio: auto;
}

.wide-card .movie-title {
    min-height: 0;
}

.wide-card .movie-desc {
    -webkit-line-clamp: 3;
}

.filter-bar {
    display: grid;
    gap: 18px;
}

.filter-input {
    width: min(100%, 520px);
    min-height: 48px;
    border: 1px solid var(--dark-200);
    border-radius: 999px;
    outline: 0;
    padding: 0 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

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

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    color: var(--dark-700);
    background: var(--dark-100);
    cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
}

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

.page-hero {
    padding: 88px 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
}

.simple-hero,
.search-hero,
.archive-hero {
    background:
        radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.24), transparent 28%),
        linear-gradient(135deg, var(--primary-600), var(--secondary-600));
}

.category-hero {
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22), transparent 30%),
        linear-gradient(135deg, var(--dark-900), var(--primary-700));
}

.ranking-hero {
    background:
        radial-gradient(circle at 80% 10%, rgba(234, 88, 12, 0.42), transparent 30%),
        linear-gradient(135deg, var(--dark-900), var(--secondary-600));
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.category-overview {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--dark-200);
}

.category-cover {
    border-radius: 14px;
    overflow: hidden;
}

.category-cover img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.category-overview h2 {
    margin: 4px 0 8px;
    font-size: 24px;
    color: var(--dark-900);
}

.category-overview p {
    margin: 0;
    color: var(--dark-600);
    font-size: 14px;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.category-samples a {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--primary-700);
    background: var(--primary-50);
    font-size: 12px;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    background: var(--dark-900);
    color: #ffffff;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    filter: blur(4px) saturate(1.15);
    transform: scale(1.03);
}

.detail-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 30%, rgba(249, 115, 22, 0.32), transparent 35%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 34px 0 58px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    margin-bottom: 28px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 38px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    background: var(--dark-800);
}

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

.detail-copy h1 {
    margin: 0;
    max-width: 900px;
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 820px;
    margin: 22px 0 0;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.82);
}

.detail-tags {
    margin-top: 22px;
}

.detail-tags span {
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.detail-meta div {
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.detail-meta dt {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 800;
}

.detail-meta dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.player-section {
    margin-top: -28px;
    position: relative;
    z-index: 5;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: var(--shadow-hard);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
    cursor: pointer;
}

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

.player-button {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
    font-size: 24px;
}

.player-overlay strong {
    max-width: 80%;
    font-size: 22px;
    text-align: center;
}

.content-card {
    padding: clamp(24px, 5vw, 44px);
    border: 1px solid var(--dark-200);
}

.content-card h2 {
    margin: 0 0 14px;
    color: var(--dark-900);
    font-size: 28px;
}

.content-card h2:not(:first-child) {
    margin-top: 34px;
}

.content-card p {
    margin: 0;
    color: var(--dark-700);
    font-size: 17px;
    line-height: 1.9;
}

.archive-list {
    display: grid;
    border: 1px solid var(--dark-200);
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
}

.archive-item {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) 90px 130px 100px minmax(150px, 1.2fr);
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--dark-100);
}

.archive-item:last-child {
    border-bottom: 0;
}

.archive-item a {
    color: var(--dark-900);
    font-weight: 800;
}

.archive-item a:hover {
    color: var(--primary-600);
}

.archive-item span {
    color: var(--dark-500);
    font-size: 14px;
}

.site-footer {
    margin-top: 86px;
    color: var(--dark-300);
    background: var(--dark-900);
}

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

.footer-logo {
    font-size: 22px;
}

.site-footer p {
    margin: 14px 0 0;
    color: var(--dark-300);
    font-size: 14px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

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

.site-footer a:hover {
    color: var(--primary-400, #60a5fa);
}

.footer-bottom {
    padding: 18px;
    text-align: center;
    color: var(--dark-500);
    border-top: 1px solid var(--dark-800);
}

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

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

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

    .hero-content {
        grid-template-columns: 1fr 270px;
    }
}

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

    .menu-button {
        display: flex;
    }

    .hero {
        min-height: 720px;
    }

    .hero-content {
        min-height: 610px;
        grid-template-columns: 1fr;
        gap: 24px;
        align-content: center;
    }

    .hero-poster {
        display: none;
    }

    .hero-search {
        grid-template-columns: 1fr;
        margin-top: -86px;
    }

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

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

    .detail-layout {
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 22px;
    }

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

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

    .archive-item {
        grid-template-columns: 1fr 70px;
    }

    .archive-item span:nth-of-type(n + 2) {
        display: none;
    }
}

@media (max-width: 620px) {
    .section-container {
        width: min(100% - 24px, 1280px);
    }

    .logo {
        font-size: 23px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 42px;
    }

    .hero-text {
        font-size: 16px;
    }

    .search-pill {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .search-pill input {
        min-height: 42px;
    }

    .search-pill button {
        min-height: 42px;
    }

    .hero-controls {
        bottom: 130px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

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

    .wide-card {
        grid-template-columns: 94px minmax(0, 1fr);
    }

    .movie-info {
        padding: 12px;
    }

    .movie-title {
        font-size: 14px;
        min-height: 38px;
    }

    .movie-desc,
    .tag-row {
        display: none;
    }

    .category-overview {
        grid-template-columns: 92px 1fr;
    }

    .category-cover img {
        height: 118px;
    }

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

    .detail-poster {
        width: 180px;
    }

    .detail-copy h1 {
        font-size: 36px;
    }

    .detail-one-line {
        font-size: 16px;
    }

    .player-button {
        width: 60px;
        height: 60px;
    }

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