:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: #1e293b;
  --bg-card-deep: #111827;
  --text: #f8fafc;
  --text-muted: #cbd5e1;
  --text-soft: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --blue: #2563eb;
  --yellow: #facc15;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

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

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

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.18);
  transition: transform 0.25s ease;
}

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

.logo-mark span {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #ffffff;
  margin-left: 3px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

.logo-text small {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-links a,
.nav-dropdown > button {
  color: var(--text-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-dropdown > button:hover {
  color: var(--cyan);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: 210px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-muted);
}

.nav-dropdown-menu a:hover {
  background: rgba(34, 211, 238, 0.1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.8);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}

.mobile-category-panel {
  display: none;
}

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

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

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

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

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

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

.hero-shade-side {
  background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.86) 40%, rgba(2, 6, 23, 0.2) 100%);
}

.hero-shade-bottom {
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 56%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: var(--max);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.11);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-content h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(16px, 2.2vw, 22px);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(34, 211, 238, 0.18);
}

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

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.52);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.hero-score {
  color: var(--yellow);
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100% - var(--max)) / 2));
  bottom: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-controls button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.64);
  font-size: 30px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.hero-controls > button:hover {
  background: rgba(34, 211, 238, 0.34);
}

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

.hero-dot {
  width: 18px;
  height: 5px;
  padding: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section-block {
  padding: 68px max(16px, calc((100% - var(--max)) / 2));
}

.gradient-section {
  background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

.solid-section {
  background: #0f172a;
}

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

.section-head.compact {
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
}

.section-head a {
  color: var(--cyan);
  font-weight: 800;
}

.horizontal-scroller {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.horizontal-scroller::-webkit-scrollbar {
  display: none;
}

.horizontal-scroller .movie-card {
  flex: 0 0 310px;
  scroll-snap-align: start;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card article {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover article {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.66);
  box-shadow: 0 22px 48px rgba(34, 211, 238, 0.14);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111827;
}

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

.movie-card:hover .poster-frame img,
.category-card:hover img,
.feature-poster:hover img {
  transform: scale(1.08);
}

.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.82) 100%);
}

.badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.badge.rating {
  top: 10px;
  right: 10px;
  color: var(--yellow);
}

.badge.duration {
  right: 10px;
  bottom: 10px;
}

.card-body {
  padding: 16px;
}

.card-meta {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
}

.card-body h3 {
  min-height: 52px;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--cyan);
}

.card-desc {
  min-height: 46px;
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.tag-row,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span,
.tag-cloud a {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  font-size: 12px;
}

.tag-cloud a:hover {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.category-card:hover img {
  opacity: 0.32;
}

.category-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.24), rgba(37, 99, 235, 0.08));
}

.category-card strong,
.category-card small,
.category-card p {
  position: relative;
  z-index: 1;
  display: block;
}

.category-card strong {
  margin-top: 58px;
  font-size: 22px;
}

.category-card small {
  margin: 8px 0;
  color: var(--cyan);
  font-weight: 700;
}

.category-card p,
.category-overview-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.featured-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.9fr;
  gap: 24px;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
}

.feature-poster {
  position: relative;
  display: flex;
  min-height: 560px;
  overflow: hidden;
  flex-direction: column;
  justify-content: end;
  padding: 30px;
  border-radius: 24px;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.feature-poster img,
.feature-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.feature-shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.feature-poster .eyebrow,
.feature-poster strong,
.feature-poster p {
  position: relative;
  z-index: 2;
}

.feature-poster strong {
  margin-top: 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.feature-poster p {
  max-width: 620px;
  color: var(--text-muted);
}

.feature-side,
.ranking-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compact-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.82);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.compact-item:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.55);
}

.compact-item img {
  width: 92px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-item strong,
.compact-item small {
  display: block;
}

.compact-item strong {
  color: var(--text);
}

.compact-item small {
  color: var(--text-soft);
  font-size: 12px;
}

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

.ranking-list .compact-item,
.ranking-panel .compact-item {
  grid-template-columns: 42px 82px 1fr;
}

.rank-num {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 16% 0%, rgba(34, 211, 238, 0.2), transparent 28%), linear-gradient(135deg, #020617, #0f172a 65%, #111827);
}

.small-hero {
  padding: 80px max(16px, calc((100% - var(--max)) / 2)) 60px;
}

.page-hero-content {
  max-width: 900px;
}

.page-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 7vw, 66px);
  line-height: 1.08;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
}

.filter-box {
  width: min(720px, 100%);
  margin-top: 28px;
}

.filter-box input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 16px;
  outline: 0;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}

.filter-box input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: 14px;
}

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

.result-count {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-weight: 700;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.86);
  color: var(--text-muted);
}

.pagination a.active,
.pagination a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

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

.category-overview-card {
  min-height: 260px;
}

.category-thumb-stack {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.category-thumb-stack img {
  width: 31%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.category-overview-card h2 {
  margin: 12px 0 8px;
  font-size: 28px;
}

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

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

.detail-bg {
  object-fit: cover;
  opacity: 0.26;
  filter: blur(2px);
}

.detail-bg-shade {
  background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.84) 56%, rgba(2, 6, 23, 0.42) 100%), linear-gradient(0deg, #020617 0%, transparent 52%);
}

.detail-layout {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  min-height: 660px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 42px;
  align-items: center;
  padding: 54px 0;
}

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

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

.detail-info h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.detail-one-line {
  max-width: 760px;
  color: var(--text-muted);
  font-size: 20px;
}

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

.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.58);
  color: var(--text-muted);
}

.player-section {
  background: #020617;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.2), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-loaded .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 60px rgba(34, 211, 238, 0.28);
  font-size: 34px;
  text-indent: 4px;
}

.article-card {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.72);
  box-shadow: var(--shadow);
}

.article-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.article-card h2:not(:first-child) {
  margin-top: 30px;
}

.article-card p,
.article-page p {
  color: var(--text-muted);
  font-size: 18px;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: #020617;
}

.footer-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 50px 0 34px;
}

.footer-brand p {
  max-width: 440px;
  color: var(--text-soft);
}

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

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--text-soft);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--text-soft);
  font-size: 14px;
}

.hidden-by-filter {
  display: none !important;
}

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

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

  .ranking-panel {
    grid-column: 1 / -1;
  }

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

@media (max-width: 820px) {
  .navbar {
    width: min(100% - 24px, var(--max));
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a,
  .nav-dropdown > button {
    width: 100%;
    padding: 12px;
    text-align: left;
  }

  .nav-dropdown {
    display: none;
  }

  .mobile-category-panel.is-open {
    width: min(100% - 24px, var(--max));
    margin: 0 auto 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.98);
  }

  .mobile-category-panel a {
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--text-muted);
    background: rgba(148, 163, 184, 0.08);
  }

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

  .hero-shade-side {
    background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.78) 100%);
  }

  .hero-controls {
    right: 16px;
    bottom: 18px;
  }

  .section-block {
    padding-top: 48px;
    padding-bottom: 48px;
  }

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

  .grid-4,
  .grid-3,
  .category-grid,
  .category-overview-grid,
  .ranking-list.wide,
  .featured-layout,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (max-width: 560px) {
  .logo-text small {
    display: none;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .grid-4,
  .grid-3,
  .category-grid,
  .category-overview-grid,
  .ranking-list.wide,
  .featured-layout,
  .footer-grid,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-scroller .movie-card {
    flex-basis: 82vw;
  }

  .feature-poster {
    min-height: 420px;
  }

  .ranking-list .compact-item,
  .ranking-panel .compact-item {
    grid-template-columns: 38px 76px 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
