:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.78);
  --bg-card-strong: rgba(30, 41, 59, 0.88);
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --red: #ef4444;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.12), transparent 28rem),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(18px);
}

.nav-wrap,
.footer-inner,
.content-section,
.search-band,
.page-main,
.detail-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.brand {
  font-size: 22px;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber), #f97316);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.32);
  font-size: 16px;
}

.desktop-nav,
.nav-categories {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-categories {
  margin-left: auto;
}

.nav-link,
.nav-categories a,
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  padding: 10px 14px;
  color: #cbd5e1;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-categories a:hover,
.mobile-nav a:hover {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.74);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.8);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

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

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

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

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

.hero-shade-bottom {
  background: linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.88) 36%, rgba(2, 6, 23, 0.22) 100%);
}

.hero-shade-left {
  background: linear-gradient(to right, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.66) 36%, transparent 72%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  top: 50%;
  width: min(680px, calc(100% - 48px));
  transform: translateY(-50%);
  display: grid;
  gap: 22px;
}

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

.hero-badges a,
.hero-badges span,
.detail-badges a,
.detail-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.2);
}

.hero-badges span,
.detail-badges span {
  background: rgba(2, 6, 23, 0.66);
  border: 1px solid rgba(245, 158, 11, 0.38);
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: #ffffff;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  max-width: 630px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.movie-meta-line,
.detail-meta-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.hero-meta span,
.movie-meta-line span,
.detail-meta-grid span {
  display: inline-flex;
  align-items: center;
}

.hero-actions,
.quick-links,
.category-overview-head,
.ranking-title {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-btn,
.ghost-btn,
.search-panel button,
.mini-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--amber);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.24);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover,
.search-panel button:hover,
.mini-search button:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.34);
}

.ghost-btn {
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: none;
}

.ghost-btn:hover {
  background: rgba(30, 41, 59, 0.88);
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 48px;
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.62);
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-controls button:hover {
  background: var(--amber);
  transform: translateY(-1px);
}

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

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

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

.search-band {
  margin-top: -34px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-panel,
.mini-search {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.search-panel label,
.filter-box label {
  color: #ffffff;
  font-weight: 900;
}

.search-panel input,
.mini-search input,
.filter-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  outline: none;
  background: rgba(2, 6, 23, 0.5);
  color: #ffffff;
  padding: 0 16px;
}

.search-panel input:focus,
.mini-search input:focus,
.filter-box input:focus {
  border-color: rgba(245, 158, 11, 0.78);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.quick-links a {
  color: #fbbf24;
  font-weight: 800;
}

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

.content-section.no-top {
  padding-top: 28px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.section-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber), #ef4444);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 14px 36px rgba(239, 68, 68, 0.18);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

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

.heading-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, rgba(51, 65, 85, 0.96), transparent);
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.86));
  box-shadow: 0 16px 48px rgba(2, 6, 23, 0.26);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(245, 158, 11, 0.34);
  box-shadow: 0 26px 68px rgba(245, 158, 11, 0.12);
}

.movie-card.is-hidden {
  display: none;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

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

.movie-card:hover .poster img {
  transform: scale(1.08);
  filter: saturate(1.1) brightness(0.9);
}

.category-pill,
.rating-pill,
.rank-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.category-pill {
  left: 12px;
  top: 12px;
  background: var(--amber);
}

.rating-pill {
  right: 12px;
  top: 12px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  min-width: 34px;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(245, 158, 11, 0.94);
  color: #ffffff;
  font-weight: 900;
  font-size: 22px;
  transition: transform 0.24s ease;
}

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

.movie-body {
  padding: 18px;
}

.movie-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  color: #ffffff;
}

.movie-body h3 a:hover {
  color: #fbbf24;
}

.movie-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta-line {
  gap: 8px;
  font-size: 13px;
}

.movie-meta-line span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: rgba(148, 163, 184, 0.52);
}

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

.movie-card-horizontal .poster {
  height: 100%;
  aspect-ratio: auto;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 4px 10px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.55);
  font-size: 12px;
  font-weight: 800;
}

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

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

.category-card,
.ranking-panel,
.filter-box,
.category-overview-block,
.detail-copy,
.player-section {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 54px rgba(2, 6, 23, 0.24);
}

.category-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.36);
}

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

.category-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.category-card h3,
.ranking-panel h2,
.category-overview-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
}

.category-card p,
.category-overview-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-card span,
.ranking-title a {
  color: #fbbf24;
  font-weight: 900;
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.ranking-title {
  justify-content: space-between;
  margin-bottom: 14px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.54);
}

.rank-row:hover {
  background: rgba(51, 65, 85, 0.76);
}

.rank-row span {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  font-weight: 900;
}

.rank-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em {
  color: #fbbf24;
  font-style: normal;
  font-weight: 900;
}

.page-main,
.detail-main {
  padding: 42px 0 72px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  padding: 46px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.22), transparent 38%),
    linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.82));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.8;
}

.eyebrow {
  margin: 0 0 10px !important;
  color: #fbbf24 !important;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 22px;
  align-items: end;
}

.mini-search {
  grid-template-columns: minmax(0, 1fr) auto;
}

.filter-box {
  display: grid;
  gap: 14px;
  padding: 20px;
}

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

.filter-chips button {
  min-height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.72);
  color: #cbd5e1;
  padding: 0 14px;
  font-weight: 800;
}

.filter-chips button:hover,
.filter-chips button.is-active {
  color: #ffffff;
  background: var(--amber);
  border-color: transparent;
}

.category-overview-block {
  margin-bottom: 28px;
  padding: 24px;
}

.category-overview-head {
  justify-content: space-between;
  margin-bottom: 22px;
}

.empty-state {
  display: none;
  margin: 24px 0 0;
  padding: 22px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  color: #94a3b8;
  font-size: 14px;
}

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

.breadcrumb strong {
  color: #ffffff;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 34px;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

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

.detail-info {
  display: grid;
  gap: 20px;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-meta-grid span {
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.62);
}

.player-section,
.detail-copy {
  margin-bottom: 34px;
  padding: 24px;
}

.player-section h2,
.detail-copy h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 26px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.84));
  cursor: pointer;
}

.player-overlay span {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 18px 52px rgba(245, 158, 11, 0.38);
  font-size: 34px;
}

.player-overlay strong {
  font-size: 20px;
}

.video-shell.is-playing .player-overlay {
  display: none;
}

.detail-copy p {
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.95;
}

.related-section {
  width: 100%;
  padding-top: 0;
}

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

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(240px, 0.8fr);
  gap: 28px;
  padding: 34px 0;
  color: var(--muted);
}

.footer-brand {
  margin-bottom: 8px;
  font-size: 22px;
}

.footer-inner p {
  margin: 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.footer-links a {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(30, 41, 59, 0.56);
  color: #cbd5e1;
  font-weight: 800;
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.8);
}

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

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

  .movie-grid-two,
  .split-layout,
  .category-hero,
  .detail-hero,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

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

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

  .nav-wrap {
    min-height: 64px;
  }

  .brand {
    font-size: 18px;
  }

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

  .hero-content {
    top: 47%;
    gap: 16px;
  }

  .hero-content h1 {
    font-size: clamp(36px, 13vw, 54px);
  }

  .hero-content p {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-controls {
    right: 20px;
    bottom: 24px;
  }

  .hero-dots {
    left: 24px;
    bottom: 42px;
    transform: none;
  }

  .search-band,
  .search-panel,
  .mini-search {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding-top: 44px;
  }

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

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

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

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

  .section-heading {
    align-items: flex-start;
  }

  .heading-line {
    display: none;
  }
}

@media (max-width: 520px) {
  .nav-wrap,
  .footer-inner,
  .content-section,
  .search-band,
  .page-main,
  .detail-main,
  .mobile-nav {
    width: min(100% - 22px, 1180px);
  }

  .movie-grid,
  .compact-grid,
  .movie-grid-two,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-badges a,
  .hero-badges span,
  .detail-badges a,
  .detail-badges span {
    min-height: 30px;
    font-size: 12px;
  }

  .player-section,
  .detail-copy,
  .category-overview-block {
    padding: 18px;
  }
}
