/* ---------- 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;
}

[data-theme="crimson"] {
  --bg: #0a0a0a;
  --card: #1a1a1a;
  --ink: #f5f0f0;
  --muted: #9a8a8a;
  --border: #2e2222;
  --soft: #261a1a;
  --accent-1: #dc2626;
  --accent-2: #f97316;
  --accent-ink: #f87171;
  --hero: radial-gradient(900px 400px at 20% -10%, #dc262644, transparent 55%), radial-gradient(700px 350px at 90% 10%, #f9731644, transparent 55%), #0e0808;
  --hero-ink: #f5f0f0;
  color-scheme: dark;
}

/* ---------- 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; }
.cp-pseudo-fs.cp-rot { inset: auto; top: 50%; left: 50%; width: 100vh; height: 100vw; width: 100dvh; height: 100dvw; transform: translate(-50%, -50%) rotate(90deg); }
.cp-pseudo-fs .cp-bar { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
@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); }
}

/* ---------- hashtags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.tag:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent-1) 22%, var(--soft)); }
.topics { margin-top: 36px; }
.tag-title { font-size: clamp(1.7rem, 7vw, 2.4rem); margin: 6px 0 4px; letter-spacing: -0.02em; }
.tag-sub { color: var(--muted); margin: 0 0 20px; }

/* =================== Telegram look =================== */
[data-theme="telegram"] {
  --wall-1: #86c1ff; --wall-2: #b7a6ff; --wall-3: #7fe0f2; --wall-4: #e6f1ff;
  --pattern-ink: rgba(26, 82, 150, 0.13);
  --bubble: #ffffff; --bubble-ink: #0f1c2b; --glass: rgba(255, 255, 255, 0.74); --glass-edge: rgba(255, 255, 255, 0.7);
  --bg: #e6f1ff; --card: #ffffff;
}
[data-theme="crimson"] {
  --wall-1: #661d1d; --wall-2: #5e3c27; --wall-3: #501414; --wall-4: #0a0a0a;
  --pattern-ink: rgba(255, 170, 170, 0.06);
  --bubble: #1a1212; --bubble-ink: #f5f0f0; --glass: rgba(26, 18, 18, 0.74); --glass-edge: rgba(255, 255, 255, 0.06);
}
[data-theme="midnight"] {
  --wall-1: #1d4166; --wall-2: #2c275e; --wall-3: #0f4450; --wall-4: #0e1621;
  --pattern-ink: rgba(170, 205, 255, 0.07);
  --bubble: #182533; --bubble-ink: #f1f5f9; --glass: rgba(23, 33, 43, 0.74); --glass-edge: rgba(255, 255, 255, 0.08);
}
[data-theme="aurora"] {
  --wall-1: #3d2080; --wall-2: #7c1f5e; --wall-3: #1f3080; --wall-4: #0f0b1e;
  --pattern-ink: rgba(225, 205, 255, 0.08);
  --bubble: #1c1633; --bubble-ink: #f5f3ff; --glass: rgba(26, 21, 48, 0.74); --glass-edge: rgba(255, 255, 255, 0.08);
}
[data-theme="emerald"] {
  --wall-1: #9fe3c2; --wall-2: #d7f0a0; --wall-3: #7fd6c9; --wall-4: #eefaf3;
  --pattern-ink: rgba(10, 90, 60, 0.13);
  --bubble: #ffffff; --bubble-ink: #0d2018; --glass: rgba(255, 255, 255, 0.74); --glass-edge: rgba(255, 255, 255, 0.7);
}
[data-theme="sunset"] {
  --wall-1: #ffc59e; --wall-2: #ffb0c8; --wall-3: #ffe08a; --wall-4: #fff4ea;
  --pattern-ink: rgba(150, 60, 20, 0.12);
  --bubble: #ffffff; --bubble-ink: #2a1407; --glass: rgba(255, 255, 255, 0.74); --glass-edge: rgba(255, 255, 255, 0.7);
}

body { background: var(--wall-4); }
[lang="ar"] body { font-family: var(--font-ar), 'Inter', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; }

/* chat wallpaper: drifting colour mesh + doodle pattern + floating emoji */
.wallpaper { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.wallpaper::before {
  content: '';
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(38% 38% at 18% 20%, var(--wall-1), transparent 70%),
    radial-gradient(40% 40% at 82% 24%, var(--wall-2), transparent 70%),
    radial-gradient(44% 44% at 30% 84%, var(--wall-3), transparent 70%),
    radial-gradient(36% 36% at 86% 82%, var(--wall-1), transparent 70%),
    var(--wall-4);
  animation: wall-drift 34s ease-in-out infinite alternate;
}
@keyframes wall-drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  100% { transform: translate3d(5%, -4%, 0) rotate(10deg) scale(1.1); }
}
.wallpaper-pattern {
  position: absolute;
  inset: 0;
  background: var(--pattern-ink);
  -webkit-mask: url('/img/pattern.svg') 0 0 / 260px 260px repeat;
  mask: url('/img/pattern.svg') 0 0 / 260px 260px repeat;
}
.floaters span {
  position: absolute;
  left: var(--x);
  bottom: -12vh;
  font-size: calc(24px * var(--s));
  opacity: 0;
  animation: float-up var(--d) linear infinite;
  animation-delay: var(--delay);
  will-change: transform;
}
@keyframes float-up {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.5; }
  85% { opacity: 0.4; }
  100% { transform: translate3d(0, -125vh, 0) rotate(var(--r)); opacity: 0; }
}

/* hero: glass channel card */
.hero { background: none; color: var(--bubble-ink); position: relative; overflow: hidden; }
.hero-inner { padding: 84px 16px 36px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: blob 16s ease-in-out infinite alternate; }
.hero-bg i:nth-child(1) { background: var(--accent-1); top: -20vmax; left: -12vmax; }
.hero-bg i:nth-child(2) { background: var(--wall-2); top: -14vmax; right: -16vmax; animation-delay: -4s; }
.hero-bg i:nth-child(3) { background: var(--wall-3); bottom: -26vmax; left: 20%; animation-delay: -8s; }
.hero-bg i:nth-child(4) { background: var(--accent-2); bottom: -30vmax; right: -10vmax; opacity: 0.3; animation-delay: -12s; }
@keyframes blob { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.15); } }
.hero-simple .hero-bg, .hero-simple .hero-plane, .hero-simple .hero-emoji { display: none; }

.channel-card {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px 24px;
  text-align: center;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  box-shadow: 0 30px 80px -34px rgba(20, 60, 120, 0.55);
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.avatar-ring { position: relative; width: 112px; height: 112px; margin: -58px auto 10px; }
.avatar-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(#2aabee, #7c5cff, #ff5fa2, #ffb03a, #2aabee);
  animation: spin 4.5s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-ring img { position: relative; display: block; width: 104px; height: 104px; margin: 4px; border-radius: 50%; object-fit: cover; background: var(--bubble); border: 4px solid var(--bubble); }
.channel-card h1 { font-size: clamp(1.9rem, 8vw, 2.8rem); margin: 4px 0 2px; letter-spacing: -0.02em; font-weight: 800; }
.channel-handle { margin: 0 0 12px; color: var(--accent-ink); font-weight: 600; font-size: 0.95rem; }
.channel-card .hero-sub { opacity: 0.85; margin: 0 auto 10px; max-width: 460px; }
.hero-topic { display: inline-block; margin: 0 0 16px; padding: 6px 14px; border-radius: 999px; background: var(--soft); color: var(--accent-ink); font-size: 0.88rem; font-weight: 600; }
.channel-card .hero-actions { margin-top: 8px; }
.channel-stats { display: flex; justify-content: center; gap: 22px; margin-top: 18px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--bubble-ink) 10%, transparent); font-size: 0.88rem; opacity: 0.85; }
.channel-stats b { display: block; font-size: 1.2rem; }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }

.hero-plane {
  position: absolute;
  top: 26%;
  left: -70px;
  width: 44px;
  height: 44px;
  color: var(--accent-1);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.22));
  animation: fly 13s ease-in-out infinite;
  pointer-events: none;
}
@keyframes fly {
  0% { transform: translate3d(0, 50px, 0) rotate(-10deg); opacity: 0; }
  8% { opacity: 1; }
  50% { transform: translate3d(58vw, -40px, 0) rotate(8deg); }
  92% { opacity: 1; }
  100% { transform: translate3d(118vw, 30px, 0) rotate(-4deg); opacity: 0; }
}
.hero-emoji span { position: absolute; font-size: 30px; animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.75s); pointer-events: none; }
.hero-emoji span:nth-child(1) { top: 16%; left: 6%; }
.hero-emoji span:nth-child(2) { top: 24%; right: 8%; }
.hero-emoji span:nth-child(3) { bottom: 22%; left: 5%; }
.hero-emoji span:nth-child(4) { bottom: 12%; right: 6%; }
.hero-emoji span:nth-child(5) { top: 52%; left: 2%; font-size: 24px; }
.hero-emoji span:nth-child(6) { top: 60%; right: 2%; font-size: 24px; }
.hero-emoji span:nth-child(7) { top: 7%; left: 42%; font-size: 22px; }
.hero-emoji span:nth-child(8) { bottom: 3%; left: 48%; font-size: 22px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-7deg); } 50% { transform: translateY(-16px) rotate(7deg); } }

/* announcement bar */
.announce { background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); color: #fff; font-weight: 600; font-size: 0.9rem; }
.announce-inner { display: flex; align-items: center; gap: 10px; min-height: 42px; }
.announce a, .announce span { flex: 1; color: #fff; text-align: center; text-decoration: none; }
.announce a:hover { text-decoration: underline; }
.announce-x { background: none; border: 0; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 6px; }

/* cards as channel posts */
.vcard { background: var(--bubble); border-color: transparent; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 28px -18px rgba(20, 50, 90, 0.4); }
.bhead, .bfoot { display: none; }
.grid.layout-feed { grid-template-columns: 1fr !important; max-width: 640px; margin-inline: auto; gap: 14px; }
.layout-feed .vcard { border-radius: 20px; border-end-start-radius: 6px; }
.layout-feed .vcard-featured { grid-column: auto; }
.layout-feed .bhead, .post .bhead { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; }
.post .bhead { padding: 0 0 8px; }
.bavatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.bname { font-weight: 700; color: var(--accent-ink); font-size: 0.93rem; }
.bkind { margin-inline-start: auto; font-size: 0.74rem; font-weight: 600; color: var(--muted); background: var(--soft); padding: 2px 9px; border-radius: 999px; }
.layout-feed .vthumb, .layout-feed .mosaic, .layout-feed .vcard .player { margin: 0 5px; border-radius: 15px; overflow: hidden; }
.layout-feed .bfoot, .pcard .bfoot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; font-size: 0.78rem; color: var(--muted); }
.read-more { margin-inline-end: auto; font-weight: 700; color: var(--accent-ink); text-decoration: none; font-size: 0.88rem; }
.clamp-3 { -webkit-line-clamp: 3; }
.pthumb { aspect-ratio: 16 / 9; }
.tags-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 18px; padding: 2px 16px 6px; }
.tags-scroll::-webkit-scrollbar { display: none; }
.tags-scroll .tag { flex-shrink: 0; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bubble { background: var(--bubble); border-radius: 20px; border-end-start-radius: 6px; box-shadow: 0 10px 28px -18px rgba(20, 50, 90, 0.4); border: 0; color: var(--bubble-ink); }

/* rich content */
.article-body { line-height: 1.85; font-size: 1.02rem; margin: 6px 0 16px; overflow-wrap: anywhere; }
.article-body h2 { font-size: 1.25rem; margin: 22px 0 8px; }
.article-body h3 { font-size: 1.08rem; margin: 18px 0 6px; }
.article-body p { margin: 0 0 12px; }
.article-body ul { margin: 0 0 12px; padding-inline-start: 22px; }
.article-body a { color: var(--accent-ink); font-weight: 600; }
.gallery { display: grid; gap: 4px; grid-template-columns: repeat(2, 1fr); border-radius: 18px; overflow: hidden; margin: 12px 0 18px; }
.gallery.g1 { grid-template-columns: 1fr; }
.gallery.g3 .gallery-item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery-item { padding: 0; border: 0; aspect-ratio: 1; background: var(--soft); cursor: zoom-in; overflow: hidden; display: block; }
.gallery.g1 .gallery-item { aspect-ratio: 16 / 10; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; user-select: none; -webkit-user-drag: none; }
.gallery-item:hover img { transform: scale(1.05); }
.link-buttons { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
.link-btn { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: 14px; background: var(--soft); color: var(--accent-ink); font-weight: 700; text-decoration: none; transition: transform 0.15s ease, filter 0.15s ease; }
.link-btn:hover { transform: translateY(-1px); filter: brightness(0.97); }
.link-btn span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.post { background: var(--bubble); border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px -30px rgba(20, 50, 90, 0.5); }
.post-cover { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--soft); }
.post-cover img { display: block; width: 100%; max-height: 68vh; object-fit: cover; user-select: none; }
.post-card-body { padding: 18px 18px 22px; }
.post h1 { font-size: clamp(1.45rem, 5.5vw, 2.1rem); line-height: 1.3; margin: 2px 0 6px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(6, 12, 20, 0.92); display: grid; place-items: center; animation: fade 0.2s ease; }
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb-img { max-width: 94vw; max-height: 86vh; border-radius: 12px; user-select: none; -webkit-user-drag: none; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); animation: zoom-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes zoom-in { from { transform: scale(0.92); opacity: 0; } }
.lb-close, .lb-nav { position: absolute; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 1.8rem; line-height: 1; }
.lb-close { top: calc(14px + env(safe-area-inset-top)); inset-inline-end: 14px; }
.lb-prev { inset-inline-start: 12px; top: 50%; margin-top: -24px; }
.lb-next { inset-inline-end: 12px; top: 50%; margin-top: -24px; }

/* socials */
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.social { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bubble); color: var(--accent-ink) !important; box-shadow: 0 4px 14px -6px rgba(20, 50, 90, 0.35); transition: transform 0.2s ease; }
.social:hover { transform: translateY(-2px) scale(1.06); }
.footer { background: color-mix(in srgb, var(--bubble) 70%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* leak-trace code in the player */
/* Tiny leak-trace code, fixed in a corner and deliberately understated — it is not the watermark. */
.wm-code {
  position: absolute;
  bottom: 8px;
  inset-inline-start: 10px;
  z-index: 2;
  font: 600 0.6rem/1 'Inter', system-ui, sans-serif;
  color: #fff;
  opacity: 0.28;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

@media (min-width: 720px) {
  .hero-inner { padding: 100px 24px 48px; }
  .channel-card { padding: 0 36px 30px; }
  .tags-scroll { flex-wrap: wrap; margin: 0 0 20px; padding: 0; overflow: visible; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery.g2, .gallery.g4 { grid-template-columns: repeat(2, 1fr); }
  .link-buttons { flex-direction: row; flex-wrap: wrap; }
  .link-btn { flex: 1 1 220px; }
  .post-card-body { padding: 24px 30px 30px; }
}

/* ---------- Arabic / RTL ---------- */
[lang="ar"] body {
  font-family: var(--font-ar), '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; }
}

/* Mixed-media albums: photo stage inside the album player */
.photo-view { position: absolute; inset: 0; z-index: 1; background: #000; overflow: hidden; animation: pv-in 0.35s ease; }
.photo-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.photo-shield { position: absolute; inset: 0; }
.photo-timer { position: absolute; left: 12px; right: 12px; top: 10px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); overflow: hidden; opacity: 0; transition: opacity 0.2s; }
.photo-timer i { display: block; height: 100%; width: 0; background: #fff; }
.photo-timer.run { opacity: 1; }
.photo-timer.run i { animation: pv-timer var(--dur, 6s) linear forwards; }
.player.is-photo video, .player.is-photo .cp-layer, .player.is-photo .cp-bar { visibility: hidden; }
.player.is-photo { cursor: default; max-height: 78vh; max-height: 78svh; }
@keyframes pv-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pv-timer { from { width: 0; } to { width: 100%; } }
.pl-photo { font-size: 0.8rem; padding: 2px 6px; }
.tile-play { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); z-index: 1; pointer-events: none; }
.tile-play::after { content: ''; position: absolute; top: 50%; left: 50%; margin: -6px 0 0 -3px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; }
@media (prefers-reduced-motion: reduce) { .photo-view { animation: none; } }

/* Trending row */
.trending { margin-bottom: 8px; }
.section-fire { display: flex; align-items: center; gap: 8px; }
.trending-row { position: relative; }

/* Exclusives (teasers) */
.excl-badge { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2; background: linear-gradient(90deg, #b8860b, #f5c518); color: #1a1300; font-weight: 800; font-size: 0.72rem; padding: 3px 8px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,0.35); }
.excl-pill { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(90deg, #b8860b, #f5c518); color: #1a1300; font-weight: 800; font-size: 0.8rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 8px; }
.teaser-cta { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent-1) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent-1) 35%, transparent); text-decoration: none; color: inherit; }
.teaser-cta .ic { width: 26px; height: 26px; color: var(--accent-1); flex: 0 0 auto; }
.teaser-cta span { display: flex; flex-direction: column; }
.teaser-cta strong { font-size: 0.98rem; }
.teaser-cta em { font-style: normal; opacity: 0.75; font-size: 0.82rem; }

/* Telegram plane logo inside the on-screen watermark */
.wm-plane { width: 1.05em; height: 1.05em; vertical-align: -0.18em; margin-inline-end: 5px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }

/* Header social icons */
.topbar-socials { display: inline-flex; align-items: center; gap: 1px; }
.social-sm { width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink); opacity: 0.8; border-radius: 9px; transition: opacity 0.15s, background 0.15s; }
.social-sm:hover { opacity: 1; background: color-mix(in srgb, var(--accent-1) 16%, transparent); }
.social-sm .ic { width: 20px; height: 20px; }
@media (max-width: 520px) { .topbar-socials { display: none; } }

/* First-visit join pop-up */
.joinpop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.25s ease; }
.joinpop.on { opacity: 1; }
.joinpop-card { position: relative; width: 100%; max-width: 380px; background: var(--card, #fff); border-radius: 22px; padding: 30px 24px 26px; text-align: center; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6); transform: translateY(16px) scale(0.96); transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.joinpop.on .joinpop-card { transform: none; }
.joinpop-x { position: absolute; top: 10px; inset-inline-end: 12px; width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted, #888); font-size: 1.5rem; line-height: 1; cursor: pointer; border-radius: 50%; }
.joinpop-x:hover { background: rgba(128, 128, 128, 0.15); }
.joinpop-plane { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%; background: linear-gradient(135deg, #37bbfe, #007dbb); box-shadow: 0 10px 24px -6px rgba(42, 171, 238, 0.6); animation: jp-pop 0.5s ease; }
.joinpop-plane .ic { width: 36px; height: 36px; color: #fff; }
@keyframes jp-pop { 0% { transform: scale(0.5); opacity: 0; } 60% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.joinpop-card h2 { font-size: 1.3rem; margin: 0 0 4px; }
.joinpop-handle { color: var(--accent-1); font-weight: 700; margin: 0 0 10px; }
.joinpop-card p { color: var(--muted, #667); margin: 0 0 18px; line-height: 1.6; }
.joinpop-card .btn { width: 100%; }

/* Join pop-up: two stacked actions (join channel + message me) */
.joinpop-actions { display: grid; gap: 10px; }
.joinpop-actions .btn { width: 100%; }
