:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-600: #ea580c;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 10px 30px rgba(120, 53, 15, 0.12);
  --shadow-lg: 0 22px 50px rgba(120, 53, 15, 0.18);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.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, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(253, 230, 138, 0.85);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.28);
  font-size: 16px;
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 21px;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(90deg, var(--amber-800), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-copy small {
  margin-top: 3px;
  font-size: 12px;
  color: var(--amber-700);
}

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

.nav-link {
  color: var(--gray-700);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-600);
}

.search-form {
  position: relative;
  width: min(260px, 24vw);
  flex: 0 0 auto;
}

.search-form input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  background: var(--amber-50);
  padding: 0 44px 0 18px;
  outline: none;
  color: var(--gray-700);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-form input:focus,
.mobile-search input:focus,
.library-tools input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.search-form button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: var(--amber-700);
  background: transparent;
  cursor: pointer;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--amber-50);
  color: var(--amber-800);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
  border-top: 1px solid rgba(253, 230, 138, 0.85);
}

.mobile-panel.is-open {
  display: block;
  animation: fadeIn 0.25s ease both;
}

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

.mobile-link {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--amber-50);
}

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

.mobile-search {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.mobile-search input,
.library-tools input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  background: var(--white);
}

.mobile-search button,
.library-tools button {
  border: 0;
  border-radius: 999px;
  background: var(--amber-600);
  color: white;
  padding: 0 18px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: white;
  background: linear-gradient(115deg, var(--amber-900), var(--amber-800) 48%, var(--orange-600));
}

.hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  transform: scale(1.04);
}

.hero::after,
.detail-hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(253, 230, 138, 0.28), transparent 28%), linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  min-height: 600px;
  margin: 0 auto;
  padding: 70px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 7px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero p,
.page-hero p,
.detail-copy .lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 251, 235, 0.9);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.65;
}

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

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

.primary-button,
.ghost-button,
.more-link,
.pager-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  padding: 0 24px;
  color: white;
  background: var(--amber-600);
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.34);
}

.primary-button:hover,
.ghost-button:hover,
.more-link:hover,
.pager-links a:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: var(--amber-700);
  box-shadow: 0 18px 38px rgba(217, 119, 6, 0.42);
}

.ghost-button {
  padding: 0 22px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}

.hero-panel-main {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.72), rgba(234, 88, 12, 0.55));
}

.hero-panel-main img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-panel-main div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 70px 22px 22px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
}

.hero-panel-main span,
.hero-mini-card em {
  display: block;
  color: var(--amber-200);
  font-style: normal;
  font-size: 13px;
}

.hero-panel-main strong {
  display: block;
  margin-top: 4px;
  color: white;
  font-size: 24px;
}

.hero-panel-main p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.hero-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-mini-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(3px);
}

.hero-mini-card img {
  width: 74px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-700), var(--orange-600));
}

.hero-mini-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  color: white;
  font-size: 15px;
}

.section-block {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px;
}

.section-block.tinted-section,
.section-block.white-section {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
}

.tinted-section {
  background: linear-gradient(135deg, var(--amber-50), #fff7ed);
}

.white-section {
  background: white;
}

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

.section-head.align-start {
  align-items: flex-start;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

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

.section-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--amber-700);
  background: var(--amber-100);
  font-size: 26px;
}

.section-icon.orange {
  color: var(--orange-600);
}

.section-icon.blue {
  color: #2563eb;
}

.more-link {
  color: var(--amber-700);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 26px;
}

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

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

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

.library-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

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

.card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--amber-700), var(--orange-600));
}

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

.movie-card.square .card-cover {
  aspect-ratio: 1 / 1;
}

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

.card-link:hover .card-cover img {
  transform: scale(1.08);
}

img.image-hidden {
  opacity: 0;
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card-link:hover .card-cover::after {
  opacity: 1;
}

.quality-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
}

.quality-badge {
  top: 12px;
  right: 12px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.92);
  font-size: 12px;
}

.play-chip {
  left: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.card-link:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

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

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--amber-700);
  font-size: 13px;
}

.card-meta span,
.detail-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--amber-50);
}

.movie-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 52px;
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.42;
  transition: color 0.2s ease;
}

.card-link:hover h3 {
  color: var(--amber-700);
}

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

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

.tag-row span {
  color: var(--amber-700);
  background: var(--amber-50);
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  max-width: 760px;
}

.filter-panel button {
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  color: var(--amber-800);
  background: white;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-panel button:hover,
.filter-panel button.is-active {
  color: white;
  border-color: var(--amber-600);
  background: var(--amber-600);
}

.library-tools {
  display: flex;
  gap: 12px;
  margin: 0 0 26px;
}

.empty-state {
  margin: 28px 0 0;
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--gray-600);
  background: white;
}

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

.page-hero > div {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 74px 24px;
}

.small-hero > div {
  padding-top: 62px;
  padding-bottom: 62px;
}

.ranking-hero {
  background: linear-gradient(135deg, #7c2d12, var(--amber-800), #111827);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.category-box {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gray-900);
  font-weight: 900;
  font-size: 24px;
}

.category-title em {
  font-style: normal;
  color: var(--amber-600);
}

.category-box p {
  color: var(--gray-600);
}

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

.category-samples a {
  color: var(--amber-700);
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 82px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: white;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.rank-item img {
  width: 82px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--amber-700), var(--orange-600));
}

.rank-copy {
  min-width: 0;
}

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

.rank-copy strong {
  color: var(--gray-900);
}

.rank-copy em {
  margin-top: 4px;
  color: var(--gray-500);
  font-style: normal;
  font-size: 13px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(135deg, var(--amber-900), #111827);
}

.detail-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--amber-700), var(--orange-600));
  box-shadow: var(--shadow-lg);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--amber-100);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: white;
}

.detail-copy .lead {
  color: rgba(255, 255, 255, 0.9);
}

.detail-meta span {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

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

.player-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px 24px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #050505;
  box-shadow: var(--shadow-lg);
}

.player-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: white;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber-600);
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.38);
  font-size: 26px;
}

.player-overlay strong {
  font-size: 20px;
}

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

.player-info {
  margin-top: 22px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
}

.player-info h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.player-info p {
  margin: 0;
  color: var(--gray-600);
}

.detail-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.detail-article article,
.detail-side {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-sm);
}

.detail-article h2,
.detail-side h3 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-article p {
  margin: 0 0 22px;
  color: var(--gray-700);
  font-size: 17px;
}

.detail-side dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-side dt {
  color: var(--gray-500);
  font-size: 13px;
}

.detail-side dd {
  margin: -8px 0 8px;
  color: var(--gray-900);
  font-weight: 700;
}

.pager-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.pager-links a,
.pager-links span {
  flex: 1;
  min-height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber-800);
  background: var(--amber-50);
  font-weight: 800;
}

.pager-links span {
  opacity: 0.45;
}

.site-footer {
  margin-top: 30px;
  color: var(--amber-100);
  background: linear-gradient(135deg, var(--amber-900), #451a03);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
}

.footer-brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 20px;
}

.footer-brand p,
.footer-col p,
.footer-col a {
  color: var(--amber-200);
  font-size: 14px;
}

.footer-col h3 {
  margin: 0 0 14px;
  color: white;
}

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

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(253, 230, 138, 0.18);
  color: var(--amber-300);
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--amber-600);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .search-form {
    margin-left: auto;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content,
  .detail-inner,
  .detail-article {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 680px;
  }

  .three-col,
  .four-col,
  .six-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .header-inner {
    height: auto;
    min-height: 64px;
    padding: 10px 16px;
  }

  .brand-copy small,
  .search-form {
    display: none;
  }

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

  .hero-content {
    min-height: auto;
    padding: 52px 18px;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero p,
  .page-hero p,
  .detail-copy .lead {
    font-size: 17px;
  }

  .hero-panel-main img {
    height: 240px;
  }

  .section-block,
  .section-block.tinted-section,
  .section-block.white-section,
  .player-section,
  .detail-inner,
  .page-hero > div {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-head {
    display: block;
  }

  .filter-panel {
    justify-content: flex-start;
    margin-top: 18px;
  }

  .movie-grid,
  .library-grid,
  .three-col,
  .four-col,
  .six-col,
  .rank-list,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .library-tools,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .rank-item {
    grid-template-columns: 40px 72px 1fr;
  }

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