:root {
  --page-bg: #f9fafb;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --orange: #f97316;
  --red: #ef4444;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 45%, #f9fafb 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0));
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled,
.site-header.open {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-header.is-scrolled .site-logo,
.site-header.open .site-logo,
.footer-logo {
  color: var(--text);
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.38);
  font-size: 13px;
}

.logo-text {
  font-size: clamp(20px, 2vw, 26px);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.site-header.is-scrolled .nav-link,
.site-header.open .nav-link {
  color: #374151;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  transform: translateY(-1px);
}

.menu-button {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.site-header.is-scrolled .menu-button,
.site-header.open .menu-button {
  color: var(--text);
  background: #f3f4f6;
}

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

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

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #374151;
  font-weight: 700;
}

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

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber) 0%, var(--orange) 50%, var(--red) 100%);
}

.hero-gradient,
.hero-pattern {
  position: absolute;
  inset: 0;
}

.hero-gradient {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.28), transparent 28%),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.02) 65%, rgba(255, 255, 255, 0.95));
}

.hero-pattern {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 82%);
}

.hero-slider {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 720px;
  margin: 0 auto;
  padding-top: 110px;
}

.hero-slide {
  position: absolute;
  inset: 110px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 430px);
  align-items: center;
  gap: 56px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow,
.section-kicker {
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .eyebrow,
.hero .section-kicker {
  color: rgba(255, 255, 255, 0.86);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 14px 0 20px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 16px 44px rgba(15, 23, 42, 0.24);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 26px;
  font-size: clamp(18px, 2.3vw, 26px);
  color: rgba(255, 255, 255, 0.92);
}

.hero-tags,
.movie-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.movie-tags span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.movie-tags span,
.detail-meta span {
  color: #92400e;
  background: #fef3c7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--amber-dark);
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.2);
}

.button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.button.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.detail-copy .button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.hero-cover {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.32);
  transform: rotate(2deg);
  transition: transform 0.35s ease;
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.18);
}

.hero-cover:hover {
  transform: rotate(0deg) translateY(-6px);
}

.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.46));
}

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

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.stats-section,
.content-section,
.split-section,
.detail-content,
.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.stats-section {
  position: relative;
  z-index: 2;
  margin-top: -72px;
}

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

.stat-card,
.movie-card,
.rank-panel,
.category-card-large,
.prose-card,
.ranking-card,
.filter-panel {
  border: 1px solid rgba(229, 231, 235, 0.86);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

.stat-card {
  min-height: 134px;
  padding: 26px;
  border-radius: var(--radius);
  text-align: center;
}

.stat-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.content-section {
  padding: 68px 0 0;
}

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

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading h2,
.page-hero h1 {
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.section-heading a {
  flex: 0 0 auto;
  color: var(--amber-dark);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.14);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #fb923c);
}

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

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

.movie-type,
.movie-score {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(8px);
}

.movie-type {
  left: 12px;
}

.movie-score {
  right: 12px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

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

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.38;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card:hover .movie-title,
.ranking-title:hover {
  color: var(--amber-dark);
}

.movie-desc {
  display: -webkit-box;
  height: 42px;
  margin: 8px 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: #d1d5db;
}

.movie-tags {
  margin-top: 12px;
}

.movie-tags span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: 68px 0 0;
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 215px;
  gap: 18px;
  overflow-x: auto;
  padding: 0 0 18px;
  scroll-snap-type: x mandatory;
}

.horizontal-scroll .movie-card {
  scroll-snap-align: start;
}

.rank-panel {
  align-self: start;
  padding: 22px;
  border-radius: var(--radius);
  position: sticky;
  top: 96px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 34px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: #f9fafb;
  transition: background 0.25s ease, transform 0.25s ease;
}

.rank-row:hover {
  background: #fff7ed;
  transform: translateX(4px);
}

.rank-number {
  color: var(--amber-dark);
  font-weight: 900;
}

.rank-row img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-score {
  color: var(--amber-dark);
  font-weight: 900;
}

.amber-section {
  position: relative;
  padding: 56px 30px;
  border-radius: 34px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.category-grid,
.category-large-grid {
  display: grid;
  gap: 20px;
}

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

.category-tile {
  position: relative;
  min-height: 132px;
  padding: 22px;
  overflow: hidden;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(249, 115, 22, 0.32);
}

.category-tile::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  right: -28px;
  bottom: -28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-tile span {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 900;
}

.category-tile small {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.page-main,
.detail-main {
  min-height: 100vh;
}

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

.page-hero p {
  max-width: 820px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.category-large-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.category-card-large {
  overflow: hidden;
  border-radius: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card-large:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.13);
}

.category-card-link {
  display: block;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 178px;
  background: #fed7aa;
}

.category-thumbs img {
  width: 100%;
  height: 178px;
  object-fit: cover;
}

.category-card-content {
  padding: 22px;
}

.category-card-content h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card-content p {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--muted);
}

.category-card-content span {
  color: var(--amber-dark);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border-radius: 22px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: #ffffff;
  color: var(--text);
}

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

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border-radius: 22px;
}

.ranking-cover {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
}

.ranking-cover span {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
  font-size: 12px;
}

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

.ranking-title {
  display: block;
  margin: 4px 0 8px;
  font-size: 18px;
  font-weight: 900;
}

.ranking-card p {
  display: -webkit-box;
  height: 44px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-hero {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: #ffffff;
  background: var(--slate);
}

.detail-backdrop,
.detail-overlay {
  position: absolute;
  inset: 0;
}

.detail-backdrop {
  background-position: center;
  background-size: cover;
  filter: blur(18px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.58;
}

.detail-overlay {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.72) 46%, rgba(15, 23, 42, 0.28)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.94));
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  aspect-ratio: 3 / 4;
}

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

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

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-copy h1 {
  margin: 10px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.detail-lead {
  max-width: 780px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.detail-tags {
  margin: 16px 0 28px;
}

.player-section {
  padding: 54px 0 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay-button {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.54));
  font-size: 18px;
  font-weight: 900;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--amber-dark);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #ffffff;
  text-align: center;
  font-weight: 800;
  pointer-events: none;
}

.detail-content {
  padding: 34px 0 0;
}

.prose-card {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 28px;
}

.prose-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
  line-height: 1.2;
}

.prose-card h2 + p {
  margin-top: 0;
}

.prose-card p {
  margin: 0 0 28px;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.related-section {
  padding-bottom: 72px;
}

.site-footer {
  margin-top: 86px;
  color: #e5e7eb;
  background: linear-gradient(135deg, var(--slate), var(--slate-soft));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 32px;
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(150px, 1fr));
  gap: 36px;
}

.footer-brand p,
.footer-group a,
.footer-group span {
  color: #9ca3af;
}

.footer-brand p {
  margin: 16px 0 0;
  max-width: 360px;
}

.footer-group {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-group h2 {
  margin: 0 0 8px;
  color: #fbbf24;
  font-size: 18px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.is-filtered-out {
  display: none !important;
}

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

  .menu-button {
    display: flex;
  }

  .hero,
  .hero-slider {
    min-height: 820px;
  }

  .hero-slide {
    inset: 104px 0 92px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-cover {
    width: min(320px, 72vw);
    justify-self: center;
    order: -1;
  }

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

  .split-section {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }

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

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

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

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

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

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

  .hero-slide {
    inset: 88px 0 82px;
  }

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

  .hero-actions {
    display: grid;
  }

  .stats-section {
    margin-top: -40px;
  }

  .stats-grid,
  .movie-grid,
  .category-grid,
  .ranking-grid,
  .category-large-grid {
    grid-template-columns: 1fr;
  }

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

  .amber-section {
    padding: 40px 18px;
  }

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

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

  .detail-poster {
    width: min(230px, 70vw);
  }

  .detail-lead {
    font-size: 17px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
