:root {
  --page-bg: #f7f7fb;
  --panel-bg: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --pink: #db2777;
  --blue: #2563eb;
  --green: #16a34a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.32);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-search {
  position: relative;
  width: min(280px, 28vw);
}

.site-search-input,
.filter-input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f9fafb;
  color: var(--ink);
  padding: 0 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-search-input:focus,
.filter-input:focus {
  border-color: rgba(220, 38, 38, 0.55);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 88vw);
  max-height: 460px;
  overflow: auto;
  display: none;
  padding: 10px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.search-panel.is-open {
  display: grid;
  gap: 8px;
}

.search-result {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-result:hover {
  background: #fef2f2;
  transform: translateY(-1px);
}

.search-result img {
  width: 46px;
  height: 62px;
  object-fit: cover;
  border-radius: 10px;
  background: #e5e7eb;
}

.search-result strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.search-result span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.search-empty {
  padding: 14px;
  color: var(--muted);
  text-align: center;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  gap: 4px;
  border-radius: 14px;
  background: #f3f4f6;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 2px auto;
  background: #374151;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
  display: grid;
  gap: 10px;
}

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

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

.mobile-category-links {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 8px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

.hero-track,
.hero-slide,
.hero-slide img,
.hero-layer {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-layer {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-bottom: 78px;
  color: #ffffff;
}

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

.hero-tags span {
  padding: 5px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

.hero-tags span:first-child {
  background: var(--red);
}

.hero h1 {
  max-width: 720px;
  margin: 18px 0 12px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.7);
}

.hero p {
  max-width: 700px;
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: clamp(16px, 2vw, 20px);
}

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

.primary-btn,
.ghost-btn,
.ghost-light-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.35);
}

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

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.ghost-light-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-next {
  right: 24px;
  transform: translateY(-50%);
}

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

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

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

.quick-entry {
  position: relative;
  z-index: 4;
  margin-top: -28px;
}

.quick-entry-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-entry strong {
  display: block;
  font-size: 18px;
}

.quick-entry span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.category-chips,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chips a,
.footer-links a {
  padding: 8px 13px;
  color: #374151;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.category-chips a:hover,
.footer-links a:hover {
  color: #ffffff;
  background: var(--red);
  transform: translateY(-1px);
}

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

.home-sections {
  padding: 54px 0 72px;
  display: grid;
  gap: 48px;
}

.page-top {
  padding: 34px 0 72px;
}

.content-section {
  display: grid;
  gap: 22px;
}

.raised-section,
.tint-section,
.blue-section {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.raised-section {
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.tint-section {
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.blue-section {
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--red);
  background: #fee2e2;
  border-radius: 12px;
  font-weight: 900;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-more {
  color: var(--red);
  font-weight: 800;
}

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

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

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  background: #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.62));
  opacity: 0.88;
}

.movie-card:hover .poster-link img {
  transform: scale(1.08);
  filter: saturate(1.1);
}

.year-badge,
.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  color: #ffffff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  left: 10px;
  bottom: 10px;
  background: var(--red);
}

.type-badge {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.rank-badge {
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #f97316, var(--red));
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35);
}

.movie-card-body {
  padding: 10px 2px 0;
}

.movie-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
}

.movie-card h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover h3 a {
  color: var(--red);
}

.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags span,
.detail-tags span,
.ranking-meta span,
.detail-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  color: #4b5563;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.page-hero {
  overflow: hidden;
  margin-bottom: 28px;
  padding: 44px;
  color: #ffffff;
  border-radius: 28px;
  background: radial-gradient(circle at 20% 20%, rgba(248, 113, 113, 0.95), transparent 32%), linear-gradient(135deg, #111827, #7f1d1d 58%, #831843);
  box-shadow: var(--shadow);
}

.small-hero {
  min-height: 240px;
  display: flex;
  align-items: flex-end;
}

.page-hero-content span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.05em;
}

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

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

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

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

.category-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}

.category-cover {
  position: relative;
  display: block;
  height: 180px;
  overflow: hidden;
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-cover span {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
}

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

.category-body {
  padding: 20px;
}

.category-body h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-body p {
  margin: 0 0 16px;
  color: var(--muted);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a {
  max-width: 100%;
  padding: 6px 10px;
  color: var(--red);
  background: #fef2f2;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.filter-panel {
  margin: 0 0 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}

.filter-title {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 900;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 14px;
  align-items: center;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  padding: 0 14px;
  color: #374151;
  background: #f3f4f6;
  border-radius: 999px;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: #ffffff;
  background: var(--red);
}

.movie-card.is-hidden,
.ranking-row.is-hidden {
  display: none;
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 56px 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.75);
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.ranking-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  font-weight: 900;
}

.ranking-thumb img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  background: #e5e7eb;
}

.ranking-info h3 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 900;
}

.ranking-info h3 a:hover {
  color: var(--red);
}

.ranking-info p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: end;
  overflow: hidden;
  margin-bottom: 30px;
  padding: 32px;
  color: #ffffff;
  border-radius: 30px;
  background: radial-gradient(circle at 20% 10%, rgba(239, 68, 68, 0.85), transparent 28%), linear-gradient(135deg, #111827, #7f1d1d 55%, #111827);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.detail-info h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 18px;
  color: #f3f4f6;
  font-size: 18px;
}

.detail-badges span,
.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.detail-player-section,
.detail-text-card,
.detail-nav-links {
  margin-bottom: 28px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.16));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  color: var(--red);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  font-size: 32px;
}

.player-start strong {
  font-size: 18px;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}

.player-message {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 3;
  display: none;
  padding: 8px 14px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  transform: translateX(-50%);
}

.player-message.is-visible {
  display: block;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 20px;
  margin-bottom: 30px;
}

.detail-text-card {
  padding: 26px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.78);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}

.detail-text-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 900;
}

.detail-text-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.accent-card {
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.detail-nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.detail-nav-links a {
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 18px;
  color: var(--red);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.detail-nav-links a:last-child {
  text-align: right;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
}

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

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  max-width: 460px;
}

.footer-links a {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.08);
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 46px;
  height: 46px;
  display: none;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(220, 38, 38, 0.35);
  font-size: 20px;
  font-weight: 900;
}

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

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

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

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

  .menu-toggle {
    display: block;
  }

  .site-search {
    width: min(230px, 44vw);
  }

  .hero {
    height: 64vh;
    min-height: 520px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-entry-inner,
  .filter-controls,
  .detail-hero,
  .detail-content-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .ranking-list.compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: calc(100% - 24px);
    height: 66px;
    gap: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text small {
    display: none;
  }

  .site-search {
    width: 42vw;
  }

  .site-search-input {
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 500px;
  }

  .hero-content {
    padding-bottom: 70px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 15px;
  }

  .quick-entry-inner,
  .page-container,
  .footer-inner,
  .mobile-panel-inner {
    width: calc(100% - 24px);
  }

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

  .raised-section,
  .tint-section,
  .blue-section,
  .page-hero,
  .detail-hero,
  .detail-text-card,
  .filter-panel {
    padding: 20px;
    border-radius: 20px;
  }

  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 42px 58px 1fr;
    gap: 10px;
  }

  .ranking-number {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 13px;
  }

  .ranking-thumb img {
    width: 58px;
    height: 78px;
  }

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

  .detail-nav-links a:last-child {
    text-align: left;
  }
}
