:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(30, 41, 59, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.18);
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 158, 11, 0.16), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.12), transparent 28%),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.nav-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.3);
  font-size: 13px;
}

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

.nav-link,
.mobile-link {
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fbbf24;
  background: var(--accent-soft);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 320px;
}

.header-search input,
.mobile-search input,
.big-search input,
.inline-filter input,
.search-controls input {
  width: 100%;
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.inline-filter input:focus,
.search-controls input:focus {
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.header-search button,
.mobile-search button,
.big-search button,
.search-controls button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.86);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.mobile-panel {
  border-top: 1px solid var(--line);
  padding: 14px 24px 20px;
  background: rgba(2, 6, 23, 0.96);
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

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

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.75) 38%, rgba(2, 6, 23, 0.16) 100%),
    linear-gradient(0deg, #020617 0%, transparent 36%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1440px) / 2 + 32px));
  bottom: 92px;
  width: min(760px, calc(100% - 48px));
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
  margin: 0 0 18px;
  font-weight: 950;
}

.hero-content p,
.page-hero p,
.detail-one-line {
  color: #cbd5e1;
  font-size: clamp(1rem, 2.1vw, 1.22rem);
  line-height: 1.75;
  margin: 0 0 22px;
}

.hero-tags,
.tag-row,
.detail-meta,
.meta-row,
.genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-tags span,
.tag-row span,
.genre-list span {
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
  padding: 6px 10px;
  font-size: 0.86rem;
}

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

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

.primary-btn {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.28);
}

.ghost-btn {
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.66);
  color: white;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(2, 6, 23, 0.9);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.panel-section,
.content-section,
.page-hero,
.breadcrumb,
.detail-hero,
.detail-layout,
.player-section {
  width: min(1440px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.search-hero {
  margin-top: -44px;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 560px);
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.82));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.search-hero h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin: 0 0 8px;
  font-weight: 950;
}

.search-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.big-search,
.search-controls {
  display: flex;
  gap: 10px;
}

.content-section {
  padding: 54px 0 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 950;
  letter-spacing: -0.03em;
}

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

.section-more {
  color: #fbbf24;
  font-weight: 800;
}

.category-grid,
.movie-grid,
.category-large-grid,
.podium-grid {
  display: grid;
  gap: 18px;
}

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

.category-tile,
.category-card-large a,
.podium-card,
.story-card,
.side-card,
.search-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.category-tile {
  position: relative;
  min-height: 190px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  transition: transform 0.25s ease, border 0.25s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card-large a:hover,
.podium-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.42);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.52;
  transition: transform 0.4s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.2));
}

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

.category-tile span {
  font-size: 1.16rem;
  font-weight: 950;
}

.category-tile small {
  color: #cbd5e1;
  margin-top: 6px;
  line-height: 1.6;
}

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

.movie-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, border 0.25s ease, background 0.25s ease;
}

.movie-card a {
  display: block;
  height: 100%;
}

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

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

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

.rating-badge,
.duration-badge,
.play-hover {
  position: absolute;
  z-index: 2;
}

.rating-badge {
  left: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.78);
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 900;
}

.duration-badge {
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.78);
  color: white;
  font-size: 0.76rem;
}

.play-hover {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: white;
  font-size: 34px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
}

.card-body {
  padding: 14px;
}

.card-body h2 {
  margin: 0 0 10px;
  color: white;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row {
  margin-bottom: 10px;
}

.tag-row span {
  padding: 4px 8px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 48px 58px 1fr auto;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  transition: border 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(30, 41, 59, 0.86);
}

.rank-item strong {
  color: #fbbf24;
  font-weight: 950;
}

.rank-item img {
  width: 58px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-item span {
  font-weight: 800;
}

.rank-item em {
  color: #fbbf24;
  font-style: normal;
}

.page-hero {
  margin-top: 28px;
  min-height: 360px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(2, 6, 23, 0.88));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 6vw, 64px);
  box-shadow: var(--shadow);
}

.compact-page-hero {
  min-height: 300px;
}

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

.category-card-large a {
  display: grid;
  grid-template-rows: 150px 1fr;
  min-height: 300px;
  transition: transform 0.25s ease, border 0.25s ease;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.category-covers img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.category-copy {
  padding: 20px;
}

.category-copy h2 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  font-weight: 950;
}

.category-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.category-copy span {
  color: #fbbf24;
  font-weight: 850;
}

.channel-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.channel-chip,
.filter-chips button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.78);
}

.channel-chip.active,
.channel-chip:hover,
.filter-chips button.active,
.filter-chips button:hover {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
}

.inline-filter {
  margin: -2px 0 18px;
  max-width: 520px;
}

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

.podium-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  transition: transform 0.25s ease, border 0.25s ease;
}

.podium-card strong {
  color: #fbbf24;
  font-size: 1.1rem;
}

.podium-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
}

.podium-card h2 {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 950;
}

.podium-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.podium-card span {
  color: #fbbf24;
  font-weight: 800;
}

.ranking-table {
  display: grid;
  gap: 10px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 52px 54px 1fr minmax(100px, auto) 80px;
  align-items: center;
  gap: 12px;
  padding: 10px;
}

.ranking-row strong,
.ranking-row em {
  color: #fbbf24;
  font-style: normal;
}

.ranking-row img {
  width: 54px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
}

.ranking-row span {
  font-weight: 820;
}

.ranking-row small {
  color: var(--muted);
}

.search-panel {
  padding: 20px;
}

.search-controls {
  margin-bottom: 16px;
}

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

.filter-chips button {
  cursor: pointer;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  padding-top: 28px;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.detail-hero {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: center;
  margin-top: 24px;
  padding: clamp(20px, 4vw, 40px);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), transparent 40%),
    rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-poster {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

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

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

.detail-meta {
  margin: 14px 0 18px;
}

.detail-meta span {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  font-weight: 750;
}

.player-section {
  padding-top: 34px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: black;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: black;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.46));
  border: 0;
  color: white;
  cursor: pointer;
  z-index: 4;
}

.play-cover span {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 18px 50px rgba(245, 158, 11, 0.35);
  font-size: 36px;
  padding-left: 5px;
}

.play-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.detail-layout {
  padding-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
}

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

.story-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 1.42rem;
  font-weight: 950;
}

.story-card p {
  color: #cbd5e1;
  line-height: 1.86;
  margin: 0 0 24px;
}

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

.info-grid div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.34);
}

.info-grid strong {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.info-grid span,
.info-grid a {
  color: #f8fafc;
  font-weight: 800;
}

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

.movie-card-wide a {
  display: grid;
  grid-template-columns: 120px 1fr;
}

.wide-poster {
  aspect-ratio: 4 / 5;
}

.movie-card-wide .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.footer-grid {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  margin-bottom: 14px;
}

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

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

.site-footer a:not(.site-logo) {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

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

.footer-bottom {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  text-align: center;
}

.is-filtered-out {
  display: none !important;
}

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

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

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

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

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-shell {
    padding: 12px 18px;
  }

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

  .hero-content {
    left: 20px;
    width: calc(100% - 40px);
    bottom: 74px;
  }

  .hero-arrow {
    display: none;
  }

  .panel-section,
  .content-section,
  .page-hero,
  .breadcrumb,
  .detail-hero,
  .detail-layout,
  .player-section {
    width: min(100% - 32px, 1440px);
  }

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

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

  .category-large-grid,
  .podium-grid,
  .rank-list,
  .side-list {
    grid-template-columns: 1fr;
  }

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

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

  .ranking-row {
    grid-template-columns: 42px 48px 1fr 64px;
  }

  .ranking-row small {
    display: none;
  }

  .footer-grid {
    width: min(100% - 32px, 1440px);
  }
}

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

  .card-body {
    padding: 10px;
  }

  .card-body h2 {
    font-size: 0.92rem;
  }

  .hero-tags span:nth-child(n+5) {
    display: none;
  }

  .big-search,
  .search-controls,
  .mobile-search {
    flex-direction: column;
  }

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

  .detail-hero {
    padding: 18px;
  }

  .play-cover span {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }

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

  .movie-card-wide a {
    grid-template-columns: 92px 1fr;
  }
}
