
:root {
  --amber-50: #fff7ed;
  --amber-100: #ffedd5;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --rose-500: #f43f5e;
  --ink-900: #111827;
  --ink-800: #1f2937;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --ink-500: #6b7280;
  --line: rgba(17, 24, 39, 0.08);
  --shadow-soft: 0 18px 55px rgba(146, 64, 14, 0.14);
  --shadow-card: 0 12px 34px rgba(17, 24, 39, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-800);
  background:
    radial-gradient(circle at top left, rgba(252, 211, 77, 0.28), transparent 32rem),
    linear-gradient(180deg, #fff7ed 0%, #fff 42%, #fff7ed 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.is-menu-open {
  overflow: hidden;
}

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

img,
video {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #d97706 0%, #f97316 48%, #facc15 100%);
  box-shadow: 0 12px 30px rgba(180, 83, 9, 0.25);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-text {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.brand-mark,
.footer-brand span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #f97316;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

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

.nav-link {
  position: relative;
  font-weight: 700;
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: -16px;
  width: 220px;
  padding: 10px;
  display: grid;
  gap: 2px;
  color: var(--ink-800);
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.18s ease;
}

.nav-dropdown:hover .dropdown-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-panel a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--ink-700);
}

.dropdown-panel a:hover {
  color: #c2410c;
  background: var(--amber-50);
}

.nav-search {
  width: 280px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.nav-search input,
.mobile-search input,
.large-search input,
.search-controls input,
.search-controls select,
.filter-panel input {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 999px;
  color: var(--ink-800);
  background: #fff;
}

.nav-search input {
  padding: 9px 12px;
}

.nav-search button,
.mobile-search button,
.large-search button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.nav-search button {
  padding: 9px 14px;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: #fff;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel a {
  display: block;
  padding: 11px 0;
  font-weight: 700;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

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

.mobile-search input {
  padding: 12px 14px;
}

.mobile-search button {
  padding: 0 18px;
}

.hero-carousel {
  position: relative;
  min-height: clamp(640px, 80vh, 860px);
  color: #fff;
  overflow: hidden;
  background: linear-gradient(120deg, #d97706, #f97316 46%, #facc15);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(146, 64, 14, 0.58), rgba(250, 204, 21, 0.24)),
    var(--hero-image),
    radial-gradient(circle at top right, rgba(252, 211, 77, 0.85), transparent 30rem);
  background-size: cover;
  background-position: center;
  transition: opacity 0.65s ease, transform 1s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72)),
    radial-gradient(circle at 18% 20%, rgba(251, 191, 36, 0.28), transparent 18rem);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: clamp(640px, 80vh, 860px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: 80px 0 120px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #c2410c;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.detail-content .eyebrow {
  color: #fff7ed;
}

.hero-copy h1 {
  max-width: 860px;
  margin: 0 0 22px;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.75;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 13px 22px;
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.35);
}

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

.ghost-button {
  padding: 12px 21px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.primary-button.full {
  width: 100%;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.35), rgba(249, 115, 22, 0.35));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

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

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

.hero-controls button {
  width: 46px;
  height: 6px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-controls button.is-active {
  background: #fff;
}

.section-narrow,
.section-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -52px;
}

.quick-stats div {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.quick-stats strong {
  display: block;
  color: #ea580c;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1;
}

.quick-stats span {
  display: block;
  margin-top: 8px;
  color: var(--ink-600);
  font-weight: 700;
}

.section-wrap {
  padding: 72px 0 0;
}

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

.section-heading.compact {
  align-items: center;
}

.section-heading h2,
.page-hero h1,
.detail-content h1 {
  margin: 0;
  color: var(--ink-900);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
}

.text-link {
  padding: 10px 14px;
  color: #c2410c;
  background: #fff7ed;
}

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

.category-tile,
.category-overview-card {
  display: block;
  padding: 22px;
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: 22px;
  background: linear-gradient(135deg, #fff, #fff7ed);
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.09);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover,
.small-media-item:hover,
.podium-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.category-tile span,
.category-card-main h2 {
  display: block;
  color: var(--ink-900);
  font-size: 1.15rem;
  font-weight: 900;
}

.category-tile strong {
  display: block;
  margin: 12px 0 8px;
  color: #ea580c;
  font-size: 2rem;
}

.category-tile em,
.category-card-main p {
  display: block;
  color: var(--ink-600);
  font-style: normal;
  line-height: 1.6;
}

.highlight-panel {
  padding: 46px;
  margin-top: 72px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #fff1f2, #ffedd5 48%, #fef3c7);
  box-shadow: var(--shadow-soft);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  color: inherit;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.09);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(217, 119, 6, 0.9), rgba(249, 115, 22, 0.82)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.28), transparent 13rem);
}

.poster-frame img {
  position: relative;
  z-index: 2;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-frame img,
.category-overview-card:hover img,
.small-media-item:hover img {
  transform: scale(1.06);
}

.poster-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  place-items: center;
  padding: 18px;
  text-align: center;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  font-weight: 950;
  line-height: 1.2;
}

.poster-frame.is-missing .poster-fallback,
.hero-poster.is-missing .poster-fallback,
.small-poster.is-missing .poster-fallback {
  display: grid;
}

.poster-badge,
.poster-score,
.podium-rank,
.rank-number {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.poster-badge {
  top: 10px;
  left: 10px;
  padding: 6px 9px;
  background: #f59e0b;
}

.poster-score {
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  background: rgba(17, 24, 39, 0.75);
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  color: var(--ink-900);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.movie-card-body p {
  min-height: 3.3em;
  margin: 0 0 12px;
  color: var(--ink-600);
  font-size: 0.93rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.tag-row span {
  color: #9a3412;
  background: #ffedd5;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  color: var(--ink-500);
  font-size: 0.84rem;
  font-weight: 700;
}

.movie-card.is-compact .movie-card-body p,
.side-grid .movie-card-body p {
  display: none;
}

.two-column-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.soft-card {
  padding: 28px;
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

.blue-card {
  background: linear-gradient(135deg, #dbeafe, #ecfeff);
}

.green-card {
  background: linear-gradient(135deg, #dcfce7, #ecfdf5);
}

.amber-card {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

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

.small-media-item {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.small-media-item .rank-number {
  left: -8px;
  top: -8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #f97316;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.25);
}

.small-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

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

.small-media-item h3 {
  margin: 0 0 5px;
  color: var(--ink-900);
  font-size: 1rem;
  font-weight: 900;
}

.small-media-item p,
.small-media-item span {
  display: block;
  margin: 0;
  color: var(--ink-600);
  font-size: 0.86rem;
}

.large-search,
.search-controls,
.filter-panel {
  display: grid;
  gap: 14px;
}

.large-search {
  grid-template-columns: 1fr auto;
  margin-top: 8px;
}

.large-search input,
.search-controls input,
.search-controls select,
.filter-panel input {
  padding: 15px 18px;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.large-search button {
  padding: 0 24px;
}

.search-hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.search-hot-tags a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #166534;
  background: rgba(255, 255, 255, 0.75);
  font-weight: 800;
}

.site-footer {
  margin-top: 90px;
  color: #fff;
  background: linear-gradient(90deg, #92400e, #c2410c 52%, #b45309);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 50px 0 34px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.page-main {
  width: 100%;
}

.page-hero {
  min-height: 340px;
  padding: 82px max(16px, calc((100vw - 1180px) / 2)) 78px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.22), transparent 18rem),
    linear-gradient(120deg, #d97706, #f97316 52%, #facc15);
}

.page-hero h1 {
  max-width: 820px;
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.page-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.13rem;
  line-height: 1.8;
}

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

.category-overview-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--ink-600);
  line-height: 1.9;
}

.category-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
}

.sticky-card {
  position: sticky;
  top: 92px;
}

.category-sidebar h2,
.detail-side-list h2 {
  margin: 0 0 18px;
  color: var(--ink-900);
  font-size: 1.35rem;
  font-weight: 900;
}

.slim-list .small-media-item {
  grid-template-columns: 64px 1fr;
  padding: 8px;
}

.filter-panel {
  margin-bottom: 24px;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.07);
}

.filter-panel label span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-700);
  font-weight: 900;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  border: 0;
  padding: 9px 13px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.is-active {
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

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

.podium-card {
  position: relative;
  padding: 18px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.podium-rank {
  left: 28px;
  top: 28px;
  padding: 8px 12px;
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.wide-poster {
  aspect-ratio: 16 / 10;
  border-radius: 20px;
}

.podium-card h2 {
  margin: 16px 0 8px;
  color: var(--ink-900);
  font-size: 1.3rem;
  font-weight: 950;
}

.podium-card p {
  color: var(--ink-600);
  line-height: 1.65;
}

.rank-table {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1.4fr) minmax(0, 1.1fr) 90px 120px 80px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

.rank-row .rank-number {
  position: static;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: #f97316;
}

.rank-row strong {
  color: var(--ink-900);
  font-weight: 900;
}

.rank-row em,
.rank-row span {
  overflow: hidden;
  color: var(--ink-600);
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-page-panel {
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.search-controls {
  grid-template-columns: 1fr 180px;
  margin-bottom: 16px;
}

.search-count {
  margin: 0 0 24px;
  color: var(--ink-600);
  font-weight: 800;
}

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

.index-group {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.index-group summary {
  padding: 16px 20px;
  color: var(--ink-900);
  font-weight: 900;
  cursor: pointer;
  background: #fff7ed;
}

.index-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 16px;
  padding: 18px 20px 22px;
}

.index-links a {
  overflow: hidden;
  color: var(--ink-700);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.index-links a:hover {
  color: #ea580c;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-600);
  font-weight: 700;
}

.breadcrumb a {
  color: #c2410c;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.detail-player {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.34);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.24), transparent 18rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.72));
}

.detail-player.is-ready .player-overlay,
.detail-player.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-start {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 15px 24px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #f97316);
  font-size: 1rem;
  font-weight: 950;
  box-shadow: 0 16px 42px rgba(249, 115, 22, 0.35);
  cursor: pointer;
}

.player-start span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #f97316;
  background: #fff;
}

.player-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.detail-aside {
  display: grid;
  gap: 16px;
}

.detail-poster {
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 28px;
}

.detail-content {
  padding: 34px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.detail-content .eyebrow {
  color: #ea580c;
}

.detail-content h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.detail-content .one-line {
  margin: 18px 0 22px;
  color: var(--ink-700);
  font-size: 1.15rem;
  line-height: 1.8;
}

.detail-meta {
  margin: 20px 0;
}

.detail-meta span {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--ink-700);
  background: #f3f4f6;
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 26px;
}

.detail-content h2 {
  margin: 28px 0 12px;
  color: var(--ink-900);
  font-size: 1.35rem;
  font-weight: 950;
}

.detail-content p {
  color: var(--ink-700);
  line-height: 1.95;
}

.side-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.side-grid .movie-card {
  display: grid;
  grid-template-columns: 86px 1fr;
}

.side-grid .poster-frame {
  border-radius: 16px 0 0 16px;
}

.side-grid .movie-card-body {
  padding: 12px;
}

@media (max-width: 1120px) {
  .nav-search {
    width: 220px;
  }

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

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

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

  .mobile-menu-button {
    display: block;
  }

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

  .hero-content,
  .detail-hero,
  .detail-grid,
  .category-layout,
  .two-column-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 60px;
  }

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

  .quick-stats,
  .podium-grid,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-row {
    grid-template-columns: 44px 1fr;
  }

  .rank-row em,
  .rank-row span:not(.rank-number) {
    display: none;
  }

  .detail-side-list .sticky-card,
  .category-sidebar .sticky-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    height: 62px;
  }

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

  .hero-copy h1 {
    font-size: 3.1rem;
  }

  .hero-actions,
  .section-heading,
  .large-search,
  .search-controls {
    flex-direction: column;
    display: flex;
    align-items: stretch;
  }

  .quick-stats,
  .movie-grid,
  .compact-grid,
  .category-grid,
  .overview-grid,
  .podium-grid,
  .index-links {
    grid-template-columns: 1fr;
  }

  .highlight-panel,
  .soft-card,
  .detail-content,
  .search-page-panel {
    padding: 22px;
  }

  .section-wrap {
    padding-top: 52px;
  }

  .side-grid .movie-card {
    grid-template-columns: 74px 1fr;
  }
}
