:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.82);
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --teal: #0f766e;
  --teal-2: #0891b2;
  --blue: #2563eb;
  --emerald: #059669;
  --rose: #e11d48;
  --violet: #7c3aed;
  --amber: #d97706;
  --orange: #ea580c;
  --slate: #334155;
  --shadow: 0 14px 35px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.22);
  --radius: 24px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 48%, #ecfeff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #0891b2);
  box-shadow: 0 12px 26px rgba(20, 184, 166, 0.32);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(90deg, #0f766e, #0891b2);
  -webkit-background-clip: text;
  color: transparent;
}

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #475569;
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--teal);
  background: #ecfeff;
}

.top-search,
.mobile-search,
.hero-search,
.filter-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search {
  width: 280px;
}

.top-search input,
.mobile-search input,
.hero-search input,
.filter-box input,
.filter-box select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  padding: 0 14px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  transition: 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-box input:focus,
.filter-box select:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.top-search button,
.mobile-search button,
.hero-search button,
.filter-box button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, #0f766e, #0891b2);
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.22);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
}

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

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

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

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mobile-panel nav a {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

main {
  min-height: 60vh;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e 0%, #0891b2 48%, #1d4ed8 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.24;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.45) 0 2px, transparent 3px), radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.32) 0 2px, transparent 3px);
  background-size: 56px 56px, 90px 90px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(10px) saturate(1.15);
  opacity: 0.22;
  transform: scale(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.92), rgba(8, 145, 178, 0.72), rgba(30, 64, 175, 0.84));
}

.hero-content {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 56px;
  padding: 72px 0 112px;
}

.hero-label,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  color: #ccfbf1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 22px 0 18px;
  max-width: 860px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-summary {
  max-width: 760px;
  margin: 0;
  color: #ecfeff;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.7;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag {
  color: #0f766e;
  background: #ecfeff;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  transition: 0.2s ease;
}

.primary-btn {
  color: var(--teal);
  background: #ffffff;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.2);
}

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

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.primary-btn.full {
  width: 100%;
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  display: block;
  aspect-ratio: 3 / 4;
}

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 10px 14px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.hero-tools {
  position: absolute;
  left: 50%;
  bottom: 32px;
  width: min(1240px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transform: translateX(-50%);
}

.hero-dots {
  display: flex;
  gap: 10px;
}

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

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

.hero-search {
  width: min(520px, 100%);
  padding: 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.quick-stats {
  width: min(1240px, calc(100% - 32px));
  margin: -40px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.quick-stats div {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.quick-stats strong {
  display: block;
  font-size: 28px;
  color: var(--teal);
}

.quick-stats span {
  color: var(--muted);
  font-weight: 700;
}

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

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

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-kicker {
  color: var(--teal);
  background: #ecfeff;
  border-color: #99f6e4;
}

.section-more {
  flex: 0 0 auto;
  color: var(--teal);
  font-weight: 900;
}

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

.category-card {
  position: relative;
  min-height: 250px;
  padding: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: 0.24s ease;
}

.category-card:hover,
.movie-card:hover,
.compact-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.category-card strong,
.category-card em,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.category-card em {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--teal);
  font-style: normal;
  font-weight: 900;
}

.category-card p {
  width: 72%;
  color: var(--muted);
  line-height: 1.7;
}

.category-card img {
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 150px;
  height: 206px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.22);
  transform: rotate(7deg);
}

.category-glow {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.accent-teal .category-glow,
.accent-teal.sub-hero {
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
}

.accent-blue .category-glow,
.accent-blue.sub-hero {
  background: linear-gradient(135deg, var(--blue), var(--teal-2));
}

.accent-emerald .category-glow,
.accent-emerald.sub-hero {
  background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.accent-rose .category-glow,
.accent-rose.sub-hero {
  background: linear-gradient(135deg, var(--rose), #fb7185);
}

.accent-violet .category-glow,
.accent-violet.sub-hero {
  background: linear-gradient(135deg, var(--violet), #06b6d4);
}

.accent-amber .category-glow,
.accent-amber.sub-hero {
  background: linear-gradient(135deg, var(--amber), #f97316);
}

.accent-orange .category-glow,
.accent-orange.sub-hero {
  background: linear-gradient(135deg, var(--orange), #f59e0b);
}

.accent-slate .category-glow,
.accent-slate.sub-hero {
  background: linear-gradient(135deg, var(--slate), #0f172a);
}

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

.filter-box {
  flex-wrap: wrap;
  margin: 0 0 24px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.filter-box.wide input {
  min-width: min(360px, 100%);
  flex: 1 1 300px;
}

.filter-box select {
  width: auto;
  min-width: 140px;
}

.filter-box span {
  margin-left: auto;
  color: var(--teal);
  font-weight: 900;
}

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

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

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

.movie-card {
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: 0.22s ease;
}

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

.movie-link {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #ccfbf1);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.35s ease;
}

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

.poster-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  align-content: center;
  color: #ffffff;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  transition: 0.24s ease;
}

.movie-card:hover .poster-overlay {
  opacity: 1;
}

.play-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  color: var(--teal);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  border-radius: 999px;
  padding: 7px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 12px 22px rgba(239, 68, 68, 0.22);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.36;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  margin: 7px 0 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.movie-line {
  margin: 0 0 12px;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ranking-panel {
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.sticky-panel {
  position: sticky;
  top: 96px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-title span {
  font-size: 22px;
  font-weight: 900;
}

.panel-title a {
  color: var(--teal);
  font-weight: 900;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #f8fafc;
  transition: 0.2s ease;
}

.compact-card img {
  width: 72px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  background: #e2e8f0;
}

.compact-body {
  min-width: 0;
  display: grid;
  align-content: center;
}

.compact-body strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-body em {
  margin: 4px 0;
  color: var(--teal);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.compact-body span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.small-rank {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  margin-right: 6px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--teal);
  font-size: 12px;
}

.type-wall {
  padding-top: 24px;
}

.type-wall h2 {
  margin: 0 0 18px;
  font-size: 32px;
}

.type-wall div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.type-wall a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 18px;
  color: #0f766e;
  background: #ffffff;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.type-wall a span {
  color: #64748b;
}

.sub-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 16px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(135deg, #0f766e, #0891b2, #2563eb);
}

.sub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 20% 20%, #fff 0 2px, transparent 3px), radial-gradient(circle at 80% 40%, #fff 0 2px, transparent 3px);
  background-size: 70px 70px;
}

.sub-hero span,
.sub-hero h1,
.sub-hero p {
  position: relative;
}

.sub-hero span {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sub-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
}

.sub-hero p {
  max-width: 820px;
  margin: 0 auto;
  color: #ecfeff;
  font-size: 18px;
  line-height: 1.8;
}

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

.category-overview-card {
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: 0.22s ease;
}

.category-overview-link {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.category-preview-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-preview-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
  background: #e2e8f0;
}

.category-overview-card span {
  color: var(--teal);
  font-weight: 900;
}

.category-overview-card h2 {
  margin: 8px 0 10px;
  font-size: 30px;
}

.category-overview-card p {
  color: var(--muted);
  line-height: 1.8;
}

.category-overview-card strong {
  display: inline-flex;
  margin-top: 18px;
  color: var(--teal);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--teal);
}

.breadcrumb.light {
  color: rgba(255, 255, 255, 0.72);
}

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

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(12px) saturate(1.12);
  opacity: 0.28;
  transform: scale(1.06);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 118, 110, 0.74), rgba(8, 145, 178, 0.6));
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 58px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster-card {
  padding: 12px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(14px);
}

.detail-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  object-fit: cover;
  background: #e2e8f0;
  margin-bottom: 14px;
}

.detail-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 880px;
  margin: 0 0 24px;
  color: #ecfeff;
  font-size: 20px;
  line-height: 1.75;
}

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

.detail-meta div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-meta dt {
  color: #bae6fd;
  font-size: 12px;
  font-weight: 900;
}

.detail-meta dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.detail-tags .tag {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-main {
  display: grid;
  gap: 28px;
}

.player-card,
.content-card,
.prose-card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px solid #e2e8f0;
}

.player-heading span {
  color: var(--teal);
  font-weight: 900;
}

.player-heading h2 {
  margin: 5px 0 0;
  font-size: 24px;
}

.player-heading em {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

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

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

.video-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(15, 118, 110, 0.58));
  transition: 0.2s ease;
}

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

.video-start span {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  background: rgba(255, 255, 255, 0.92);
  font-size: 28px;
}

.video-start strong {
  font-size: 28px;
}

.video-start em {
  color: #ccfbf1;
  font-style: normal;
}

.player-state {
  margin: 0;
  padding: 16px 22px;
  color: var(--muted);
  border-top: 1px solid #e2e8f0;
}

.content-card,
.prose-card {
  padding: 30px;
}

.content-card h2,
.prose-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.content-card h2:not(:first-child),
.prose-card h2:not(:first-child) {
  margin-top: 28px;
}

.content-card p,
.prose-card p {
  color: #334155;
  line-height: 2;
  font-size: 16px;
}

.related-section {
  display: grid;
  gap: 20px;
}

.search-layout {
  min-height: 480px;
}

.search-page-form {
  margin-bottom: 18px;
}

.search-summary {
  margin: 0 0 20px;
  color: var(--muted);
  font-weight: 800;
}

.no-results {
  grid-column: 1 / -1;
  padding: 42px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

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

.footer-brand {
  margin-bottom: 14px;
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
}

.footer-brand strong {
  color: #ffffff;
  font-size: 20px;
}

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

.site-footer p,
.site-footer li {
  color: #94a3b8;
  line-height: 1.8;
}

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

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

.footer-stat {
  color: #67e8f9 !important;
  font-weight: 800;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 18px;
  text-align: center;
  color: #94a3b8;
}

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

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

  .split-section {
    grid-template-columns: 1fr;
  }

  .sticky-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .header-inner {
    height: 66px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 46px;
    text-align: left;
  }

  .hero-poster {
    width: min(280px, 72vw);
    transform: none;
  }

  .hero-tools {
    flex-direction: column;
    align-items: stretch;
  }

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

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

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

  .category-preview-stack {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  .detail-poster-card {
    width: min(320px, 100%);
  }
}

@media (max-width: 620px) {
  .brand,
  .footer-brand {
    min-width: 0;
  }

  .brand-text small {
    display: none;
  }

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

  .hero {
    min-height: 820px;
  }

  .hero-copy h1,
  .detail-copy h1 {
    letter-spacing: -0.03em;
  }

  .hero-actions,
  .hero-search,
  .filter-box {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-stats,
  .movie-grid,
  .movie-grid.large,
  .movie-grid.related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 12px;
  }

  .category-preview-stack {
    grid-template-columns: repeat(2, 1fr);
  }

  .compact-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .compact-card img {
    width: 64px;
    height: 88px;
  }

  .content-card,
  .prose-card {
    padding: 22px;
  }
}

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

  .quick-stats {
    grid-template-columns: 1fr;
  }
}
