/**
 * YallaShoott player host 1.2.1 — brand-first, player-dominant, RTL.
 * Atmosphere: night pitch (not purple / cream).
 * 1.2.1: no channel/quality meta block under the brand header.
 */

@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@500;700;800&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap");

:root {
  --ysp-ink: #06100c;
  --ysp-ink-2: #0a1812;
  --ysp-panel: rgba(10, 22, 16, 0.72);
  --ysp-text: #eef6f0;
  --ysp-muted: #8fa396;
  --ysp-accent: #3dcf6e;
  --ysp-accent-dim: #1f8a45;
  --ysp-live: #ff4d4d;
  --ysp-line: rgba(61, 207, 110, 0.22);
  --ysp-font: "Cairo", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --ysp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html.ysp-player-html,
body.ysp-player-route {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100%;
  background: var(--ysp-ink) !important;
  color: var(--ysp-text);
  font-family: var(--ysp-font);
}

/* Kill Astra / theme chrome on player routes */
body.ysp-player-route .site-header,
body.ysp-player-route .ast-header-break-point,
body.ysp-player-route .main-header-bar,
body.ysp-player-route #masthead,
body.ysp-player-route .site-footer,
body.ysp-player-route #colophon,
body.ysp-player-route .ast-above-header,
body.ysp-player-route .ast-below-header,
body.ysp-player-route .ast-desktop-header-content,
body.ysp-player-route .ast-mobile-header-wrap,
body.ysp-player-route #wpadminbar {
  display: none !important;
}

body.ysp-player-route #page,
body.ysp-player-route .site,
body.ysp-player-route .site-content,
body.ysp-player-route #content,
body.ysp-player-route .ast-container,
body.ysp-player-route .entry-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.ysp-shell {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(1200px 640px at 80% -10%, rgba(61, 207, 110, 0.16), transparent 55%),
    radial-gradient(900px 520px at 0% 100%, rgba(24, 90, 56, 0.35), transparent 50%),
    linear-gradient(165deg, #07140f 0%, #0a1812 42%, #050c09 100%);
  color: var(--ysp-text);
  font-family: var(--ysp-font);
}

.ysp-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

.ysp-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem) 0.75rem;
  animation: ysp-brand-in 0.7s var(--ysp-ease) both;
}

.ysp-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
}

.ysp-brand__name {
  font-family: "Cairo", var(--ysp-font);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #f4fff7 10%, #3dcf6e 55%, #b8f0c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(61, 207, 110, 0.15);
}

.ysp-brand__tag {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ysp-muted);
  letter-spacing: 0.02em;
}

.ysp-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--ysp-line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ysp-text);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.ysp-live__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ysp-live);
  box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.55);
  animation: ysp-pulse 1.8s ease-out infinite;
}

.ysp-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: stretch;
  padding: 0 clamp(0.55rem, 1.8vw, 1.25rem) clamp(0.85rem, 2vw, 1.4rem);
  animation: ysp-stage-in 0.85s var(--ysp-ease) 0.12s both;
}

.ysp-player-wrap {
  position: relative;
  width: 100%;
  margin: 0 auto;
  max-width: 1400px;
  background: #000;
  border: 1px solid var(--ysp-line);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: min(56vw, 220px);
  box-shadow:
    0 0 0 1px rgba(61, 207, 110, 0.06),
    0 24px 60px rgba(0, 0, 0, 0.55);
}

.ysp-player-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 80px rgba(61, 207, 110, 0.05);
}

.ysp-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.ysp-article__error {
  width: 100%;
  max-width: 720px;
  margin: 2rem auto;
  padding: 1.5rem 1.25rem;
  text-align: center;
  line-height: 1.7;
  background: var(--ysp-panel);
  border: 1px solid var(--ysp-line);
  border-radius: 10px;
  color: var(--ysp-text);
}

.ysp-article__error code {
  direction: ltr;
  unicode-bidi: embed;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

.ysp-foot {
  position: relative;
  z-index: 2;
  padding: 0.35rem clamp(1rem, 3vw, 2rem) 1rem;
  text-align: center;
  color: var(--ysp-muted);
  font-size: 0.75rem;
  opacity: 0.75;
}

@keyframes ysp-brand-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ysp-stage-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ysp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 77, 77, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
  }
}

@media (max-width: 720px) {
  .ysp-top {
    padding-top: 0.85rem;
  }

  .ysp-brand__name {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .ysp-player-wrap {
    border-radius: 8px;
    aspect-ratio: 16 / 9;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .ysp-shell {
    min-height: 100vh;
  }

  .ysp-player-wrap {
    aspect-ratio: auto;
    height: min(78vh, 520px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ysp-top,
  .ysp-stage,
  .ysp-live__dot {
    animation: none !important;
  }
}
