* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --ink: #2b1707;
  --muted: #8a5c21;
  --line: rgba(217, 119, 6, 0.18);
  --card: rgba(255, 255, 255, 0.9);
  --shadow: 0 18px 50px rgba(120, 53, 15, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, var(--amber-50) 0%, var(--orange-50) 48%, var(--amber-100) 100%);
  color: var(--ink);
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.12);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-icon,
.footer-brand span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  color: #fff;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.28);
}

.brand-name,
.footer-brand strong {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: var(--amber-800);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-600);
  transform: translateY(-1px);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-form input,
.local-filter input,
.big-search input {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  padding: 11px 16px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.local-filter input:focus,
.big-search input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.search-form button,
.big-search button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.22);
}

.nav-search input {
  width: 180px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--amber-800);
  font-size: 1.6rem;
  cursor: pointer;
}

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

.mobile-panel[hidden] {
  display: none;
}

.mobile-search {
  display: flex;
  margin-bottom: 14px;
}

.mobile-search input {
  width: 100%;
}

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

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--amber-800);
  background: rgba(255, 255, 255, 0.65);
  font-weight: 800;
}

.mobile-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.hero-carousel {
  position: relative;
  height: min(720px, 72vh);
  min-height: 520px;
  overflow: hidden;
  background: #170b03;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
  background-image: var(--hero-image), radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.35), transparent 32%), linear-gradient(135deg, #1c0d04, #5f2509);
  background-size: cover;
  background-position: center;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.2) 48%, rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  padding: 96px 0 74px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.24);
}

.hero-content h1 {
  max-width: 880px;
  margin: 18px 0 18px;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 28px;
  font-size: clamp(1.08rem, 2.2vw, 1.45rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.65;
}

.hero-actions,
.hero-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

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

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.36);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

.hero-chips {
  margin-top: 18px;
}

.hero-chips a {
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  font-size: 2rem;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.66);
}

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

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

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

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

.hero-dot.active {
  width: 30px;
  background: var(--amber-500);
}

.intro-panel,
.page-hero {
  margin-top: 32px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(254, 243, 199, 0.78));
  box-shadow: var(--shadow);
}

.intro-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.intro-panel h2,
.page-hero h1,
.section-title h2,
.rank-box h2,
.content-card h2,
.player-section h2,
.site-footer h2 {
  color: var(--amber-900);
  letter-spacing: -0.04em;
}

.intro-panel h2,
.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
}

.intro-panel p,
.page-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--amber-700);
  line-height: 1.8;
}

.section-more {
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  white-space: nowrap;
}

.section-block,
.split-section {
  margin-top: 52px;
}

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

.section-title h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section-title a {
  color: var(--amber-600);
  font-weight: 900;
}

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

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

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

.movie-card[hidden] {
  display: none;
}

.movie-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(120, 53, 15, 0.2);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-200), var(--orange-100));
}

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

.movie-card-link:hover .poster-wrap img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.58));
  opacity: 0.8;
}

.play-mark {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
}

.movie-card-body strong {
  color: var(--amber-900);
  font-size: 1.08rem;
  line-height: 1.35;
}

.card-meta {
  color: var(--amber-600);
  font-size: 0.86rem;
  font-weight: 800;
}

.card-desc {
  color: var(--amber-700);
  font-size: 0.94rem;
  line-height: 1.58;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--amber-800);
  background: var(--amber-100);
  font-size: 0.8rem;
  font-weight: 800;
}

.movie-rail {
  display: flex;
  gap: 18px;
  padding: 6px 0 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.rail-item {
  width: 292px;
  flex: 0 0 292px;
  scroll-snap-align: start;
}

.channel-panel,
.soft-panel {
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
  box-shadow: var(--shadow);
}

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

.channel-grid a {
  display: flex;
  min-height: 130px;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 22px;
  color: var(--amber-800);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.14);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.channel-grid a:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(120, 53, 15, 0.15);
}

.channel-grid strong {
  font-size: 1.1rem;
  color: var(--amber-900);
}

.channel-grid span {
  color: var(--amber-700);
  font-size: 0.94rem;
  line-height: 1.6;
}

.split-section {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.rank-box {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.rank-box h2 {
  margin: 0 0 16px;
}

.rank-box ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.rank-item a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(254, 243, 199, 0.55);
}

.rank-item a:hover {
  background: rgba(253, 230, 138, 0.78);
}

.rank-num {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-weight: 900;
}

.rank-title {
  min-width: 0;
  color: var(--amber-900);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--amber-700);
  font-size: 0.86rem;
}

.wide-grid {
  display: grid;
  gap: 18px;
}

.wide-link {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(120, 53, 15, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wide-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(120, 53, 15, 0.18);
}

.wide-poster {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--amber-200), var(--orange-100));
}

.wide-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wide-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--amber-700);
  line-height: 1.55;
}

.wide-content strong {
  color: var(--amber-900);
  font-size: 1.14rem;
}

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

.small-hero,
.category-hero {
  margin-top: 36px;
}

.local-filter,
.big-search {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.local-filter input {
  width: min(520px, 100%);
}

.big-search input {
  width: min(680px, 100%);
}

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

.category-card a {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.12);
  border: 1px solid var(--line);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 116px;
  background: linear-gradient(135deg, var(--amber-200), var(--orange-100));
}

.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-body {
  padding: 18px;
  display: grid;
  gap: 8px;
}

.category-body strong {
  color: var(--amber-900);
  font-size: 1.25rem;
}

.category-body span {
  color: var(--amber-700);
  line-height: 1.6;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  padding: 72px 0;
  background-image: var(--detail-bg), radial-gradient(circle at 15% 10%, rgba(245, 158, 11, 0.38), transparent 30%), linear-gradient(135deg, #1d0d04, #6b2c0b);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.58) 48%, rgba(0, 0, 0, 0.28));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--amber-200), var(--orange-100));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.breadcrumbs a:hover {
  color: var(--amber-200);
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.detail-line {
  max-width: 780px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  line-height: 1.75;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.detail-tags span {
  color: #fff;
  background: rgba(245, 158, 11, 0.7);
}

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

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  aspect-ratio: 16 / 9;
}

.movie-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.12));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.movie-player.playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding-left: 5px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.32);
  font-size: 2rem;
}

.player-state {
  position: absolute;
  left: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-state.show {
  opacity: 1;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.content-card {
  padding: 28px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(120, 53, 15, 0.11);
}

.content-card h2,
.player-section h2 {
  margin: 0 0 16px;
  font-size: 1.65rem;
}

.content-card p {
  margin: 0;
  color: var(--amber-700);
  line-height: 1.9;
  font-size: 1.02rem;
}

.site-footer {
  margin-top: 72px;
  padding: 46px 0 26px;
  background: linear-gradient(180deg, rgba(255, 251, 235, 0.2), rgba(254, 243, 199, 0.88));
  border-top: 1px solid var(--line);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

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

.site-footer p {
  margin: 0;
  color: var(--amber-700);
  line-height: 1.7;
}

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

.site-footer a {
  color: var(--amber-700);
}

.site-footer a:hover {
  color: var(--amber-600);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--amber-600);
  font-size: 0.92rem;
}

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

  .menu-toggle {
    display: inline-flex;
  }

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

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

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

  .detail-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

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

@media (max-width: 760px) {
  .hero-carousel {
    min-height: 560px;
    height: 76vh;
  }

  .hero-content {
    padding-bottom: 72px;
  }

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

  .intro-panel,
  .section-title,
  .local-filter,
  .big-search {
    flex-direction: column;
    align-items: stretch;
  }

  .card-grid,
  .compact-grid,
  .channel-grid,
  .category-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .wide-link {
    grid-template-columns: 1fr;
  }

  .wide-poster {
    aspect-ratio: 16 / 9;
  }

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

  .detail-poster {
    width: min(230px, 70vw);
  }

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

@media (max-width: 520px) {
  .navbar,
  .container,
  .split-section,
  .footer-grid,
  .footer-bottom,
  .mobile-panel {
    width: min(100% - 22px, 1180px);
  }

  .intro-panel,
  .page-hero,
  .channel-panel,
  .soft-panel,
  .content-card {
    padding: 22px;
    border-radius: 22px;
  }

  .rail-item {
    width: 252px;
    flex-basis: 252px;
  }
}
