
:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(125, 211, 252, 0.38);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --accent: #38bdf8;
  --accent-strong: #0284c7;
  --accent-deep: #075985;
  --gold: #facc15;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.56);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 32rem),
    radial-gradient(circle at 80% 5%, rgba(37, 99, 235, 0.12), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(51, 65, 85, 0.72);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  box-shadow: 0 10px 26px rgba(14, 165, 233, 0.28);
  transition: transform 0.25s ease;
}

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

.brand-mark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: white;
  stroke-width: 1.9;
  stroke-linejoin: round;
}

.brand-title {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #bae6fd, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border-bottom: 2px solid transparent;
  color: #dbeafe;
  font-weight: 650;
  transition: color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.86);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.82);
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(51, 65, 85, 0.62);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #7dd3fc;
  background: rgba(2, 132, 199, 0.18);
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #020617 4%, rgba(2, 6, 23, 0.72) 45%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.68));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 74px;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-chip,
.chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 14px;
  border: 1px solid rgba(125, 211, 252, 0.36);
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.76);
  color: #f8fafc;
  font-size: 0.86rem;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.18);
}

.hero-content h1,
.page-hero h1,
.detail-hero h1 {
  max-width: 780px;
  margin: 18px 0 16px;
  font-size: clamp(2.3rem, 5.6vw, 5.2rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 24px 70px rgba(0, 0, 0, 0.54);
}

.hero-content p,
.page-hero p,
.detail-hero p {
  max-width: 720px;
  margin: 0 0 20px;
  color: #cbd5e1;
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.78;
}

.hero-tags,
.card-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.card-tags span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #bae6fd;
  font-size: 0.76rem;
  padding: 5px 9px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-button,
.ghost-button,
.search-form button,
.filter-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.primary-button,
.search-form button,
.filter-panel button {
  background: #0284c7;
  color: white;
  box-shadow: 0 16px 34px rgba(2, 132, 199, 0.28);
}

.primary-button:hover,
.search-form button:hover,
.filter-panel button:hover {
  background: #0369a1;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 22px 44px rgba(2, 132, 199, 0.34);
}

.ghost-button {
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(15, 23, 42, 0.7);
  color: #dbeafe;
}

.ghost-button:hover {
  border-color: rgba(125, 211, 252, 0.6);
  background: rgba(14, 165, 233, 0.16);
  transform: translateY(-1px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: white;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.22s ease, transform 0.22s ease;
}

.hero-control:hover {
  background: rgba(2, 132, 199, 0.88);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 28px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  transition: width 0.22s ease, background 0.22s ease;
}

.hero-dot.is-active {
  width: 48px;
  background: #38bdf8;
}

.page-main {
  padding-bottom: 60px;
}

.page-hero {
  margin-top: 34px;
  padding: 56px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.28), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.92));
  box-shadow: var(--shadow);
}

.small-hero {
  padding-bottom: 42px;
}

.section-block {
  margin-top: 54px;
}

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

.section-heading h2,
.ranking-panel h2,
.footer-brand {
  margin: 0;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-link,
.ranking-panel a {
  color: #38bdf8;
  font-weight: 800;
  white-space: nowrap;
}

.search-strip,
.filter-panel {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px);
  gap: 22px;
  align-items: center;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.2);
}

.search-strip h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.search-strip p {
  margin: 0;
  color: var(--muted);
}

.search-form,
.filter-panel {
  display: flex;
  gap: 10px;
}

.search-form input,
.filter-panel input,
.filter-panel select {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  outline: none;
  background: rgba(2, 6, 23, 0.76);
  color: #f8fafc;
  padding: 0 14px;
}

.search-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(56, 189, 248, 0.72);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.14);
}

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

.search-page-panel {
  grid-template-columns: 1fr 220px 120px;
}

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

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

.category-card {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 13rem),
    rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.48);
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.28), transparent 13rem),
    rgba(30, 41, 59, 0.78);
}

.category-card span {
  display: block;
  margin-bottom: 10px;
  color: white;
  font-size: 1.18rem;
  font-weight: 850;
}

.category-card em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.65;
}

.category-card strong {
  display: inline-flex;
  margin-top: 18px;
  color: #38bdf8;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(125, 211, 252, 0.46);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 28px 62px rgba(0, 0, 0, 0.32);
}

.card-poster,
.large-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

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

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

.card-play,
.play-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.86);
  color: white;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease, background 0.24s ease;
}

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

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: #bae6fd;
  font-size: 0.75rem;
  font-weight: 800;
}

.card-info {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.card-info strong {
  overflow: hidden;
  color: white;
  font-size: 1.02rem;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-info em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  color: #64748b;
  font-size: 0.78rem;
}

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

.movie-card-large .large-image {
  aspect-ratio: 21 / 9;
}

.large-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12));
}

.large-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: grid;
  gap: 9px;
}

.large-copy strong {
  color: white;
  font-size: clamp(1.5rem, 2.3vw, 2.25rem);
  font-weight: 880;
}

.large-copy em,
.large-copy span:last-child {
  color: #cbd5e1;
  font-style: normal;
}

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

.horizontal-poster {
  height: 100%;
  min-height: 140px;
}

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

.split-section {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.ranking-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.ranking-list,
.ranking-table {
  display: grid;
  gap: 8px;
}

.ranking-row,
.ranking-table-row {
  display: grid;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.44);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.ranking-row {
  grid-template-columns: 42px 1fr;
  padding: 11px;
}

.ranking-row:hover,
.ranking-table-row:hover {
  border-color: rgba(125, 211, 252, 0.4);
  background: rgba(14, 165, 233, 0.12);
  transform: translateX(3px);
}

.ranking-num {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(2, 132, 199, 0.22);
  color: #7dd3fc;
  font-weight: 850;
}

.ranking-title {
  overflow: hidden;
  color: white;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-meta {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.ranking-table-row {
  grid-template-columns: 54px 1.1fr 120px 140px 1fr;
  padding: 13px 16px;
}

.ranking-table-row span {
  color: #7dd3fc;
  font-weight: 850;
}

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

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

.detail-hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 92px 0 58px;
  background: #020617;
}

.detail-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #020617 6%, rgba(2, 6, 23, 0.78) 56%, rgba(2, 6, 23, 0.38)),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.52));
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #7dd3fc;
}

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

.detail-meta span {
  padding: 7px 12px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
  font-size: 0.88rem;
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

.player-card,
.detail-section,
.side-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: black;
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: black;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.32));
  color: white;
  font-size: 1.05rem;
  font-weight: 850;
}

.player-overlay .play-orb {
  position: static;
  width: 76px;
  height: 76px;
  font-size: 1.6rem;
  transform: none;
  opacity: 1;
}

.player-overlay:hover .play-orb {
  background: #0284c7;
  transform: scale(1.05);
}

.detail-section,
.side-card {
  padding: 24px;
}

.detail-section h2,
.side-card h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 1.35rem;
  font-weight: 840;
}

.detail-section p,
.side-card p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.85;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
}

.info-list {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 0;
}

.info-list dt {
  color: #64748b;
}

.info-list dd {
  margin: 0;
  color: #dbeafe;
}

.info-list a {
  color: #38bdf8;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(51, 65, 85, 0.72);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.62), #020617);
}

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

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 1.08rem;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--muted);
  line-height: 1.72;
}

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

.site-footer a:hover {
  color: #38bdf8;
}

.footer-bottom {
  padding: 20px;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
  color: #64748b;
  text-align: center;
}

@media (max-width: 1180px) {
  .nav-links {
    gap: 14px;
  }

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

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

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

  .ranking-panel {
    position: relative;
    top: 0;
  }
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-carousel {
    height: 74vh;
    min-height: 540px;
  }

  .hero-content {
    bottom: 66px;
  }

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

  .search-form,
  .filter-panel {
    flex-direction: column;
  }

  .category-grid,
  .category-grid-large,
  .page-grid,
  .movie-grid,
  .footer-grid,
  .ranking-horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-table-row {
    grid-template-columns: 44px 1fr;
  }

  .ranking-table-row em {
    grid-column: 2;
  }
}

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

  .brand-title {
    font-size: 1.15rem;
  }

  .brand-subtitle {
    font-size: 0.68rem;
  }

  .hero-carousel {
    min-height: 600px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-hero h1 {
    font-size: 2.35rem;
  }

  .hero-control {
    display: none;
  }

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

  .category-grid,
  .category-grid-large,
  .page-grid,
  .movie-grid,
  .footer-grid,
  .ranking-horizontal {
    grid-template-columns: 1fr;
  }

  .movie-card-large {
    grid-column: auto;
  }

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

  .horizontal-poster {
    min-height: 128px;
  }

  .detail-hero {
    min-height: 520px;
  }

  .detail-section,
  .side-card {
    padding: 18px;
  }
}
