:root {
  --bg: #fff7ed;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.18);
  --orange: #f97316;
  --orange-dark: #ea580c;
  --rose: #f43f5e;
  --red: #ef4444;
  --blue: #0284c7;
  --shadow: 0 22px 60px rgba(124, 45, 18, 0.12);
  --shadow-hover: 0 28px 72px rgba(124, 45, 18, 0.2);
  --radius: 24px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(251, 146, 60, 0.18), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(244, 63, 94, 0.13), transparent 28%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 44%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(251, 146, 60, 0.16);
  box-shadow: 0 10px 34px rgba(124, 45, 18, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #fb923c, #fb7185);
  box-shadow: 0 16px 34px rgba(244, 63, 94, 0.24);
  transition: transform 0.28s ease;
}

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

.brand-mark span {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #ffffff;
  margin-left: 3px;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 900;
  background: linear-gradient(90deg, var(--orange-dark), var(--rose));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 13px;
  color: #374151;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--orange-dark);
  background: #ffedd5;
  transform: translateY(-1px);
}

.top-search,
.mobile-search,
.inline-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.inline-search input {
  width: 210px;
  border: 1px solid rgba(251, 146, 60, 0.26);
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.inline-search input:focus {
  border-color: rgba(249, 115, 22, 0.72);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.top-search button,
.mobile-search button,
.inline-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.2);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  cursor: pointer;
  place-items: center;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: #9a3412;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-button.is-open span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

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

.mobile-menu nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mobile-link {
  padding: 11px 12px;
  border-radius: 14px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
  text-align: center;
}

.mobile-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

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

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 28%, rgba(251, 146, 60, 0.28), transparent 30%),
    linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.72));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 64px;
  padding: 86px 0 96px;
}

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

.hero-eyebrow,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff7ed;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 20px 0 10px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 0 0 18px;
  color: #fed7aa;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 900;
}

.hero-copy p {
  max-width: 700px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
  background: #ffedd5;
}

.hero-copy .hero-tags span,
.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.primary-action {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 18px 40px rgba(244, 63, 94, 0.28);
}

.primary-action:hover,
.section-more:hover,
.ghost-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.ghost-action {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.34), rgba(244, 63, 94, 0.34));
  box-shadow: 0 36px 86px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  width: min(1240px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

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

.hero-dot {
  width: 34px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

.hero-dot.is-active {
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.main-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.narrow-wrap {
  width: min(980px, calc(100% - 32px));
}

.content-section {
  margin-bottom: 58px;
}

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

.section-head > div {
  min-width: 0;
}

.section-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.18);
}

.section-head h2,
.text-panel h2,
.player-section h2,
.search-heading {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-head p,
.text-panel p,
.compact-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.section-more {
  color: var(--orange-dark);
  background: #ffedd5;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel-solid);
  border: 1px solid rgba(251, 146, 60, 0.13);
  box-shadow: 0 12px 32px rgba(124, 45, 18, 0.08);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(249, 115, 22, 0.28);
  box-shadow: var(--shadow-hover);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(244, 63, 94, 0.18));
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72));
}

.play-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.year-badge {
  right: 10px;
}

.rank-badge {
  left: 10px;
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

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

.movie-card-body strong {
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-body em {
  min-height: 40px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
}

.tag-row {
  gap: 5px;
}

.tag-row span {
  padding: 4px 7px;
  font-size: 11px;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 26px;
  padding: 26px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 14%, rgba(255, 255, 255, 0.24), transparent 32%),
    linear-gradient(135deg, #f97316, #f43f5e);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(2) {
  background:
    radial-gradient(circle at 80% 14%, rgba(255, 255, 255, 0.24), transparent 32%),
    linear-gradient(135deg, #ef4444, #f59e0b);
}

.category-card:nth-child(3) {
  background:
    radial-gradient(circle at 80% 14%, rgba(255, 255, 255, 0.24), transparent 32%),
    linear-gradient(135deg, #0284c7, #f97316);
}

.category-card:nth-child(4) {
  background:
    radial-gradient(circle at 80% 14%, rgba(255, 255, 255, 0.24), transparent 32%),
    linear-gradient(135deg, #7c3aed, #f43f5e);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.category-card span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.18);
}

.category-card strong {
  display: block;
  margin: 18px 0 10px;
  font-size: 24px;
  font-weight: 950;
}

.category-card em {
  color: rgba(255, 255, 255, 0.84);
  font-style: normal;
  line-height: 1.65;
}

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

.ranking-page-list {
  list-style: none;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  background: var(--panel-solid);
  border: 1px solid rgba(251, 146, 60, 0.13);
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.horizontal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.horizontal-poster {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.2), rgba(244, 63, 94, 0.18));
}

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

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

.horizontal-rank {
  width: max-content;
  padding: 3px 8px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.horizontal-info strong {
  font-size: 18px;
  font-weight: 900;
}

.horizontal-info em,
.horizontal-info span {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.catalog-callout,
.toolbar-card,
.text-panel,
.player-section {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(251, 146, 60, 0.15);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.catalog-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
}

.catalog-callout h2 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 950;
}

.catalog-callout p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  position: relative;
  overflow: hidden;
  width: min(1240px, calc(100% - 32px));
  margin: 38px auto 0;
  padding: clamp(42px, 7vw, 86px);
  border-radius: 36px;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #fb923c, #f43f5e 62%, #9f1239);
  box-shadow: var(--shadow-hover);
}

.page-hero-glow {
  position: absolute;
  inset: auto -10% -42% 52%;
  height: 260px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(8px);
  transform: rotate(-12deg);
}

.page-hero h1 {
  position: relative;
  margin: 18px 0 12px;
  max-width: 820px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  position: relative;
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  line-height: 1.8;
}

.toolbar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
}

.inline-search {
  width: min(520px, 100%);
}

.inline-search input {
  flex: 1;
  width: auto;
}

.sort-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sort-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #9a3412;
  font-weight: 800;
  background: #ffedd5;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #9a3412;
  font-weight: 900;
  background: #ffffff;
  border: 1px solid rgba(251, 146, 60, 0.15);
}

.pagination a.is-current {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.search-heading {
  margin-bottom: 22px;
}

.empty-state {
  display: none;
  margin-top: 22px;
  padding: 28px;
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(251, 146, 60, 0.13);
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  color: #ffffff;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(251, 146, 60, 0.26), transparent 26%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.82));
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 610px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
  padding: 70px 0 84px;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.32), rgba(244, 63, 94, 0.28));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.36);
}

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

.detail-copy {
  max-width: 820px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.14);
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 70px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 760px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-copy .primary-action {
  margin-top: 24px;
}

.detail-wrap {
  display: grid;
  gap: 30px;
}

.player-section {
  padding: 24px;
}

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

.movie-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
}

.movie-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  color: #ffffff;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.84));
}

.movie-player.is-playing .player-overlay {
  display: none;
}

.large-play {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.player-overlay strong {
  font-size: 19px;
  font-weight: 950;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.text-panel {
  padding: 30px;
}

.text-panel p {
  color: #374151;
  font-size: 17px;
}

.related-section {
  margin-bottom: 0;
}

.site-footer {
  margin-top: 32px;
  color: #e5e7eb;
  background: #111827;
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  max-width: 520px;
  margin: 16px 0 0;
  color: #9ca3af;
  line-height: 1.75;
}

.brand.is-footer .brand-text strong {
  color: #ffffff;
  background: none;
  -webkit-background-clip: initial;
}

.brand.is-footer .brand-text em {
  color: #9ca3af;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 12px;
}

.footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(251, 146, 60, 0.24);
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  color: #9ca3af;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 1180px) {
  .movie-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .top-search input {
    width: 170px;
  }
}

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

  .menu-button {
    display: grid;
    margin-left: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-poster {
    width: min(340px, 80vw);
    justify-self: center;
    transform: none;
  }

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

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

  .detail-inner {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 66px;
  }

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

  .brand-text em {
    display: none;
  }

  .hero-carousel,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 58px 0 104px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-poster {
    display: none;
  }

  .hero-controls {
    bottom: 22px;
  }

  .main-wrap {
    padding: 38px 0;
  }

  .section-head,
  .catalog-callout,
  .toolbar-card,
  .footer-inner {
    display: grid;
  }

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

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

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

  .detail-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 44px;
  }

  .detail-poster {
    width: min(240px, 68vw);
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .main-wrap,
  .footer-inner,
  .footer-bottom,
  .hero-inner,
  .hero-controls,
  .detail-inner,
  .page-hero,
  .mobile-menu {
    width: min(100% - 22px, 1240px);
  }

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

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

  .hero-copy h2 {
    font-size: 25px;
  }

  .movie-grid {
    gap: 12px;
  }

  .movie-card-body strong {
    font-size: 14px;
  }

  .movie-card-body em,
  .tag-row {
    display: none;
  }

  .horizontal-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .page-hero {
    padding: 34px 22px;
    border-radius: 26px;
  }

  .player-section,
  .text-panel {
    padding: 18px;
    border-radius: 22px;
  }

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