:root {
  color-scheme: dark;
  --bg-deep: #020617;
  --bg-main: #0f172a;
  --bg-card: #111827;
  --bg-soft: rgba(30, 41, 59, 0.72);
  --line: rgba(59, 130, 246, 0.28);
  --line-strong: rgba(6, 182, 212, 0.46);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --amber: #f59e0b;
  --danger: #fb7185;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.25), transparent 34rem),
    radial-gradient(circle at 88% 8%, rgba(6, 182, 212, 0.18), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.96), rgba(15, 23, 42, 0.98));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.nav-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, #60a5fa, #06b6d4);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
  transition: transform 0.2s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text,
.footer-brand span:last-child {
  font-size: 1.25rem;
  background: linear-gradient(90deg, #60a5fa, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links > a,
.nav-dropdown > button {
  color: #cbd5e1;
  border: 0;
  background: transparent;
  padding: 10px 0;
  transition: color 0.2s ease;
}

.nav-links > a:hover,
.nav-dropdown > button:hover,
.dropdown-menu a:hover,
.mobile-menu a:hover {
  color: var(--cyan);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

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

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #cbd5e1;
}

.dropdown-menu a:hover {
  background: rgba(30, 64, 175, 0.38);
}

.nav-search,
.mobile-search,
.large-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.large-search input,
.toolbar input,
.toolbar select {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.68);
  color: #e2e8f0;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
  width: 230px;
  padding: 10px 14px;
}

.mobile-search input,
.large-search input,
.toolbar input,
.toolbar select {
  padding: 12px 14px;
}

.nav-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.toolbar input:focus,
.toolbar select:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16);
  background: rgba(15, 23, 42, 0.92);
}

.nav-search button,
.mobile-search button,
.large-search button,
.primary-button {
  border: 0;
  border-radius: 999px;
  color: white;
  font-weight: 700;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-search button,
.mobile-search button {
  padding: 10px 16px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
}

.primary-button:hover,
.nav-search button:hover,
.mobile-search button:hover,
.large-search button:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.08);
  box-shadow: 0 18px 38px rgba(6, 182, 212, 0.28);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
  border-color: rgba(34, 211, 238, 0.72);
  background: rgba(15, 23, 42, 0.82);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 0;
  color: white;
  font-size: 1.6rem;
  background: transparent;
}

.mobile-menu {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-menu.is-open {
  display: grid;
  gap: 12px;
}

.mobile-menu a {
  color: #cbd5e1;
}

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

.home-page,
.page-shell {
  min-height: 70vh;
}

.hero-slider {
  position: relative;
  height: min(72vh, 640px);
  min-height: 500px;
  overflow: hidden;
  background: #020617;
}

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

.hero-slide {
  opacity: 0;
  z-index: 0;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.58) 45%, rgba(2, 6, 23, 0.16) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.35) 46%, rgba(2, 6, 23, 0.06) 100%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1280px) / 2 + 24px));
  bottom: 76px;
  z-index: 2;
  width: min(720px, calc(100% - 48px));
}

.hero-kicker,
.section-heading span,
.page-hero > span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  color: white;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
}

.hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 20px;
  color: #d1d5db;
  font-size: clamp(1rem, 1.8vw, 1.24rem);
  line-height: 1.75;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.52);
}

.hero-tags span {
  padding: 6px 12px;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: white;
  font-size: 2.2rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--cyan);
}

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

.section-shell {
  padding: 56px 0;
}

.flush-section {
  padding-top: 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

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

.section-heading.with-link a {
  color: var(--cyan);
  font-weight: 700;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: auto -30px -50px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.category-icon {
  display: block;
  margin-bottom: 18px;
  font-size: 2.1rem;
}

.category-tile h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.category-samples {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.category-samples a {
  max-width: 100%;
  padding: 4px 9px;
  overflow: hidden;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(2, 6, 23, 0.28);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grad-red { background: linear-gradient(135deg, #ef4444, #be123c); }
.grad-cyan { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.grad-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.grad-purple { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.grad-pink { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.grad-amber { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.grad-orange { background: linear-gradient(135deg, #f97316, #dc2626); }
.grad-emerald { background: linear-gradient(135deg, #10b981, #059669); }
.grad-indigo { background: linear-gradient(135deg, #6366f1, #2563eb); }
.grad-slate { background: linear-gradient(135deg, #475569, #0f172a); }

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.98));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.32);
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(30, 64, 175, 0.35), rgba(6, 182, 212, 0.18)),
    #0f172a;
}

.poster-frame img,
.side-link img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-frame img {
  transition: transform 0.28s ease, opacity 0.2s ease;
}

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

img.image-missing {
  opacity: 0;
}

.type-pill,
.year-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.64);
  backdrop-filter: blur(8px);
}

.type-pill {
  left: 12px;
  top: 12px;
}

.year-pill {
  right: 12px;
  top: 12px;
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: rgba(6, 182, 212, 0.86);
  box-shadow: 0 18px 38px rgba(6, 182, 212, 0.32);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-float {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  margin: 0 0 10px;
  color: white;
  font-size: 1.08rem;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-info h3 {
  color: var(--cyan);
}

.movie-info p {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-2);
  font-size: 0.88rem;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 9px;
  color: #bae6fd;
  font-size: 0.78rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.ranking-panel,
.sidebar-card,
.detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.98));
  box-shadow: var(--shadow);
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.compact-heading h2 {
  font-size: 1.6rem;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.48);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: rgba(30, 64, 175, 0.32);
  transform: translateX(3px);
}

.rank-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.rank-title {
  overflow: hidden;
  color: #e2e8f0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--amber);
  font-weight: 800;
}

.page-shell {
  padding: 38px 0 64px;
}

.page-hero {
  position: relative;
  margin-bottom: 34px;
  padding: clamp(32px, 7vw, 72px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 12%, rgba(34, 211, 238, 0.2), transparent 24rem),
    linear-gradient(135deg, rgba(30, 64, 175, 0.4), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 720px;
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.75;
}

.category-hero,
.ranking-hero,
.search-hero {
  background-blend-mode: overlay;
}

.narrow-actions {
  margin-top: 22px;
}

.overview-grid {
  margin-bottom: 56px;
}

.content-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.64);
}

.toolbar input {
  width: min(460px, 100%);
}

.toolbar select {
  min-width: 160px;
}

.empty-state {
  display: none;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  color: var(--muted);
  text-align: center;
  background: rgba(15, 23, 42, 0.65);
}

.empty-state.is-visible {
  display: block;
}

.sidebar-card {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.sidebar-card h2 {
  margin: 0 0 18px;
  font-size: 1.25rem;
}

.side-list {
  display: grid;
  gap: 14px;
}

.side-link {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-link img {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: #0f172a;
}

.side-link strong,
.side-link em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-link strong {
  color: #e2e8f0;
  line-height: 1.4;
}

.side-link:hover strong {
  color: var(--cyan);
}

.side-link em {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 0.82rem;
  font-style: normal;
  white-space: nowrap;
}

.large-search {
  width: min(660px, 100%);
  margin-top: 24px;
}

.large-search input {
  flex: 1;
  min-height: 52px;
}

.large-search button {
  min-height: 52px;
  padding: 0 26px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
}

.breadcrumb a {
  color: #bae6fd;
}

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

.detail-main {
  min-width: 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: #020617;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.18)),
    radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 36%);
}

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

.big-play {
  position: relative;
  z-index: 3;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 2.1rem;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 0 0 12px rgba(6, 182, 212, 0.16), 0 24px 48px rgba(6, 182, 212, 0.28);
  transition: transform 0.2s ease;
}

.player-cover:hover .big-play {
  transform: scale(1.06);
}

.detail-card {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 34px);
}

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.detail-title-row h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.16;
}

.detail-meta span {
  padding: 5px 11px;
  font-size: 0.86rem;
}

.category-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
}

.detail-card section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.detail-card section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.detail-card h2 {
  margin: 0 0 12px;
  font-size: 1.28rem;
}

.detail-card p {
  margin: 0 0 14px;
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.9;
}

.review-box {
  padding: 18px;
  border-radius: 18px;
  color: #cbd5e1;
  line-height: 1.9;
  background: rgba(15, 23, 42, 0.76);
}

.detail-tag-row span {
  padding: 6px 12px;
}

.site-footer {
  margin-top: 50px;
  padding: 54px 0 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), #020617);
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 34px;
}

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

.footer-grid p {
  margin: 14px 0 0;
  line-height: 1.7;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 9px;
}

.footer-grid a:hover {
  color: var(--cyan);
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--muted-2);
  text-align: center;
}

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

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

  .ranking-panel,
  .sidebar-card {
    position: static;
  }
}

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

  .nav-toggle {
    display: inline-flex;
  }

  .hero-slider {
    min-height: 560px;
  }

  .hero-content {
    bottom: 88px;
  }

  .hero-arrow {
    top: auto;
    bottom: 22px;
    transform: none;
  }

  .hero-prev {
    left: 24px;
  }

  .hero-next {
    right: 24px;
  }

  .hero-arrow:hover {
    transform: scale(1.05);
  }

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

  .toolbar,
  .detail-title-row,
  .section-heading.with-link {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar input,
  .toolbar select {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .nav-inner,
  .mobile-menu,
  .section-shell,
  .page-shell,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1280px);
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .hero-content h1 {
    font-size: 2.15rem;
  }

  .hero-content p {
    font-size: 0.98rem;
  }

  .category-grid,
  .movie-grid,
  .small-grid {
    grid-template-columns: 1fr;
  }

  .side-link {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .page-hero {
    padding: 28px 20px;
  }

  .large-search,
  .mobile-search {
    align-items: stretch;
    flex-direction: column;
  }
}
