* {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --accent: #ef4444;
  --slate: #0f172a;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #f97316, #ef4444);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.25);
}

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #f97316;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

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

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 300px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  padding: 4px;
}

.nav-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 9px 12px;
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.nav-search button,
.wide-search button,
.btn-primary {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button {
  padding: 8px 14px;
  background: #ffffff;
  color: var(--brand-dark);
  box-shadow: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
}

.btn-primary.full {
  width: 100%;
  margin-top: 16px;
}

.btn-primary:hover,
.wide-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.36);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
  backdrop-filter: blur(14px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 99px;
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: #ffffff;
  background: #111827;
}

.hero-track {
  position: relative;
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: 56px;
  width: 100%;
  padding: 96px max(32px, calc((100vw - 1280px) / 2)) 150px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  background-image:
    linear-gradient(110deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.8) 42%, rgba(15, 23, 42, 0.35) 100%),
    var(--hero-image),
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.35), transparent 38%);
  background-size: cover;
  background-position: center;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 25%, rgba(249, 115, 22, 0.24), transparent 34%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.86), transparent 45%);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 1;
}

.hero-kicker,
.detail-kicker,
.movie-meta-row,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-kicker span,
.detail-kicker span,
.detail-kicker a,
.movie-meta-row a,
.movie-meta-row span,
.rank-meta a,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-kicker span {
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.13);
}

.hero-content h1,
.hero-content h2 {
  max-width: 860px;
  margin: 18px 0 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-content h2 + p,
.hero-content h1 + h2 + p {
  margin-top: 20px;
}

.hero-content h1 + h2 {
  margin-top: 16px;
  font-size: clamp(32px, 5vw, 56px);
  color: #fed7aa;
}

.hero-content p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.hero-poster {
  display: block;
  overflow: hidden;
  min-height: 520px;
  border-radius: 32px;
  background: linear-gradient(135deg, #334155, #111827);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  transform: translate(-50%, -50%);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  width: min(1280px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-prev,
.hero-next {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 34px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px;
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(14px);
}

.hero-thumb.is-active {
  border-color: rgba(249, 115, 22, 0.9);
  background: rgba(249, 115, 22, 0.28);
}

.hero-thumb img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #475569, #0f172a);
}

.hero-thumb span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.quick-search-section {
  margin-top: -36px;
  position: relative;
  z-index: 4;
}

.quick-search-card,
.section-block,
.ranking-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.quick-search-card {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.wide-search {
  display: flex;
  gap: 12px;
}

.wide-search input,
.catalog-filter input {
  width: 100%;
  border: 1px solid var(--line);
  outline: 0;
  border-radius: 999px;
  background: #ffffff;
  padding: 14px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wide-search input:focus,
.catalog-filter input:focus {
  border-color: rgba(249, 115, 22, 0.7);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.wide-search button {
  min-width: 130px;
  padding: 0 22px;
}

.section-block {
  margin-top: 34px;
  padding: 30px;
}

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

.section-heading h2,
.quick-search-card h2 {
  margin: 4px 0 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading a {
  color: var(--brand-dark);
  font-weight: 800;
}

.section-eyebrow {
  display: inline-flex;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  border-color: rgba(249, 115, 22, 0.52);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #334155, #0f172a);
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

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

.movie-meta-row a,
.movie-meta-row span,
.rank-meta a,
.rank-meta span,
.detail-kicker span,
.detail-kicker a {
  color: #475569;
  background: #f1f5f9;
}

.movie-meta-row a,
.detail-kicker a,
.rank-meta a {
  color: var(--brand-dark);
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.movie-card h3 a:hover,
.ranking-item h3 a:hover,
.category-sample-links a:hover {
  color: var(--brand-dark);
}

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

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

.tag-row span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #b45309;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  color: #ffffff;
  background-image:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(249, 115, 22, 0.62)),
    var(--card-image),
    linear-gradient(135deg, #0f172a, #f97316);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

.category-card {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.category-card span,
.category-card-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.category-card strong {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.split-section {
  margin-top: 34px;
}

.ranking-panel {
  padding: 30px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 52px 108px minmax(0, 1fr) 76px;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  padding: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  border-color: rgba(249, 115, 22, 0.5);
  transform: translateX(4px);
}

.rank-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  width: 108px;
  height: 68px;
  border-radius: 14px;
  background: linear-gradient(135deg, #334155, #111827);
}

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

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-info p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.ranking-item strong {
  color: var(--brand-dark);
  font-size: 22px;
  text-align: right;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 18%, rgba(249, 115, 22, 0.35), transparent 30%),
    linear-gradient(135deg, #334155, #0f172a 60%, #111827);
}

.compact-hero {
  padding: 84px 0;
}

.compact-hero h1 {
  max-width: 860px;
  margin: 8px 0 14px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.compact-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 24px 0 0;
}

.category-tabs a {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-weight: 800;
}

.category-tabs a.is-active,
.category-tabs a:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.catalog-heading {
  align-items: center;
}

.catalog-filter {
  width: min(360px, 100%);
}

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

.empty-state {
  margin: 28px 0 0;
  padding: 18px;
  border-radius: 18px;
  color: #7c2d12;
  background: #ffedd5;
  text-align: center;
  font-weight: 800;
}

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

.category-overview-card {
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-overview-card p {
  margin: 10px 0 16px;
  color: rgba(255, 255, 255, 0.84);
}

.category-sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-sample-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 800;
}

.player-section {
  background: #020617;
}

.player-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 50% 35%, rgba(249, 115, 22, 0.16), transparent 30%),
    #000000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.64));
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.big-play {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  font-size: 38px;
}

.detail-shell {
  padding-top: 34px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 32px;
  margin-top: 24px;
}

.detail-poster {
  align-self: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(135deg, #334155, #111827);
}

.detail-content {
  min-width: 0;
}

.detail-content h1 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.one-line {
  margin: 0;
  color: #475569;
  font-size: 19px;
}

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

.detail-meta-table div {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
}

.detail-meta-table span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-meta-table strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
}

.detail-tags {
  margin-top: 20px;
}

.text-panel {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.text-panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.text-panel p {
  margin: 0;
  color: #334155;
  font-size: 16px;
}

.movie-card-compact .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

.site-footer {
  margin-top: 46px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

.footer-brand {
  color: #ffffff;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  max-width: 520px;
  color: #94a3b8;
}

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

.footer-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 800;
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.4);
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  color: #94a3b8;
  font-size: 14px;
}

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

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

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 430px;
  }
}

@media (max-width: 860px) {
  .nav-shell {
    flex-wrap: wrap;
    min-height: 64px;
    padding: 12px 0;
  }

  .mobile-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-left: 0;
  }

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

  .main-nav a {
    background: rgba(255, 255, 255, 0.12);
  }

  .hero-section,
  .hero-track {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 80px 16px 178px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 290px;
  }

  .hero-controls {
    grid-template-columns: 42px 1fr 42px;
  }

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

  .hero-thumb:nth-child(n+4) {
    display: none;
  }

  .quick-search-card {
    grid-template-columns: 1fr;
  }

  .wide-search {
    flex-direction: column;
  }

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

  .ranking-item {
    grid-template-columns: 42px 86px minmax(0, 1fr);
  }

  .ranking-item strong {
    display: none;
  }

  .rank-thumb {
    width: 86px;
    height: 58px;
  }

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

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

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

@media (max-width: 560px) {
  .section-shell,
  .nav-shell,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1280px);
  }

  .brand {
    font-size: 18px;
  }

  .hero-section,
  .hero-track {
    min-height: 720px;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-poster {
    transform: none;
  }

  .hero-thumbs {
    display: none;
  }

  .hero-controls {
    grid-template-columns: 42px 1fr 42px;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .category-overview-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .section-block,
  .ranking-panel,
  .quick-search-card {
    padding: 20px;
  }

  .section-heading,
  .catalog-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .ranking-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .rank-thumb {
    display: none;
  }
}
