:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --red: #dc2626;
    --blue: #2563eb;
    --green: #16a34a;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --card: #ffffff;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: #f9fafb;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.header-inner {
    max-width: 1280px;
    height: 76px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 15px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
    transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
}

.brand-text {
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--orange-dark), var(--red));
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand.dark .brand-text {
    color: #ffffff;
    background: none;
}

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

.nav-link {
    position: relative;
    font-weight: 700;
    color: #374151;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 3px;
    border-radius: 99px;
    background: var(--orange-dark);
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--orange-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.filter-search-box input,
.filter-panel select {
    height: 42px;
    border: 1px solid transparent;
    outline: none;
    border-radius: 999px;
    background: #f3f4f6;
    color: var(--ink);
    transition: box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.header-search input {
    width: 220px;
    padding: 0 18px;
}

.header-search input:focus,
.filter-search-box input:focus,
.filter-panel select:focus {
    background: #ffffff;
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.header-search button {
    height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(90deg, var(--orange), var(--red));
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.25);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    color: var(--orange-dark);
    font-size: 24px;
    cursor: pointer;
}

main {
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background: linear-gradient(135deg, #111827 0%, #7c2d12 46%, #4c0519 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.35), transparent 28%),
        radial-gradient(circle at 85% 15%, rgba(220, 38, 38, 0.25), transparent 25%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.42;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    filter: saturate(1.12) contrast(1.08);
}

.hero-content {
    position: relative;
    max-width: 1280px;
    min-height: 720px;
    margin: 0 auto;
    padding: 145px 24px 135px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 390px;
    align-items: center;
    gap: 60px;
    z-index: 3;
}

.hero-copy {
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1 {
    margin: 0;
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-copy h1 {
    max-width: 820px;
    font-size: clamp(42px, 7vw, 82px);
}

.hero-copy h2 {
    margin-top: 18px;
    font-size: clamp(28px, 4vw, 48px);
}

.hero-desc {
    max-width: 720px;
    margin: 22px 0 0;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.82);
}

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

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

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 800;
}

.hero .tag-row span,
.detail-hero .tag-row span {
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
    margin-top: 28px;
}

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

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

.btn.primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 18px 30px rgba(249, 115, 22, 0.33);
}

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

.hero-poster {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
    transform: rotate(2deg);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.44));
}

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 26px;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.92);
    transform: translate(-50%, -50%);
    box-shadow: 0 16px 36px rgba(249, 115, 22, 0.4);
}

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

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

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

.hero-category-strip {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 4;
    width: min(1180px, calc(100% - 48px));
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    transform: translateX(-50%);
}

.hero-category-strip a {
    min-height: 74px;
    padding: 13px;
    border-radius: 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    overflow: hidden;
    transition: transform 0.25s ease, background 0.25s ease;
}

.hero-category-strip a:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.2);
}

.hero-category-strip span {
    display: block;
    color: #fed7aa;
    font-size: 12px;
    font-weight: 800;
}

.hero-category-strip strong {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.soft-section {
    max-width: none;
    background: linear-gradient(135deg, #fff7ed, #eff6ff);
}

.soft-section > .section-head,
.soft-section > .movie-grid {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

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

.section-head.tight {
    margin-bottom: 18px;
}

.section-head h2,
.detail-section h2,
.footer-col h2 {
    margin: 0;
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.18;
    letter-spacing: -0.04em;
}

.text-link {
    color: var(--orange-dark);
    font-weight: 900;
}

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

.category-chip-grid a {
    padding: 20px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
    color: #1f2937;
    font-weight: 900;
    text-align: center;
    transition: transform 0.25s ease, color 0.25s ease;
}

.category-chip-grid a:hover {
    transform: translateY(-5px);
    color: var(--orange-dark);
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 34px;
}

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

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

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

.movie-card {
    min-width: 0;
    border-radius: 22px;
    overflow: hidden;
    background: var(--card);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.movie-card.compact .movie-cover {
    aspect-ratio: 3 / 4;
}

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

.movie-card:hover .movie-cover img {
    transform: scale(1.1);
}

.movie-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.75));
    opacity: 0.82;
}

.play-float {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-year,
.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 48px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.94);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    z-index: 2;
}

.rank-badge {
    left: 12px;
    right: auto;
    min-width: 34px;
    background: linear-gradient(135deg, #facc15, #ea580c);
}

.movie-info {
    padding: 16px;
}

.movie-title {
    display: block;
    min-height: 46px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.25s ease;
}

.movie-title:hover {
    color: var(--orange-dark);
}

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

.movie-meta {
    margin-top: 12px;
    color: #6b7280;
    font-size: 12px;
}

.movie-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f3f4f6;
}

.home-ranking,
.ranking-list {
    display: grid;
    gap: 14px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 82px 48px minmax(0, 1fr) 92px;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.ranking-cover {
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
}

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

.ranking-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--orange), var(--red));
}

.ranking-title {
    font-size: 17px;
    font-weight: 950;
}

.ranking-body p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-stat {
    text-align: right;
}

.ranking-stat strong,
.ranking-stat span {
    display: block;
}

.ranking-stat strong {
    color: var(--orange-dark);
    font-size: 18px;
}

.ranking-stat span {
    color: var(--muted);
    font-size: 12px;
}

.page-hero {
    min-height: 360px;
    padding: 140px 24px 72px;
    color: #ffffff;
    background:
        radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.36), transparent 28%),
        linear-gradient(135deg, #111827, #7c2d12 58%, #4c0519);
}

.page-hero > div {
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: clamp(40px, 6vw, 70px);
}

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

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

.category-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

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

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

.category-card p {
    margin: 8px 0 12px;
    color: var(--muted);
}

.category-samples {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
}

.category-samples a {
    color: #374151;
    font-size: 14px;
}

.category-samples a:hover {
    color: var(--orange-dark);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 160px 160px 160px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-search-box input,
.filter-panel select {
    width: 100%;
    padding: 0 16px;
}

.detail-wrap {
    padding-top: 76px;
}

.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--orange-dark);
}

.detail-hero {
    max-width: 1280px;
    margin: 24px auto 0;
    padding: 42px 24px;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    border-radius: 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 18%, rgba(249, 115, 22, 0.3), transparent 30%),
        linear-gradient(135deg, #111827, #7c2d12 54%, #4c0519);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.35);
}

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

.detail-copy h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.lead-text {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.detail-stats {
    margin: 24px 0;
}

.detail-stats span {
    padding: 12px 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.82);
}

.detail-stats strong {
    color: #ffffff;
    font-size: 20px;
}

.player-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px 20px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.36);
    font-size: 30px;
}

.detail-section {
    max-width: 1280px;
    padding-top: 42px;
}

.detail-section h2 {
    margin-top: 30px;
    margin-bottom: 12px;
}

.detail-section p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 60%, #111827);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
}

.footer-brand p,
.footer-col p {
    color: #9ca3af;
    font-size: 14px;
}

.footer-col {
    display: grid;
    align-content: start;
    gap: 8px;
}

.footer-col h2 {
    color: #ffffff;
    font-size: 18px;
}

.footer-col a {
    color: #d1d5db;
    font-size: 14px;
}

.footer-col a:hover {
    color: #fb923c;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #9ca3af;
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 16px 32px rgba(249, 115, 22, 0.32);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

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

@media (max-width: 960px) {
    .header-inner {
        height: auto;
        min-height: 70px;
        align-items: center;
        flex-wrap: wrap;
    }

    .main-nav,
    .header-search {
        display: none;
        width: 100%;
    }

    .main-nav.open,
    .header-search.open {
        display: flex;
    }

    .main-nav.open {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 0 0 12px;
    }

    .header-search.open {
        padding-bottom: 12px;
    }

    .header-search input {
        width: 100%;
        flex: 1;
    }

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

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

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 120px;
        gap: 28px;
    }

    .hero-poster {
        display: none;
    }

    .split-section,
    .detail-hero,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .category-chip-grid,
    .movie-grid,
    .library-grid,
    .small-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 640px) {
    .header-inner,
    .section,
    .player-section,
    .breadcrumb {
        padding-left: 16px;
        padding-right: 16px;
    }

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

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

    .hero-content {
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 170px;
    }

    .hero-category-strip {
        grid-template-columns: 1fr 1fr;
        bottom: 18px;
        width: calc(100% - 32px);
    }

    .hero-category-strip a:nth-child(n+5) {
        display: none;
    }

    .hero-dots {
        bottom: 160px;
    }

    .section-head,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-chip-grid,
    .movie-grid,
    .library-grid,
    .small-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        grid-template-columns: 110px 1fr;
        gap: 14px;
    }

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

    .ranking-item {
        grid-template-columns: 68px 38px minmax(0, 1fr);
    }

    .ranking-stat {
        grid-column: 2 / 4;
        text-align: left;
    }

    .detail-wrap {
        padding-top: 70px;
    }

    .detail-hero {
        margin: 16px;
        padding: 22px;
        border-radius: 26px;
    }
}
