/* ---------- themes ---------- */
:root,
[data-theme="telegram"] {
  --bg: #f1f5f9;
  --card: #ffffff;
  --ink: #0f1c2b;
  --muted: #5d6b7a;
  --border: #e2e8f0;
  --soft: #e8f3fb;
  --accent-1: #2aabee;
  --accent-2: #1a8ad4;
  --accent-ink: #0b6fb0;
  --hero: radial-gradient(1200px 500px at 85% -10%, #62c7ff55, transparent 60%), linear-gradient(140deg, #2aabee 0%, #1a8ad4 55%, #1467b0 100%);
  --hero-ink: #ffffff;
  color-scheme: light;
}
[data-theme="midnight"] {
  --bg: #0e1621;
  --card: #17212b;
  --ink: #f1f5f9;
  --muted: #8b9aab;
  --border: #243140;
  --soft: #1e2c3a;
  --accent-1: #3cb5f5;
  --accent-2: #2b86d0;
  --accent-ink: #6cc6fb;
  --hero: radial-gradient(900px 420px at 80% -20%, #2aabee44, transparent 60%), linear-gradient(160deg, #17212b 0%, #0e1621 100%);
  --hero-ink: #f1f5f9;
  color-scheme: dark;
}
[data-theme="aurora"] {
  --bg: #0f0b1e;
  --card: #1a1530;
  --ink: #f5f3ff;
  --muted: #a39cc4;
  --border: #2c2550;
  --soft: #251e44;
  --accent-1: #8b5cf6;
  --accent-2: #db2777;
  --accent-ink: #c4b5fd;
  --hero: radial-gradient(800px 400px at 10% 0%, #8b5cf655, transparent 60%), radial-gradient(700px 400px at 95% 10%, #ec489944, transparent 60%), #120d26;
  --hero-ink: #f5f3ff;
  color-scheme: dark;
}
[data-theme="emerald"] {
  --bg: #f0f7f3;
  --card: #ffffff;
  --ink: #0d2018;
  --muted: #56695f;
  --border: #dcebe2;
  --soft: #e3f5ec;
  --accent-1: #10b981;
  --accent-2: #047857;
  --accent-ink: #047857;
  --hero: radial-gradient(1000px 460px at 85% -10%, #6ee7b755, transparent 60%), linear-gradient(140deg, #10b981, #047857);
  --hero-ink: #ffffff;
  color-scheme: light;
}
[data-theme="sunset"] {
  --bg: #fff7f0;
  --card: #ffffff;
  --ink: #2a1407;
  --muted: #7a5f4e;
  --border: #f5e3d6;
  --soft: #ffeede;
  --accent-1: #f97316;
  --accent-2: #e11d48;
  --accent-ink: #c2410c;
  --hero: radial-gradient(1000px 460px at 85% -10%, #fde04766, transparent 60%), linear-gradient(140deg, #f97316, #e11d48);
  --hero-ink: #ffffff;
  color-scheme: light;
}

/* ---------- base (mobile first) ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.55;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
[dir="auto"] { unicode-bidi: plaintext; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-tg { background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); color: #fff; box-shadow: 0 8px 22px -8px var(--accent-1); }
.btn-tg:hover { filter: brightness(1.06); }
.btn-light { background: #fff; color: #0f1c2b; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.14); color: var(--hero-ink); border: 1px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(6px); }
.btn-soft { background: var(--soft); color: var(--accent-ink); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.9rem; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }

/* ---------- header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.08rem; text-decoration: none; letter-spacing: -0.01em; }
.brand img { border-radius: 10px; }
.brand-sm { font-size: 0.98rem; }
.brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-lang { background: transparent; color: var(--ink); border: 1px solid var(--border); font-weight: 600; }
.btn-lang:hover { background: var(--soft); }
.brand span, .hero h1 { font-family: 'Inter', 'IBM Plex Sans Arabic', system-ui, sans-serif; }

/* ---------- hero ---------- */
.hero { background: var(--hero); color: var(--hero-ink); }
.hero-inner { padding: 40px 16px 44px; text-align: center; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.82rem;
  font-weight: 600;
}
.hero h1 { font-size: clamp(2.1rem, 9vw, 3.6rem); line-height: 1.05; margin: 16px 0 10px; letter-spacing: -0.03em; font-weight: 800; }
.hero-sub { font-size: 1.05rem; opacity: 0.92; max-width: 560px; margin: 0 auto 24px; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 0 auto; }
.hero-meta { margin: 18px 0 0; font-size: 0.85rem; opacity: 0.8; }

/* ---------- content ---------- */
.main { padding: 26px 16px 40px; }
.main-narrow { max-width: 900px; }
.section-title { font-size: 1.25rem; letter-spacing: -0.01em; margin: 8px 0 16px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; }

.vcard { background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); overflow: hidden; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; -webkit-user-drag: none; user-select: none; }
.vthumb:hover img { transform: scale(1.04); }
.vthumb-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 3rem; font-weight: 800; opacity: 0.9; }
.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(15, 28, 43, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, background 0.2s ease;
}
.play-badge .ic { width: 26px; height: 26px; margin-left: 3px; }
.vthumb:hover .play-badge { transform: scale(1.08); background: var(--accent-2); }
.duration { position: absolute; inset-inline-end: 10px; bottom: 10px; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 0.78rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.vbody { padding: 14px 16px 18px; }
.vbody h3 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.35; }
.vbody h3 a { text-decoration: none; }
.vbody p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* player + protection overlay */
.player { position: relative; background: #000; aspect-ratio: 16 / 9; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.player-main { border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.6); }
.watermark {
  position: absolute;
  top: 12px;
  inset-inline-end: 14px;
  pointer-events: none;
  color: #fff;
  opacity: 0.6;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* watch page */
.watch { padding: 18px 2px 8px; }
.watch h1 { font-size: clamp(1.35rem, 5vw, 1.9rem); line-height: 1.25; margin: 0 0 6px; letter-spacing: -0.02em; }
.watch-meta { color: var(--muted); font-size: 0.88rem; margin: 0 0 14px; }
.watch-caption { white-space: pre-line; color: var(--ink); opacity: 0.9; margin-bottom: 18px; }
.watch-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.draft-banner { background: #fff4d6; color: #7a5200; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; font-size: 0.9rem; }

.about { margin-top: 40px; }
.about-body { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px; white-space: pre-line; color: var(--muted); }

.cta-band {
  margin-top: 40px;
  border-radius: 22px;
  padding: 26px 20px;
  background: var(--hero);
  color: var(--hero-ink);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}
.cta-band h2 { margin: 0 0 4px; font-size: 1.35rem; }
.cta-band p { margin: 0; opacity: 0.88; }

.empty { text-align: center; background: var(--card); border: 1px dashed var(--border); border-radius: 20px; padding: 40px 20px; }
.empty h2 { margin: 0 0 6px; }
.empty p { color: var(--muted); margin: 0 0 18px; }

.footer { border-top: 1px solid var(--border); margin-top: 20px; }
.footer-inner { padding: 26px 16px; text-align: center; font-size: 0.9rem; }
.footer-inner p { margin: 10px 0 0; }
.footer-inner a { color: var(--accent-ink); text-decoration: none; font-weight: 600; }

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  background: #0f1c2b;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.error-shell { max-width: 420px; margin: 18vh auto 0; padding: 0 20px; text-align: center; color: var(--muted); }
.error-shell img { border-radius: 14px; }
.error-shell h1 { color: var(--ink); margin: 14px 0 6px; }

/* ---------- tablet / desktop ---------- */
@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .container { padding: 0 24px; }
  .hero-inner { padding: 72px 24px 76px; }
  .hero-actions { flex-direction: row; justify-content: center; max-width: none; }
  .main { padding: 40px 24px 56px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .vcard-featured { grid-column: 1 / -1; }
  .watch-actions { flex-direction: row; align-items: center; justify-content: space-between; }
  .cta-band { flex-direction: row; align-items: center; justify-content: space-between; text-align: start; padding: 34px 36px; }
  .toast { bottom: 32px; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .main-narrow .grid { grid-template-columns: repeat(2, 1fr); }
}
/* ---------- custom player ---------- */
.player.cp { outline: none; overflow: hidden; }
.player.cp:focus-visible { box-shadow: 0 0 0 3px var(--accent-1); }
.cp video { pointer-events: none; }
.cp-layer { position: absolute; inset: 0; z-index: 3; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cp-btn.cp-big {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(15, 28, 43, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1.2), opacity 0.25s ease, background 0.2s;
}
.cp-btn.cp-big svg { width: 34px; height: 34px; margin-left: 3px; }
.cp-ended .cp-big svg { margin-left: 0; }
.cp-btn.cp-big:hover { background: var(--accent-2); transform: scale(1.08); }
.cp-playing .cp-big { opacity: 0; transform: scale(0.6); pointer-events: none; }
.cp-pulse .cp-big { animation: cp-pop 0.45s ease; }
@keyframes cp-pop { 0% { transform: scale(0.85); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.cp-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
  animation: cp-spin 0.8s linear infinite;
  pointer-events: none;
}
.cp-waiting .cp-spinner { opacity: 1; }
@keyframes cp-spin { to { transform: rotate(360deg); } }
.cp-ripple { position: absolute; top: 0; bottom: 0; width: 38%; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.cp-ripple-l { left: 0; border-radius: 0 50% 50% 0; }
.cp-ripple-r { right: 0; border-radius: 50% 0 0 50%; }
.cp-ripple span { color: #fff; font-weight: 800; font-size: 1.05rem; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.cp-ripple.on { animation: cp-ripple 0.6s ease; }
@keyframes cp-ripple { 0% { opacity: 0; background: rgba(255, 255, 255, 0); } 30% { opacity: 1; background: rgba(255, 255, 255, 0.18); } 100% { opacity: 0; background: rgba(255, 255, 255, 0); } }

.cp-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 26px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cp-idle .cp-bar { opacity: 0; transform: translateY(8px); pointer-events: none; }
.cp-idle { cursor: none; }
.cp-seek { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; outline: none; }
.cp-seek::before { content: ''; position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); transition: height 0.15s; }
.cp-buf, .cp-prog { position: absolute; left: 0; height: 4px; border-radius: 4px; transition: height 0.15s; }
.cp-buf { background: rgba(255, 255, 255, 0.45); width: 0; }
.cp-prog { background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); width: 0; }
.cp-seek:hover::before, .cp-seek:hover .cp-buf, .cp-seek:hover .cp-prog, .cp-scrub .cp-seek::before, .cp-scrub .cp-buf, .cp-scrub .cp-prog { height: 6px; }
.cp-knob { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(42, 171, 238, 0.35); transform: scale(0); transition: transform 0.15s; }
.cp-seek:hover .cp-knob, .cp-seek:focus-visible .cp-knob, .cp-scrub .cp-knob { transform: scale(1); }
.cp-tip { position: absolute; bottom: 22px; transform: translateX(-50%); background: rgba(0, 0, 0, 0.8); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 2px 7px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity 0.15s; white-space: nowrap; }
.cp-seek:hover .cp-tip, .cp-scrub .cp-tip { opacity: 1; }
.cp-row { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.cp-btn { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background 0.15s, transform 0.15s; flex-shrink: 0; }
.cp-btn:hover { background: rgba(255, 255, 255, 0.14); }
.cp-btn:active { transform: scale(0.9); }
.cp-btn svg { width: 22px; height: 22px; }
.cp-speed { width: auto; min-width: 44px; padding: 0 8px; font: 700 0.85rem/1 'Inter', system-ui, sans-serif; }
.cp-time { font: 600 0.8rem/1 'Inter', system-ui, sans-serif; font-variant-numeric: tabular-nums; opacity: 0.92; margin-left: 4px; white-space: nowrap; }
.cp-spacer { flex: 1; }
.cp-vol { display: none; width: 80px; accent-color: #fff; }
.cp.cp-fs { border-radius: 0 !important; background: #000; }
.cp.cp-fs video { object-fit: contain; }
.cp-pseudo-fs { position: fixed !important; inset: 0; z-index: 1000; width: 100vw; height: 100vh; height: 100dvh; aspect-ratio: auto !important; border-radius: 0 !important; }
.cp-lock, .cp-lock body { overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .cp-vol { display: block; }
}

/* watermark: fixed corner or slow drift across the frame */
.watermark { z-index: 2; transition: opacity 0.3s; }
.wm-moving { inset-inline-end: auto; right: auto; animation: wm-drift 42s ease-in-out infinite; }
@keyframes wm-drift {
  0% { top: 7%; left: 5%; }
  17% { top: 62%; left: 58%; }
  34% { top: 14%; left: 62%; }
  51% { top: 70%; left: 8%; }
  68% { top: 38%; left: 36%; }
  85% { top: 8%; left: 40%; }
  100% { top: 7%; left: 5%; }
}

/* hover / in-view preview on cards */
.pv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s ease; z-index: 1; pointer-events: none; background: #000; }
.pv-on .pv { opacity: 1; }
.pv-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; z-index: 3; background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); pointer-events: none; }
.pv-on .play-badge { opacity: 0; transform: scale(0.7); }
.play-badge { z-index: 2; }
.vthumb .duration, .mosaic .duration, .album-badge { z-index: 2; }

/* entrance animations */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.hero-inner > * { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.hero-inner > *:nth-child(2) { animation-delay: 0.06s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.12s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.18s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- albums ---------- */
.mosaic { position: relative; display: grid; gap: 2px; aspect-ratio: 16 / 9; background: var(--card); overflow: hidden; text-decoration: none; }
.mosaic .tile { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); min-height: 0; }
.mosaic .tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; -webkit-user-drag: none; user-select: none; }
.mosaic:hover .tile img { transform: scale(1.05); }
.m1 { grid-template-columns: 1fr; }
.m2 { grid-template-columns: 1fr 1fr; }
.m3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.m3 .tile:first-child { grid-row: span 2; }
.m4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.m5 { grid-template-columns: repeat(6, 1fr); grid-template-rows: 1fr 1fr; }
.m5 .tile:nth-child(-n + 2) { grid-column: span 3; }
.m5 .tile:nth-child(n + 3) { grid-column: span 2; }
.mosaic .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); color: #fff; font-weight: 800; font-size: 1.5rem; }
.album-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.album-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.album-nav .btn:disabled { opacity: 0.35; cursor: default; }
.album-counter { font-weight: 700; font-size: 0.95rem; min-width: 110px; text-align: center; }
.album-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); color: var(--accent-ink); font-size: 0.82rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-bottom: 10px; }
.clip-title { font-size: 1.05rem; font-weight: 600; color: var(--muted); margin: 0 0 10px; }
.album-caption { border-top: 1px solid var(--border); padding-top: 14px; }
.album-link {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--soft);
  color: var(--accent-ink);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 0 0 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
}
.album-link em { font-style: normal; font-weight: 500; opacity: 0.8; margin-inline-start: auto; }

.playlist {
  list-style: none;
  margin: 0 -16px 32px;
  padding: 2px 16px 10px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.playlist li { scroll-snap-align: start; min-width: 0; }
.pl-item { display: block; text-decoration: none; border-radius: 14px; }
.pl-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); outline: 3px solid transparent; outline-offset: -3px; transition: outline-color 0.15s; }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-num { position: absolute; top: 8px; inset-inline-start: 8px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 0.8rem; font-weight: 700; display: grid; place-items: center; }
.pl-item.on .pl-thumb { outline-color: var(--accent-1); }
.pl-item.on .pl-num { background: var(--accent-1); }
.pl-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: 0.9rem; font-weight: 600; line-height: 1.4; }
.pl-item.on .pl-title { color: var(--accent-ink); }
[dir="rtl"] .ic-flip { transform: scaleX(-1); }

@media (min-width: 720px) {
  .playlist { margin: 0 0 36px; padding: 2px 0 10px; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); overflow: visible; }
}
@media (min-width: 1024px) {
  .main-narrow .playlist { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Arabic / RTL ---------- */
[lang="ar"] body {
  font-family: 'IBM Plex Sans Arabic', 'Inter', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.75;
}
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] .brand, [lang="ar"] .section-title, [lang="ar"] .watch h1 {
  letter-spacing: 0;
}
[lang="ar"] .hero-sub { font-size: 1.1rem; }
[lang="ar"] .vbody h3, [lang="ar"] .watch h1 { line-height: 1.5; }
[lang="ar"] .btn { font-weight: 600; letter-spacing: 0; }
[lang="ar"] .pill { font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
