:root {
  color-scheme: dark;
  --bg: #121212;
  --bg-2: #181818;
  --panel: rgba(27, 27, 27, 0.82);
  --panel-strong: rgba(33, 33, 33, 0.96);
  --line: rgba(255, 213, 0, 0.14);
  --text: #e8e8e8;
  --muted: #aaa79f;
  --soft: #ffe66a;
  --rose: #ffd500;
  --rose-2: #ffe66a;
  --violet: #ff9800;
  --gold: #ffd500;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% -10%, rgba(255, 213, 0, 0.18), transparent 32rem),
    radial-gradient(circle at 15% 8%, rgba(255, 152, 0, 0.13), transparent 26rem),
    linear-gradient(180deg, #120914 0%, #070508 42%, #06070a 100%);
  color: var(--text);
  font-family: "Tajawal", system-ui, -apple-system, Segoe UI, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.lazy-media {
  background: rgba(255,255,255,0.045);
}
button, input { font: inherit; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-shell { min-height: 100vh; padding-bottom: 24px; }
.cinema-main { width: min(1760px, calc(100% - 48px)); margin: 0 auto; }

.cinema-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  display: grid;
  grid-template-columns: 200px minmax(450px, 1fr) 260px;
  align-items: center;
  gap: 18px;
  padding: 6px 42px;
  background: rgba(13, 7, 14, 0.76);
  border-bottom: 1px solid rgba(255, 205, 224, 0.10);
  backdrop-filter: blur(22px);
}

.brand { justify-self: end; }
.brand img { object-fit: contain; filter: drop-shadow(0 12px 24px rgba(255, 213, 0, 0.18)); }
.brand-full img { width: 184px; max-height: 64px; }
.brand-mini { display: none; }
.brand-mini img { width: 62px; max-height: 58px; }

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.main-nav .nav-link { min-width: 88px; }
.mobile-bottom-nav { display: none; }
.nav-link {
  min-width: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 10px;
  color: rgba(255, 247, 251, 0.72);
  border-radius: 18px;
  transition: 180ms ease;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 213, 0, 0.10);
  transform: translateY(-1px);
}
.nav-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--soft);
}
.nav-link span:last-child { font-weight: 800; font-size: 15px; }

.smart-search {
  justify-self: start;
  width: min(100%, 330px);
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 6px;
  border: 1px solid rgba(255, 160, 198, 0.20);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}
.smart-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 16px;
}
.smart-search input::placeholder { color: rgba(255, 232, 241, 0.48); }
.smart-search button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--rose), var(--violet));
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  margin: 24px 0 42px;
  border-radius: 30px;
  overflow: hidden;
  background: #120914;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 205, 224, 0.10);
  touch-action: pan-y;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-bg {
  position: absolute;
  inset: -34px;
  background-size: cover;
  background-position: center;
  filter: blur(9px) saturate(1.08);
  opacity: 0.68;
  transform: scale(1.05);
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,5,10,0.98) 0%, rgba(8,5,10,0.72) 38%, rgba(8,5,10,0.26) 72%, rgba(8,5,10,0.88) 100%),
    linear-gradient(180deg, transparent 0%, rgba(8,5,10,0.60) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 56px;
  padding: 68px 82px;
}
.hero-copy { max-width: 760px; }
.hero-kicker, .soft-kicker, .row-head span, .listing-head span, .watch-head span {
  display: inline-flex;
  align-items: center;
  color: var(--rose-2);
  font-weight: 900;
  letter-spacing: 0;
}
.hero-copy h1 {
  margin: 14px 0 14px;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.02;
  font-weight: 900;
  text-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.08);
  font-weight: 800;
}
.hero-meta span:nth-child(2) {
  color: #2b1905;
  background: var(--gold);
}
.hero-copy p {
  margin: 0;
  color: rgba(255, 247, 251, 0.86);
  font-size: 20px;
  line-height: 1.9;
  max-width: 720px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.hero-btn.primary {
  background: linear-gradient(135deg, #ffd500, #ff9800);
  box-shadow: 0 14px 34px rgba(255, 77, 146, 0.30);
}
.hero-btn.ghost {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}
.hero-poster {
  width: 280px;
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.62), 0 0 0 1px rgba(255,255,255,0.14);
}
.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-dots {
  position: absolute;
  z-index: 4;
  bottom: 22px;
  right: 50%;
  transform: translateX(50%);
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
  cursor: pointer;
}
.hero-dots button.active { width: 30px; background: var(--rose); }

.content-row, .genre-cloud, .episode-section, .parts-strip {
  margin: 36px 0;
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}
.row-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.row-head h2, .listing-head h1 {
  margin: 4px 0 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
}
.row-head a {
  color: var(--soft);
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
}
.row-head.compact h2 { font-size: 24px; }

.poster-rail, .episode-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 190px;
  gap: 18px;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding: 16px 2px 22px;
  scrollbar-color: rgba(255, 213, 0, 0.7) rgba(255,255,255,0.08);
  cursor: grab;
  user-select: none;
  contain: layout paint;
}
.poster-rail.dragging, .episode-rail.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.poster-rail::-webkit-scrollbar, .episode-rail::-webkit-scrollbar { height: 8px; }
.poster-rail::-webkit-scrollbar-thumb, .episode-rail::-webkit-scrollbar-thumb { background: var(--rose); border-radius: 999px; }
.poster-rail::-webkit-scrollbar-track, .episode-rail::-webkit-scrollbar-track { background: rgba(255,255,255,0.08); border-radius: 999px; }

.title-card {
  display: block;
  scroll-snap-align: start;
  min-width: 0;
  border-radius: 18px;
  transition: transform 180ms ease, filter 180ms ease;
}
.title-card:hover {
  transform: translateY(-5px);
  filter: drop-shadow(0 18px 28px rgba(255, 213, 0, 0.24));
}
.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 16px 34px rgba(0,0,0,0.34);
  transition: box-shadow 180ms ease, border-color 180ms ease;
  border: 1px solid transparent;
}
.title-card:hover .poster-frame {
  border-color: rgba(255, 152, 0, 0.42);
  box-shadow:
    0 18px 44px rgba(0,0,0,0.42),
    0 0 0 1px rgba(255, 213, 0, 0.25),
    0 0 34px rgba(255, 213, 0, 0.32);
}
.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease, filter 240ms ease;
}
.title-card:hover .poster-frame img { transform: scale(1.045); filter: brightness(1.08); }
.card-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.78));
}
.title-card strong {
  display: block;
  margin-top: 10px;
  padding-inline: 3px;
  box-sizing: border-box;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.title-card small {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}
.title-card small b {
  color: var(--rose-2);
  font-weight: 800;
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 24px 18px;
}
.listing-grid .title-card {
  content-visibility: auto;
  contain-intrinsic-size: 220px 370px;
}

.genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.genre-list a, .tag-row a {
  padding: 9px 15px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 205, 224, 0.11);
  font-weight: 800;
}

.listing-page { padding: 36px 0 60px; }
.anime-kind-toggle {
  width: min(340px, 100%);
  margin: 0 auto 16px;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 184, 214, .25);
  background:
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035)),
    rgba(32, 13, 28, .82);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255,255,255,.08);
}
.anime-kind-option {
  position: relative;
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(255, 238, 246, .72);
  font-weight: 900;
  text-decoration: none;
  overflow: hidden;
  transition: color .18s ease, transform .18s ease;
}
.anime-kind-option::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,.045);
  opacity: 0;
  transition: opacity .18s ease;
}
.anime-kind-option span {
  position: relative;
  z-index: 1;
}
.anime-kind-option.active {
  color: #2a101f;
  background: linear-gradient(135deg, #ffd500, #ffe66a);
  box-shadow: 0 10px 24px rgba(255, 97, 169, .26), inset 0 1px 0 rgba(255,255,255,.45);
}
.anime-kind-option:not(.active):hover {
  color: #fff;
}
.anime-kind-option:not(.active):hover::before {
  opacity: 1;
}
.listing-head {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  margin-bottom: 24px;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,213,0,0.18), rgba(255,152,0,0.08)),
    rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}
.listing-head p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}
.listing-empty {
  padding: 28px;
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
}

.title-hero {
  position: relative;
  min-height: 620px;
  margin: 0 calc(50% - 50vw) 28px;
  overflow: hidden;
  display: flex;
  align-items: end;
  padding: 118px max(48px, calc((100vw - 1760px) / 2 + 48px)) 52px;
}
.title-backdrop {
  position: absolute;
  inset: -32px;
  background-size: cover;
  background-position: center;
  filter: blur(16px) saturate(1.05);
  opacity: 0.45;
}
.title-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,5,10,0.45) 0%, rgba(8,5,10,0.90) 88%, var(--bg) 100%),
    linear-gradient(90deg, rgba(8,5,10,0.92), rgba(8,5,10,0.42), rgba(8,5,10,0.92));
}
.title-layout {
  position: relative;
  z-index: 2;
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: end;
  gap: 34px;
}
.title-poster {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0,0,0,0.58);
}
.title-poster img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.title-info h1 {
  margin: 8px 0 12px;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.05;
}
.title-story {
  max-width: 920px;
  color: rgba(255, 247, 251, 0.86);
  font-size: 19px;
  line-height: 2;
  margin: 16px 0 0;
}
.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.parts-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  background: rgba(255,255,255,0.035);
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
}
.parts-tabs a {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  color: rgba(255,255,255,0.68);
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(0,0,0,0.14);
  font-size: 14px;
  font-weight: 800;
  scroll-snap-align: start;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.parts-tabs a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.parts-tabs a.active {
  color: #fff;
  border-color: rgba(255,213,0,0.50);
  background: rgba(255,213,0,0.18);
}

.episode-season { margin-bottom: 28px; }
.season-title {
  margin: 0 0 14px;
  color: rgba(255,255,255,0.78);
  font-size: 18px;
  font-weight: 900;
}
.episode-rail { grid-auto-columns: 250px; gap: 16px; }
.episode-card { min-width: 0; scroll-snap-align: start; }
.episode-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 17px;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 16px 30px rgba(0,0,0,0.36);
}
.episode-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 220ms ease, opacity 220ms ease;
}
.episode-card:hover .episode-thumb img, .episode-card.active .episode-thumb img {
  transform: scale(1.04);
  opacity: 1;
}
.episode-thumb b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-shadow: 0 4px 18px #000;
  opacity: 0;
  background: rgba(0,0,0,0.20);
}
.episode-card:hover .episode-thumb b, .episode-card.active .episode-thumb b { opacity: 1; }
.episode-card.active .episode-thumb {
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(255,213,0,0.55), 0 16px 30px rgba(0,0,0,0.36);
}
.episode-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  color: rgba(255,255,255,0.86);
  font-weight: 900;
}
.episode-line small { color: var(--muted); font-weight: 800; }

.watch-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 0 54px;
}
.watch-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.watch-head h1 {
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 42px);
}
.back-link {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  font-weight: 900;
}
.player-card {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 28px 80px rgba(0,0,0,0.56), 0 0 0 1px rgba(255,205,224,0.10);
}
.player-card video, .plyr, .plyr__video-wrapper {
  width: 100%;
  height: 100%;
}
.player-switching {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgba(8,5,10,0.06);
  pointer-events: none;
}
.player-switching[hidden] {
  display: none !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
.cute-spinner {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--rose);
  border-bottom-color: var(--violet);
  box-shadow: 0 0 34px rgba(255,213,0,0.42);
  animation: spin 920ms linear infinite;
}
.cute-spinner::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-left-color: #fff;
  border-right-color: var(--rose-2);
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.25));
  animation: spin-reverse 760ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }
.watch-description {
  margin: 20px auto 0;
  max-width: 1120px;
  color: var(--muted);
  line-height: 1.9;
}
.watch-episodes { margin-top: 34px; }
.episode-load-state {
  width: min(360px, 78vw);
  min-height: 118px;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.035);
}

.route-skeleton {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
}
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #0d080e;
  opacity: 0;
  transition: opacity 120ms ease;
}
.page-transition[hidden] { display: none !important; }
.page-transition.visible { opacity: 1; }
.page-transition-card {
  width: min(440px, 88vw);
  display: grid;
  justify-items: center;
  gap: 18px;
  color: #fff;
  font-size: 15px;
}
.page-transition-lines {
  width: 100%;
  display: grid;
  gap: 9px;
}
.page-transition-lines i {
  display: block;
  height: 11px;
  border-radius: 5px;
  background: rgba(255,255,255,0.08);
  animation: transition-pulse 900ms ease-in-out infinite alternate;
}
.page-transition-lines i:nth-child(2) { width: 78%; animation-delay: 100ms; }
.page-transition-lines i:nth-child(3) { width: 58%; animation-delay: 180ms; }

.catalog-card-skeleton .poster-frame,
.catalog-card-skeleton strong {
  display: block;
  background: rgba(255, 255, 255, 0.07);
  animation: ahiru-skeleton-pulse 1.2s ease-in-out infinite;
}

.catalog-card-skeleton strong {
  width: 70%;
  height: 16px;
  margin-top: 10px;
  border-radius: 4px;
}

.episode-load-more {
  flex: 0 0 120px;
  min-height: 54px;
  align-self: center;
  border: 1px solid rgba(240, 98, 146, 0.38);
  background: rgba(240, 98, 146, 0.1);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
}

@keyframes ahiru-skeleton-pulse {
  50% { opacity: 0.48; }
}
@keyframes transition-pulse {
  to { background: rgba(255,213,0,0.22); }
}
.title-route-skeleton {
  min-height: 520px;
  margin-top: 18px;
  padding: 48px;
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: end;
  gap: 32px;
}
.title-route-skeleton > span { aspect-ratio: 2/3; border-radius: 16px; background: rgba(255,255,255,0.07); }
.title-route-skeleton > div { display: grid; gap: 15px; align-content: end; }
.title-route-skeleton i { display: block; height: 18px; width: min(680px, 90%); border-radius: 6px; background: rgba(255,255,255,0.07); }
.title-route-skeleton i:first-child { height: 48px; width: min(520px, 75%); }
.rail-route-skeleton { height: 220px; margin-top: 28px; }
.listing-route-skeleton { min-height: 540px; margin-top: 24px; padding: 28px; }
.listing-route-skeleton i { display: block; width: 220px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.07); }
.listing-route-skeleton div { height: 390px; margin-top: 28px; border-radius: 12px; background: rgba(255,255,255,0.045); }

.plyr {
  --plyr-color-main: #ffd500;
  --plyr-video-control-color-hover: #fff;
  height: 100%;
  font-family: "Tajawal", sans-serif;
}
.plyr--video { background: #000; }
.plyr__control--overlaid {
  background: linear-gradient(135deg, var(--rose), var(--violet));
  box-shadow: 0 16px 42px rgba(255,213,0,0.42);
}
.plyr__controls {
  background: linear-gradient(180deg, transparent, rgba(8,5,10,0.86)) !important;
  padding: 42px 16px 14px !important;
}
.audio-track-control, .subtitle-style-control { position: relative; }
.audio-track-button span, .subtitle-style-button span { font-weight: 900; }
.audio-track-popover {
  position: absolute;
  bottom: 46px;
  left: 50%;
  transform: translateX(-50%);
  width: 168px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(18, 9, 20, 0.96);
  border: 1px solid rgba(255,205,224,0.12);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.audio-track-popover[hidden],
.subtitle-style-popover[hidden] {
  display: none !important;
}
.audio-track-popover button {
  width: 100%;
  margin: 0;
  padding: 7px 9px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
}
.audio-track-popover button.active { background: rgba(255,213,0,0.32); }
.subtitle-style-popover {
  position: absolute;
  z-index: 60;
  top: 50%;
  left: 50%;
  width: min(780px, calc(100% - 28px));
  transform: translate(-50%, -50%);
  padding: 14px;
  border-radius: 18px;
  background: rgba(18, 9, 20, 0.94);
  border: 1px solid rgba(255,205,224,0.16);
  box-shadow: 0 24px 70px rgba(0,0,0,0.58), 0 0 0 1px rgba(255,213,0,0.10);
  display: grid;
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  gap: 10px;
  color: #fff;
  direction: rtl;
}
.subtitle-style-panel {
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  align-items: stretch;
}
.subtitle-style-popover strong {
  grid-column: 1 / -1;
  font-size: 14px;
  color: #fff;
  text-align: center;
}
.subtitle-style-popover label,
.subtitle-choice-group {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.subtitle-choice-group {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-column: span 2;
}
.subtitle-choice-group span {
  grid-column: 1 / -1;
}
.subtitle-choice-group button {
  min-height: 32px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}
.subtitle-choice-group [data-subtitle-pick="color"] {
  color: #1a1118;
  background: var(--swatch);
}
.subtitle-choice-group button.active {
  border-color: var(--rose-2);
  box-shadow: 0 0 0 2px rgba(255,213,0,0.28), 0 8px 18px rgba(0,0,0,0.24);
}
.font-group button {
  font-family: var(--choice-font, inherit);
}
.font-group button[data-value="Cairo"] { --choice-font: "Cairo", sans-serif; }
.font-group button[data-value="Noto Naskh Arabic"] { --choice-font: "Noto Naskh Arabic", serif; }
.font-group button[data-value="Tajawal"] { --choice-font: "Tajawal", sans-serif; }
.font-group button[data-value="Tahoma"] { --choice-font: Tahoma, sans-serif; }
.subtitle-style-popover input, .subtitle-style-popover select {
  width: 100%;
  min-height: 30px;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
}
@media (max-width: 900px), (pointer: coarse) {
  .cinema-topbar,
  .main-nav,
  .mobile-bottom-nav {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}
.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
}
.history-head h1 {
  margin: 0;
  font-size: 28px;
}
.history-clear {
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid rgba(255,213,0,.3);
  border-radius: 7px;
  color: #ffe66a;
  background: rgba(255,213,0,.1);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 230px));
  gap: 12px;
}
.history-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.055);
  border: 1px solid var(--line);
}
.history-poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.history-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.history-continue {
  position: absolute;
  inset: auto 10px 10px auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,213,0,0.9);
  font-size: 12px;
  font-weight: 900;
}
.progress-bar {
  display: block;
  height: 4px;
  background: rgba(255,255,255,0.12);
}
.progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--rose), var(--violet));
}
.poster-frame > .progress-bar {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 6px;
}
.history-info {
  display: grid;
  gap: 3px;
  padding: 10px 12px 12px;
}
.history-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-info small, .history-info em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}
.history-remove {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0,0,0,0.55);
  cursor: pointer;
}

.ahiru-footer {
  width: min(1760px, calc(100% - 48px));
  margin: 48px auto 0;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255,247,251,0.68);
  border-top: 1px solid rgba(255,205,224,0.10);
}
.footer-heart { color: var(--rose); font-size: 20px; }

@media (max-width: 900px) {
  .site-shell { padding-bottom: 86px; }
  .cinema-main { width: min(100% - 24px, 100%); }
  .cinema-topbar {
    height: 76px;
    grid-template-columns: 70px 1fr;
    padding: 10px 14px;
    gap: 10px;
  }
  .brand-full { display: none; }
  .brand-mini { display: block; justify-self: end; }
  .smart-search {
    grid-column: 2;
    justify-self: stretch;
    width: 100%;
    height: 46px;
  }
  .main-nav {
    position: fixed;
    z-index: 60;
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: 64px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 7px;
    border-radius: 24px;
    background: rgba(18, 9, 20, 0.92);
    border: 1px solid rgba(255,205,224,0.14);
    backdrop-filter: blur(22px);
    box-shadow: 0 18px 44px rgba(0,0,0,0.46);
  }
  .nav-link {
    min-width: 0;
    padding: 5px;
    border-radius: 17px;
    gap: 2px;
  }
  .nav-icon { font-size: 20px; }
  .nav-link span:last-child { font-size: 12px; }
  .hero-carousel {
    min-height: 600px;
    margin-top: 14px;
    border-radius: 24px;
  }
  .hero-content {
    min-height: 600px;
    grid-template-columns: 1fr;
    align-content: end;
    gap: 22px;
    padding: 34px 20px 48px;
  }
  .hero-poster {
    width: 154px;
    order: -1;
    justify-self: start;
    border-radius: 18px;
  }
  .hero-copy h1 { font-size: 38px; }
  .hero-copy p { font-size: 16px; line-height: 1.75; }
  .hero-slide::after {
    background: linear-gradient(180deg, rgba(8,5,10,0.15), rgba(8,5,10,0.98));
  }
  .poster-rail { grid-auto-columns: 140px; gap: 13px; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .title-hero {
    min-height: auto;
    padding: 42px 18px 28px;
    margin-top: 0;
  }
  .title-backdrop {
    inset: -10px;
    filter: blur(6px) saturate(1.02);
  }
  .title-layout {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
  }
  .title-poster { border-radius: 17px; }
  .title-info h1 { font-size: 30px; }
  .title-story {
    grid-column: 1 / -1;
    font-size: 15px;
    line-height: 1.8;
    max-height: 8.8em;
    overflow: hidden;
  }
  .tag-row, .title-meta { grid-column: 1 / -1; }
  .episode-rail { grid-auto-columns: 178px; gap: 12px; }
  .episode-thumb { border-radius: 13px; }
  .episode-line { font-size: 13px; }
  .watch-page { padding-top: 16px; }
  .watch-head h1 { font-size: 22px; }
  .player-card { border-radius: 16px; }
  .subtitle-style-popover {
    top: 48%;
    width: calc(100% - 18px);
    max-height: 72%;
    overflow: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
    gap: 9px;
  }
  .subtitle-choice-group {
    grid-column: 1 / -1;
  }
  .audio-track-popover {
    width: 150px;
    bottom: 42px;
  }
  .history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .history-info { padding: 8px 9px 10px; }
  .history-info strong { font-size: 14px; }
  .ahiru-footer { width: calc(100% - 24px); margin-bottom: 82px; }
}

@media (max-width: 520px) {
  .hero-meta span { min-height: 26px; font-size: 12px; }
  .hero-actions .hero-btn { flex: 1; padding-inline: 14px; }
  .row-head h2, .listing-head h1 { font-size: 26px; }
  .poster-rail { grid-auto-columns: 128px; }
  .episode-rail { grid-auto-columns: 154px; }
  .episode-section .episode-rail { grid-auto-columns: 148px; }
  .watch-episodes .episode-rail { grid-auto-columns: 146px; }
  .title-layout { grid-template-columns: 100px minmax(0, 1fr); }
  .title-info h1 { font-size: 25px; }
}

/* Mobile polish requested 2026-06-25 */
.hero-content {
  grid-template-columns: 300px minmax(0, 1fr);
}
.hero-poster {
  grid-column: 1;
  grid-row: 1;
}
.hero-copy {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}
.hero-meta span {
  min-height: 26px;
  padding: 4px 10px;
  font-size: 13px;
}
.hero-kicker,
.row-head span {
  display: none;
}
.content-row {
  margin: 28px 0;
}
.row-head {
  margin-bottom: 14px;
}
.row-head h2 {
  font-size: clamp(22px, 2.2vw, 32px);
}
.compact-listing {
  padding-top: 22px;
}

.title-hero {
  min-height: 520px;
  padding-top: 78px;
  padding-bottom: 38px;
  margin-bottom: 12px;
}
.title-layout {
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
}
.title-info h1 {
  font-size: clamp(32px, 4.2vw, 58px);
}
.soft-kicker {
  font-size: 13px;
  opacity: .82;
}
.title-meta {
  gap: 7px;
  margin-bottom: 10px;
}
.title-meta span,
.tag-row a {
  min-height: 24px;
  padding: 4px 9px;
  font-size: 12px;
  border-radius: 999px;
}
.title-story {
  max-width: 820px;
  font-size: 16px;
  line-height: 1.85;
  margin-top: 10px;
}
.episode-section {
  margin-top: 24px;
}
.episode-rail {
  grid-auto-columns: 210px;
  gap: 13px;
}
.episode-thumb {
  border-radius: 14px;
}
.season-title {
  font-size: 15px;
  margin-bottom: 10px;
}
.episode-line {
  font-size: 14px;
}
.watch-episodes {
  margin-top: 48px;
}

@media (max-width: 900px) {
  .site-shell {
    padding-bottom: 104px;
  }
  .cinema-topbar {
    position: sticky;
    top: 0;
    height: 72px;
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 9px 12px;
  }
  .brand-mini img {
    width: 52px;
    max-height: 50px;
  }
  .smart-search {
    grid-column: 2;
  }
  .main-nav {
    position: fixed !important;
    top: auto !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    left: 12px;
    right: 12px;
    height: 66px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    z-index: 1000;
  }
  .nav-link span:last-child {
    font-size: 12px;
  }

  .hero-carousel {
    min-height: 430px;
    margin: 12px -4px 28px;
    border-radius: 26px;
    border: 1px solid rgba(255, 205, 224, 0.10);
    box-shadow: none;
    background: transparent;
    overflow: hidden;
  }
  .hero-slide {
    overflow: hidden;
  }
  .hero-bg {
    inset: -8px;
    border-radius: 28px;
    filter: blur(5px) saturate(1.05);
    opacity: .62;
  }
  .hero-content {
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 58px 18px 54px;
  }
  .hero-poster {
    display: none;
  }
  .hero-copy {
    max-width: 96%;
    text-align: center;
  }
  .hero-copy h1 {
    margin-top: 0;
    font-size: clamp(34px, 11vw, 54px);
  }
  .hero-meta {
    justify-content: center;
    gap: 7px;
  }
  .hero-meta span {
    min-height: 24px;
    padding: 3px 9px;
    font-size: 12px;
  }
  .hero-copy p {
    max-width: 34ch;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-actions {
    justify-content: center;
    margin-top: 20px;
  }
  .hero-dots {
    bottom: 18px;
  }
  .content-row {
    margin: 24px 0;
  }
  .row-head h2 {
    font-size: 25px;
  }

  .title-hero {
    min-height: auto;
    padding: 22px 14px 18px;
    margin: 0 -12px 8px;
  }
  .title-layout {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }
  .title-poster {
    border-radius: 14px;
    transform: translateY(-8px);
  }
  .title-info h1 {
    font-size: 24px;
    margin: 4px 0 8px;
  }
  .soft-kicker {
    font-size: 11px;
  }
  .title-meta,
  .tag-row {
    gap: 5px;
    margin: 7px 0;
  }
  .title-meta span,
  .tag-row a {
    min-height: 21px;
    padding: 2px 7px;
    font-size: 10.5px;
  }
  .title-story {
    grid-column: 1 / -1;
    font-size: 13px;
    line-height: 1.75;
    max-height: 7em;
    margin-top: 4px;
  }
  .title-info .hero-actions {
    grid-column: 1 / -1;
    margin-top: 12px;
  }
  .episode-section {
    margin-top: 26px;
  }
  .episode-section .row-head {
    margin-bottom: 10px;
  }
  .episode-section .row-head h2 {
    font-size: 20px;
  }
  .episode-rail,
  .episode-section .episode-rail,
  .watch-episodes .episode-rail {
    grid-auto-columns: 132px;
    gap: 10px;
    padding-bottom: 16px;
  }
  .episode-thumb {
    border-radius: 11px;
  }
  .episode-line {
    font-size: 11px;
    margin-top: 6px;
  }
  .episode-line small {
    font-size: 10px;
  }
  .season-title {
    font-size: 13px;
  }
  .watch-episodes {
    margin-top: 42px;
  }
}

.plyr__menu__container button[data-plyr="quality"] .plyr__menu__value {
  display: none;
}

.catalog-filter-bar {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(170px, 1.2fr) repeat(3, minmax(120px, .7fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  background: rgba(255,255,255,0.035);
}
.catalog-filter-bar > label,
.catalog-filter-field {
  display: grid;
  gap: 6px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 800;
}
.catalog-year-dropdown {
  width: 130px;
}
.catalog-filter-bar input,
.catalog-filter-bar select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(5,4,8,0.78);
  font: inherit;
}
.catalog-filter-bar select[multiple] {
  min-height: 104px;
}
.catalog-filter-bar option:checked {
  color: #fff;
  background: #8f3f68;
}
.catalog-multi-select {
  position: relative;
}
.catalog-multi-select summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(5,4,8,0.78);
  cursor: pointer;
  list-style: none;
}
.catalog-multi-select summary::after {
  content: "⌄";
  font-size: 16px;
}
.catalog-multi-select[open] summary {
  border-color: rgba(255,213,0,0.46);
}
.catalog-multi-select > div {
  position: absolute;
  z-index: 20;
  inset: calc(100% + 5px) 0 auto;
  max-height: 260px;
  overflow: auto;
  padding: 7px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: #120b14;
  box-shadow: 0 18px 40px rgba(0,0,0,0.48);
}
.catalog-multi-select label {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 7px;
  border-radius: 6px;
  color: rgba(255,255,255,0.84);
  cursor: pointer;
}
.catalog-multi-select label:hover {
  background: rgba(255,255,255,0.06);
}
.catalog-multi-select input {
  width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--rose);
}
.catalog-filter-actions {
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
}
.catalog-filter-actions .hero-btn {
  min-height: 38px;
  padding: 8px 16px;
}
.catalog-filter-bar > small {
  grid-column: 1 / -1;
  color: var(--muted);
}
.catalog-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}
.catalog-filter-field {
  width: 190px;
  max-width: calc(100vw - 32px);
  min-width: 0;
}
.catalog-multi-select summary {
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.catalog-multi-select > .catalog-filter-menu {
  display: grid;
  gap: 4px;
  max-height: 290px;
}
.catalog-filter-menu button {
  display: block;
  width: 100%;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(255,255,255,.78);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
}
.catalog-filter-menu button:hover {
  background: rgba(255,255,255,.06);
}
.catalog-filter-menu button.active {
  color: #fff;
  border-color: rgba(255,213,0,.62);
  background: rgba(255,213,0,.28);
}
.catalog-year-field select {
  width: 130px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
}
.catalog-year-field { min-width: 0; }
.catalog-filter-actions {
  display: block;
  grid-column: auto;
}
.catalog-filter-actions .hero-btn {
  min-height: 30px;
  width: auto;
  padding: 5px 13px;
  border-radius: 7px;
  font-size: 12px;
}
.catalog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.catalog-pagination a,
.catalog-pagination span {
  min-width: 70px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  color: #fff;
  text-align: center;
  background: rgba(255,255,255,0.05);
}
.catalog-load-sentinel {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.catalog-load-sentinel[hidden] { display: none; }
.catalog-loader {
  width: 19px;
  height: 19px;
  border: 2px solid rgba(255,255,255,0.14);
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.taxonomy-badges {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 7px 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.taxonomy-badges::-webkit-scrollbar { display: none; }
.taxonomy-badge {
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 999px;
  color: rgba(255,255,255,0.84);
  background: rgba(255,255,255,0.055);
  font-size: 11px;
  font-weight: 800;
}
.taxonomy-badge.language {
  border-color: rgba(255,213,0,0.28);
  color: #ffe66a;
}
@media (max-width: 900px) {
  .catalog-filter-bar {
    padding: 0;
  }
}
@media (max-width: 520px) {
  .catalog-filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: start;
    gap: 6px;
    width: 100%;
    flex-wrap: nowrap;
  }
  .catalog-filter-field {
    width: 100%;
    max-width: none;
  }
  .catalog-year-dropdown {
    width: 100%;
  }
  .catalog-year-field select { width: 100%; }
  .catalog-filter-actions { align-self: stretch; }
  .catalog-filter-actions .hero-btn {
    min-height: 34px;
    padding-inline: 9px;
  }
  .catalog-multi-select summary,
  .catalog-year-field select {
    padding-inline: 7px;
    font-size: 11px;
  }
}

@media (min-width: 901px) {
  .hero-copy {
    padding-inline-start: 8px;
  }
  .hero-poster {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .cinema-topbar .main-nav {
    display: none !important;
  }
  .mobile-bottom-nav {
    position: fixed !important;
    top: auto !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    left: 12px !important;
    right: 12px !important;
    z-index: 5000 !important;
    height: 66px;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px;
    border-radius: 24px;
    background: rgba(18, 9, 20, 0.94);
    border: 1px solid rgba(255,205,224,0.16);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    box-shadow: 0 18px 44px rgba(0,0,0,0.46);
  }
  .mobile-bottom-nav .nav-link {
    min-width: 0;
    padding: 5px;
    border-radius: 17px;
    gap: 2px;
  }
  .mobile-bottom-nav .nav-icon {
    width: 20px;
    height: 20px;
  }
  .mobile-bottom-nav .nav-link span:last-child {
    font-size: 12px;
  }
}

.plyr .player-switching {
  z-index: 20;
}

@media (max-width: 700px) and (orientation: portrait) {
  .player-card {
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.42);
  }
  .plyr__controls {
    gap: 3px !important;
    padding: 32px 8px 8px !important;
  }
  .plyr__controls [data-plyr="rewind"],
  .plyr__controls [data-plyr="fast-forward"],
  .plyr__controls [data-plyr="mute"],
  .plyr__controls .plyr__volume,
  .plyr__controls .plyr__progress,
  .plyr__controls .plyr__menu,
  .plyr__controls .audio-track-control,
  .plyr__controls .subtitle-style-control {
    display: none !important;
  }
  .plyr__controls .plyr__time {
    display: inline-flex !important;
    font-size: 11px;
  }
  .plyr__controls [data-plyr="captions"],
  .plyr__controls [data-plyr="fullscreen"],
  .plyr__controls [data-plyr="play"] {
    display: inline-flex;
  }
  .title-route-skeleton {
    min-height: 350px;
    margin-top: 10px;
    padding: 18px 12px;
    grid-template-columns: 88px 1fr;
    gap: 12px;
  }
  .title-route-skeleton i:first-child { height: 30px; }
  .rail-route-skeleton { height: 150px; margin-top: 16px; }
  .parts-tabs {
    gap: 6px;
    padding: 6px;
  }
  .parts-tabs a {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 12px;
  }
}

/* Content cards and title layout refinements */
.poster-stats {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  min-height: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 9px;
  color: rgba(255,255,255,0.92);
  background: rgba(5,4,6,0.86);
  font-size: 11px;
  line-height: 1;
}
.poster-stats b {
  font: inherit;
  font-weight: 800;
}
.title-card > strong { margin-top: 9px; }
.parts-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  color: rgba(255,255,255,0.68);
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(0,0,0,0.14);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.parts-tabs button:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.parts-tabs button.active {
  color: #fff;
  border-color: rgba(255,213,0,0.50);
  background: rgba(255,213,0,0.18);
}
.episode-part-tabs { margin: 0 0 12px; }

@media (min-width: 901px) {
  .title-layout { grid-template-columns: 290px minmax(0, 1fr); }
  .title-poster img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    background: rgba(0,0,0,0.22);
  }
}

@media (max-width: 900px) {
  .title-hero { padding: 26px 16px 22px; }
  .title-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .title-poster {
    width: min(210px, 56vw);
    transform: none;
    border-radius: 16px;
  }
  .title-poster img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }
  .title-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .title-info h1 {
    order: 1;
    margin: 0 0 8px;
    font-size: 27px;
  }
  .title-info .soft-kicker {
    order: 2;
    margin-bottom: 5px;
  }
  .title-info .title-meta {
    order: 2;
    justify-content: center;
  }
  .title-info .taxonomy-badges {
    order: 3;
    justify-content: center;
  }
  .title-info .tag-row {
    order: 3;
    justify-content: center;
  }
  .title-info .title-story {
    order: 4;
    width: 100%;
    max-height: none;
    margin-top: 10px;
    text-align: right;
    font-size: 13.5px;
    line-height: 1.85;
  }
  .title-info .hero-actions {
    order: 5;
    width: 100%;
  }
  .episode-part-tabs { margin-bottom: 10px; }
  .parts-tabs button {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 12px;
  }
  .poster-stats {
    min-height: 23px;
    padding: 4px 7px;
    font-size: 10px;
  }
}
