:root {
  color-scheme: light;
  --bg: #f6fbff;
  --surface: #ffffff;
  --surface-soft: #eef8ff;
  --line: #dbeafe;
  --text: #111827;
  --muted: #64748b;
  --brand: #2563eb;
  --brand-2: #06b6d4;
  --brand-3: #14b8a6;
  --danger: #ef4444;
  --shadow: 0 22px 60px rgba(30, 64, 175, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 30rem),
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.16), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(248, 252, 255, 0.88);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 234, 254, 0.8);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1.45rem;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  margin-top: 4px;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  color: #334155;
  font-weight: 700;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand);
  background: #e0f2fe;
  transform: translateY(-1px);
}

.nav-group {
  position: relative;
  display: inline-flex;
}

.nav-more {
  border: 0;
  background: transparent;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 220px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  border-radius: 12px;
  padding: 10px 12px;
  color: #334155;
}

.nav-dropdown a:hover {
  color: var(--brand);
  background: #eff6ff;
}

.top-search,
.mobile-search,
.page-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-search {
  width: min(310px, 28vw);
}

.top-search input,
.mobile-search input,
.page-filter input {
  min-width: 0;
  width: 100%;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  padding: 12px 16px;
  outline: none;
  box-shadow: inset 0 0 0 1px transparent;
}

.top-search input:focus,
.mobile-search input:focus,
.page-filter input:focus {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16);
}

.top-search button,
.mobile-search button,
.page-filter button,
.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  white-space: nowrap;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.page-filter button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.3);
}

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

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #e0f2fe;
  padding: 11px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--brand);
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid #dbeafe;
  background: rgba(248, 252, 255, 0.96);
}

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

.mobile-nav-link {
  padding: 12px 10px;
  border-radius: 12px;
  color: #334155;
  font-weight: 800;
}

.mobile-nav-link.is-active,
.mobile-nav-link:hover {
  color: var(--brand);
  background: #e0f2fe;
}

.hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background: #07132b;
}

.hero-track {
  position: relative;
  min-height: 660px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: center;
  gap: 44px;
  padding: 86px max(24px, calc((100vw - 1180px) / 2)) 96px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  filter: blur(8px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.55;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 12, 28, 0.92), rgba(8, 23, 52, 0.74), rgba(8, 23, 52, 0.42)),
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.45), transparent 28rem),
    radial-gradient(circle at 70% 40%, rgba(6, 182, 212, 0.36), transparent 24rem);
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 700px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-2);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.45rem, 5.5vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
  max-width: 780px;
}

.hero-desc {
  margin: 24px 0 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.9;
}

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

.hero-tags {
  margin: 26px 0 0;
}

.hero-tags span,
.tag-row span,
.rank-tags span,
.card-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-tags span {
  color: #dffbff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-poster img {
  transition: transform 0.45s ease;
}

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

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

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 70px 0;
}

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

.section-head h2,
.page-hero h1,
.detail-card h1,
.highlight-band h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.section-head a {
  color: var(--brand);
  font-weight: 900;
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #0f172a;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(3, 7, 18, 0.84));
}

.category-tile img {
  transition: transform 0.35s ease;
  opacity: 0.85;
}

.category-tile:hover img {
  transform: scale(1.07);
}

.category-tile span,
.category-tile em {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  color: #ffffff;
}

.category-tile span {
  bottom: 52px;
  font-size: 1.45rem;
  font-weight: 900;
}

.category-tile em {
  bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-style: normal;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(191, 219, 254, 0.8);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(30, 64, 175, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(30, 64, 175, 0.16);
  border-color: rgba(6, 182, 212, 0.45);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #dbeafe;
}

.card-cover img {
  transition: transform 0.38s ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.66));
}

.card-badge,
.play-dot {
  position: absolute;
  z-index: 2;
}

.card-badge {
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  font-size: 0.78rem;
  font-weight: 900;
}

.play-dot {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand);
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.card-body h2 a:hover,
.rank-main h2 a:hover,
.detail-nav a:hover,
.side-card a:hover {
  color: var(--brand);
}

.card-body p {
  min-height: 48px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.card-meta span,
.rank-tags span,
.detail-meta span,
.tag-row span {
  color: #1e40af;
  background: #eff6ff;
}

.highlight-band {
  background:
    linear-gradient(135deg, rgba(30, 64, 175, 0.95), rgba(8, 145, 178, 0.95)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 30rem);
  color: #ffffff;
}

.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: start;
}

.highlight-band p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.9;
}

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

.rank-list.full {
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(191, 219, 254, 0.8);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.highlight-band .rank-item {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.rank-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #dbeafe;
}

.rank-main {
  min-width: 0;
}

.rank-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-no {
  flex: 0 0 auto;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--danger), #f97316);
}

.rank-main h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.rank-main p {
  margin: 8px 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.highlight-band .rank-main p {
  color: rgba(255, 255, 255, 0.76);
}

.page-hero {
  margin-top: 36px;
  padding: 56px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(224, 242, 254, 0.92)),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.22), transparent 25rem);
  box-shadow: var(--shadow);
  border: 1px solid rgba(191, 219, 254, 0.82);
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.9;
}

.page-filter {
  margin-top: 26px;
  width: min(680px, 100%);
}

.page-filter span {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

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

.category-panel {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid rgba(191, 219, 254, 0.85);
  box-shadow: 0 16px 40px rgba(30, 64, 175, 0.08);
}

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

.category-panel h2 {
  margin: 0;
  font-size: 1.35rem;
}

.category-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.category-preview a {
  border-radius: 999px;
  padding: 7px 10px;
  color: #1e40af;
  background: #eff6ff;
  font-size: 0.86rem;
  font-weight: 800;
}

.detail-wrap {
  padding: 34px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

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

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

.player-panel,
.detail-card,
.side-card,
.side-poster {
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(191, 219, 254, 0.86);
}

.player-panel {
  overflow: hidden;
  background: #020617;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  color: #ffffff;
  border: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.78)),
    radial-gradient(circle, rgba(37, 99, 235, 0.3), transparent 24rem);
  cursor: pointer;
  text-align: center;
}

.video-overlay[hidden] {
  display: none;
}

.play-ring {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand);
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  font-size: 1.8rem;
}

.video-overlay strong {
  max-width: min(520px, 80%);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.2;
}

.video-overlay em {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-weight: 800;
}

.detail-card {
  margin-top: 22px;
  padding: 30px;
}

.detail-card h1 {
  margin-bottom: 16px;
}

.detail-card .lead {
  margin: 20px 0;
  color: #334155;
  font-size: 1.06rem;
  line-height: 1.9;
}

.detail-card h2 {
  margin: 28px 0 12px;
  font-size: 1.35rem;
}

.detail-card p {
  color: #475569;
  line-height: 2;
}

.tag-row {
  margin: 18px 0 0;
}

.detail-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.detail-nav a {
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(191, 219, 254, 0.86);
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.06);
  color: #334155;
  font-weight: 800;
}

.detail-side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 96px;
}

.side-poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.side-card {
  padding: 22px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.side-card dt {
  color: var(--muted);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: #1f2937;
}

.mini-links {
  display: grid;
  gap: 10px;
}

.mini-links a {
  display: block;
  border-radius: 12px;
  padding: 12px;
  color: #1e40af;
  background: #eff6ff;
  font-weight: 900;
}

.site-footer {
  margin-top: 70px;
  padding: 58px 0 34px;
  background: linear-gradient(135deg, #0f172a, #111827);
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer a:hover {
  color: #67e8f9;
}

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

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

[hidden-by-filter="true"] {
  display: none !important;
}

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

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

  .detail-side {
    position: static;
  }
}

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

  .header-inner {
    min-height: 68px;
  }

  .brand-copy strong {
    font-size: 1.2rem;
  }

  .brand-copy em {
    display: none;
  }

  .hero,
  .hero-track {
    min-height: 580px;
  }

  .hero-slide {
    padding: 72px 18px 92px;
  }

  .hero-copy h1 {
    font-size: clamp(2.15rem, 11vw, 3.8rem);
  }

  .hero-desc {
    font-size: 0.98rem;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

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

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

  .category-panel-cover {
    aspect-ratio: 16 / 9;
  }

  .page-hero {
    padding: 32px 22px;
    border-radius: 24px;
  }

  .page-filter {
    display: grid;
  }

  .rank-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .detail-card {
    padding: 22px;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-tile {
    min-height: 150px;
  }

  .card-cover {
    aspect-ratio: 16 / 11;
  }

  .hero-actions {
    display: grid;
  }
}
