:root {
  color-scheme: dark;
  --bg: #0f172a;
  --bg-2: #111827;
  --panel: #1e293b;
  --panel-2: #0f1b31;
  --panel-soft: rgba(30, 41, 59, 0.72);
  --text: #ffffff;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --blue: #2563eb;
  --cyan: #06b6d4;
  --red: #dc2626;
  --orange: #f97316;
  --green: #10b981;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 38rem),
    linear-gradient(180deg, #0f172a 0%, #1e293b 52%, #0f172a 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.visually-hidden {
  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;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.brand strong {
  display: block;
  font-size: clamp(1.02rem, 2.1vw, 1.55rem);
  letter-spacing: -0.03em;
}

.brand small {
  display: block;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--text-soft);
}

.desktop-nav a,
.nav-dropdown button {
  color: var(--text-soft);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.nav-dropdown button:hover {
  color: #ffffff;
}

.nav-dropdown {
  position: relative;
  padding: 24px 0;
}

.dropdown-panel {
  position: absolute;
  top: 68px;
  left: 0;
  width: 230px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 180ms ease;
}

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

.dropdown-panel a {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
}

.dropdown-panel a:hover {
  background: rgba(51, 65, 85, 0.8);
}

.header-search,
.mobile-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search input,
.mobile-search input,
.search-panel input,
.search-panel select,
.local-filter-input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.75);
  color: #ffffff;
  outline: 0;
  transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-search input {
  width: 250px;
  padding: 10px 44px 10px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.search-panel select:focus,
.local-filter-input:focus {
  border-color: rgba(6, 182, 212, 0.8);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18);
  background: rgba(30, 41, 59, 0.95);
}

.header-search button {
  position: absolute;
  right: 5px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(71, 85, 105, 0.78);
  color: #ffffff;
  cursor: pointer;
}

.mobile-menu-button {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.8);
  cursor: pointer;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: #ffffff;
}

.mobile-menu {
  padding: 0 16px 18px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-soft);
}

.mobile-menu a:hover {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.8);
}

.mobile-search {
  gap: 8px;
  padding: 14px 0;
}

.mobile-search input {
  padding: 10px 14px;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
  transition: opacity 1000ms ease, transform 1000ms ease;
}

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

.hero-slide > img,
.page-hero > img,
.detail-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-failed {
  opacity: 0.12;
  filter: grayscale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 35%, rgba(37, 99, 235, 0.35), transparent 28rem),
    linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.72) 52%, rgba(15, 23, 42, 0.18) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 15px;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.hero h1,
.page-hero h1,
.detail-hero h1 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 6vw, 4.65rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero p,
.page-hero p,
.detail-hero p {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 28px;
  color: var(--text-soft);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.46);
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(10px);
}

.primary-button,
.light-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  border: 0;
  padding: 13px 28px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.32);
  cursor: pointer;
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

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

.hero-dot {
  width: 18px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

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

.main-stack {
  display: grid;
  gap: 64px;
  padding-top: 54px;
  padding-bottom: 72px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 2px 0 0;
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(30, 41, 59, 0.88);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(6, 182, 212, 0.32);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  height: 252px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.large-card .poster-link {
  height: 330px;
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms ease;
}

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

.play-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 2rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 58%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.movie-card:hover .play-mask {
  opacity: 1;
}

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

.card-category {
  top: 12px;
  right: 12px;
  background: var(--blue);
}

.card-duration {
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.08rem;
  line-height: 1.34;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body h3 a:hover {
  color: #38bdf8;
}

.card-body p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.94rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  border-radius: 999px;
  padding: 4px 8px;
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.72);
  font-size: 0.78rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.category-section {
  padding: 32px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.86), rgba(51, 65, 85, 0.62));
}

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

.category-tile {
  position: relative;
  min-height: 158px;
  overflow: hidden;
  border-radius: 18px;
  background: #0f172a;
  isolation: isolate;
  transition: transform 220ms ease;
}

.category-tile:hover {
  transform: translateY(-4px) scale(1.02);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 520ms ease;
}

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

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.28));
}

.category-tile span {
  min-height: 158px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.category-tile strong {
  display: block;
  font-size: 1.18rem;
}

.category-tile small {
  color: var(--text-soft);
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.split-section > div,
.rank-list,
.compact-list,
.detail-main-card,
.detail-sidebar,
.search-panel,
.category-overview-card,
.ranking-row {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  background: rgba(30, 41, 59, 0.82);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.16);
}

.split-section > div {
  padding: 24px;
}

.rank-list,
.compact-list {
  overflow: hidden;
}

.rank-item,
.compact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
  transition: background 160ms ease;
}

.rank-item:last-child,
.compact-card:last-child {
  border-bottom: 0;
}

.rank-item:hover,
.compact-card:hover {
  background: rgba(51, 65, 85, 0.78);
}

.rank-number {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.rank-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: #facc15;
  font-weight: 900;
}

.compact-card img {
  width: 78px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 10px;
  background: #0f172a;
}

.compact-card strong {
  display: block;
  line-height: 1.35;
}

.compact-card small {
  color: var(--muted);
}

.cta-panel {
  padding: 44px;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(90deg, #1e3a8a, #155e75);
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.045em;
}

.cta-panel p {
  max-width: 760px;
  margin: 0 auto 26px;
  color: #dbeafe;
}

.cta-panel div {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.light-button {
  padding: 12px 24px;
  color: #1e3a8a;
  background: #ffffff;
}

.ghost-button {
  padding: 12px 24px;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.page-hero,
.detail-hero {
  position: relative;
  min-height: 315px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.blue-hero {
  background: linear-gradient(90deg, #1e3a8a, #155e75);
}

.image-hero {
  min-height: 410px;
  background: #020617;
}

.image-hero > img,
.detail-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero-overlay,
.detail-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #0f172a 0%, rgba(15, 23, 42, 0.72) 55%, rgba(15, 23, 42, 0.25) 100%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #dbeafe;
  font-size: 0.95rem;
}

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(51, 65, 85, 0.82);
  color: var(--text-soft);
}

.filter-pill:hover,
.filter-pill.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.local-filter-panel {
  display: grid;
  gap: 8px;
}

.local-filter-panel label {
  color: var(--text-soft);
}

.local-filter-input {
  padding: 13px 16px;
  border-radius: 16px;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 52px;
  padding-bottom: 72px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 20px;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  overflow: hidden;
  min-height: 160px;
  border-radius: 16px;
}

.category-cover-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0f172a;
}

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

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--text-soft);
}

.overview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
}

.overview-meta span {
  border-radius: 999px;
  padding: 4px 10px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.18);
}

.text-link {
  color: #38bdf8;
}

.detail-hero {
  min-height: 500px;
}

.detail-hero-content {
  padding-top: 72px;
  padding-bottom: 72px;
}

.detail-container {
  padding-top: 34px;
  padding-bottom: 72px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), rgba(0, 0, 0, 0.72));
  cursor: pointer;
}

.player-start span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.4);
}

.player-start strong {
  font-size: 1.25rem;
}

.player-start small {
  color: var(--text-soft);
}

.player-shell.is-playing .player-start {
  display: none;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 12px;
  right: 18px;
  margin: 0;
  color: #fef3c7;
  font-size: 0.9rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 26px;
  margin-top: 32px;
  margin-bottom: 54px;
}

.detail-main-card,
.detail-sidebar {
  padding: 26px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.detail-meta-grid span {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.52);
  color: var(--text-soft);
}

.detail-meta-grid strong {
  color: #ffffff;
  font-size: 0.85rem;
}

.detail-main-card h2,
.detail-sidebar h2 {
  margin: 0 0 12px;
}

.detail-main-card section {
  margin-bottom: 30px;
}

.detail-main-card p {
  margin: 0;
  color: var(--text-soft);
  white-space: pre-line;
}

.full-tags span {
  font-size: 0.92rem;
}

.detail-sidebar {
  align-self: start;
  position: sticky;
  top: 104px;
}

.search-workbench {
  padding-top: 44px;
  padding-bottom: 72px;
}

.search-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 20px;
  margin-bottom: 22px;
}

.search-panel label {
  display: grid;
  gap: 7px;
  color: var(--text-soft);
}

.search-panel input,
.search-panel select {
  padding: 12px 14px;
  border-radius: 14px;
}

.search-summary {
  margin-bottom: 18px;
  color: var(--text-soft);
}

.ranking-list-page {
  display: grid;
  gap: 16px;
  padding-top: 44px;
  padding-bottom: 72px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 96px 52px minmax(0, 1fr) 70px;
  align-items: center;
  gap: 18px;
  padding: 16px;
}

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

.ranking-content h2 {
  margin: 0 0 6px;
  font-size: 1.12rem;
}

.ranking-content p {
  margin: 0 0 9px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-score {
  text-align: center;
  color: #facc15;
  font-size: 1.25rem;
  font-weight: 900;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 26px;
  padding-top: 44px;
  padding-bottom: 32px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 28px;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

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

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

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

  .detail-layout,
  .split-section,
  .footer-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
  }

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

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

  .hero {
    height: 580px;
  }

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

  .hero-control {
    width: 40px;
    height: 40px;
  }

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

  .poster-link,
  .large-card .poster-link {
    height: 220px;
  }

  .category-section,
  .cta-panel,
  .split-section > div,
  .detail-main-card,
  .detail-sidebar {
    padding: 18px;
  }

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

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

  .search-panel,
  .ranking-row {
    grid-template-columns: 1fr;
  }

  .ranking-poster img {
    width: 100%;
    height: 190px;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .large-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .poster-link,
  .large-card .poster-link {
    height: 260px;
  }

  .hero-dots {
    bottom: 18px;
  }
}
