:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-50: #fff7ed;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --yellow-50: #fefce8;
  --yellow-400: #facc15;
  --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: 0 18px 45px rgba(180, 83, 9, 0.14);
  --shadow-strong: 0 30px 80px rgba(120, 53, 15, 0.28);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --container: min(1180px, calc(100vw - 32px));
}

* {
  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:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.28), transparent 30vw),
    radial-gradient(circle at 82% 12%, rgba(249, 115, 22, 0.18), transparent 28vw),
    linear-gradient(135deg, var(--amber-50), var(--orange-50) 46%, var(--yellow-50));
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(251, 191, 36, 0.18);
  box-shadow: 0 10px 40px rgba(180, 83, 9, 0.08);
}

.nav-shell {
  width: var(--container);
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  color: var(--white);
  background: linear-gradient(135deg, var(--yellow-400), var(--amber-500), var(--orange-500));
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.32);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-2deg);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600), #ca8a04);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--gray-600);
  font-size: 12px;
  margin-top: 3px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--gray-700);
  font-weight: 700;
  padding: 10px 4px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-600);
}

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  border: 0;
  border-radius: 13px;
  background: var(--amber-100);
  cursor: pointer;
  padding: 11px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--amber-700, #b45309);
}

.mobile-nav {
  display: none;
  width: var(--container);
  margin: 0 auto 14px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.mobile-nav.open {
  display: grid;
  gap: 6px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--gray-700);
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--amber-600);
  background: var(--amber-100);
}

.hero-carousel {
  width: var(--container);
  margin: 34px auto 0;
  min-height: 610px;
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow-strong);
  background: var(--gray-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 42px;
  padding: clamp(28px, 5vw, 76px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.42;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.58)),
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.45), transparent 30%),
    radial-gradient(circle at 86% 70%, rgba(249, 115, 22, 0.4), transparent 34%);
}

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

.hero-content {
  color: var(--white);
  max-width: 720px;
}

.hero-badge,
.kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  padding: 8px 14px;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.24);
}

.hero-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2.1vw, 23px);
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.hero-meta span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 13px;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-button,
.ghost-button,
.text-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.3);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.13);
}

.ghost-button.amber {
  color: var(--amber-700, #b45309);
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(255, 255, 255, 0.7);
}

.hero-poster {
  display: block;
  align-self: center;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.58);
  font-weight: 800;
}

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

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

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

.search-band,
.content-section,
.page-main,
.detail-main {
  width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.search-band {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.search-band h2,
.section-head h2,
.ranking-panel h2,
.page-hero h1,
.detail-article h2,
.side-panel h2 {
  margin: 10px 0 0;
  color: var(--gray-800);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.search-form {
  display: flex;
  min-width: min(480px, 100%);
  padding: 7px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--amber-200);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.08);
}

.search-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--gray-800);
  background: transparent;
}

.search-form input {
  padding: 0 16px;
}

.search-form button {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.content-section {
  margin-top: 54px;
}

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

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-head p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.section-more,
.text-button {
  color: var(--amber-700, #b45309);
  background: var(--white);
  box-shadow: var(--shadow);
}

.movie-grid {
  display: grid;
  gap: 22px;
}

.hot-grid,
.latest-grid,
.category-movie-grid,
.all-grid,
.ranking-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px) scale(1.01);
  box-shadow: 0 30px 70px rgba(217, 119, 6, 0.22);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--amber-200), var(--orange-400));
}

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

.movie-card:hover .poster-wrap img,
.compact-card:hover img,
.category-tile:hover img,
.category-cover:hover img {
  transform: scale(1.08);
}

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

.duration,
.rank-mark,
.compact-rank {
  position: absolute;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.72);
}

.duration {
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
}

.rank-mark {
  left: 10px;
  top: 10px;
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ef4444, var(--orange-500));
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.card-body strong {
  color: var(--gray-900);
  font-size: 16px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body em {
  min-height: 42px;
  color: var(--gray-600);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line {
  color: var(--gray-500);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span,
.tag-box a {
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--amber-700, #b45309);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 800;
}

.category-section {
  padding: 42px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.82), rgba(254, 243, 199, 0.84));
  box-shadow: var(--shadow);
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--gray-900);
  box-shadow: var(--shadow);
}

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

.tile-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
}

.tile-content {
  position: absolute;
  inset: auto 16px 16px;
  color: var(--white);
}

.tile-content strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.tile-content em {
  display: -webkit-box;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

.ranking-panel,
.side-panel,
.detail-card,
.filter-bar,
.category-overview-card {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.ranking-panel {
  position: sticky;
  top: 104px;
  padding: 24px;
}

.compact-list {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

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

.compact-card:hover {
  background: var(--amber-50);
}

.compact-poster {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  aspect-ratio: 16 / 10;
  background: var(--amber-200);
}

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

.compact-rank {
  left: 6px;
  top: 6px;
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

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

.compact-card em {
  display: block;
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.full {
  width: 100%;
}

.site-footer {
  margin-top: 74px;
  color: var(--white);
  background: linear-gradient(90deg, #78350f, #7c2d12, #713f12);
}

.footer-grid {
  width: var(--container);
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 14px;
}

.footer-grid p,
.footer-grid a,
.footer-grid li {
  color: rgba(255, 237, 213, 0.86);
  line-height: 1.75;
}

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

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  width: var(--container);
  margin: 0 auto;
  padding: 18px 0 26px;
  color: rgba(255, 237, 213, 0.74);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.page-main {
  margin-top: 34px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: clamp(34px, 6vw, 72px);
  background:
    radial-gradient(circle at 80% 18%, rgba(252, 211, 77, 0.45), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.86));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 66px);
  max-width: 760px;
}

.page-hero p {
  max-width: 760px;
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.8;
}

.ranking-hero,
.category-hero {
  color: var(--white);
  background:
    radial-gradient(circle at 78% 22%, rgba(251, 191, 36, 0.44), transparent 32%),
    linear-gradient(135deg, #111827, #78350f 54%, #9a3412);
}

.ranking-hero h1,
.ranking-hero p,
.category-hero h1,
.category-hero p {
  color: var(--white);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 12px;
  padding: 14px;
  margin: 26px 0;
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  padding: 0 15px;
  border-radius: 16px;
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
}

.category-overview-grid {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
}

.category-cover {
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 16 / 10;
  background: var(--amber-200);
}

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

.category-overview-card h2 {
  margin: 6px 0 10px;
  font-size: 28px;
}

.category-overview-card p {
  color: var(--gray-600);
  line-height: 1.75;
}

.category-overview-card ul {
  padding-left: 18px;
  color: var(--gray-700);
  line-height: 1.85;
}

.movie-card-wide {
  grid-column: span 2;
}

.movie-card-wide .poster-wrap {
  aspect-ratio: 16 / 10;
}

.detail-main {
  margin-top: 26px;
}

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

.breadcrumb a {
  color: var(--amber-700, #b45309);
  font-weight: 700;
}

.player-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  gap: 26px;
  align-items: center;
  border-radius: 32px;
  padding: clamp(22px, 4vw, 42px);
  color: var(--white);
  background:
    radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.42), transparent 32%),
    linear-gradient(135deg, #111827, #78350f 62%, #9a3412);
  box-shadow: var(--shadow-strong);
}

.player-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.player-copy p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.75;
}

.detail-meta span {
  background: rgba(255, 255, 255, 0.12);
}

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

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  align-content: center;
  border: 0;
  color: var(--white);
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.64));
}

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

.play-circle {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  font-size: 32px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 20px 46px rgba(234, 88, 12, 0.42);
}

.play-cover strong {
  font-size: 18px;
  letter-spacing: 0.04em;
}

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

.detail-article {
  display: grid;
  gap: 24px;
}

.detail-article > section,
.related-text-links,
.tag-box {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.detail-article p {
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.9;
}

.detail-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
}

.detail-cover {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--amber-200);
}

.detail-info dl {
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.detail-info dl div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
}

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

.detail-info dd {
  margin: 0;
  color: var(--gray-800);
}

.tag-box div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.related-text-links ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 14px 0 0;
  padding-left: 20px;
  line-height: 1.65;
}

.related-text-links a {
  color: var(--amber-700, #b45309);
  font-weight: 700;
}

.detail-sidebar {
  position: sticky;
  top: 104px;
}

.side-panel {
  padding: 22px;
}

.filter-card.is-hidden {
  display: none;
}

@media (max-width: 1180px) {
  .hot-grid,
  .latest-grid,
  .category-movie-grid,
  .all-grid,
  .ranking-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .ranking-panel,
  .detail-sidebar {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

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

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

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

  .hero-poster {
    max-width: 260px;
    justify-self: center;
  }

  .search-band,
  .section-head {
    display: grid;
  }

  .search-form {
    min-width: 0;
  }

  .hot-grid,
  .latest-grid,
  .category-movie-grid,
  .all-grid,
  .ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .category-section {
    padding: 24px;
  }

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

  .category-overview-card,
  .detail-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-cover {
    aspect-ratio: 16 / 9;
  }

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

  .video-shell {
    min-height: 220px;
  }

  .detail-info dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .related-text-links ul {
    grid-template-columns: 1fr;
  }

  .movie-card-wide {
    grid-column: span 1;
  }
}

@media (max-width: 520px) {
  :root {
    --container: min(100vw - 20px, 1180px);
  }

  .nav-shell {
    min-height: 66px;
  }

  .brand-icon {
    width: 42px;
    height: 42px;
  }

  .brand-text small {
    display: none;
  }

  .hero-carousel {
    min-height: 720px;
    margin-top: 18px;
  }

  .hero-slide {
    padding: 22px;
  }

  .hero-actions,
  .page-actions {
    display: grid;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .card-body {
    padding: 12px;
  }

  .card-body em {
    display: none;
  }

  .footer-grid,
  .footer-bottom {
    padding-left: 4px;
    padding-right: 4px;
  }
}
