:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-50: #fff7ed;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --red-500: #ef4444;
  --pink-600: #db2777;
  --blue-500: #3b82f6;
  --cyan-600: #0891b2;
  --purple-500: #a855f7;
  --violet-600: #7c3aed;
  --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;
  --radius: 1rem;
  --shadow: 0 18px 45px rgba(146, 64, 14, 0.14);
  --shadow-soft: 0 10px 25px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--amber-50), var(--orange-50) 42%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.94);
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark,
.footer-logo span {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.35);
}

.brand-text strong {
  display: block;
  font-size: 1.24rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--amber-700), var(--orange-600));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  color: var(--amber-700);
  font-size: 0.75rem;
}

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

.nav-link,
.nav-chip,
.mobile-nav-link {
  border-radius: 999px;
  color: #78350f;
  font-weight: 700;
  transition: all 0.2s ease;
}

.nav-link {
  padding: 9px 13px;
  font-size: 0.94rem;
}

.nav-link:hover,
.nav-link.is-active,
.nav-chip:hover,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background: var(--amber-100);
  color: #7c2d12;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: #ffffff;
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(146, 64, 14, 0.08);
}

.header-search input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 8px 10px 8px 14px;
  background: transparent;
  color: var(--gray-800);
}

.header-search button,
.primary-button,
.secondary-button,
.ghost-button,
.player-cover-button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button,
.player-cover-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.24);
}

.header-search button {
  padding: 8px 14px;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
}

.secondary-button,
.ghost-button {
  color: #7c2d12;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.player-cover-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(146, 64, 14, 0.18);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #7c2d12;
  background: var(--amber-100);
}

.quick-cats {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-chip {
  padding: 6px 11px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.mobile-nav-link {
  padding: 10px 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(253, 186, 116, 0.95), transparent 34%), linear-gradient(135deg, var(--amber-600), var(--orange-600) 52%, #92400e);
}

.hero::before,
.page-hero-pattern {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 560px;
  padding: 64px 0;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 480px);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.hero p,
.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #ffedd5;
  font-size: 1.12rem;
}

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

.hero-search {
  display: flex;
  max-width: 620px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px rgba(124, 45, 18, 0.22);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: var(--gray-800);
  background: transparent;
}

.hero-search button {
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-600));
}

.hero-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.hero-category-grid a {
  min-height: 92px;
  padding: 15px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 32px rgba(124, 45, 18, 0.15);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-category-grid a:hover {
  transform: translateY(-4px) rotate(-1deg);
  background: rgba(255, 255, 255, 0.22);
}

.hero-category-grid span {
  display: block;
  font-size: 1.7rem;
}

.hero-category-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 0.96rem;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 520px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 26px 65px rgba(124, 45, 18, 0.35);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 5%, rgba(0, 0, 0, 0.24) 38%, rgba(0, 0, 0, 0.84));
}

.hero-slide-content {
  position: relative;
  z-index: 1;
}

.hero-slide-content strong {
  display: block;
  margin: 8px 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.hero-slide-content em {
  color: #ffedd5;
  font-style: normal;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 22px;
  display: flex;
  gap: 8px;
}

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

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

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

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

.section-heading h2 {
  display: inline;
  margin: 0 0 0 10px;
  color: var(--gray-900);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}

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

.section-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.25);
}

.section-more {
  color: var(--amber-700);
  font-weight: 900;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
  transition: opacity 0.25s ease;
}

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

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: all 0.25s ease;
}

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

.duration,
.category-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
}

.duration {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.66);
}

.category-pill {
  left: 10px;
  top: 10px;
  background: var(--amber-500);
}

.rank-badge {
  right: 10px;
  top: 10px;
  background: linear-gradient(90deg, var(--red-500), var(--pink-600));
}

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

.card-body strong {
  color: var(--gray-900);
  font-size: 1.02rem;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover .card-body strong {
  color: var(--amber-700);
}

.card-body em {
  display: -webkit-box;
  margin-top: 8px;
  min-height: 42px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 0.9rem;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.card-tags span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #92400e;
  background: var(--amber-100);
  font-size: 0.76rem;
  font-weight: 800;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--gray-500);
  font-size: 0.8rem;
}

.movie-card-horizontal {
  flex-direction: row;
  align-items: stretch;
}

.movie-card-horizontal .card-poster {
  width: 180px;
  min-width: 180px;
  aspect-ratio: auto;
}

.movie-card-featured {
  position: relative;
  min-height: 420px;
}

.movie-card-featured .card-poster {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.movie-card-featured .poster-shade {
  opacity: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.82));
}

.movie-card-featured .card-body {
  position: relative;
  z-index: 2;
  justify-content: flex-end;
  min-height: 420px;
  color: #ffffff;
  padding: 28px;
}

.movie-card-featured .card-body strong {
  color: #ffffff;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.movie-card-featured .card-body em,
.movie-card-featured .card-meta {
  color: #ffedd5;
}

.scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 330px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x mandatory;
}

.scroller > * {
  scroll-snap-align: start;
}

.editor-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
}

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

.ranking-list {
  display: grid;
  gap: 12px;
  counter-reset: rank;
}

.rank-row {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 58px 86px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-row::before {
  content: counter(rank);
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  font-weight: 900;
}

.rank-row img {
  width: 86px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-row strong {
  display: block;
  color: var(--gray-900);
}

.rank-row span,
.rank-row em {
  color: var(--gray-500);
  font-size: 0.88rem;
  font-style: normal;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, var(--amber-600), var(--orange-600));
}

.small-hero .page-hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0;
}

.small-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 190px 190px auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--gray-700);
  font-size: 0.86rem;
  font-weight: 900;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 0 12px;
  outline: none;
  background: #ffffff;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--amber-400);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.filter-count {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--gray-600);
}

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

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

.category-card-top {
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
}

.category-card-top span {
  font-size: 2.5rem;
}

.category-card-top strong {
  font-size: 1.4rem;
}

.category-card-top em {
  font-style: normal;
  color: #ffedd5;
}

.category-overview-card ul {
  margin: 0;
  padding: 16px 20px 20px;
  list-style: none;
}

.category-overview-card li + li {
  margin-top: 8px;
}

.category-overview-card a:hover {
  color: var(--amber-700);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--amber-700);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: var(--amber-100);
  box-shadow: var(--shadow);
}

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

.detail-info h1 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.detail-info .lead {
  margin: 16px 0 20px;
  color: var(--gray-700);
  font-size: 1.1rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.meta-item {
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.meta-item span {
  display: block;
  color: var(--gray-500);
  font-size: 0.8rem;
  font-weight: 800;
}

.meta-item strong {
  display: block;
  color: var(--gray-900);
  margin-top: 4px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.player-section,
.content-section,
.related-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 52px;
}

.player-card,
.article-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.player-card h2,
.article-card h2,
.related-section h2 {
  margin: 0;
  padding: 22px 24px 0;
  color: var(--gray-900);
  font-size: 1.6rem;
}

.player-shell {
  position: relative;
  margin: 20px 24px 24px;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  aspect-ratio: 16 / 9;
}

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

.player-cover-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  min-width: 220px;
  padding: 15px 24px;
  transform: translate(-50%, -50%);
}

.player-cover-button:hover {
  transform: translate(-50%, calc(-50% - 2px));
}

.player-cover-button.is-hidden {
  display: none;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

.article-card {
  padding: 28px;
}

.article-card h2 {
  padding: 0;
  margin: 0 0 12px;
}

.article-card p {
  margin: 0 0 20px;
  color: var(--gray-700);
}

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

.site-footer {
  margin-top: 36px;
  color: #ffedd5;
  background: #78350f;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 28px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 1.2rem;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1rem;
}

.site-footer p {
  margin: 0;
  color: #fcd34d;
}

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

.site-footer li + li {
  margin-top: 8px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
  text-align: center;
  color: #fcd34d;
  font-size: 0.9rem;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 22px;
  background: #ffffff;
  text-align: center;
  color: var(--gray-600);
  box-shadow: var(--shadow-soft);
}

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

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-inner,
  .detail-layout,
  .editor-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 440px;
  }

  .detail-poster {
    max-width: 420px;
  }

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

@media (max-width: 820px) {
  .header-inner {
    min-height: 64px;
  }

  .brand-text small,
  .quick-cats {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    padding: 44px 0;
  }

  .hero-category-grid,
  .meta-grid,
  .related-grid,
  .category-overview-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

  .rank-row em {
    display: none;
  }

  .movie-card-horizontal {
    flex-direction: column;
  }

  .movie-card-horizontal .card-poster {
    width: auto;
    min-width: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .container,
  .section,
  .page-section,
  .detail-hero,
  .player-section,
  .content-section,
  .related-section,
  .header-inner,
  .mobile-nav {
    width: min(100% - 22px, 1180px);
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.2rem;
  }

  .hero-search {
    border-radius: 20px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search input,
  .hero-search button {
    min-height: 46px;
  }

  .hero-category-grid,
  .meta-grid,
  .related-grid,
  .category-overview-grid,
  .card-grid,
  .card-grid.compact-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 380px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .player-card h2,
  .article-card h2,
  .related-section h2 {
    font-size: 1.35rem;
  }
}
