:root {
  color-scheme: light;
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --surface: #ffffff;
  --surface-strong: #fff8ed;
  --text: #1f2937;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: rgba(245, 158, 11, 0.18);
  --amber: #f59e0b;
  --orange: #f97316;
  --red: #ef4444;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
  --shadow-soft: 0 10px 28px rgba(146, 64, 14, 0.10);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(251, 191, 36, 0.28), transparent 32rem),
    radial-gradient(circle at 80% 12%, rgba(249, 115, 22, 0.18), transparent 30rem),
    linear-gradient(135deg, #fffbeb 0%, #fff7ed 48%, #fffbeb 100%);
  color: var(--text);
  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: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.94));
  border-bottom: 1px solid rgba(245, 158, 11, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 26px rgba(120, 53, 15, 0.08);
}

.nav-shell {
  max-width: var(--container);
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(10deg) scale(1.04);
}

.brand-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #d97706, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #d97706;
}

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

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-input,
.filter-select {
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  outline: none;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-search input {
  width: 100%;
  padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: rgba(245, 158, 11, 0.64);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
}

.header-search button,
.mobile-search button,
.search-page-form button,
.primary-btn,
.secondary-btn,
.filter-reset {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.filter-reset:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.26);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: none;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 10px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  background: #d97706;
  margin: 5px 0;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px 18px;
  gap: 12px;
  flex-direction: column;
}

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

.mobile-search {
  display: flex;
  gap: 8px;
}

.main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 54px 22px 74px;
}

.hero-slider {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 48%, rgba(245, 158, 11, 0.22), transparent 28rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-inner {
  width: min(var(--container), calc(100% - 44px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 680px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero-copy p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-meta span {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.88);
  color: #ffffff;
  font-weight: 800;
}

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

.hero-control {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.48);
  color: #ffffff;
  font-size: 30px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dots button.is-active {
  width: 36px;
  background: #ffffff;
}

.section-stack {
  display: grid;
  gap: 58px;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.20);
}

.section-title h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #1f2937;
  letter-spacing: -0.035em;
}

.section-title h2 {
  font-size: clamp(26px, 4vw, 36px);
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.link-more {
  color: #d97706;
  font-weight: 900;
}

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

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

.horizontal-scroll {
  overflow-x: auto;
  padding: 4px 2px 18px;
  margin: 0 -2px;
}

.horizontal-row {
  display: flex;
  gap: 22px;
  min-width: max-content;
}

.horizontal-row .movie-card {
  width: 300px;
  flex-shrink: 0;
}

.movie-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(146, 64, 14, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(146, 64, 14, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
}

.movie-card-small .poster-wrap {
  aspect-ratio: 3 / 4;
}

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

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

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

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

.type-badge,
.year-badge {
  position: absolute;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  backdrop-filter: blur(10px);
}

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

.year-badge {
  left: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.68);
}

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

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #d97706;
}

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

.movie-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-size: 13px;
}

.movie-meta-row a {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fffbeb;
  color: #b45309;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: var(--shadow-soft);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #60a5fa, #f59e0b);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #a78bfa, #fb7185);
}

.category-card:nth-child(4n) {
  background: linear-gradient(135deg, #14b8a6, #f59e0b);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  position: relative;
  z-index: 2;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.category-card span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -35px;
  width: 130px;
  height: 130px;
  border-radius: 40px;
  transform: rotate(16deg);
  background: rgba(255, 255, 255, 0.18);
}

.panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 38px;
  border-radius: 30px;
  padding: clamp(34px, 6vw, 72px);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.28), transparent 20rem),
    linear-gradient(135deg, #f59e0b, #f97316);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.page-title h1 {
  color: #ffffff;
  font-size: clamp(34px, 6vw, 58px);
}

.page-title p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 800;
}

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

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 24px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(245, 158, 11, 0.12);
}

.filter-input,
.filter-select {
  padding: 12px 15px;
  min-width: 190px;
}

.filter-reset {
  padding: 12px 18px;
}

.empty-state {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border-radius: 18px;
}

.empty-state.is-visible {
  display: block;
}

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

.compact-item {
  display: grid;
  grid-template-columns: 42px 96px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(245, 158, 11, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.compact-rank {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.compact-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
}

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

.compact-main strong {
  display: block;
  margin-bottom: 5px;
  color: #1f2937;
}

.compact-main em {
  display: -webkit-box;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-info {
  color: var(--faint);
  font-size: 13px;
  white-space: nowrap;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 62px 140px 1fr 86px;
  align-items: center;
  gap: 18px;
  background: #ffffff;
  padding: 16px;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(245, 158, 11, 0.12);
}

.ranking-num {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.ranking-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
}

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

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

.ranking-main h2 a:hover {
  color: #d97706;
}

.ranking-main p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.ranking-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ranking-tags span,
.tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fffbeb;
  color: #b45309;
  font-weight: 800;
  font-size: 12px;
}

.ranking-score {
  text-align: center;
  color: #d97706;
}

.ranking-score strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.ranking-score span {
  font-size: 12px;
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: stretch;
  margin-bottom: 36px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
}

.detail-info {
  border-radius: 30px;
  padding: clamp(28px, 5vw, 52px);
  background:
    radial-gradient(circle at 90% 20%, rgba(245, 158, 11, 0.18), transparent 18rem),
    #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(245, 158, 11, 0.12);
}

.detail-title h1 {
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
}

.detail-lead {
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

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

.detail-meta div {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fffbeb;
}

.detail-meta dt {
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 5px;
}

.detail-meta dd {
  margin: 0;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 28px;
}

.watch-section {
  margin-bottom: 36px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at 50% 45%, rgba(245, 158, 11, 0.24), transparent 22rem);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 24px 48px rgba(249, 115, 22, 0.34);
  font-size: 34px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.05);
}

.player-status {
  position: absolute;
  left: 22px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.content-panel {
  display: grid;
  gap: 26px;
  margin-bottom: 36px;
}

.article-block {
  background: #ffffff;
  border-radius: 24px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(245, 158, 11, 0.12);
}

.article-block h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.article-block p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
  font-size: 16px;
}

.search-page-form {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  max-width: 720px;
}

.search-page-form input {
  flex: 1;
  padding: 14px 18px;
}

.search-results {
  display: grid;
  gap: 18px;
}

.site-footer {
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(245, 158, 11, 0.14);
  padding: 46px 22px 26px;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-brand p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 420px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #1f2937;
}

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

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

.site-footer li,
.footer-bottom {
  color: var(--muted);
}

.footer-bottom {
  max-width: var(--container);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 158, 11, 0.14);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-control {
    display: none;
  }

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

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

  .detail-poster img {
    max-height: 520px;
  }

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

  .ranking-score {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
  }

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

@media (max-width: 640px) {
  .nav-shell {
    height: 64px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-slider {
    min-height: 74vh;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-meta span {
    padding: 7px 11px;
  }

  .main {
    padding: 34px 16px 56px;
  }

  .section-head {
    display: grid;
  }

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

  .horizontal-row .movie-card {
    width: 260px;
  }

  .compact-item {
    grid-template-columns: 34px 82px 1fr;
  }

  .compact-info {
    grid-column: 2 / -1;
  }

  .ranking-row {
    grid-template-columns: 44px 88px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .ranking-main h2 {
    font-size: 18px;
  }

  .ranking-main p {
    display: none;
  }

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

  .player-shell {
    border-radius: 18px;
  }

  .play-button {
    width: 74px;
    height: 74px;
  }

  .search-page-form,
  .mobile-search {
    display: grid;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.detail-breadcrumb a {
  color: #b45309;
}

.detail-breadcrumb a:hover {
  color: #d97706;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
