:root {
  --bg: #0f172a;
  --bg-deep: #020617;
  --panel: rgba(30, 41, 59, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.86);
  --line: rgba(126, 34, 206, 0.28);
  --line-hot: rgba(251, 191, 36, 0.45);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --weak: #64748b;
  --amber: #fbbf24;
  --amber-deep: #d97706;
  --purple: #7e22ce;
  --purple-soft: #c084fc;
  --radius: 18px;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(126, 34, 206, 0.26), transparent 34rem),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.14), transparent 28rem),
    linear-gradient(180deg, #0f172a 0%, #0f172a 46%, #020617 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(88, 28, 135, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon,
.footer-brand span {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.28);
  font-size: 16px;
}

.brand-text strong,
.footer-brand strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fde68a, #fbbf24);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-text small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #cbd5e1;
  font-weight: 600;
}

.desktop-nav a,
.mobile-nav a,
.footer-grid a {
  transition: color 0.22s ease, transform 0.22s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-grid a:hover {
  color: var(--amber);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-hot);
  color: var(--amber);
  background: rgba(126, 34, 206, 0.28);
  border-radius: 12px;
  padding: 9px 14px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  gap: 10px;
  flex-wrap: wrap;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  color: #cbd5e1;
}

.hero {
  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 850ms ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.78) 34%, rgba(15, 23, 42, 0.22) 100%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0.86));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 88px;
  max-width: 1180px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--purple-soft));
}

.hero-content h1,
.page-hero h1 {
  margin: 0;
  max-width: 820px;
  color: #ffffff;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
}

.hero-content p,
.page-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

.hero-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.tag-cloud span {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 13px 22px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
  color: #111827;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.38);
}

.btn-ghost {
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.32);
  background: rgba(15, 23, 42, 0.48);
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

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

.home-search,
.filter-row {
  display: flex;
  gap: 12px;
}

.home-search input,
.filter-row input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  color: var(--text);
  background: rgba(2, 6, 23, 0.55);
  padding: 0 16px;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.home-search input:focus,
.filter-row input:focus {
  border-color: var(--line-hot);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.1);
}

.home-search button {
  min-width: 96px;
  border: 0;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  font-weight: 900;
  cursor: pointer;
}

.quick-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.quick-links a {
  color: #cbd5e1;
  background: rgba(126, 34, 206, 0.26);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  transition: color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.quick-links a:hover {
  color: var(--amber);
  border-color: var(--line-hot);
  transform: translateY(-2px);
}

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

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

.section-heading > span {
  width: 5px;
  align-self: stretch;
  min-height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber), var(--purple));
}

.section-heading h2 {
  margin: 0;
  color: #fef3c7;
  font-size: clamp(26px, 4vw, 38px);
}

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

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 320px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scrollbar-color: #581c87 #0f172a;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.88));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-hot);
  box-shadow: 0 24px 52px rgba(251, 191, 36, 0.1);
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.78), rgba(30, 41, 59, 0.92));
}

.poster-wrap {
  position: relative;
  display: block;
  height: 245px;
  overflow: hidden;
  background: #020617;
}

.rail-card .poster-wrap {
  height: 210px;
}

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

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

.poster-region {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 11px;
  background: rgba(126, 34, 206, 0.82);
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 58px;
  opacity: 0;
  text-shadow: 0 8px 25px rgba(0, 0, 0, 0.65);
  transition: opacity 0.28s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 10px;
  color: #fef3c7;
  font-size: 18px;
  line-height: 1.35;
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body h3 a:hover,
.rank-card h3 a:hover,
.ranking-row h2 a:hover,
.detail-panel a:hover {
  color: var(--amber);
}

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

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--weak);
  font-size: 13px;
}

.card-meta span,
.detail-meta span {
  border-radius: 999px;
  background: rgba(126, 34, 206, 0.22);
  border: 1px solid rgba(126, 34, 206, 0.25);
  padding: 5px 9px;
}

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

.category-tile,
.overview-link {
  position: relative;
  display: block;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.82);
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.category-tile:hover,
.overview-link:hover {
  transform: translateY(-4px);
  border-color: var(--line-hot);
}

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

.category-tile:hover img {
  transform: scale(1.08);
  opacity: 0.38;
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  display: block;
  color: #fef3c7;
  font-size: 24px;
  font-weight: 900;
  margin-top: 72px;
}

.category-tile p {
  color: #cbd5e1;
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.58), rgba(15, 23, 42, 0.76));
  padding: 10px;
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.rank-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-hot);
}

.rank-poster,
.ranking-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 88px;
  background: #020617;
}

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

.rank-poster span,
.ranking-thumb span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.rank-card:hover .rank-poster span,
.ranking-row:hover .ranking-thumb span {
  opacity: 1;
}

.rank-card h3 {
  margin: 3px 0 8px;
  color: #fef3c7;
  font-size: 16px;
  line-height: 1.4;
}

.rank-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.more-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--amber);
  font-weight: 800;
}

.page-shell {
  min-height: 70vh;
  padding: 46px 0 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(88, 28, 135, 0.5), rgba(15, 23, 42, 0.82)),
    radial-gradient(circle at right, rgba(251, 191, 36, 0.2), transparent 28rem);
  box-shadow: var(--shadow);
  padding: clamp(28px, 6vw, 64px);
}

.small-hero h1,
.category-hero h1,
.search-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
}

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

.breadcrumbs a {
  color: #fde68a;
}

.filter-row {
  margin-top: 28px;
  align-items: center;
}

.big-filter input {
  min-height: 58px;
  font-size: 17px;
}

.overview-card {
  min-width: 0;
}

.overview-link h2 {
  margin: 18px 0 10px;
  color: #fef3c7;
}

.overview-link p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.overview-link span {
  color: var(--amber);
  font-weight: 800;
}

.overview-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.overview-thumbs img {
  height: 88px;
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 70px 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.62), rgba(15, 23, 42, 0.86));
  padding: 16px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.ranking-row:hover {
  transform: translateY(-3px);
  border-color: var(--line-hot);
}

.ranking-row > strong {
  color: transparent;
  background: linear-gradient(180deg, #fef3c7, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 34px;
  font-weight: 1000;
  text-align: center;
}

.ranking-thumb {
  height: 112px;
}

.ranking-row h2 {
  margin: 0 0 10px;
  color: #fef3c7;
  font-size: 22px;
}

.ranking-row p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

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

.detail-main,
.detail-side {
  min-width: 0;
}

.detail-side {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.player-card video,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-card video {
  object-fit: contain;
  background: #000;
}

.player-cover {
  border: 0;
  padding: 0;
  background: #000;
  cursor: pointer;
  z-index: 3;
}

.player-cover img {
  object-fit: cover;
}

.player-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.24));
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.42);
}

.player-loading,
.player-error {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  font-size: 18px;
  font-weight: 800;
}

.player-card.is-loading .player-loading,
.player-card.has-error .player-error {
  display: flex;
}

.player-card.is-playing .player-cover {
  display: none;
}

.detail-panel,
.side-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.62), rgba(15, 23, 42, 0.86));
  padding: clamp(20px, 4vw, 30px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.detail-panel h1 {
  margin: 0 0 16px;
  color: #fef3c7;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
}

.detail-panel h2,
.side-panel h2 {
  color: var(--amber);
  margin: 30px 0 14px;
  font-size: 24px;
}

.side-panel h2 {
  margin-top: 0;
}

.lead-text {
  margin: 20px 0 0;
  color: #fde68a;
  font-size: 19px;
  line-height: 1.8;
  font-weight: 700;
}

.detail-panel p {
  color: #cbd5e1;
  line-height: 1.95;
  font-size: 16px;
}

.side-panel dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.side-panel div,
.side-panel dl > dt,
.side-panel dl > dd {
  min-width: 0;
}

.side-panel dl > dt {
  color: var(--weak);
  font-size: 13px;
}

.side-panel dl > dd {
  margin: -8px 0 8px;
  color: #e2e8f0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.side-panel dl > dd a {
  color: #fde68a;
}

.related-panel .rank-card {
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 12px;
}

.related-panel .rank-poster {
  height: 68px;
}

.related-panel .card-meta span:nth-child(n + 3) {
  display: none;
}

[data-card][hidden] {
  display: none !important;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding: 44px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-grid p,
.footer-grid li,
.footer-bottom {
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 18px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(126, 34, 206, 0.18);
  text-align: center;
  padding: 18px 0 24px;
  font-size: 14px;
}

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

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

  .detail-side {
    position: static;
  }
}

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

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

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

  .hero-control {
    display: none;
  }

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

  .quick-links {
    justify-content: flex-start;
  }

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

  .ranking-row {
    grid-template-columns: 52px 120px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-thumb {
    height: 86px;
  }

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .brand-text small {
    display: none;
  }

  .hero-content {
    padding-bottom: 72px;
  }

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

  .home-search,
  .filter-row {
    flex-direction: column;
  }

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

  .poster-wrap {
    height: 225px;
  }

  .rank-card,
  .related-panel .rank-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .ranking-row {
    grid-template-columns: 1fr;
  }

  .ranking-row > strong {
    text-align: left;
  }

  .ranking-thumb {
    height: 180px;
  }

  .page-shell {
    padding-top: 28px;
  }

  .player-button {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }
}
