* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #172033;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(16px);
}

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

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

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #0f766e);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.35);
}

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

.brand-text strong {
  color: #ffffff;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.brand-text em {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  color: #cbd5e1;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 999px;
}

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

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  padding: 10px 0;
  color: #dbeafe;
  font-weight: 600;
}

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

.hero-stage,
.hero-slide,
.hero-slide img,
.hero-overlay {
  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.02);
}

.hero-slide img.image-hidden,
.detail-bg img.image-hidden,
.category-covers img.image-hidden,
.cover-frame img.image-hidden,
.rank-cover img.image-hidden,
.detail-poster img.image-hidden,
.feature-row img.image-hidden {
  display: none;
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: radial-gradient(circle at 18% 25%, rgba(16, 185, 129, 0.38), transparent 34%), linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.58) 48%, rgba(2, 6, 23, 0.2));
}

.hero-overlay {
  z-index: 2;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 45%);
}

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

.hero-content h1 {
  max-width: 720px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 660px;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.8;
}

.hero-badges,
.hero-tags,
.tag-row,
.card-meta,
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges span,
.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-badges span:first-child {
  color: #ffffff;
  background: #10b981;
}

.hero-badges span:not(:first-child),
.hero-tags span {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-tags {
  margin-top: 22px;
}

.hero-actions {
  margin-top: 28px;
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #0f766e);
  box-shadow: 0 16px 32px rgba(16, 185, 129, 0.32);
}

.btn-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 96px;
  z-index: 4;
  width: min(360px, calc(100% - 48px));
}

.hero-panel-card,
.player-card,
.article-card,
.meta-card,
.category-card,
.feature-stack {
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.hero-panel-card {
  padding: 22px;
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(18px);
}

.hero-panel-card h2 {
  margin: 8px 0;
  font-size: 24px;
}

.hero-panel-card p {
  margin: 0 0 18px;
  color: #cbd5e1;
  line-height: 1.7;
}

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

.hero-mini {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-mini:hover {
  background: rgba(16, 185, 129, 0.26);
  transform: translateX(4px);
}

.hero-mini span {
  grid-row: span 2;
  color: #6ee7b7;
  font-size: 22px;
  font-weight: 900;
}

.hero-mini strong {
  overflow: hidden;
  color: #ffffff;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-mini em {
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-controls button {
  border: 0;
}

.hero-controls > button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  font-size: 28px;
  line-height: 1;
}

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

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

.hero-dot.active {
  width: 30px;
  background: #10b981;
}

.category-strip {
  position: relative;
  z-index: 10;
  margin-top: -28px;
}

.strip-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.14);
}

.strip-inner strong,
.strip-inner a {
  white-space: nowrap;
}

.strip-inner strong {
  color: #0f172a;
}

.strip-inner a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #0f766e;
  background: #ecfdf5;
  font-weight: 700;
}

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

.highlight-section {
  padding: 36px;
  border-radius: 32px;
  background: linear-gradient(135deg, #f0fdfa, #eff6ff);
}

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

.section-kicker {
  color: #10b981;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
  margin: 8px 0 10px;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #64748b;
  line-height: 1.8;
}

.section-more {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  color: #0f766e;
  background: #ecfdf5;
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.16);
}

.cover-frame,
.rank-cover,
.detail-poster,
.category-covers,
.feature-row img {
  background: radial-gradient(circle at 30% 20%, rgba(16, 185, 129, 0.42), transparent 34%), linear-gradient(135deg, #0f172a, #134e4a);
}

.cover-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.cover-frame img,
.rank-cover img,
.detail-poster img,
.feature-row img,
.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .cover-frame img {
  transform: scale(1.08);
}

.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.58), transparent 55%);
}

.cover-badge,
.cover-type {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.cover-badge {
  left: 12px;
  background: #10b981;
}

.cover-type {
  right: 12px;
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 17px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-body h3 a:hover {
  color: #10b981;
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  justify-content: space-between;
  color: #64748b;
  font-size: 13px;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  min-height: 24px;
  color: #0f766e;
  background: #ecfdf5;
  font-size: 12px;
}

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

.movie-card-compact {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.movie-card-compact .cover-frame {
  height: 100%;
  aspect-ratio: auto;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, 180px);
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid #dbeafe;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  outline: none;
  color: #0f172a;
  background: #f8fafc;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 18px;
  color: #64748b;
  background: #f1f5f9;
  text-align: center;
  font-weight: 700;
}

.empty-state.show {
  display: block;
}

.page-hero {
  padding: 90px 0 80px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.36), transparent 32%), linear-gradient(135deg, #0f172a, #134e4a);
}

.page-hero .section-kicker,
.detail-hero .section-kicker {
  color: #6ee7b7;
}

.page-hero h1,
.page-hero p {
  color: #ffffff;
}

.page-hero p {
  color: #d1d5db;
}

.split-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 36px;
  align-items: center;
}

.feature-stack {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.feature-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.feature-row img {
  height: 70px;
  border-radius: 12px;
}

.feature-row span {
  min-width: 0;
}

.feature-row strong,
.feature-row em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.feature-row em {
  margin-top: 6px;
  color: #cbd5e1;
  font-size: 13px;
  font-style: normal;
}

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

.category-card {
  overflow: hidden;
}

.category-card a {
  display: block;
}

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

.category-card-body {
  padding: 22px;
}

.category-card-body h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 24px;
}

.category-card-body p {
  min-height: 56px;
  margin: 0 0 18px;
  color: #64748b;
  line-height: 1.7;
}

.category-card-body span {
  color: #0f766e;
  font-weight: 900;
}

.rank-list {
  display: grid;
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 190px 1fr 88px;
  align-items: center;
  gap: 20px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.rank-cover {
  position: relative;
  height: 112px;
  overflow: hidden;
  border-radius: 16px;
}

.rank-cover span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #0f766e);
  font-weight: 900;
}

.rank-body h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 22px;
}

.rank-body p {
  margin: 0 0 12px;
  color: #64748b;
  line-height: 1.65;
}

.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: #10b981;
  font-weight: 900;
}

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

.detail-bg,
.detail-bg::after,
.detail-bg img {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px) saturate(1.08);
  transform: scale(1.08);
  opacity: 0.52;
}

.detail-bg::after {
  content: "";
  background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.34), transparent 30%), linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.66));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 36px 0 68px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #6ee7b7;
}

.breadcrumb em {
  overflow: hidden;
  max-width: 360px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.detail-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
}

.detail-copy h1 {
  color: #ffffff;
  font-size: clamp(42px, 6vw, 74px);
}

.detail-one-line {
  max-width: 760px;
  margin: 0;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.8;
}

.player-section {
  margin-top: -48px;
  position: relative;
  z-index: 4;
}

.player-card {
  padding: 22px;
}

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

.player-title-row h2 {
  margin: 6px 0 0;
  color: #0f172a;
  font-size: 26px;
}

.play-chip {
  padding: 8px 12px;
  border-radius: 999px;
  color: #047857;
  background: #d1fae5;
  font-weight: 900;
}

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

.movie-player {
  width: 100%;
  height: 100%;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.22), rgba(2, 6, 23, 0.52));
}

.play-overlay.hide {
  display: none;
}

.play-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981, #0f766e);
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.34);
  font-size: 34px;
  text-indent: 4px;
}

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

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.86);
  font-weight: 700;
}

.player-message.show {
  display: block;
}

.detail-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.article-card,
.meta-card {
  padding: 28px;
}

.article-card h2,
.meta-card h2 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 26px;
}

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

.article-card p {
  margin: 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.9;
}

.meta-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}

.meta-card span {
  color: #64748b;
}

.meta-card strong {
  color: #0f172a;
  text-align: right;
}

.site-footer {
  margin-top: 88px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #111827 48%, #134e4a);
}

.footer-inner {
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 22px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer p,
.site-footer li {
  color: #94a3b8;
  line-height: 1.8;
}

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

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
  font-size: 14px;
}

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

  .nav-link {
    font-size: 14px;
  }

  .hero-panel {
    display: none;
  }

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

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding-top: 90px;
  }

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

  .hero-content p {
    font-size: 16px;
  }

  .section-heading,
  .footer-bottom,
  .player-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .movie-card-compact .cover-frame {
    aspect-ratio: 16 / 9;
  }

  .rank-item {
    grid-template-columns: 140px 1fr;
  }

  .rank-action {
    grid-column: 1 / -1;
  }

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

@media (max-width: 560px) {
  .nav-wrap,
  .page-container,
  .footer-inner,
  .content-section {
    width: min(100% - 24px, 1180px);
  }

  .hero-content {
    width: min(100% - 24px, 1180px);
  }

  .hero-content h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero-actions,
  .hero-badges,
  .hero-tags {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .highlight-section,
  .player-card,
  .article-card,
  .meta-card {
    padding: 18px;
    border-radius: 20px;
  }

  .movie-grid,
  .featured-grid,
  .small-grid,
  .category-grid,
  .compact-list,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 1fr;
  }

  .rank-cover {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .category-covers {
    height: 160px;
  }

  .detail-poster {
    max-width: 100%;
  }
}
