:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --cyan: #06b6d4;
  --text: #111827;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 38%, #f8fafc 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(16px);
}

.site-nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.25);
  font-size: 14px;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex: 1;
}

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

.nav-links a {
  padding: 9px 12px;
  border-radius: 12px;
  color: #374151;
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--blue);
  background: #eff6ff;
  transform: translateY(-1px);
}

.nav-search,
.hero-search,
.page-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.nav-search input,
.hero-search input,
.page-search input {
  width: 230px;
  border: 0;
  outline: none;
  padding: 11px 16px;
  color: #111827;
  background: transparent;
}

.nav-search button,
.hero-search button,
.page-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  padding: 11px 18px;
  font-weight: 750;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #374151;
  background: #f3f4f6;
  font-size: 22px;
}

.hero {
  position: relative;
  height: 640px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(37, 99, 235, 0.58), rgba(6, 182, 212, 0.24)), linear-gradient(0deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.04));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(690px, 100%);
  padding-top: 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #facc15;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
}

.hero p {
  max-width: 620px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

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

.hero-tags span {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

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

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

.btn-primary {
  color: var(--blue);
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(255, 255, 255, 0.24);
}

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

.btn-ghost {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

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

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 6;
  width: min(720px, calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-search input {
  flex: 1;
  width: auto;
  padding: 16px 22px;
}

.hero-search button {
  padding: 16px 28px;
}

.section {
  padding: 78px 0;
}

.gray-section {
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
}

.section-head {
  margin-bottom: 32px;
}

.center-head {
  text-align: center;
}

.center-head p {
  margin-left: auto;
  margin-right: auto;
}

.split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

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

.section-head p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transform: translateZ(0);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.82));
}

.category-tile strong,
.category-tile em,
.tile-count {
  position: absolute;
  left: 20px;
  right: 20px;
  color: #ffffff;
}

.category-tile strong {
  bottom: 54px;
  font-size: 24px;
}

.category-tile em {
  bottom: 22px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
}

.tile-count {
  top: 18px;
  left: auto;
  right: 18px;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.26);
  box-shadow: var(--shadow);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

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

.movie-card:hover .card-cover img {
  transform: scale(1.1);
}

.card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.72));
}

.card-badge,
.card-duration,
.rank-chip {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  background: rgba(37, 99, 235, 0.88);
}

.card-duration {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(15, 23, 42, 0.78);
}

.rank-chip {
  right: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 18px rgba(239, 68, 68, 0.35);
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  backdrop-filter: blur(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--blue);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 13px;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
  color: #cbd5e1;
}

.card-tags span,
.detail-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 650;
}

.card-category {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.row-list {
  display: grid;
  gap: 16px;
}

.movie-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.row-cover {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  background: #0f172a;
}

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

.movie-row:hover .row-cover img {
  transform: scale(1.08);
}

.row-cover span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.22);
  font-size: 28px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-row:hover .row-cover span {
  opacity: 1;
}

.row-body {
  padding: 16px 18px 16px 0;
}

.row-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.row-rank {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-size: 13px;
  font-weight: 900;
}

.row-heading h2 {
  margin: 0;
  font-size: 20px;
}

.row-heading h2 a:hover {
  color: var(--blue);
}

.row-body p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.row-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
}

.category-strip {
  background: linear-gradient(90deg, #f8fafc, #eff6ff);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.page-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.38));
}

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

.page-hero h1 {
  max-width: 880px;
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

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

.detail-breadcrumb {
  margin: 28px 0;
  color: #64748b;
}

.detail-breadcrumb a:hover {
  color: var(--blue);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 160px 180px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select,
.page-search input {
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  padding: 12px 14px;
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus,
.page-search input:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.empty-state {
  padding: 48px;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  color: #64748b;
  text-align: center;
  background: #ffffff;
}

.overview-stack {
  display: grid;
  gap: 42px;
}

.category-overview-block {
  padding: 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.detail-main {
  padding-bottom: 78px;
  background: #f8fafc;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(310px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.detail-primary,
.detail-aside {
  display: grid;
  gap: 22px;
}

.player-card,
.detail-card,
.poster-card,
.related-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.52));
}

.player-start span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.9);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.38);
  font-size: 34px;
}

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

.player-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.36);
}

.player-loading[hidden],
.player-message[hidden] {
  display: none;
}

.player-loading span {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}

.player-message {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  padding: 14px 18px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.82);
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.detail-card {
  padding: 28px;
}

.category-pill {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--blue);
  background: #eff6ff;
  font-weight: 800;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #64748b;
}

.detail-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

.detail-one-line {
  margin: 0 0 26px;
  padding: 18px;
  border-radius: 18px;
  color: #0f172a;
  background: linear-gradient(90deg, #eff6ff, #ecfeff);
  font-size: 18px;
  font-weight: 700;
}

.detail-card section {
  margin-top: 26px;
}

.detail-card h2,
.related-card h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 22px;
}

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

.poster-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.info-list {
  margin: 0;
  padding: 18px;
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #f1f5f9;
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-list strong {
  color: #64748b;
}

.info-list span {
  text-align: right;
  font-weight: 700;
}

.related-card {
  padding: 20px;
}

.compact-rows .movie-row {
  grid-template-columns: 116px 1fr;
  gap: 12px;
  border-radius: 16px;
  box-shadow: none;
}

.compact-rows .row-cover {
  min-height: 82px;
}

.compact-rows .row-body {
  padding: 10px 12px 10px 0;
}

.compact-rows .row-heading h2 {
  font-size: 15px;
}

.compact-rows .row-body p,
.compact-rows .row-link {
  display: none;
}

.compact-rows .row-meta {
  font-size: 12px;
}

.page-search {
  width: min(720px, 100%);
  margin-top: 28px;
}

.page-search input {
  flex: 1;
  width: auto;
  border: 0;
}

.search-result-head {
  margin-bottom: 24px;
}

.search-result-head h2 {
  margin: 0 0 6px;
  font-size: 30px;
}

.search-result-head p {
  margin: 0;
  color: #64748b;
}

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

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

.footer-logo {
  color: #ffffff;
}

.site-footer p {
  max-width: 440px;
  color: #94a3b8;
}

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

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

.site-footer li {
  margin-bottom: 9px;
}

.site-footer a:hover {
  color: #60a5fa;
}

.footer-columns {
  columns: 2;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.theme-blue {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.theme-slate {
  background: linear-gradient(135deg, #334155, #0f172a);
}

.theme-rose {
  background: linear-gradient(135deg, #e11d48, #fb7185);
}

.theme-orange {
  background: linear-gradient(135deg, #ea580c, #f59e0b);
}

.theme-yellow {
  background: linear-gradient(135deg, #ca8a04, #facc15);
}

.theme-violet {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.theme-emerald {
  background: linear-gradient(135deg, #059669, #10b981);
}

.theme-indigo {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
}

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

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

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

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-panel {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .nav-panel.is-open {
    display: flex;
  }

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

  .nav-search input {
    width: 100%;
  }

  .hero {
    height: 720px;
  }

  .hero-content {
    align-items: flex-start;
    padding-top: 86px;
  }

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

  .split-head {
    display: block;
  }

  .text-link {
    display: inline-flex;
    margin-top: 14px;
  }

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

  .movie-row {
    grid-template-columns: 150px 1fr;
  }

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

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

  .hero {
    height: 760px;
  }

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

  .hero h2 {
    font-size: 28px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-search {
    display: grid;
    border-radius: 22px;
  }

  .hero-search button {
    border-radius: 0;
  }

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

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

  .movie-row,
  .compact-rows .movie-row {
    grid-template-columns: 1fr;
  }

  .row-cover,
  .compact-rows .row-cover {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .row-body,
  .compact-rows .row-body {
    padding: 16px;
  }

  .detail-card,
  .related-card {
    padding: 18px;
  }

  .page-hero {
    padding: 58px 0;
  }
}
