:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --yellow-500: #eab308;
  --red-500: #ef4444;
  --green-500: #22c55e;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 10px 25px rgba(120, 53, 15, 0.08);
  --shadow-md: 0 16px 40px rgba(120, 53, 15, 0.13);
  --shadow-lg: 0 24px 70px rgba(120, 53, 15, 0.22);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--amber-50), #fff7ed 42%, #fefce8);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.site-nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo-mark,
.footer-mark {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600), var(--orange-600));
  box-shadow: 0 14px 28px rgba(217, 119, 6, 0.28);
  transition: transform 0.25s ease;
}

.site-logo:hover .logo-mark {
  transform: scale(1.08) rotate(-3deg);
}

.logo-copy {
  display: grid;
  line-height: 1.15;
}

.logo-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600), var(--yellow-500));
  -webkit-background-clip: text;
  color: transparent;
}

.logo-subtitle {
  color: var(--gray-600);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-700, #b45309);
  background: rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
}

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--gray-700);
  font-weight: 700;
}

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

.hero-carousel {
  position: relative;
  min-height: 640px;
  height: 72vh;
  overflow: hidden;
  background: var(--gray-900);
}

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

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

.hero-image,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade,
.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.08));
}

.hero-shade::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 36%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.7), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  color: var(--white);
  padding-top: 24px;
}

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

.hero-copy h1,
.hero-copy h2 {
  margin: 18px 0 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 950;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.hero-movie-title {
  font-size: clamp(30px, 4vw, 52px) !important;
  letter-spacing: -0.03em !important;
  margin-top: 12px !important;
  color: var(--amber-100);
}

.hero-copy p {
  width: min(620px, 100%);
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

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

.hero-actions,
.detail-copy .primary-button {
  margin-top: 30px;
}

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

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.35);
}

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

.ghost-button {
  margin-left: 12px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.ghost-button.light {
  color: var(--amber-700, #b45309);
  background: var(--white);
  border-color: rgba(245, 158, 11, 0.28);
  box-shadow: var(--shadow-sm);
}

.text-button {
  min-height: 42px;
  color: var(--amber-700, #b45309);
  background: var(--amber-100);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section-block {
  padding: 76px 0;
}

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

.section-heading.compact {
  display: block;
  margin-bottom: 22px;
}

.section-heading h2,
.page-hero h1,
.category-hero h1,
.detail-copy h1 {
  margin: 10px 0 0;
  color: var(--gray-800);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

.section-kicker {
  background: var(--white);
  color: var(--amber-600);
  box-shadow: var(--shadow-sm);
}

.search-band {
  position: relative;
  z-index: 4;
  margin-top: -54px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.search-panel h2 {
  margin: 10px 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.search-panel p {
  margin: 0;
  color: var(--gray-600);
}

.home-search-box {
  position: relative;
}

.home-search-box input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 16px;
  padding: 0 16px;
  outline: 0;
  background: var(--white);
  color: var(--gray-800);
  box-shadow: 0 8px 18px rgba(120, 53, 15, 0.06);
}

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

.home-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  display: none;
  z-index: 20;
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.home-search-results.is-open {
  display: block;
}

.search-result-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.search-result-item:hover {
  background: var(--amber-50);
}

.search-result-item img {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
}

.search-result-item strong {
  display: block;
  color: var(--gray-900);
  line-height: 1.25;
}

.search-result-item span {
  display: block;
  margin-top: 6px;
  color: var(--gray-500);
  font-size: 13px;
}

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

.category-card a,
.category-overview-card {
  height: 100%;
  display: block;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-icon,
.category-overview-head span {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: var(--white);
  font-size: 25px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 12px 25px rgba(217, 119, 6, 0.22);
}

.category-card h2,
.category-overview-card h2 {
  margin: 18px 0 10px;
  color: var(--gray-800);
  font-size: 22px;
}

.category-card p,
.category-overview-card p {
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

.category-samples {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.category-samples a {
  display: block;
  padding: 0;
  color: var(--amber-700, #b45309);
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.movie-card {
  min-width: 0;
}

.card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), #fed7aa);
}

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

.card-link:hover .poster-wrap img {
  transform: scale(1.09);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.66), transparent);
}

.year-badge,
.type-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.year-badge {
  left: 12px;
  background: var(--green-500);
}

.type-badge {
  right: 12px;
  background: var(--red-500);
}

.hover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.86);
  border-radius: 50%;
  color: var(--white);
  background: rgba(245, 158, 11, 0.92);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.card-link:hover .hover-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.movie-card-body h2 {
  margin: 0 0 10px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-meta span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

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

.latest-panel {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.72), rgba(255, 247, 237, 0.82));
  border-radius: var(--radius-2xl);
  margin: 20px auto;
  width: min(1240px, calc(100% - 24px));
}

.horizontal-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 0 20px;
  scroll-snap-type: x proximity;
}

.compact-card {
  position: relative;
  flex: 0 0 320px;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  scroll-snap-align: start;
}

.compact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.compact-card img {
  width: 112px;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
}

.compact-card strong,
.compact-card span {
  display: block;
}

.compact-card strong {
  color: var(--gray-900);
  line-height: 1.35;
}

.compact-card span {
  margin-top: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.rank-number {
  position: absolute;
  left: 20px;
  top: 18px;
  width: 32px;
  height: 32px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: var(--white) !important;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.18);
  font-weight: 950;
}

.ranking-feature {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 32px;
  align-items: center;
}

.ranking-copy {
  padding: 34px;
  border-radius: var(--radius-2xl);
  color: var(--white);
  background: linear-gradient(135deg, #78350f, #9a3412, #713f12);
  box-shadow: var(--shadow-lg);
}

.ranking-copy h2 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.ranking-copy p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

.ranking-stack {
  display: grid;
  gap: 14px;
}

.ranking-stack.small .compact-card {
  grid-template-columns: 78px 1fr;
  flex: none;
}

.ranking-stack.small .compact-card img {
  width: 78px;
  height: 58px;
}

.page-main {
  padding-bottom: 76px;
}

.page-hero,
.category-hero {
  padding: 70px 0 42px;
}

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

.category-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

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

.category-overview-head {
  display: flex;
  gap: 16px;
  align-items: center;
}

.category-overview-card h2 {
  margin: 0 0 8px;
}

.category-overview-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 22px;
  display: grid;
  gap: 10px;
}

.category-overview-card li a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--amber-50);
  color: var(--gray-800);
  font-weight: 700;
}

.category-overview-card li span {
  color: var(--gray-500);
  font-weight: 600;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.catalog-aside {
  position: sticky;
  top: 100px;
}

.aside-card,
.content-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.aside-card h2,
.content-card h2 {
  margin: 0 0 18px;
  color: var(--gray-900);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-sm);
}

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

.is-hidden {
  display: none !important;
}

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

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

.ranking-row a {
  display: grid;
  grid-template-columns: 58px 90px minmax(0, 1fr) 180px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ranking-index {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  font-weight: 950;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.ranking-row img {
  width: 90px;
  height: 66px;
  object-fit: cover;
  border-radius: 12px;
}

.ranking-info {
  min-width: 0;
}

.ranking-info strong,
.ranking-info em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-info strong {
  color: var(--gray-900);
  font-size: 18px;
  font-style: normal;
}

.ranking-info em,
.ranking-meta {
  margin-top: 6px;
  color: var(--gray-500);
  font-style: normal;
}

.detail-main {
  background: linear-gradient(135deg, var(--amber-50), #fff7ed 48%, #fefce8);
}

.detail-hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--white);
}

.detail-mask {
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.64), rgba(17, 24, 39, 0.2));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 36px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--amber-200);
}

.detail-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  margin-top: 56px;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy h1 {
  color: var(--white);
  font-size: clamp(42px, 6vw, 70px);
}

.detail-one-line {
  width: min(800px, 100%);
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.8;
}

.detail-tags span {
  color: var(--amber-900, #78350f);
  background: var(--amber-100);
}

.watch-section {
  padding: 72px 0 36px;
}

.player-widget {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: #000;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.site-video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.site-video {
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  color: var(--white);
  background: #000;
  z-index: 2;
}

.player-cover img {
  object-fit: cover;
  opacity: 0.58;
}

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

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  font-size: 36px;
}

.detail-content {
  display: grid;
  gap: 24px;
  padding: 28px 0 86px;
}

.content-card p {
  color: var(--gray-700);
  line-height: 1.95;
  font-size: 17px;
  margin: 0;
}

.content-card.accent {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.9), rgba(255, 255, 255, 0.95));
}

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

.related-card a {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: var(--amber-50);
  transition: transform 0.2s ease, background 0.2s ease;
}

.related-card a:hover {
  transform: translateY(-3px);
  background: var(--amber-100);
}

.related-card img {
  width: 112px;
  height: 82px;
  object-fit: cover;
  border-radius: 14px;
}

.related-card h3 {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 16px;
}

.related-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: var(--gray-600);
  line-height: 1.6;
  font-size: 13px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 28px;
  padding: 48px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--amber-200);
  font-size: 18px;
}

.footer-grid p,
.footer-grid a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  margin: 0 0 6px;
}

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

.footer-bottom {
  padding: 22px 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.66);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

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

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-aside {
    position: static;
  }
}

@media (max-width: 860px) {
  .site-nav {
    height: 68px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .logo-title {
    font-size: 20px;
  }

  .hero-carousel {
    min-height: 620px;
    height: auto;
  }

  .hero-copy {
    padding: 96px 0 120px;
  }

  .search-panel,
  .ranking-feature,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .ranking-meta {
    grid-column: 3;
  }

  .detail-poster {
    width: min(250px, 100%);
  }

  .category-hero {
    display: block;
  }

  .category-hero .ghost-button {
    margin: 18px 0 0;
  }
}

@media (max-width: 580px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .hero-copy h1,
  .hero-copy h2,
  .detail-copy h1 {
    letter-spacing: -0.03em;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
  }

  .ghost-button {
    margin-left: 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-block;
    margin-top: 12px;
  }

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

  .compact-card {
    flex-basis: 280px;
    grid-template-columns: 96px 1fr;
  }

  .compact-card img {
    width: 96px;
    height: 70px;
  }

  .ranking-row a {
    grid-template-columns: 38px 64px minmax(0, 1fr);
    gap: 10px;
  }

  .ranking-row img {
    width: 64px;
    height: 52px;
  }

  .ranking-info strong {
    font-size: 15px;
  }

  .related-card a {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .related-card img {
    width: 92px;
    height: 70px;
  }

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

  .big-play {
    width: 68px;
    height: 68px;
    font-size: 30px;
  }
}
