:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 8px 22px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 24px 70px rgba(17, 24, 39, 0.18);
  --radius-xl: 22px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(180deg, #fffaf0 0%, #ffffff 32%, #f8fafc 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500), var(--amber-500));
  box-shadow: 0 14px 38px rgba(146, 64, 14, 0.22);
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(120, 53, 15, 0.22);
}

.brand-text {
  font-size: 1.18rem;
}

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

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

.nav-link:hover,
.nav-link.is-active {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input {
  width: 220px;
  border: none;
  outline: none;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gray-800);
}

.header-search button,
.primary-button,
.secondary-button,
.ghost-link {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--gray-900), #78350f);
  box-shadow: 0 12px 26px rgba(120, 53, 15, 0.25);
}

.secondary-button,
.ghost-link {
  color: #8a3f0a;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.header-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(120, 53, 15, 0.22);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: none;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px;
  border-radius: 999px;
  background: var(--white);
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding: 10px 22px 18px;
}

.mobile-panel a {
  display: block;
  color: var(--white);
  font-weight: 700;
  padding: 10px 0;
}

.mobile-panel.is-open {
  display: block;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 18% 25%, rgba(251, 191, 36, 0.38), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(249, 115, 22, 0.32), transparent 32%),
    linear-gradient(135deg, #fffbeb 0%, #fff7ed 48%, #fef3c7 100%);
}

.hero-bg-glow {
  position: absolute;
  inset: 10% -20% auto auto;
  width: 520px;
  height: 520px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(249, 115, 22, 0.2));
  filter: blur(16px);
  border-radius: 999px;
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: stretch;
  padding: 54px 0;
}

.hero-carousel {
  position: relative;
  min-height: 545px;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(120, 53, 15, 0.88));
  box-shadow: var(--shadow-lg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 380px;
  align-items: center;
  gap: 30px;
  padding: 56px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
  color: var(--white);
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: #92400e;
  background: rgba(254, 243, 199, 0.92);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-copy .eyebrow,
.detail-hero .eyebrow {
  color: #fef3c7;
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.35);
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero-copy p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
  line-height: 1.9;
}

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

.hero-poster {
  position: relative;
  z-index: 2;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  min-height: 430px;
  box-shadow: 0 26px 66px rgba(0, 0, 0, 0.32);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 42px;
  bottom: 32px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
}

.hero-dots {
  position: absolute;
  right: 42px;
  bottom: 43px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

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

.hero-side-panel {
  border-radius: 32px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(251, 191, 36, 0.26);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.hero-side-panel h2 {
  margin: 0 0 20px;
  font-size: 1.4rem;
}

.hero-side-panel a {
  display: block;
  padding: 16px 18px;
  margin-bottom: 14px;
  border-radius: 18px;
  color: #7c2d12;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(254, 243, 199, 0.78));
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.section-block {
  padding: 68px 0;
}

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

.section-heading span {
  display: block;
  color: var(--orange-600);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
}

.section-heading h2,
.section-heading h1 {
  margin: 4px 0 0;
  color: var(--gray-900);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

.section-heading a {
  color: #92400e;
  font-weight: 900;
}

.light-heading h2,
.light-heading span,
.light-heading a {
  color: var(--white);
}

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

.category-tile {
  position: relative;
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px;
  border-radius: 26px;
  overflow: hidden;
  color: var(--gray-900);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(254, 243, 199, 0.86));
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: auto -35px -60px auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.18);
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.category-tile span {
  color: var(--orange-600);
  font-weight: 900;
}

.category-tile strong {
  position: relative;
  font-size: 1.18rem;
  line-height: 1.3;
}

.category-tile em {
  position: relative;
  color: var(--gray-600);
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.65;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: var(--shadow-sm);
}

.filter-input,
.filter-select {
  min-height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--white);
  color: var(--gray-800);
  outline: none;
}

.filter-input {
  flex: 1 1 280px;
}

.filter-input:focus,
.filter-select:focus {
  border-color: var(--amber-400);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.22);
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(229, 231, 235, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc, #fef3c7);
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(17, 24, 39, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 0.86rem;
}

.movie-meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.movie-card h2,
.rank-info h2 {
  margin: 10px 0 8px;
  color: var(--gray-900);
  font-size: 1.12rem;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-info h2 a:hover {
  color: var(--orange-600);
}

.movie-card p,
.rank-info p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #92400e;
  background: var(--amber-100);
  font-size: 0.78rem;
  font-weight: 800;
}

.ranking-band {
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(120, 53, 15, 0.88)),
    radial-gradient(circle at 20% 0%, rgba(251, 191, 36, 0.24), transparent 35%);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 64px 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 15px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.home-ranking .ranking-item {
  background: rgba(255, 255, 255, 0.92);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-600));
  font-weight: 900;
  font-size: 1.1rem;
}

.rank-cover {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--amber-100);
}

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

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

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

.compact-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(229, 231, 235, 0.85);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.compact-card img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--amber-100);
}

.compact-card span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.compact-card strong {
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-card em {
  color: var(--gray-500);
  font-style: normal;
  font-size: 0.86rem;
}

.page-main {
  background:
    radial-gradient(circle at 12% 0%, rgba(251, 191, 36, 0.24), transparent 26%),
    linear-gradient(180deg, #fffaf0, #ffffff 34%, #f8fafc 100%);
}

.page-hero {
  padding: 76px 0 24px;
}

.compact-page-hero {
  max-width: 900px;
  text-align: left;
}

.page-hero h1 {
  margin: 20px 0 16px;
  color: var(--gray-900);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.page-hero p {
  max-width: 820px;
  color: var(--gray-600);
  font-size: 1.08rem;
  line-height: 1.9;
}

.page-actions {
  margin-top: 22px;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 36px 0 80px;
}

.category-overview-card {
  border-radius: 30px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: var(--shadow-sm);
}

.category-overview-head h2 {
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 1.7rem;
}

.category-overview-head p {
  margin: 0 0 18px;
  color: var(--gray-600);
  line-height: 1.8;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--gray-900);
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.detail-hero-inner {
  position: relative;
  padding: 40px 0 72px;
}

.breadcrumb,
.breadcrumb-separator {
  display: inline-block;
  color: rgba(255, 255, 255, 0.76);
  margin-right: 8px;
  font-weight: 700;
}

.breadcrumb:hover {
  color: var(--amber-300);
}

.detail-title-row {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 32px;
  align-items: end;
  margin-top: 34px;
}

.detail-cover {
  width: 255px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  background: var(--amber-100);
}

.detail-title-row h1 {
  margin: 20px 0 18px;
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.detail-title-row p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  line-height: 1.9;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.74);
}

.detail-tags span {
  background: rgba(254, 243, 199, 0.16);
  border: 1px solid rgba(254, 243, 199, 0.26);
  color: var(--amber-100);
}

.player-section {
  margin-top: -44px;
  position: relative;
  z-index: 3;
}

.player-card {
  overflow: hidden;
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.video-wrap {
  position: relative;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: none;
  background: radial-gradient(circle at center, rgba(17, 24, 39, 0.2), rgba(0, 0, 0, 0.55));
  cursor: pointer;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-600));
  box-shadow: 0 20px 60px rgba(249, 115, 22, 0.38);
  font-size: 2rem;
  padding-left: 6px;
  transition: transform 0.2s ease;
}

.play-overlay:hover span {
  transform: scale(1.08);
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-info {
  padding: 22px 28px;
}

.player-info h2 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 1.55rem;
}

.player-info p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.8;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 42px 0 12px;
}

.detail-article,
.detail-sidebar {
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.detail-article {
  padding: 32px;
}

.detail-article h2,
.detail-sidebar h2 {
  margin: 0 0 16px;
  color: var(--gray-900);
  font-size: 1.55rem;
}

.detail-article p {
  margin: 0 0 26px;
  color: var(--gray-700);
  font-size: 1.02rem;
  line-height: 2;
}

.detail-sidebar {
  align-self: start;
  padding: 26px;
}

.detail-sidebar dl,
.detail-sidebar dd {
  margin: 0;
}

.detail-sidebar div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--gray-100);
}

.detail-sidebar dt {
  color: var(--gray-500);
  font-weight: 700;
}

.detail-sidebar dd {
  color: var(--gray-800);
  line-height: 1.7;
}

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

.related-card .poster-frame {
  aspect-ratio: 16 / 10;
}

.site-footer {
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, var(--gray-900), #1f2937 48%, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
  padding: 56px 0 38px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.footer-logo span {
  font-size: 1.8rem;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1.1rem;
}

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 9px 0;
}

.site-footer a:hover {
  color: var(--amber-300);
}

.footer-bottom {
  padding: 18px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.58);
}

[data-movie-card].is-hidden {
  display: none;
}

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

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

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

  .hero-side-panel h2 {
    grid-column: 1 / -1;
  }

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

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

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

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

  .mobile-toggle {
    display: block;
  }

  .hero-section {
    min-height: auto;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 34px;
    align-content: center;
  }

  .hero-poster {
    min-height: 310px;
    transform: none;
  }

  .hero-controls {
    left: 28px;
    bottom: 24px;
  }

  .hero-dots {
    right: 28px;
    bottom: 38px;
  }

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

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

  .detail-title-row,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    width: min(240px, 100%);
  }

  .ranking-item {
    grid-template-columns: 46px 76px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-cover {
    width: 76px;
    height: 76px;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 22px, 1200px);
  }

  .brand-text {
    font-size: 1rem;
  }

  .hero-carousel {
    border-radius: 24px;
    min-height: 720px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-title-row h1 {
    letter-spacing: -0.045em;
  }

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

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

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

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

  .rank-cover {
    display: none;
  }

  .play-overlay span {
    width: 70px;
    height: 70px;
    font-size: 1.6rem;
  }
}
