:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: #111827;
  --bg-elevated: #1e293b;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-soft: #cbd5e1;
  --line: rgba(148, 163, 184, 0.18);
  --amber: #f59e0b;
  --amber-2: #f97316;
  --blue: #38bdf8;
  --purple: #a855f7;
  --pink: #ec4899;
  --green: #10b981;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 20%, rgba(56, 189, 248, 0.12), transparent 26rem),
    linear-gradient(180deg, #0f172a 0%, #020617 48%, #000 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 80%);
  z-index: -1;
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #172033, #0f172a);
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.nav-shell {
  width: min(var(--container), calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #fff;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #fde68a, #fb923c);
  -webkit-background-clip: text;
  color: transparent;
}

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

.brand.mini .brand-icon {
  width: 34px;
  height: 34px;
}

.brand.mini .brand-copy strong {
  font-size: 16px;
}

.desktop-nav {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.nav-link,
.mobile-link {
  color: var(--text-soft);
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: rgba(245, 158, 11, 0.16);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 290px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.45);
}

.nav-search input,
.mobile-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.nav-search input::placeholder,
.mobile-search input::placeholder,
.hero-search input::placeholder,
.filter-panel input::placeholder {
  color: #64748b;
}

.nav-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.12);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.mobile-panel {
  display: none;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.78);
}

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

.mobile-panel nav {
  display: grid;
  gap: 6px;
}

.mobile-link {
  padding: 12px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #020617;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.68) 42%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, #020617 0%, transparent 38%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  padding-top: 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hero-label,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: 999px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.hero-content h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero-content p {
  max-width: 720px;
  margin: 24px 0 0;
  color: #dbeafe;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
}

.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-meta span,
.detail-meta span,
.card-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 13px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.28);
}

.btn.ghost {
  color: #fff;
  background: rgba(15, 23, 42, 0.58);
  border-color: rgba(148, 163, 184, 0.24);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translateY(-2px);
}

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

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

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

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

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 64px;
  z-index: 4;
  width: min(680px, calc(100% - 40px));
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.hero-search input {
  padding: 0 12px;
}

.content-section,
.page-shell,
.detail-shell,
.cta-panel {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.content-section {
  padding: 58px 0;
}

.muted-section {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - var(--container)) / 2));
  padding-right: max(16px, calc((100% - var(--container)) / 2));
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.52), rgba(15, 23, 42, 0.35));
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--text-muted);
}

.section-link {
  color: #fbbf24;
  font-weight: 800;
}

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

.movie-grid.wide,
.category-page-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.44);
  background: rgba(30, 41, 59, 0.88);
  box-shadow: 0 22px 50px rgba(245, 158, 11, 0.14);
}

.card-poster {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

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

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.72));
  opacity: 0.82;
}

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

.card-category {
  left: 10px;
  top: 10px;
  padding: 5px 8px;
  background: rgba(245, 158, 11, 0.92);
}

.card-duration {
  right: 10px;
  top: 10px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
  left: 10px;
  bottom: 10px;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
}

.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: #fff;
  background: rgba(245, 158, 11, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 15px;
}

.card-body h3 {
  min-height: 2.8em;
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  margin-bottom: 10px;
}

.card-tags span {
  padding: 4px 7px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
  font-size: 12px;
}

.card-meta {
  gap: 6px;
  font-size: 12px;
}

.card-horizontal {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.card-horizontal .card-poster {
  height: 100%;
  min-height: 190px;
  aspect-ratio: auto;
}

.card-horizontal .card-body h3 {
  font-size: 18px;
}

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

.category-tile {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #111827;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(245, 158, 11, 0.45);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.44;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.tile-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.92) 78%);
}

.category-tile strong,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 22px;
}

.category-tile small {
  margin-top: 6px;
  color: #cbd5e1;
}

.rank-home {
  padding-top: 24px;
}

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

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

.compact-rank {
  display: grid;
  grid-template-columns: 46px 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.compact-rank:hover {
  transform: translateX(4px);
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(30, 41, 59, 0.88);
}

.compact-index {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
}

.compact-rank img {
  width: 96px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compact-copy strong {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.cta-panel {
  margin-top: 30px;
  margin-bottom: 70px;
  padding: 44px;
  text-align: center;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.18), transparent 26rem),
    linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(2, 6, 23, 0.88));
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: -0.05em;
}

.cta-panel p {
  max-width: 760px;
  margin: 14px auto 26px;
  color: var(--text-muted);
  line-height: 1.8;
}

.page-shell,
.detail-shell {
  padding: 34px 0 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
}

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

.page-hero {
  margin-bottom: 28px;
  padding: 44px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 20%, rgba(245, 158, 11, 0.18), transparent 24rem),
    radial-gradient(circle at 90% 10%, rgba(56, 189, 248, 0.13), transparent 22rem),
    rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.page-hero.compact {
  padding: 34px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.75;
}

.category-overview-list {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
}

.overview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.overview-head h2 {
  margin: 0;
  font-size: 30px;
}

.overview-head p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.62);
}

.filter-panel select {
  color: #fff;
}

.filter-panel option {
  color: #0f172a;
}

.filter-count {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
}

.filter-count strong {
  margin-right: 4px;
  font-size: 20px;
}

.empty-state,
.search-summary {
  padding: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.5);
}

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

.search-summary {
  margin-bottom: 18px;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.rank-main,
.rank-side section,
.sidebar-card,
.content-panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.rank-main,
.rank-side section {
  padding: 22px;
}

.rank-side {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 96px;
}

.rank-list.slim {
  gap: 10px;
}

.rank-list.slim .compact-rank {
  grid-template-columns: 36px 70px 1fr;
  padding: 9px;
}

.rank-list.slim .compact-index {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 13px;
}

.rank-list.slim .compact-rank img {
  width: 70px;
  height: 48px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 30px;
  align-items: end;
  margin-bottom: 28px;
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 0% 20%, rgba(245, 158, 11, 0.16), transparent 24rem),
    rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.detail-poster {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  background: #0f172a;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-lead {
  max-width: 820px;
  margin: 18px 0;
  color: #dbeafe;
  font-size: 19px;
  line-height: 1.8;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 26px;
}

.detail-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.12);
}

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

.watch-main {
  display: grid;
  gap: 18px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 24px;
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.44);
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.34);
  font-size: 28px;
}

.player-overlay strong {
  font-size: 20px;
}

.player-card.is-playing .player-overlay,
.player-card.is-ready .player-overlay:hover {
  opacity: 0;
  visibility: hidden;
}

.player-status {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 3;
  margin: 0;
  padding: 7px 10px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.72);
  font-size: 13px;
}

.content-panel {
  padding: 24px;
}

.content-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-panel p {
  margin: 0;
  color: #dbeafe;
  line-height: 1.95;
  font-size: 16px;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.info-list dt {
  color: var(--text-muted);
}

.info-list dd {
  margin: 0;
  color: #fff;
}

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

.detail-sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-card {
  padding: 18px;
}

.sidebar-card h2 {
  margin: 0 0 16px;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.35), #000);
}

.footer-shell {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 36px;
}

.footer-brand p {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col h3 {
  margin: 0 0 8px;
  color: #fff;
}

.footer-col a {
  color: var(--text-muted);
}

.footer-col a:hover {
  color: #fbbf24;
}

.footer-bottom {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #64748b;
  font-size: 13px;
}

.accent-amber { --accent: var(--amber); }
.accent-cyan { --accent: var(--blue); }
.accent-purple { --accent: var(--purple); }
.accent-orange { --accent: var(--amber-2); }
.accent-blue { --accent: #60a5fa; }
.accent-pink { --accent: var(--pink); }
.accent-violet { --accent: #8b5cf6; }
.accent-emerald { --accent: var(--green); }

.accent-amber,
.accent-cyan,
.accent-purple,
.accent-orange,
.accent-blue,
.accent-pink,
.accent-violet,
.accent-emerald {
  border-color: color-mix(in srgb, var(--accent) 40%, rgba(148, 163, 184, 0.16));
}

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

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

  .horizontal-grid,
  .rank-layout,
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .rank-side,
  .detail-sidebar {
    position: static;
  }

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

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

  .mobile-toggle {
    display: block;
  }

  .hero-carousel {
    min-height: 700px;
  }

  .hero-content {
    padding-top: 80px;
    justify-content: flex-start;
  }

  .hero-search {
    bottom: 52px;
  }

  .hero-arrow {
    display: none;
  }

  .section-heading,
  .overview-head,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .horizontal-grid,
  .category-grid,
  .rank-list.two-columns,
  .footer-shell,
  .filter-panel,
  .search-panel,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .nav-shell {
    height: 64px;
  }

  .brand-copy small {
    display: none;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-search {
    flex-direction: column;
  }

  .content-section {
    padding: 40px 0;
  }

  .movie-grid,
  .movie-grid.wide,
  .category-page-grid,
  .mini-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .page-hero,
  .cta-panel,
  .detail-hero,
  .content-panel {
    padding: 22px;
  }

  .compact-rank {
    grid-template-columns: 38px 72px 1fr;
  }

  .compact-rank img {
    width: 72px;
    height: 50px;
  }
}
