:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --brown-900: #451a03;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 12px 35px rgba(120, 53, 15, 0.12);
  --shadow-strong: 0 22px 55px rgba(120, 53, 15, 0.22);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--gray-900);
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 50%, #fef3c7 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.07);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100% - 32px, var(--container));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand:hover .brand-mark {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 35px rgba(245, 158, 11, 0.45);
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #92400e, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  margin-top: 4px;
  font-size: 12px;
  color: var(--amber-700);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  overflow: hidden;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 11px;
  border-radius: 12px;
  color: #78350f;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #451a03;
  background: rgba(254, 243, 199, 0.95);
  transform: translateY(-1px);
}

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

.header-search input {
  width: 210px;
  height: 40px;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--gray-700);
  background: #fff;
  outline: none;
  transition: box-shadow 0.2s ease, border 0.2s ease;
}

.header-search input:focus,
.big-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search button,
.big-search button,
.primary-button,
.mini-play {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.26);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  height: 40px;
  padding: 0 16px;
}

.header-search button:hover,
.big-search button:hover,
.primary-button:hover,
.mini-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.34);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--amber-100);
  color: var(--amber-700);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--container));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-nav.is-open {
  display: grid;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--amber-700);
  background: #fff;
  font-weight: 650;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
  background: #451a03;
}

.hero-slider {
  min-height: 640px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 100px max(24px, calc((100vw - var(--container)) / 2)) 95px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-content {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 20px 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #ffedd5;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-tags span {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 800;
}

.ghost-button {
  border-radius: 999px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.text-button {
  color: #fde68a;
}

.hero-poster {
  position: relative;
  display: block;
  width: min(360px, 30vw);
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, #f59e0b, #7c2d12);
  box-shadow: var(--shadow-strong);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  border-radius: inherit;
}

.hero-poster img,
.poster-wrap img,
.horizontal-poster img,
.ranking-cover img,
.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  border: 0 !important;
  padding: 0;
  opacity: 0.5;
}

.hero-dot.is-active {
  opacity: 1;
  background: var(--amber-300);
}

.hero-quick-links {
  position: absolute;
  right: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 28px;
  z-index: 8;
  display: flex;
  gap: 10px;
}

.hero-quick-links a {
  padding: 11px 14px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.home-band {
  padding: 54px 0;
  color: #fff;
  background: linear-gradient(135deg, #b45309, #ea580c 48%, #f59e0b);
}

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

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

.section-heading > span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--gray-500);
}

.home-band .section-heading p,
.home-band .section-heading h2 {
  color: #fff7ed;
}

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

.category-tile,
.category-overview-main {
  position: relative;
  min-height: 164px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: #fff;
  box-shadow: 0 16px 38px rgba(69, 26, 3, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-overview-main:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 24px 55px rgba(69, 26, 3, 0.28);
}

.category-tile span,
.category-overview-main span {
  font-size: 36px;
  margin-bottom: 14px;
}

.category-tile strong,
.category-overview-main h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.category-tile em,
.category-overview-main p {
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.cat-amber { background: linear-gradient(135deg, #f59e0b, #b45309); }
.cat-orange { background: linear-gradient(135deg, #fb923c, #c2410c); }
.cat-rose { background: linear-gradient(135deg, #fb7185, #be123c); }
.cat-yellow { background: linear-gradient(135deg, #facc15, #ca8a04); }
.cat-pink { background: linear-gradient(135deg, #f472b6, #be185d); }
.cat-red { background: linear-gradient(135deg, #ef4444, #991b1b); }
.cat-blue { background: linear-gradient(135deg, #38bdf8, #1d4ed8); }
.cat-green { background: linear-gradient(135deg, #34d399, #047857); }
.cat-teal { background: linear-gradient(135deg, #2dd4bf, #0f766e); }
.cat-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }

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

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

.movie-card {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #b45309);
}

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

.poster-wrap img {
  transition: transform 0.45s ease;
}

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

.image-missing {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-missing::after {
  content: "▶";
  color: rgba(255, 255, 255, 0.72);
  font-size: 42px;
  text-shadow: 0 6px 20px rgba(69, 26, 3, 0.35);
}

.duration-badge,
.type-badge {
  position: absolute;
  z-index: 2;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.duration-badge {
  right: 10px;
  bottom: 10px;
}

.type-badge {
  left: 10px;
  top: 10px;
  background: rgba(245, 158, 11, 0.88);
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.movie-card-body strong {
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body em,
.horizontal-body em {
  color: var(--gray-500);
  font-size: 14px;
  font-style: normal;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line {
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.5;
}

.tag-row span {
  min-height: 24px;
  padding: 0 9px;
  color: var(--amber-700);
  background: var(--amber-100);
  border: 0;
  font-size: 12px;
}

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

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.ranking-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ranking-panel-head h2 {
  margin: 0;
  font-size: 24px;
}

.ranking-panel-head a {
  color: var(--amber-700);
  font-weight: 750;
}

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

.ranking-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.rank-number {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-weight: 850;
}

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

.horizontal-card:hover {
  background: var(--amber-100);
  transform: translateX(4px);
}

.horizontal-poster {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #fde68a, #b45309);
}

.horizontal-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

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

.horizontal-body span {
  color: var(--gray-500);
  font-size: 12px;
}

.site-footer {
  margin-top: 48px;
  color: #fef3c7;
  background: linear-gradient(135deg, #451a03, #78350f);
}

.footer-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 46px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand p {
  max-width: 560px;
  color: #fcd34d;
  line-height: 1.7;
}

.footer-logo .brand-copy strong {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

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

.footer-links a {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  padding: 76px 0 74px;
  color: #fff;
  background: linear-gradient(135deg, #78350f, #ea580c);
}

.compact-hero {
  background: radial-gradient(circle at top left, rgba(253, 230, 138, 0.34), transparent 32%), linear-gradient(135deg, #451a03, #b45309 62%, #f59e0b);
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #ffedd5;
  font-size: 19px;
  line-height: 1.75;
}

.category-siblings {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.category-siblings a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.category-overview-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.category-overview-main {
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: none;
}

.category-preview {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.category-preview span {
  display: block;
  overflow: hidden;
  color: var(--gray-700);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
}

.filter-bar input,
.filter-bar select,
.big-search input {
  height: 48px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 14px;
  padding: 0 16px;
  background: #fff;
  color: var(--gray-700);
  outline: none;
}

.filter-bar input {
  flex: 1;
}

.empty-state {
  padding: 28px;
  border-radius: var(--radius-xl);
  color: var(--gray-700);
  background: #fff;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.big-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
  max-width: 720px;
  margin-top: 28px;
}

.big-search input {
  height: 56px;
  border-radius: 999px;
}

.big-search button {
  min-height: 56px;
}

.search-section .movie-grid:empty {
  min-height: 120px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 64px 140px minmax(0, 1fr) 96px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.ranking-index {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-size: 20px;
  font-weight: 900;
}

.ranking-cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #fde68a, #b45309);
}

.ranking-detail h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-detail p {
  margin: 0 0 8px;
  color: var(--gray-700);
  line-height: 1.6;
}

.mini-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.detail-main {
  background: linear-gradient(180deg, #451a03 0, #451a03 430px, #fffbeb 430px, #fff7ed 100%);
}

.detail-hero {
  min-height: 540px;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.detail-hero-inner {
  padding: 40px 0 62px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #fde68a;
  font-size: 14px;
}

.breadcrumb strong {
  color: #fff7ed;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-top: 36px;
}

.detail-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #fde68a, #b45309);
  box-shadow: var(--shadow-strong);
}

.detail-info h1 {
  max-width: 820px;
}

.lead-text {
  max-width: 780px;
  color: #ffedd5;
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-meta span {
  min-height: 34px;
  padding: 0 12px;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow-strong);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  text-align: center;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.22), rgba(0, 0, 0, 0.56));
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-start {
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.38);
  cursor: pointer;
  pointer-events: auto;
}

.player-overlay strong {
  font-size: 22px;
}

.player-overlay span {
  color: #fde68a;
}

.player-card.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
}

.player-error {
  margin: 0;
  padding: 14px 18px;
  color: #fde68a;
  background: #451a03;
}

.text-card,
.detail-side {
  margin-top: 22px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.text-card h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 25px;
}

.text-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.9;
}

.detail-side {
  position: sticky;
  top: 96px;
  margin-top: 0;
}

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

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

  .header-search {
    margin-left: auto;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

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

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

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

  .hero,
  .hero-slider {
    min-height: 680px;
  }

  .hero-slide {
    min-height: 680px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding: 88px 20px 106px;
  }

  .hero-poster {
    width: 210px;
    margin: 0 auto;
  }

  .hero-quick-links {
    left: 20px;
    right: 20px;
    justify-content: center;
  }

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

  .footer-inner {
    display: grid;
  }

  .ranking-row {
    grid-template-columns: 48px 96px minmax(0, 1fr);
  }

  .ranking-row .mini-play {
    grid-column: 2 / -1;
  }

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

  .detail-cover {
    width: min(260px, 70vw);
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner,
  .footer-inner,
  .mobile-nav {
    width: min(100% - 24px, var(--container));
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .hero h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 36px;
  }

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

  .filter-bar,
  .big-search {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .ranking-cover {
    display: none;
  }

  .ranking-row .mini-play {
    grid-column: 1 / -1;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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