:root {
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-card: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --red: #ef4444;
  --orange: #f97316;
  --purple: #7c3aed;
  --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 24px 70px rgba(15, 23, 42, 0.22);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.rainbow-bar {
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #eab308, #22c55e, #06b6d4, #2563eb, #7c3aed);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.nav-shell {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, #f97316 32%, #7c3aed 100%);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.25);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(234, 179, 8, 0.25), rgba(37, 99, 235, 0.28));
  filter: blur(8px);
  z-index: -1;
}

.brand-mark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: white;
  stroke-width: 4;
  stroke-linejoin: round;
}

.brand-mark svg path:last-child {
  fill: white;
  stroke: none;
}

.brand-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e, #06b6d4, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--blue);
  background: #eff6ff;
}

.nav-link:hover,
.mobile-link:hover {
  transform: translateY(-1px);
}

.nav-search {
  width: min(280px, 28vw);
}

.site-search-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 11px 16px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.site-search-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #0f172a;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 16px 24px 22px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.mobile-search {
  margin-top: 8px;
}

main {
  min-height: 60vh;
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 20%, rgba(239, 68, 68, 0.22), transparent 32%), radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.25), transparent 38%), linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #111827 100%);
  color: #ffffff;
}

.hero-shell {
  max-width: 1280px;
  min-height: 72vh;
  margin: 0 auto;
  padding: 78px 24px 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 52px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, #fef3c7, #f97316, #ef4444, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #ef4444, #f97316, #7c3aed);
  box-shadow: 0 18px 36px rgba(239, 68, 68, 0.26);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-plain {
  color: var(--blue);
  background: #eff6ff;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-plain:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.hero-search {
  max-width: 640px;
  margin-top: 30px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  gap: 10px;
  backdrop-filter: blur(14px);
}

.hero-search .site-search-input {
  border: 0;
  background: rgba(255, 255, 255, 0.95);
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
}

.hero-carousel {
  position: relative;
  z-index: 2;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  border-radius: 34px;
  overflow: hidden;
  background: #111827;
  box-shadow: var(--shadow-strong);
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #334155, #111827);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.88));
}

.hero-slide-info {
  position: relative;
  z-index: 1;
  padding: 34px;
}

.hero-slide-info h2 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 900;
}

.hero-slide-info p {
  max-width: 560px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.hero-meta,
.meta-pills,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill,
.tag-chip,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta .meta-pill {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-controls {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-control {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.45);
  color: #ffffff;
  font-weight: 900;
}

.hero-dots {
  position: absolute;
  left: 34px;
  bottom: 24px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

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

.hero-dot.active {
  width: 28px;
  background: #ffffff;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px;
}

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

.section-kicker {
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-transform: uppercase;
}

.section h2,
.page-hero h1,
.detail-info h1 {
  margin: 6px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.section-header p,
.page-hero p {
  max-width: 700px;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 22px;
  background: var(--surface-card);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-soft);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.25;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(249, 115, 22, 0.5), transparent 34%), linear-gradient(135deg, #334155, #0f172a);
}

.poster-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.poster-frame img.image-error {
  opacity: 0;
}

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(15, 23, 42, 0.82));
  opacity: 0.85;
}

.quality-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.92);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.movie-card-body {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 48px;
  overflow: hidden;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
}

.movie-title:hover {
  color: var(--blue);
}

.movie-meta {
  margin: 8px 0 8px;
  color: #64748b;
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 45px;
  overflow: hidden;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

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

.page-hero {
  background: radial-gradient(circle at 20% 10%, rgba(239, 68, 68, 0.2), transparent 30%), radial-gradient(circle at 80% 30%, rgba(37, 99, 235, 0.22), transparent 30%), linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 74px 24px 76px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.72);
}

.filter-row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 38px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.filter-chip:hover,
.filter-chip.active {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--blue);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 0;
}

.page-link,
.page-gap {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-weight: 800;
}

.page-link.current,
.page-link:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.page-link.disabled {
  color: #cbd5e1;
  pointer-events: none;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-soft);
}

.category-card::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(37, 99, 235, 0.18));
}

.category-card h2 {
  position: relative;
  margin: 0;
  font-size: 34px;
}

.category-card p {
  position: relative;
  color: var(--muted);
  line-height: 1.8;
}

.category-card a {
  position: relative;
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.rank-num {
  display: inline-flex;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: #f97316;
}

.rank-thumb {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-title {
  font-size: 20px;
  font-weight: 900;
}

.rank-title:hover {
  color: var(--blue);
}

.rank-desc {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.rank-action {
  color: var(--blue);
  font-weight: 900;
  padding: 0 12px;
}

.player-section {
  background: #030712;
  padding: 28px 24px 42px;
}

.player-shell {
  position: relative;
  max-width: 1180px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: #000000;
  box-shadow: var(--shadow-strong);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 42%, rgba(37, 99, 235, 0.34), transparent 22%), linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.76));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.player-cover-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-weight: 900;
}

.play-icon-large {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.player-shell.is-playing .player-cover {
  opacity: 0;
  pointer-events: none;
}

.player-shell.is-loading .play-icon-large {
  animation: pulse 1s ease-in-out infinite;
}

.detail-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 24px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, #334155, #0f172a);
}

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

.detail-info h1 {
  margin-top: 0;
}

.detail-lead {
  margin: 18px 0 22px;
  color: #334155;
  font-size: 18px;
  line-height: 1.85;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.content-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
  gap: 28px;
}

.content-card,
.side-card {
  border: 1px solid #e2e8f0;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  padding: 26px;
}

.content-card + .content-card,
.side-card + .side-card {
  margin-top: 24px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 900;
}

.content-card p {
  color: #334155;
  line-height: 1.95;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 72px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
}

.related-item strong {
  display: block;
  color: #0f172a;
  line-height: 1.4;
}

.related-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.search-panel {
  position: fixed;
  top: 82px;
  left: 50%;
  z-index: 100;
  width: min(720px, calc(100vw - 32px));
  max-height: 72vh;
  overflow: auto;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-strong);
  transform: translateX(-50%);
  display: none;
}

.search-panel.open {
  display: block;
}

.search-result {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
}

.search-result:hover {
  background: #eff6ff;
}

.search-result img {
  width: 68px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
}

.search-result strong {
  display: block;
  font-weight: 900;
}

.search-result span {
  display: block;
  margin: 5px 0;
  color: var(--muted);
  font-size: 13px;
}

.search-result p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
  font-size: 14px;
}

.search-empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  margin-top: 30px;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 34px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

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

.site-footer h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 16px;
}

.site-footer a,
.footer-top {
  display: block;
  margin: 10px 0;
  color: #cbd5e1;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.site-footer a:hover,
.footer-top:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #1e293b;
}

@keyframes pulse {
  50% {
    opacity: 0.62;
    transform: scale(0.96);
  }
}

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

  .hero-shell {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

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

  .rank-item {
    grid-template-columns: 48px 74px minmax(0, 1fr);
  }

  .rank-action {
    display: none;
  }
}

@media (max-width: 620px) {
  .nav-shell {
    padding: 0 16px;
  }

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

  .hero-shell {
    min-height: auto;
    padding: 52px 18px 44px;
  }

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search button {
    min-height: 44px;
  }

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

  .hero-slide-info {
    padding: 24px;
  }

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

  .section,
  .detail-hero,
  .content-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .player-section {
    padding: 18px 12px 26px;
  }

  .player-shell {
    border-radius: 18px;
  }

  .play-icon-large {
    width: 70px;
    height: 70px;
  }
}
