:root {
    color-scheme: dark;
    --bg: #0f172a;
    --bg-soft: #1e293b;
    --bg-card: #162033;
    --bg-card-alt: #243041;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --red: #dc2626;
    --red-dark: #991b1b;
    --orange: #ea580c;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(220, 38, 38, 0.16), transparent 28rem),
        linear-gradient(180deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #fff;
    box-shadow: 0 14px 30px rgba(220, 38, 38, 0.32);
    font-size: 16px;
    padding-left: 2px;
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong,
.footer-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-text em {
    color: var(--muted-strong);
    font-size: 12px;
    font-style: normal;
}

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

.nav-link {
    color: #e2e8f0;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 12px;
    transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(220, 38, 38, 0.2);
}

.header-search {
    display: flex;
    align-items: center;
    width: 250px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(248, 250, 252, 0.12);
    background: rgba(15, 23, 42, 0.74);
}

.header-search input,
.mobile-nav input,
.wide-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
}

.header-search input {
    padding: 10px 12px;
}

.header-search button {
    border: 0;
    padding: 10px 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.menu-button {
    display: none;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #fff;
    background: rgba(148, 163, 184, 0.14);
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding: 14px 16px 18px;
    background: rgba(15, 23, 42, 0.98);
}

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

.mobile-nav a {
    padding: 11px 12px;
    border-radius: 12px;
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.08);
}

.mobile-nav form {
    display: grid;
    grid-template-columns: 1fr auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.mobile-nav input {
    padding: 12px 14px;
}

.mobile-nav button {
    border: 0;
    padding: 0 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.hero-slider {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(90deg, #7f1d1d, #7c2d12, #7f1d1d);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

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

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

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.1)),
        radial-gradient(circle at 20% 32%, rgba(248, 113, 113, 0.32), transparent 30rem);
}

.hero-inner {
    position: relative;
    min-height: 600px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: center;
    gap: 54px;
}

.hero-copy {
    max-width: 760px;
}

.hero-kicker,
.banner-kicker,
.detail-kicker {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: #fecaca;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero-kicker span,
.detail-kicker {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.22);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.hero-copy h1 {
    margin: 0 0 22px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero-line {
    max-width: 780px;
    margin: 0 0 18px;
    color: #e2e8f0;
    font-size: clamp(18px, 2.5vw, 25px);
    line-height: 1.65;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px;
}

.hero-tags span,
.tag-cloud a,
.category-chips a,
.related-channels a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

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

.btn-primary,
.btn-ghost,
.btn-light,
.section-more,
.wide-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
    color: #fff;
    padding: 15px 28px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.35);
}

.btn-primary:hover,
.btn-light:hover,
.wide-search button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 24px 46px rgba(220, 38, 38, 0.42);
}

.btn-ghost {
    color: #fff;
    padding: 15px 26px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.11);
}

.hero-poster {
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: #fff;
    background: rgba(15, 23, 42, 0.55);
    font-size: 42px;
    line-height: 1;
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
}

.hero-arrow.prev {
    left: 22px;
}

.hero-arrow.next {
    right: 22px;
}

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

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

.hero-dot.active {
    width: 34px;
    background: linear-gradient(135deg, #f87171, #fb923c);
}

.search-panel {
    margin-top: -48px;
    position: relative;
    z-index: 7;
}

.search-card,
.cta-box {
    padding: 28px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.search-card {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 480px);
    gap: 18px 24px;
    align-items: center;
}

.search-card h2,
.cta-box h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3.5vw, 38px);
}

.search-card p,
.cta-box p {
    margin: 0;
    color: var(--muted-strong);
    line-height: 1.7;
}

.wide-search {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 54px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(2, 6, 23, 0.42);
}

.wide-search input {
    padding: 0 18px;
}

.wide-search button {
    border: 0;
    color: #fff;
    padding: 0 24px;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.category-chips {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

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

.section-head h2,
.panel-head h2,
.related-channels h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.section-more,
.panel-head a {
    color: #f87171;
    font-weight: 800;
}

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

.movie-card {
    position: relative;
    display: grid;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    color: #fff;
    background: var(--bg-card);
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(248, 113, 113, 0.45);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 30%, rgba(0, 0, 0, 0.8));
}

.card-badge,
.card-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
}

.card-badge {
    left: 10px;
    background: var(--red);
}

.card-year {
    right: 10px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.rank-badge {
    left: 10px;
    top: 44px;
    background: var(--orange);
}

.play-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--red);
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
    padding-left: 3px;
}

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

.card-body {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.card-body strong {
    min-height: 42px;
    font-size: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    min-height: 38px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #fca5a5;
    font-size: 12px;
}

.band-section {
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.9));
}

.trend-section {
    background: linear-gradient(90deg, rgba(127, 29, 29, 0.88), rgba(124, 45, 18, 0.86));
}

.translucent .movie-card {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

.ranking-panel {
    align-self: start;
    position: sticky;
    top: 100px;
    padding: 22px;
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 44px 70px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.82);
    border: 1px solid var(--line);
    transition: transform 0.25s ease, background 0.25s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    background: rgba(51, 65, 85, 0.9);
}

.rank-row img {
    width: 70px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.rank-num {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.rank-main {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.rank-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-main em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.rank-score {
    color: #fca5a5;
    font-weight: 800;
}

.rank-small {
    grid-template-columns: 34px 52px minmax(0, 1fr) auto;
    padding: 9px;
}

.rank-small img {
    width: 52px;
}

.cta-section {
    padding: 76px 0;
}

.cta-box {
    text-align: center;
    background: linear-gradient(120deg, rgba(127, 29, 29, 0.94), rgba(124, 45, 18, 0.94));
}

.cta-box p {
    max-width: 680px;
    margin: 0 auto 24px;
}

.btn-light {
    padding: 13px 25px;
    color: #7f1d1d;
    background: #fff;
}

.page-banner {
    padding: 86px 0 76px;
    background:
        radial-gradient(circle at 18% 30%, rgba(248, 113, 113, 0.24), transparent 24rem),
        linear-gradient(90deg, #7f1d1d, #7c2d12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.page-banner h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.page-banner p {
    max-width: 760px;
    margin: 0;
    color: #fee2e2;
    font-size: 18px;
    line-height: 1.75;
}

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

.category-card {
    display: grid;
    gap: 18px;
    padding: 18px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.94));
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(248, 113, 113, 0.42);
}

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

.category-covers img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.category-info {
    display: grid;
    gap: 8px;
}

.category-info strong {
    font-size: 22px;
}

.category-info em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.6;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 160px 160px;
    gap: 12px;
    padding: 16px;
    margin-bottom: 26px;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--line);
}

.filter-panel input,
.filter-panel select {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(30, 41, 59, 0.82);
}

.filter-panel select option {
    color: #0f172a;
}

.empty-state {
    display: none;
    padding: 40px 20px;
    text-align: center;
    color: var(--muted);
    border-radius: 22px;
    border: 1px dashed var(--line);
}

.empty-state.is-visible {
    display: block;
}

.related-channels {
    padding: 0 0 74px;
}

.related-channels div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-hero {
    position: relative;
    padding: 40px 0 78px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.45), #0f172a 96%),
        var(--detail-cover) center / cover no-repeat;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.68);
    backdrop-filter: blur(12px);
}

.detail-hero-inner {
    position: relative;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: #cbd5e1;
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumb a {
    color: #fca5a5;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.player-column {
    min-width: 0;
}

.watch-player {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.54));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--red);
    background: rgba(255, 255, 255, 0.92);
    font-size: 38px;
    padding-left: 6px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

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

.detail-title-block {
    padding: 28px 0 0;
}

.detail-title-block h1 {
    margin: 12px 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.detail-title-block p {
    margin: 0;
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.75;
}

.detail-side {
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.detail-side img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 18px;
}

.detail-side ul {
    display: grid;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.detail-side li {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.detail-side li span {
    color: var(--muted);
}

.detail-side li strong {
    color: #fff;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 64px 0 0;
}

.story-card {
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(30, 41, 59, 0.78);
    border: 1px solid var(--line);
}

.story-card h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.story-card p {
    margin: 0;
    color: #dbeafe;
    line-height: 1.9;
}

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

.detail-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 0 0 80px;
}

.detail-nav a {
    padding: 18px;
    border-radius: 18px;
    color: #fff;
    background: rgba(30, 41, 59, 0.84);
    border: 1px solid var(--line);
}

.detail-nav a:last-child {
    text-align: right;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding: 42px 0;
}

.site-footer p {
    color: var(--muted);
    line-height: 1.75;
}

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

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: #f87171;
}

.footer-bottom {
    padding: 18px 16px;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

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

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

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

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 46px;
        padding-bottom: 70px;
    }

    .hero-poster {
        display: none;
    }

    .search-card,
    .split-layout,
    .detail-grid,
    .content-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }

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

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

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

    .nav-wrap {
        min-height: 68px;
    }

    .brand-text strong {
        font-size: 19px;
    }

    .hero-slider,
    .hero-inner {
        min-height: 560px;
    }

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

    .hero-arrow {
        display: none;
    }

    .search-panel {
        margin-top: 0;
    }

    .search-card,
    .cta-box,
    .story-card {
        padding: 22px;
    }

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

    .wide-search button {
        min-height: 48px;
    }

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

    .movie-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .rank-row {
        grid-template-columns: 36px 56px minmax(0, 1fr);
    }

    .rank-row img {
        width: 56px;
    }

    .rank-score {
        display: none;
    }

    .detail-side {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 16px;
    }

    .detail-side img {
        margin: 0;
    }

    .detail-side ul,
    .tag-cloud {
        grid-column: 2;
    }

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

    .detail-nav a:last-child {
        text-align: left;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-body {
        padding: 10px;
    }

    .card-desc {
        display: none;
    }

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

    .detail-side ul,
    .tag-cloud {
        grid-column: auto;
    }
}
