:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --border: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --cyan-dark: #0891b2;
    --blue: #3b82f6;
    --green: #22c55e;
    --orange: #fb923c;
    --shadow: 0 22px 65px rgba(2, 6, 23, 0.45);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

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 20% 0%, rgba(34, 211, 238, 0.14), transparent 34rem),
        radial-gradient(circle at 86% 12%, rgba(59, 130, 246, 0.16), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 50%, #020617 100%);
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 15px 38px rgba(2, 6, 23, 0.3);
    backdrop-filter: blur(18px);
}

.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: 14px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 38px rgba(34, 211, 238, 0.42);
    font-size: 18px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong,
.footer-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--cyan), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

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

.site-nav a {
    position: relative;
    color: #cbd5e1;
    font-weight: 650;
    transition: color 0.25s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    transition: width 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--cyan);
}

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

.nav-toggle {
    width: 44px;
    height: 44px;
    display: none;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.68);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #e2e8f0;
}

.hero {
    position: relative;
    height: 72vh;
    min-height: 620px;
    max-height: 860px;
    overflow: hidden;
    background: #020617;
}

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

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

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

.hero-shade,
.hero-side-shade {
    position: absolute;
    inset: 0;
}

.hero-shade {
    background: linear-gradient(0deg, #020617 2%, rgba(2, 6, 23, 0.72) 38%, transparent 100%);
}

.hero-side-shade {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(2, 6, 23, 0.24) 52%, rgba(2, 6, 23, 0.08) 100%);
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 24px 82px;
}

.hero-copy {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.hero-copy > * {
    max-width: 720px;
}

.hero-pill,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    padding: 9px 16px;
    border-radius: 999px;
    color: white;
    background: rgba(8, 145, 178, 0.82);
    border: 1px solid rgba(103, 232, 249, 0.28);
    box-shadow: 0 12px 36px rgba(8, 145, 178, 0.24);
    backdrop-filter: blur(12px);
    font-size: 14px;
    font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 22px 0 16px;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-shadow: 0 24px 55px rgba(0, 0, 0, 0.48);
}

.hero p,
.page-hero p,
.detail-copy p {
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.78;
}

.hero-tags,
.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-tags span,
.pill-row span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

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

.primary-button,
.ghost-button,
.home-search button,
.wide-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button,
.home-search button,
.wide-link {
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 42px rgba(34, 211, 238, 0.28);
}

.ghost-button {
    color: white;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.primary-button:hover,
.ghost-button:hover,
.home-search button:hover,
.wide-link:hover {
    transform: translateY(-2px) scale(1.015);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: white;
    background: rgba(0, 0, 0, 0.44);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transform: translateY(-50%);
    font-size: 38px;
    line-height: 0;
}

.hero-prev {
    left: 28px;
}

.hero-next {
    right: 28px;
}

.hero-dots {
    position: absolute;
    z-index: 10;
    left: 50%;
    bottom: 30px;
    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.52);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.page-main {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 72px 0 92px;
}

.inner-page {
    padding-top: 42px;
}

.home-search-card,
.editor-panel,
.page-hero,
.rank-panel,
.filter-panel,
.category-overview-card,
.detail-hero,
.player-card,
.detail-section {
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.home-search-card {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 28px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius);
}

.home-search-card h2,
.rank-title h2,
.detail-section h2,
.category-overview-card h2,
.movie-info h2 {
    margin: 0;
}

.home-search-card p,
.section-head p,
.category-overview-card p,
.movie-info p,
.footer-grid p {
    color: var(--muted);
    line-height: 1.75;
}

.home-search {
    display: flex;
    gap: 12px;
}

.home-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.5);
    outline: none;
    padding: 0 16px;
}

.home-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: rgba(34, 211, 238, 0.62);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.11);
}

section + section,
.split-layout,
.editor-panel {
    margin-top: 76px;
}

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

.section-head .section-kicker {
    background: rgba(15, 23, 42, 0.75);
    color: #e0f2fe;
}

.section-head p {
    max-width: 760px;
    margin: 12px 0 0;
}

.section-link {
    color: var(--cyan);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.32);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.38);
    box-shadow: 0 22px 62px rgba(8, 145, 178, 0.18);
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(8, 145, 178, 0.24), rgba(30, 41, 59, 0.72));
}

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

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 52%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent);
}

.movie-year {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: white;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 12px;
    font-weight: 850;
}

.movie-info {
    padding: 18px;
}

.movie-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    color: #67e8f9;
    font-size: 12px;
    font-weight: 750;
}

.movie-info h2 {
    font-size: 19px;
    line-height: 1.35;
}

.movie-info h2 a:hover {
    color: var(--cyan);
}

.movie-info p {
    min-height: 54px;
    margin: 11px 0 0;
    font-size: 14px;
}

.movie-card.horizontal {
    display: grid;
    grid-template-columns: 150px 1fr;
}

.movie-card.horizontal .poster {
    height: 100%;
    min-height: 220px;
}

.movie-card.compact .movie-info p {
    display: none;
}

.movie-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.movie-card.large .poster {
    aspect-ratio: 16 / 12;
}

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

.rank-panel {
    padding: 24px;
    border-radius: 24px;
}

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

.rank-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.rank-title span {
    font-size: 28px;
}

.rank-list,
.full-ranking {
    padding: 0;
    margin: 0;
    list-style: none;
}

.rank-list li + li {
    margin-top: 10px;
}

.rank-list a {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.36);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.rank-list a:hover {
    border-color: rgba(34, 211, 238, 0.34);
    background: rgba(8, 145, 178, 0.12);
}

.rank-index,
.compact-rank span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    font-weight: 900;
}

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

.rank-list em,
.ranking-score {
    color: var(--orange);
    font-style: normal;
    font-weight: 800;
    font-size: 13px;
}

.wide-link {
    width: 100%;
    margin-top: 18px;
}

.editor-panel {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.2), rgba(30, 64, 175, 0.16), rgba(15, 23, 42, 0.86));
}

.panel-content {
    position: relative;
    z-index: 2;
}

.soft-light {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.42;
}

.soft-light.one {
    right: -90px;
    top: -80px;
    background: rgba(34, 211, 238, 0.32);
}

.soft-light.two {
    left: -120px;
    bottom: -110px;
    background: rgba(59, 130, 246, 0.28);
}

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

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

.category-tile {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    background:
        linear-gradient(145deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.08)),
        rgba(15, 23, 42, 0.68);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.4);
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    padding: 44px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 86% 20%, rgba(34, 211, 238, 0.22), transparent 24rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.56));
}

.compact-hero h1,
.category-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 22px;
    padding: 20px;
    border-radius: 26px;
}

.cover-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.5);
}

.cover-mosaic img {
    width: 100%;
    height: 126px;
    object-fit: cover;
}

.mini-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.mini-link-list a {
    padding: 7px 10px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(2, 6, 23, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.14);
    font-size: 12px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 170px 170px;
    gap: 16px;
    align-items: end;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 22px;
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 800;
}

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

.full-ranking {
    display: grid;
    gap: 14px;
}

.ranking-row a {
    display: grid;
    grid-template-columns: 72px 72px minmax(0, 1fr) 110px;
    gap: 18px;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.68);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.ranking-row a:hover {
    transform: translateY(-2px);
    border-color: rgba(34, 211, 238, 0.34);
    background: rgba(8, 145, 178, 0.12);
}

.ranking-number {
    color: var(--cyan);
    font-size: 18px;
    font-weight: 950;
}

.ranking-row img {
    width: 72px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
}

.ranking-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.ranking-copy strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 18px;
}

.ranking-copy em,
.ranking-copy small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--muted);
    font-style: normal;
}

.detail-page {
    width: min(1180px, calc(100% - 48px));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 22px;
    color: var(--muted);
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 26px;
    border-radius: 32px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.5);
}

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

.detail-copy h1 {
    font-size: clamp(34px, 5vw, 60px);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.player-card {
    margin-top: 34px;
    padding: 16px;
    border-radius: 30px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #000;
}

.player-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 16px;
    color: white;
    border: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.28));
    cursor: pointer;
}

.player-overlay.hidden {
    display: none;
}

.play-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 999px;
    color: #001018;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 50px rgba(34, 211, 238, 0.44);
    font-size: 30px;
}

.player-overlay strong {
    font-size: clamp(18px, 3vw, 30px);
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.44);
}

.detail-section {
    margin-top: 28px;
    padding: 28px;
    border-radius: 28px;
}

.detail-section p {
    margin: 14px 0 0;
    color: #d1d5db;
    line-height: 1.95;
    font-size: 16px;
}

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

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 16px;
}

.footer-grid a:not(.footer-brand) {
    display: block;
    margin: 9px 0;
    color: var(--muted);
}

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

.footer-bottom {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 20px 0 32px;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 14px;
}

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

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

    .split-layout,
    .home-search-card,
    .category-overview-card,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .rank-panel.sticky-panel {
        position: static;
    }

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

@media (max-width: 820px) {
    .header-inner {
        height: 68px;
        padding: 0 18px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        left: 18px;
        right: 18px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 22px;
        background: rgba(15, 23, 42, 0.97);
        box-shadow: var(--shadow);
    }

    body.nav-open .site-nav {
        display: flex;
    }

    .site-nav a {
        padding: 14px 16px;
        border-radius: 14px;
    }

    .site-nav a:hover,
    .site-nav a.active {
        background: rgba(8, 145, 178, 0.13);
    }

    .site-nav a::after {
        display: none;
    }

    .hero {
        min-height: 620px;
        height: 78vh;
    }

    .hero-content {
        padding: 0 20px 72px;
    }

    .hero-copy > * {
        max-width: 100%;
    }

    .hero-arrow {
        display: none;
    }

    .page-main,
    .detail-page,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 32px, 1280px);
    }

    .home-search,
    .filter-panel {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .home-search button {
        width: 100%;
    }

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

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

    .movie-card.horizontal {
        grid-template-columns: 1fr;
    }

    .movie-card.horizontal .poster {
        min-height: auto;
    }

    .movie-card.large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .ranking-row a {
        grid-template-columns: 48px 58px minmax(0, 1fr);
    }

    .ranking-score {
        grid-column: 3;
    }

    .ranking-row img {
        width: 58px;
        height: 78px;
    }

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

@media (max-width: 560px) {
    .brand-text strong {
        font-size: 18px;
    }

    .brand-text small {
        display: none;
    }

    .hero h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 34px;
    }

    .hero p,
    .page-hero p,
    .detail-copy p {
        font-size: 16px;
    }

    .page-main {
        padding-top: 48px;
    }

    .movie-grid,
    .two-col-grid,
    .editor-grid,
    .category-movie-grid,
    .related-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .home-search-card,
    .editor-panel,
    .page-hero,
    .rank-panel,
    .detail-section,
    .detail-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }
}
