:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(146, 64, 14, 0.14);
  --brand: #b45309;
  --brand-dark: #7c2d12;
  --brand-light: #f59e0b;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(124, 45, 18, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #ffedd5 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #7c2d12 0%, #c2410c 48%, #92400e 100%);
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.26);
}

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

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  color: #fef3c7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

.brand-text strong {
  font-size: 24px;
  letter-spacing: 0.04em;
}

.brand-text em {
  margin-top: 3px;
  color: #fde68a;
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

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

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #78350f 0%, #c2410c 48%, #92400e 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(251, 191, 36, 0.24), transparent 28%), linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.28));
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.65;
}

.hero-glow-one {
  width: 260px;
  height: 260px;
  left: -80px;
  top: 80px;
  background: rgba(251, 191, 36, 0.28);
}

.hero-glow-two {
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -100px;
  background: rgba(254, 215, 170, 0.22);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  align-items: center;
  gap: 44px;
  min-height: 650px;
  padding: 76px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: #fde68a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.sub-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-lead,
.sub-hero p {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 247, 237, 0.88);
  font-size: 19px;
  line-height: 1.9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  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: #7c2d12;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(255, 255, 255, 0.18);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-pills,
.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-pills span,
.hero-category-links a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-category-links a:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

.hero-slides {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  opacity: 0;
  transform: translateX(22px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
  box-shadow: 0 30px 70px rgba(67, 20, 7, 0.45);
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.86));
}

.hero-slide-overlay {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 1;
}

.hero-slide-overlay span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(217, 119, 6, 0.86);
  font-weight: 700;
  font-size: 13px;
}

.hero-slide-overlay h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.2;
}

.hero-slide-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.hero-slide-overlay a {
  display: inline-flex;
  margin-top: 18px;
  padding: 11px 18px;
  border-radius: 999px;
  color: #78350f;
  background: #ffffff;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 9px;
  right: 28px;
  top: 28px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

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

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

.section-heading p {
  margin: 0 0 8px;
  color: var(--brand);
  font-weight: 800;
}

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.section-more,
.inline-link {
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  font-weight: 800;
}

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

.archive-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-bottom: 56px;
}

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

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(124, 45, 18, 0.2);
}

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

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.82));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card-link:hover .poster-frame::after {
  opacity: 1;
}

.card-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(124, 45, 18, 0.84);
  backdrop-filter: blur(8px);
}

.badge-left {
  left: 12px;
}

.badge-right {
  right: 12px;
}

.card-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.94);
  transform: translate(-50%, -50%) scale(0.76);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-summary {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: #ffffff;
  transform: translateY(12px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.poster-summary p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.movie-card-link:hover .poster-summary {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0 0 10px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card-link:hover .card-body h2 {
  color: var(--brand);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  padding: 62px 0;
}

.ranking-panel,
.category-panel,
.detail-card,
.poster-card,
.related-card,
.filter-panel,
.rank-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.ranking-panel,
.category-panel {
  padding: 26px;
}

.compact-heading {
  margin-bottom: 18px;
}

.ranking-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.ranking-list a:hover {
  background: #fff7ed;
}

.ranking-list span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #c2410c);
  font-weight: 900;
}

.ranking-list strong,
.ranking-list em {
  grid-column: 2;
  min-width: 0;
}

.ranking-list strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-list em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

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

.category-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.12);
}

.category-thumbs,
.category-cover-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.category-thumbs img,
.category-cover-row img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
}

.category-card h2,
.category-overview-card h2 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 20px;
}

.category-card p,
.category-overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.sub-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #7c2d12, #c2410c 55%, #92400e);
  padding: 72px 0;
}

.sub-hero .breadcrumb {
  margin-bottom: 24px;
}

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

.category-overview-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.category-overview-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.category-overview-card li a {
  display: block;
  overflow: hidden;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category-overview-card li a:hover {
  color: var(--brand);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(150px, 0.5fr));
  gap: 14px;
  margin: 34px 0 28px;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(146, 64, 14, 0.18);
  border-radius: 14px;
  padding: 0 14px;
  color: #111827;
  background: #ffffff;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.empty-state {
  margin: 0 0 60px;
  padding: 28px;
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

.rank-table {
  display: grid;
  gap: 0;
  margin: 0 0 60px;
  overflow: hidden;
}

.rank-row a {
  display: grid;
  grid-template-columns: 60px 74px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 98px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.rank-row a:hover {
  background: #fff7ed;
}

.rank-row:last-child a {
  border-bottom: 0;
}

.rank-number {
  color: #c2410c;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rank-info strong {
  overflow: hidden;
  color: #111827;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-meta {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.detail-crumb-wrap {
  color: #ffffff;
  background: #111827;
  padding: 18px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fde68a;
}

.breadcrumb strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 34px 0 66px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  border: 0;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.18), rgba(0, 0, 0, 0.68));
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #c2410c);
  box-shadow: 0 18px 40px rgba(194, 65, 12, 0.42);
  font-size: 28px;
}

.player-cover strong {
  max-width: 82%;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.25;
}

.player-cover em {
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-style: normal;
  font-weight: 800;
}

.detail-card {
  margin-top: 28px;
  padding: 30px;
}

.detail-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-labels a,
.detail-labels span,
.tag-cloud a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.detail-card h1 {
  margin: 0 0 16px;
  color: #111827;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
}

.detail-one-line {
  margin: 0 0 24px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.detail-meta-grid div {
  padding: 16px;
  border-radius: 18px;
  background: #fff7ed;
}

.detail-meta-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.detail-meta-grid strong {
  color: #111827;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.detail-card h2,
.related-card h2,
.poster-card h2 {
  margin: 28px 0 14px;
  color: #111827;
  font-size: 24px;
}

.detail-card p {
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.poster-card,
.related-card {
  padding: 20px;
}

.poster-card img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.poster-card p {
  color: var(--muted);
  line-height: 1.7;
}

.related-card {
  margin-top: 22px;
}

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

.small-movie {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.small-movie:hover {
  background: #fff7ed;
}

.small-movie img {
  width: 70px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
}

.small-movie span {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.small-movie strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.small-movie em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(90deg, #111827, #1f2937);
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
}

.footer-brand span {
  color: #f59e0b;
}

.footer-about p {
  max-width: 620px;
  color: #9ca3af;
  line-height: 1.8;
}

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

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
}

.footer-bottom p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .hero-layout,
  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

  .detail-sidebar {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
  }

  .related-card {
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: rgba(124, 45, 18, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  }

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

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

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

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

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

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

  .brand-text em {
    display: none;
  }

  .hero-layout {
    min-height: auto;
    padding: 50px 0;
  }

  .hero-copy h1,
  .sub-hero h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

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

  .hero-slide {
    border-radius: 24px;
  }

  .movie-grid,
  .archive-grid,
  .category-strip,
  .category-overview-grid,
  .detail-meta-grid,
  .detail-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .rank-row a {
    grid-template-columns: 44px 62px minmax(0, 1fr);
  }

  .rank-meta {
    display: none;
  }

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

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .archive-grid,
  .category-overview-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .card-body {
    padding: 14px;
  }

  .card-body h2 {
    font-size: 15px;
  }

  .card-body p {
    display: none;
  }

  .detail-card {
    padding: 22px;
  }

  .player-icon {
    width: 70px;
    height: 70px;
  }
}
