:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-teal: #0f766e;
  --color-cyan: #0891b2;
  --color-ink: #111827;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-soft: #f3f6fb;
  --color-card: #ffffff;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-ink);
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal), var(--color-cyan));
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

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

.brand-copy strong {
  overflow: hidden;
  max-width: 260px;
  color: #0f172a;
  font-size: 18px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy em {
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link,
.mobile-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: #374151;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--color-primary);
  background: #eff6ff;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-category-group {
  position: relative;
}

.nav-more {
  border: none;
  background: transparent;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  min-width: 180px;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-category-group:hover .nav-dropdown,
.nav-category-group:focus-within .nav-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.nav-dropdown a {
  padding: 10px 12px;
  color: #374151;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.nav-dropdown a:hover {
  color: var(--color-primary);
  background: #eff6ff;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #f9fafb;
  border: 1px solid var(--color-line);
  border-radius: 12px;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #111827;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  background: #ffffff;
  border-top: 1px solid var(--color-line);
}

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

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.36)), var(--hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  transition: opacity 0.8s ease, visibility 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.45), transparent 28%),
    radial-gradient(circle at 76% 24%, rgba(20, 184, 166, 0.35), transparent 30%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.50));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 680px;
  padding: 110px 0 150px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #67e8f9;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-copy h1,
.subpage-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy p {
  max-width: 680px;
  margin: 24px 0 0;
  color: #e0f2fe;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.7;
}

.hero-meta,
.movie-card-meta,
.detail-meta-grid,
.hero-actions,
.detail-actions,
.about-actions,
.prev-next-nav,
.view-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin-top: 24px;
}

.hero-meta span {
  padding: 8px 12px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

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

.hero-tags {
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: #075985;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags .tag,
.detail-tags .tag {
  color: #ecfeff;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(125, 211, 252, 0.32);
}

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

.primary-button,
.ghost-button,
.section-link,
.text-link,
.view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.text-link:hover,
.view-button:hover {
  transform: translateY(-2px);
}

.primary-button.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.ghost-button {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.ghost-button.dark {
  color: var(--color-primary);
  border-color: #bfdbfe;
  background: #eff6ff;
}

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

.hero-dot {
  width: 34px;
  height: 6px;
  padding: 0;
  background: rgba(255, 255, 255, 0.38);
  border: none;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-search {
  position: absolute;
  z-index: 4;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  left: max(16px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.26);
  backdrop-filter: blur(18px);
}

.hero-search label {
  display: grid;
  gap: 4px;
}

.hero-search span {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.hero-search input {
  width: 100%;
  min-height: 42px;
  color: #0f172a;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
}

.hero-search button {
  min-width: 138px;
  color: #ffffff;
  background: var(--color-primary);
  border: none;
  border-radius: 16px;
  font-weight: 900;
}

.stats-strip {
  background: linear-gradient(90deg, #eff6ff, #f0fdfa, #ecfeff);
  border-bottom: 1px solid var(--color-line);
}

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

.stats-grid div {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  text-align: center;
}

.stats-grid strong {
  color: var(--color-primary);
  font-size: 34px;
  line-height: 1;
}

.stats-grid span {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 800;
}

.page-section {
  padding: 72px 0;
}

.soft-bg {
  background: var(--color-soft);
}

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

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.compact-heading h2 {
  font-size: 28px;
}

.section-link,
.text-link {
  color: var(--color-primary);
  background: #eff6ff;
}

.category-grid,
.category-overview-grid,
.movie-grid,
.detail-content-grid,
.about-layout,
.home-two-col {
  display: grid;
  gap: 24px;
}

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

.category-card,
.category-overview-card,
.content-panel,
.filter-panel,
.ranking-panel,
.player-section,
.movie-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.category-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover,
.movie-card:hover,
.ranking-row:hover,
.full-ranking-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
  border-radius: 18px;
  font-size: 22px;
  font-weight: 900;
}

.category-card strong,
.category-overview-card h2 {
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
}

.category-card em,
.category-count {
  color: var(--color-primary);
  font-style: normal;
  font-weight: 900;
}

.category-card p,
.category-overview-card p,
.content-panel p {
  color: var(--color-muted);
  line-height: 1.75;
}

.category-card ul,
.category-sample-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-card li,
.category-sample-list li {
  overflow: hidden;
  color: #334155;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-card li a:hover,
.category-sample-list a:hover {
  color: var(--color-primary);
}

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

.movie-grid.is-list-view {
  grid-template-columns: 1fr;
}

.movie-card {
  display: block;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-grid.is-list-view .movie-card {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.movie-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.movie-card img,
.ranking-row img,
.full-ranking-row img,
.detail-poster img {
  height: 100%;
  object-fit: cover;
}

.movie-thumb img {
  height: 100%;
  transition: transform 0.5s ease;
}

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

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

.movie-play-icon {
  position: absolute;
  inset: auto auto 12px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.9);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.38);
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.movie-card-meta {
  gap: 8px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-card-meta span {
  padding: 4px 8px;
  background: #f8fafc;
  border-radius: 999px;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 3em;
  margin: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card p {
  display: -webkit-box;
  min-height: 4.8em;
  margin: 0;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.movie-card.is-compact h3 {
  min-height: auto;
}

.movie-card.is-compact p {
  min-height: 3.2em;
  -webkit-line-clamp: 2;
}

.home-two-col {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

.home-two-col .movie-grid {
  grid-template-columns: repeat(3, 1fr);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

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

.ranking-row,
.full-ranking-row {
  display: grid;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row {
  grid-template-columns: 44px 78px 1fr;
  padding: 10px;
}

.ranking-row img {
  width: 78px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
}

.rank-number {
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.ranking-info,
.full-ranking-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.ranking-info strong,
.full-ranking-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-info em,
.full-ranking-copy em {
  overflow: hidden;
  color: var(--color-muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subpage-hero {
  padding: 86px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 20%, rgba(34, 211, 238, 0.28), transparent 30%),
    linear-gradient(135deg, #1d4ed8, #0f766e 58%, #0891b2);
}

.subpage-hero p {
  max-width: 780px;
  margin: 20px 0 0;
  color: #e0f2fe;
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #dbeafe;
  font-size: 14px;
  font-weight: 800;
}

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

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

.category-overview-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.category-sample-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.category-sample-list span {
  color: var(--color-muted);
}

.filter-panel {
  display: grid;
  gap: 20px;
  margin-bottom: 28px;
  padding: 22px;
}

.filter-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.filter-title-row h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 900;
}

.filter-title-row p {
  margin: 0;
  color: var(--color-muted);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, 1fr);
  gap: 14px;
}

.filter-controls label,
.hero-search label {
  min-width: 0;
}

.filter-controls span {
  display: block;
  margin-bottom: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.view-controls {
  justify-content: flex-end;
}

.view-button {
  min-height: 38px;
  padding: 0 14px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid var(--color-line);
}

.view-button.is-active {
  color: #ffffff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

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

.full-ranking-row {
  grid-template-columns: 72px 96px 1fr auto;
  padding: 12px;
}

.full-ranking-row img {
  width: 96px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
}

.heat-pill {
  padding: 8px 12px;
  color: #075985;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  color: #ffffff;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.56)), var(--detail-bg);
  background-position: center;
  background-size: cover;
  filter: saturate(1.08);
  transform: scale(1.06);
}

.detail-hero .container {
  position: relative;
  z-index: 2;
}

.detail-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.detail-poster {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.detail-copy h1 {
  color: #ffffff;
}

.detail-one-line {
  max-width: 760px;
  margin: 22px 0 0;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta-grid {
  margin-top: 24px;
}

.detail-meta-grid span {
  display: grid;
  min-width: 130px;
  gap: 4px;
  padding: 12px 16px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.detail-meta-grid strong {
  color: #7dd3fc;
  font-size: 12px;
}

.detail-tags {
  margin-top: 22px;
}

.player-section {
  padding: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 22px;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.28), rgba(2, 6, 23, 0.82));
  border: none;
  text-align: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-playing .player-overlay {
  visibility: hidden;
  opacity: 0;
}

.big-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  color: #ffffff;
  background: var(--color-primary);
  border-radius: 999px;
  box-shadow: 0 24px 55px rgba(37, 99, 235, 0.45);
  font-size: 28px;
}

.player-overlay strong {
  font-size: clamp(20px, 3vw, 34px);
}

.player-overlay em,
.noscript-note {
  color: #bfdbfe;
  font-style: normal;
}

.detail-content-grid {
  grid-template-columns: 1.35fr 0.9fr;
}

.content-panel {
  padding: 28px;
}

.content-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 900;
}

.prev-next-nav {
  justify-content: space-between;
  margin-top: 28px;
}

.prev-next-nav a {
  flex: 1 1 280px;
  padding: 16px 18px;
  color: var(--color-primary);
  background: #eff6ff;
  border-radius: 16px;
  font-weight: 900;
}

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

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: none;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: var(--color-primary);
  border: none;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.back-to-top.is-visible {
  display: block;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

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

.footer-brand {
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.site-footer p,
.site-footer li {
  color: #94a3b8;
  line-height: 1.8;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px max(16px, calc((100vw - 1180px) / 2));
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .category-grid,
  .movie-grid,
  .home-two-col .movie-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .home-two-col,
  .footer-grid,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

  .filter-controls {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero-carousel,
  .hero-content {
    min-height: 640px;
  }

  .hero-content {
    padding: 90px 0 180px;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

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

  .stats-grid,
  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .home-two-col .movie-grid,
  .about-layout {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .full-ranking-row {
    grid-template-columns: 52px 76px 1fr;
  }

  .heat-pill {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

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

  .brand-copy strong {
    max-width: 190px;
    font-size: 15px;
  }

  .hero-copy h1,
  .subpage-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .hero-copy p,
  .detail-one-line {
    font-size: 16px;
  }

  .page-section {
    padding: 48px 0;
  }

  .section-heading,
  .filter-title-row {
    align-items: start;
    flex-direction: column;
  }

  .stats-grid,
  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .home-two-col .movie-grid,
  .about-layout,
  .filter-controls {
    grid-template-columns: 1fr;
  }

  .movie-grid.is-list-view .movie-card {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 38px 68px 1fr;
  }

  .full-ranking-row {
    grid-template-columns: 44px 64px 1fr;
  }

  .full-ranking-row img,
  .ranking-row img {
    width: 64px;
  }

  .detail-hero,
  .subpage-hero {
    padding: 52px 0;
  }

  .player-section,
  .content-panel,
  .filter-panel,
  .category-overview-card {
    padding: 18px;
  }
}
