:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.74);
    --panel-strong: rgba(15, 23, 42, 0.92);
    --border: rgba(37, 99, 235, 0.32);
    --border-strong: rgba(34, 211, 238, 0.58);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --cyan: #22d3ee;
    --cyan-soft: rgba(34, 211, 238, 0.16);
    --blue: #2563eb;
    --gold: #facc15;
    --danger: #fb7185;
    --radius: 22px;
    --shadow: 0 20px 60px rgba(2, 8, 23, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 8%, rgba(8, 145, 178, 0.22), transparent 28rem),
        radial-gradient(circle at 78% 4%, rgba(37, 99, 235, 0.2), transparent 26rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.65), transparent 72%);
    z-index: -1;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(34, 211, 238, 0.12);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--text);
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #00131a;
    background: linear-gradient(135deg, var(--cyan), #60a5fa 56%, #a78bfa);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.38);
}

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

.desktop-nav a,
.mobile-panel a {
    padding: 9px 13px;
    color: #cbd5e1;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.1);
}

.top-search {
    margin-left: auto;
    width: min(360px, 34vw);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
}

.top-search input,
.mobile-panel input,
.search-page-form input,
.filter-bar input {
    width: 100%;
    color: var(--text);
    outline: none;
    border: 0;
    background: transparent;
}

.top-search button,
.mobile-panel button,
.search-page-form button,
.filter-bar button {
    border: 0;
    color: #00131a;
    font-weight: 800;
    white-space: nowrap;
    border-radius: 999px;
    padding: 9px 15px;
    background: var(--cyan);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    color: var(--text);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.82);
}

.mobile-panel {
    display: none;
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid rgba(34, 211, 238, 0.14);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.94);
}

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

.mobile-panel form {
    display: flex;
    gap: 8px;
    padding: 8px 0 0;
}

.hero {
    width: min(1380px, calc(100% - 32px));
    margin: 26px auto 0;
}

.hero-stage {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 34px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: saturate(1.2) blur(1px);
    transform: scale(1.06);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.72) 46%, rgba(2, 6, 23, 0.34) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.98), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 56px;
    padding: 78px clamp(26px, 6vw, 86px);
}

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

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 18px 0 18px;
    font-size: clamp(2.45rem, 6vw, 5.6rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
    max-width: 760px;
    color: #cbd5e1;
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.9;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.tag-row span,
.mini-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    color: #dff9ff;
    font-size: 0.85rem;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.1);
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

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

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

.btn.primary {
    color: #00131a;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    box-shadow: 0 14px 34px rgba(34, 211, 238, 0.28);
}

.btn.ghost {
    color: #e0f2fe;
    border: 1px solid rgba(34, 211, 238, 0.2);
    background: rgba(15, 23, 42, 0.62);
}

.btn.full {
    width: 100%;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.26);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(37, 99, 235, 0.12));
    box-shadow: 0 26px 70px rgba(2, 8, 23, 0.52);
}

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

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: grid;
    place-items: center;
    min-height: 42px;
    color: #00131a;
    font-weight: 900;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.92);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    color: var(--text);
    font-size: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(12px);
}

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

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

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.34);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 38px;
    background: var(--cyan);
}

.quick-filter,
.page-main,
.home-layout,
.content-section,
.site-footer {
    width: min(1380px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.quick-filter {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 560px);
    align-items: center;
    gap: 24px;
    margin-top: 28px;
    padding: 22px;
    border: 1px solid rgba(34, 211, 238, 0.14);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.74);
}

.quick-filter span {
    color: var(--cyan);
    font-weight: 800;
}

.quick-filter strong {
    display: block;
    margin-top: 5px;
    font-size: 1.35rem;
}

.quick-filter form,
.search-page-form {
    display: flex;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.6);
}

.quick-filter input,
.search-page-form input {
    padding: 0 14px;
}

.quick-filter button,
.search-page-form button {
    border: 0;
    border-radius: 999px;
    color: #00131a;
    font-weight: 900;
    padding: 12px 18px;
    background: var(--cyan);
}

.content-section {
    margin-top: 64px;
}

.content-section.no-margin {
    margin-top: 0;
}

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

.section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1.08;
}

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

.section-more {
    color: var(--cyan);
    font-weight: 900;
    white-space: nowrap;
}

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

.movie-card {
    min-width: 0;
}

.card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.28);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 12px 36px rgba(2, 8, 23, 0.24);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.card-link:hover {
    transform: translateY(-5px) scale(1.015);
    border-color: rgba(34, 211, 238, 0.55);
    box-shadow: 0 22px 54px rgba(8, 145, 178, 0.16);
}

.card-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background:
        radial-gradient(circle at 35% 20%, rgba(34, 211, 238, 0.22), transparent 32%),
        linear-gradient(145deg, #0f172a, #020617);
}

.card-poster img,
.rank-card img,
.detail-poster img,
.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-poster img {
    transition: transform 0.5s ease, opacity 0.2s ease;
}

.card-link:hover .card-poster img {
    transform: scale(1.1);
}

.image-missing {
    opacity: 0;
}

.card-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent 56%);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.card-link:hover .card-glow {
    opacity: 1;
}

.card-year,
.card-play {
    position: absolute;
    display: inline-grid;
    place-items: center;
    font-weight: 900;
}

.card-year {
    top: 10px;
    right: 10px;
    min-height: 28px;
    padding: 0 10px;
    color: #241a00;
    font-size: 0.78rem;
    border-radius: 999px;
    background: rgba(250, 204, 21, 0.92);
}

.card-play {
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    color: #00131a;
    opacity: 0;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.92);
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.card-body {
    padding: 14px;
}

.card-body h3 {
    margin: 0 0 8px;
    overflow: hidden;
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-body p {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted-2);
    font-size: 0.78rem;
}

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

.category-tile,
.category-card-large a {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.14);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.74);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-card-large a:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.45);
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 118px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(37, 99, 235, 0.12));
}

.category-covers.large {
    height: 172px;
}

.category-covers img {
    min-width: 0;
    opacity: 0.85;
}

.category-tile div:last-child,
.category-card-body {
    padding: 18px;
}

.category-tile h3,
.category-card-body h2 {
    margin: 0 0 8px;
}

.category-tile p,
.category-card-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.ranking-panel {
    position: sticky;
    top: 96px;
    margin-top: 64px;
    padding: 22px;
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

.ranking-head span,
.rank-number {
    color: var(--cyan);
    font-weight: 900;
}

.ranking-head h2 {
    margin: 8px 0;
}

.ranking-head p {
    margin: 0 0 18px;
    color: var(--muted);
}

.ranking-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.ranking-list a {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.48);
}

.ranking-list a:hover {
    background: rgba(34, 211, 238, 0.1);
}

.ranking-list strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-list em {
    grid-column: 2;
    color: var(--muted-2);
    font-size: 0.82rem;
    font-style: normal;
}

.page-main {
    padding: 34px 0 76px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    padding: clamp(34px, 6vw, 72px);
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: 30px;
    background:
        radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.18), transparent 28rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.86));
}

.page-hero.compact h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 20px;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--cyan);
}

.filter-bar,
.search-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid rgba(34, 211, 238, 0.14);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.7);
}

.filter-bar input {
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(34, 211, 238, 0.14);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.5);
}

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

.filter-chips button {
    color: #dff9ff;
    border: 1px solid rgba(34, 211, 238, 0.18);
    background: rgba(34, 211, 238, 0.09);
}

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

.mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.category-card-body strong {
    color: var(--cyan);
}

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

.rank-card a {
    display: grid;
    grid-template-columns: 54px 92px 1fr;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(34, 211, 238, 0.14);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
}

.rank-card img {
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    background: #0f172a;
}

.rank-card h2 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.rank-card p {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-card em {
    color: var(--muted-2);
    font-size: 0.84rem;
    font-style: normal;
}

.detail-main {
    max-width: 1240px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
    padding: 28px;
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: 30px;
    background:
        radial-gradient(circle at 18% 16%, rgba(34, 211, 238, 0.18), transparent 24rem),
        rgba(15, 23, 42, 0.72);
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 24px;
    background: linear-gradient(145deg, #0f172a, #020617);
}

.detail-poster img {
    aspect-ratio: 2 / 3;
}

.detail-info h1 {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.detail-tags {
    margin-bottom: 28px;
}

.player-section {
    margin-top: 30px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    color: var(--text);
    border: 0;
    background: radial-gradient(circle at center, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.72));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    color: #00131a;
    font-size: 2rem;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 44px rgba(34, 211, 238, 0.36);
}

.play-overlay strong {
    font-size: 1.1rem;
}

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

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: #fecaca;
    text-align: center;
    pointer-events: none;
}

.detail-content {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.detail-content article,
.info-table {
    padding: 24px;
    border: 1px solid rgba(34, 211, 238, 0.14);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
}

.detail-content h2 {
    margin: 0 0 12px;
    font-size: 1.45rem;
}

.detail-content p {
    margin: 0;
    color: #cbd5e1;
    font-size: 1.02rem;
    line-height: 1.9;
}

.info-table {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.info-table dl {
    margin: 0;
    padding: 14px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.42);
}

.info-table dt {
    color: var(--muted-2);
    font-size: 0.86rem;
}

.info-table dd {
    margin: 6px 0 0;
    color: var(--text);
    font-weight: 800;
}

.related-section {
    width: 100%;
}

.site-footer {
    margin-top: 40px;
    padding: 0 0 42px;
}

.footer-inner {
    display: grid;
    gap: 14px;
    padding: 28px;
    border-top: 1px solid rgba(34, 211, 238, 0.12);
    color: var(--muted);
}

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

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

.hide-card {
    display: none;
}

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

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

    .ranking-panel {
        position: static;
    }
}

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

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

    .hero-stage {
        min-height: 760px;
    }

    .hero-content,
    .quick-filter,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        max-width: 330px;
    }

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

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

    .info-table {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .nav-shell,
    .hero,
    .quick-filter,
    .page-main,
    .home-layout,
    .content-section,
    .site-footer,
    .mobile-panel {
        width: min(100% - 22px, 1380px);
    }

    .hero-stage {
        min-height: 680px;
        border-radius: 24px;
    }

    .hero-content {
        padding: 42px 22px 74px;
        gap: 28px;
    }

    .hero-arrow {
        top: auto;
        bottom: 16px;
        transform: none;
    }

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

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

    .rank-card a {
        grid-template-columns: 42px 78px 1fr;
        gap: 12px;
    }

    .detail-hero {
        padding: 18px;
    }

    .detail-poster {
        max-width: 230px;
    }

    .info-table {
        grid-template-columns: 1fr;
    }

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

    .quick-filter form,
    .search-page-form,
    .mobile-panel form {
        border-radius: 18px;
        flex-direction: column;
    }
}
