/* ==========================================================================
   Escobar Bonus Empire — application shell (Escobar Club + Streams centre).
   Requires escobar-tokens.css and escobar-core.css.
   ========================================================================== */

* { box-sizing: border-box; }

html.eb-app { background: var(--eb-void); scroll-behavior: smooth; }

.eb-app-body {
  margin: 0;
  min-width: 320px;
  color: var(--eb-ink);
  font-family: var(--eb-font);
  line-height: 1.55;
  overflow-x: hidden;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(217, 170, 50, 0.08), transparent 60%),
    linear-gradient(180deg, var(--eb-navy) 0%, var(--eb-bg) 46%, var(--eb-void) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.eb-app-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--eb-z-base);
  pointer-events: none;
  box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.55);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; -webkit-user-drag: none; }
h1, h2, h3, h4 { margin: 0 0 var(--eb-s-3); line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 var(--eb-s-3); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.eb-header {
  position: sticky;
  top: 0;
  z-index: var(--eb-z-header);
  border-bottom: 1px solid var(--eb-line-gold);
  background: linear-gradient(180deg, rgba(6, 9, 14, 0.96), rgba(6, 9, 14, 0.8));
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.eb-header__inner {
  width: min(var(--eb-wide), calc(100% - 32px));
  min-height: var(--eb-header-h);
  margin: auto;
  display: flex;
  align-items: center;
  gap: var(--eb-s-5);
}

.eb-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }

.eb-brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--eb-r-sm);
  background: radial-gradient(circle at 32% 26%, rgba(242, 198, 91, 0.26), transparent 66%);
  box-shadow: inset 0 0 0 1px var(--eb-line-gold), var(--eb-glow-1);
  color: var(--eb-gold-bright);
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 900;
}

.eb-brand__copy { display: grid; line-height: 1.05; }
.eb-brand__copy strong {
  font-size: var(--eb-fs-lg);
  background: linear-gradient(96deg, var(--eb-gold-bright), #fff 44%, var(--eb-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eb-brand__copy small { color: var(--eb-ink-muted); font-size: var(--eb-fs-micro); letter-spacing: var(--eb-tracking-wide); text-transform: uppercase; }

.eb-nav { display: flex; align-items: center; gap: var(--eb-s-5); margin-inline: auto; }

.eb-nav a {
  position: relative;
  padding: 10px 2px;
  color: var(--eb-ink-soft);
  font-size: var(--eb-fs-sm);
  font-weight: 700;
  white-space: nowrap;
  transition: color var(--eb-dur-fast) var(--eb-ease);
}

.eb-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, var(--eb-gold), var(--eb-electric));
  transition: right var(--eb-dur-base) var(--eb-ease);
}

.eb-nav a:hover { color: var(--eb-ink); }
.eb-nav a:hover::after, .eb-nav a[aria-current="page"]::after { right: 0; }
.eb-nav a[aria-current="page"] { color: var(--eb-gold-bright); }

.eb-header__end { display: flex; align-items: center; gap: var(--eb-s-2); flex: none; }

.eb-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 11px 9px;
  border: 1px solid var(--eb-line);
  border-radius: var(--eb-r-sm);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.eb-menu-toggle span { display: block; height: 2px; background: var(--eb-gold-bright); border-radius: 2px; }

/* Language dropdown */
.eb-lang { position: relative; }

.eb-lang__current {
  min-height: 40px;
  padding: 0 var(--eb-s-3);
  border: 1px solid var(--eb-line);
  border-radius: var(--eb-r-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--eb-ink-soft);
  font-size: var(--eb-fs-xs);
  font-weight: 800;
  cursor: pointer;
}

.eb-lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  display: none;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--eb-line-gold);
  border-radius: var(--eb-r-sm);
  background: var(--eb-surface-1);
  box-shadow: var(--eb-shadow-3);
  z-index: var(--eb-z-drawer);
}

.eb-lang.is-open .eb-lang__menu { display: grid; gap: 2px; }

.eb-lang__menu a {
  padding: 9px 11px;
  border-radius: var(--eb-r-xs);
  color: var(--eb-ink-soft);
  font-size: var(--eb-fs-sm);
}

.eb-lang__menu a:hover { background: rgba(217, 170, 50, 0.1); color: var(--eb-ink); }
.eb-lang__menu a.is-active { color: var(--eb-gold-bright); background: rgba(217, 170, 50, 0.12); }

@media (max-width: 1080px) {
  .eb-menu-toggle { display: flex; order: 3; }
  .eb-nav {
    position: fixed;
    inset: var(--eb-header-h) 0 auto 0;
    z-index: var(--eb-z-drawer);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: var(--eb-s-4);
    background: rgba(6, 9, 14, 0.98);
    border-bottom: 1px solid var(--eb-line-gold);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--eb-dur-base) var(--eb-ease), transform var(--eb-dur-base) var(--eb-ease), visibility var(--eb-dur-base);
  }
  .eb-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .eb-nav a { padding: 14px 4px; border-bottom: 1px solid var(--eb-line); font-size: var(--eb-fs-md); }
  .eb-header__end { margin-left: auto; }
}

@media (max-width: 560px) {
  .eb-header__inner { width: calc(100% - 20px); gap: var(--eb-s-2); }
  .eb-brand__copy small { display: none; }
  .eb-header__end .eb-btn { padding: 0 12px; font-size: var(--eb-fs-micro); }
}

/* --------------------------------------------------------------------------
   Page frame
   -------------------------------------------------------------------------- */
.eb-main {
  position: relative;
  z-index: var(--eb-z-raised);
  width: min(var(--eb-wide), calc(100% - 32px));
  margin: 0 auto;
  padding: var(--eb-s-7) 0 var(--eb-s-9);
}

.eb-page-head { margin-bottom: var(--eb-s-6); }
.eb-page-head__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--eb-gold);
  font-size: var(--eb-fs-xs);
  font-weight: 900;
  letter-spacing: var(--eb-tracking-wider);
  text-transform: uppercase;
}
.eb-page-head h1 {
  margin: var(--eb-s-3) 0 var(--eb-s-2);
  font-size: var(--eb-fs-2xl);
  background: linear-gradient(100deg, #fff, var(--eb-gold-bright) 66%, var(--eb-amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eb-page-head p { color: var(--eb-ink-soft); max-width: 70ch; }

/* Auth screens */
.eb-auth {
  width: min(560px, 100%);
  margin: var(--eb-s-7) auto;
}

/* Code-generated emblem replaces the former character illustration. */
.eb-auth__emblem {
  display: grid;
  place-items: center;
  width: min(120px, 34vw);
  aspect-ratio: 1;
  margin: 0 auto var(--eb-s-4);
  border: 1px solid var(--eb-line-gold);
  border-radius: 50%;
  background: radial-gradient(60% 60% at 50% 42%, rgba(217, 170, 50, 0.18), transparent 72%);
  color: var(--eb-gold-bright);
  font-family: Georgia, serif;
  font-size: clamp(44px, 11vw, 62px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 30px rgba(217, 170, 50, 0.36);
}

.eb-empty__emblem {
  display: block;
  margin-bottom: var(--eb-s-3);
  color: var(--eb-gold);
  font-size: 40px;
  line-height: 1;
}

.eb-auth__card {
  padding: var(--eb-s-6);
  border: 1px solid var(--eb-line-gold);
  border-radius: var(--eb-r-xl);
  background: linear-gradient(155deg, var(--eb-surface-2), var(--eb-surface-1));
  box-shadow: var(--eb-shadow-4);
}

.eb-auth__card h1 { font-size: var(--eb-fs-xl); text-align: center; }
.eb-auth__card > p { color: var(--eb-ink-muted); text-align: center; margin-bottom: var(--eb-s-5); font-size: var(--eb-fs-sm); }
.eb-auth__alt { margin-top: var(--eb-s-4); text-align: center; color: var(--eb-ink-muted); font-size: var(--eb-fs-sm); }
.eb-auth__alt a { color: var(--eb-gold-bright); font-weight: 700; }

@media (max-width: 560px) { .eb-auth__card { padding: var(--eb-s-5) var(--eb-s-4); } }

/* --------------------------------------------------------------------------
   Member dashboard layout
   -------------------------------------------------------------------------- */
.eb-club {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: var(--eb-s-6);
  align-items: start;
}

.eb-club__nav {
  position: sticky;
  top: calc(var(--eb-header-h) + 16px);
  display: grid;
  gap: 3px;
  padding: var(--eb-s-3);
  border: 1px solid var(--eb-line);
  border-radius: var(--eb-r-lg);
  background: linear-gradient(180deg, var(--eb-surface-2), var(--eb-surface-1));
}

.eb-club__nav a {
  display: flex;
  align-items: center;
  gap: var(--eb-s-2);
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--eb-r-sm);
  color: var(--eb-ink-soft);
  font-size: var(--eb-fs-sm);
  font-weight: 700;
  transition: background var(--eb-dur-fast) var(--eb-ease), color var(--eb-dur-fast) var(--eb-ease);
}

.eb-club__nav a:hover { background: rgba(255, 255, 255, 0.04); color: var(--eb-ink); }

.eb-club__nav a.is-active {
  border-color: var(--eb-line-gold);
  background: linear-gradient(90deg, rgba(217, 170, 50, 0.16), rgba(217, 170, 50, 0.02));
  color: var(--eb-gold-bright);
  box-shadow: inset 3px 0 0 var(--eb-gold);
}

.eb-club__nav a .eb-count {
  margin-left: auto;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: var(--eb-r-pill);
  background: var(--eb-gold);
  color: var(--eb-gold-ink);
  font-size: var(--eb-fs-micro);
  font-weight: 900;
  text-align: center;
}

.eb-club__nav a.is-danger { color: var(--eb-red-soft); }

.eb-club__body { min-width: 0; display: grid; gap: var(--eb-s-5); }

@media (max-width: 1024px) {
  .eb-club { grid-template-columns: 1fr; }
  .eb-club__nav {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .eb-club__nav a { white-space: nowrap; }
  .eb-club__nav a.is-active { box-shadow: inset 0 -3px 0 var(--eb-gold); }
}

/* Metric tiles */
.eb-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--eb-s-4); }

.eb-metric {
  padding: var(--eb-s-5);
  border: 1px solid var(--eb-line);
  border-radius: var(--eb-r-lg);
  background: linear-gradient(150deg, var(--eb-surface-2), var(--eb-surface-1));
  box-shadow: var(--eb-shadow-1);
}

.eb-metric span { display: block; color: var(--eb-gold); font-size: var(--eb-fs-xs); font-weight: 900; letter-spacing: 0.07em; text-transform: uppercase; }
.eb-metric strong { display: block; margin-top: var(--eb-s-3); font-size: var(--eb-fs-xl); font-variant-numeric: tabular-nums; }
.eb-metric small { display: block; margin-top: 4px; color: var(--eb-ink-muted); font-size: var(--eb-fs-xs); }

.eb-section {
  padding: var(--eb-s-5);
  border: 1px solid var(--eb-line);
  border-radius: var(--eb-r-lg);
  background: linear-gradient(160deg, var(--eb-surface-2), var(--eb-surface-1) 82%);
}

.eb-section > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--eb-s-3); margin-bottom: var(--eb-s-4); }
.eb-section h2 { margin: 0; font-size: var(--eb-fs-lg); }
.eb-section header p { margin: 2px 0 0; color: var(--eb-ink-muted); font-size: var(--eb-fs-xs); }

/* Campaign cards */
.eb-campaigns { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--eb-s-4); }

.eb-campaign__media {
  height: 148px;
  margin: calc(var(--eb-s-5) * -1) calc(var(--eb-s-5) * -1) var(--eb-s-4);
  background: linear-gradient(140deg, rgba(217, 170, 50, 0.2), rgba(69, 184, 255, 0.14));
  background-size: cover;
  background-position: center;
}

.eb-campaign h3 { font-size: var(--eb-fs-md); }
.eb-campaign p { color: var(--eb-ink-soft); font-size: var(--eb-fs-sm); }
.eb-campaign__meta { display: flex; flex-wrap: wrap; gap: var(--eb-s-2); margin: var(--eb-s-3) 0; color: var(--eb-ink-muted); font-size: var(--eb-fs-xs); }
.eb-campaign__foot { display: flex; flex-wrap: wrap; gap: var(--eb-s-2); align-items: center; margin-top: var(--eb-s-4); }

/* Consent rows */
.eb-consent {
  display: flex;
  flex-wrap: wrap;
  gap: var(--eb-s-3);
  align-items: center;
  justify-content: space-between;
  padding: var(--eb-s-4);
  border: 1px solid var(--eb-line);
  border-radius: var(--eb-r-md);
  background: rgba(255, 255, 255, 0.02);
}

.eb-consent strong { display: block; font-size: var(--eb-fs-sm); }
.eb-consent small { color: var(--eb-ink-muted); font-size: var(--eb-fs-xs); }

/* Notifications */
.eb-notice-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--eb-s-3);
  align-items: start;
  padding: var(--eb-s-4);
  border: 1px solid var(--eb-line);
  border-radius: var(--eb-r-md);
  background: rgba(255, 255, 255, 0.02);
}

.eb-notice-row.is-unread { border-color: var(--eb-line-gold); background: rgba(217, 170, 50, 0.06); }
.eb-notice-row time { color: var(--eb-ink-muted); font-size: var(--eb-fs-xs); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Streams centre
   -------------------------------------------------------------------------- */
.eb-stream-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--eb-s-5); align-items: start; }

@media (max-width: 1080px) { .eb-stream-layout { grid-template-columns: 1fr; } }

.eb-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--eb-line-gold);
  border-radius: var(--eb-r-lg);
  background: #000;
  overflow: hidden;
  box-shadow: var(--eb-shadow-3);
}

.eb-player iframe, .eb-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.eb-player__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--eb-s-3);
  padding: var(--eb-s-5);
  text-align: center;
  background:
    radial-gradient(70% 90% at 50% 20%, rgba(217, 170, 50, 0.16), transparent 70%),
    linear-gradient(160deg, var(--eb-surface-2), var(--eb-surface-1));
}

.eb-player__fallback span[aria-hidden] { font-size: 42px; color: var(--eb-gold-bright); }

.eb-chat {
  height: min(70vh, 620px);
  border: 1px solid var(--eb-line);
  border-radius: var(--eb-r-lg);
  overflow: hidden;
  background: var(--eb-surface-1);
}

.eb-chat iframe { width: 100%; height: 100%; border: 0; }

.eb-stream-tabs { display: flex; flex-wrap: wrap; gap: var(--eb-s-2); margin: var(--eb-s-6) 0 var(--eb-s-4); }

.eb-stream-tabs [role="tab"] {
  min-height: 40px;
  padding: 0 var(--eb-s-4);
  border: 1px solid var(--eb-line);
  border-radius: var(--eb-r-pill);
  background: rgba(255, 255, 255, 0.03);
  color: var(--eb-ink-soft);
  font-size: var(--eb-fs-sm);
  font-weight: 700;
  cursor: pointer;
}

.eb-stream-tabs [role="tab"][aria-selected="true"] {
  border-color: var(--eb-line-gold);
  background: linear-gradient(120deg, rgba(217, 170, 50, 0.18), rgba(69, 184, 255, 0.06));
  color: var(--eb-gold-bright);
}

.eb-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--eb-s-4); }

.eb-media-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: calc(var(--eb-s-5) * -1) calc(var(--eb-s-5) * -1) var(--eb-s-4);
  background: linear-gradient(140deg, rgba(217, 170, 50, 0.16), rgba(69, 184, 255, 0.12));
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
}

.eb-media-card__thumb span { font-size: 34px; color: rgba(255, 255, 255, 0.85); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6); }
.eb-media-card__badge { position: absolute; left: 10px; top: 10px; }
.eb-media-card h3 { font-size: var(--eb-fs-md); }
.eb-media-card p { color: var(--eb-ink-soft); font-size: var(--eb-fs-sm); }
.eb-media-card__foot { display: flex; flex-wrap: wrap; gap: var(--eb-s-2); align-items: center; margin-top: var(--eb-s-3); }

.eb-playlist { display: grid; gap: var(--eb-s-2); max-height: 420px; overflow-y: auto; padding-right: 4px; }

.eb-playlist__item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: var(--eb-s-3);
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--eb-line);
  border-radius: var(--eb-r-sm);
  background: rgba(255, 255, 255, 0.02);
  color: var(--eb-ink-soft);
  font-size: var(--eb-fs-sm);
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.eb-playlist__item:hover { border-color: var(--eb-line-gold); color: var(--eb-ink); }
.eb-playlist__item.is-current { border-color: var(--eb-gold); background: rgba(217, 170, 50, 0.1); color: var(--eb-gold-bright); }
.eb-playlist__item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.eb-player-controls { display: flex; flex-wrap: wrap; gap: var(--eb-s-3); align-items: center; margin-top: var(--eb-s-3); }
.eb-player-controls label { display: inline-flex; align-items: center; gap: 8px; color: var(--eb-ink-soft); font-size: var(--eb-fs-xs); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.eb-footer {
  position: relative;
  z-index: var(--eb-z-raised);
  margin-top: var(--eb-s-9);
  border-top: 1px solid var(--eb-line-gold);
  background: linear-gradient(180deg, transparent, rgba(4, 6, 10, 0.9));
}

.eb-footer__inner {
  width: min(var(--eb-wide), calc(100% - 32px));
  margin: auto;
  padding: var(--eb-s-6) 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--eb-s-4);
  align-items: center;
  justify-content: space-between;
}

.eb-footer__links { display: flex; flex-wrap: wrap; gap: var(--eb-s-4); }
.eb-footer__links a { color: var(--eb-ink-muted); font-size: var(--eb-fs-sm); }
.eb-footer__links a:hover { color: var(--eb-gold-bright); }
.eb-footer__rg { width: 100%; margin: 0; padding-top: var(--eb-s-4); border-top: 1px solid var(--eb-line); color: var(--eb-ink-faint); font-size: var(--eb-fs-xs); }

@media (max-width: 640px) {
  .eb-main { width: calc(100% - 20px); padding-top: var(--eb-s-5); }
  .eb-metrics { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .eb-section { padding: var(--eb-s-4); }
  .eb-campaign__media { height: 120px; }
}

@media (max-width: 380px) {
  .eb-metrics { grid-template-columns: 1fr; }
  .eb-media-grid, .eb-campaigns { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Streams centre — premium player frame (admin-driven playback)
   --------------------------------------------------------------------------
   The public page no longer has autoplay / loop checkboxes; this bar shows what
   is playing and offers navigation and fullscreen only.
   -------------------------------------------------------------------------- */
.eb-stream-layout--wide { grid-template-columns: minmax(0, 1fr); }

.eb-player-frame {
  position: relative;
  padding: var(--eb-s-3);
  border: 1px solid var(--eb-line-gold);
  border-radius: var(--eb-r-xl);
  background:
    radial-gradient(70% 120% at 10% 0%, rgba(217, 170, 50, 0.1), transparent 60%),
    radial-gradient(60% 120% at 92% 100%, rgba(69, 184, 255, 0.08), transparent 62%),
    linear-gradient(155deg, var(--eb-surface-2), var(--eb-surface-1));
  box-shadow: var(--eb-shadow-3);
}

.eb-player-frame .eb-player { border-radius: var(--eb-r-lg); }

.eb-player__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--eb-s-2);
  color: var(--eb-ink-muted);
  background: linear-gradient(160deg, var(--eb-surface-2), var(--eb-surface-1));
}

.eb-player__loading span[aria-hidden] { font-size: 34px; color: var(--eb-gold); animation: eb-spin 2.4s linear infinite; }

.eb-player-bar {
  display: flex;
  align-items: center;
  gap: var(--eb-s-3);
  padding: var(--eb-s-3) var(--eb-s-2) 0;
}

.eb-player-bar__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--eb-r-sm);
  background: rgba(217, 170, 50, 0.14);
  color: var(--eb-gold-bright);
  font-size: 18px;
}

.eb-player-bar__copy { min-width: 0; display: grid; }
.eb-player-bar__copy strong { font-size: var(--eb-fs-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-player-bar__copy small { color: var(--eb-ink-muted); font-size: var(--eb-fs-xs); }

.eb-player-bar__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: var(--eb-r-pill);
  background: rgba(255, 59, 77, 0.14);
  color: #ffc3c8;
  font-size: var(--eb-fs-xs);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.eb-player-bar__live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--eb-red);
  box-shadow: 0 0 10px var(--eb-red);
}

.eb-player-bar__actions { margin-left: auto; display: flex; gap: var(--eb-s-2); flex: none; }

.eb-player-note { margin: var(--eb-s-3) var(--eb-s-2) 0; font-size: var(--eb-fs-xs); }

.eb-media-card__live {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--eb-r-pill);
  background: rgba(6, 8, 12, 0.82);
  color: #ffc3c8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.eb-media-card__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--eb-red); box-shadow: 0 0 8px var(--eb-red); }

/* Chat below the player on mobile, or hidden entirely, per admin setting. */
@media (max-width: 1080px) {
  .eb-stream-layout[data-chat-mobile="off"] .eb-chat { display: none; }
  .eb-stream-layout[data-chat-mobile="off"] aside > h2 { display: none; }
}

@media (max-width: 640px) {
  .eb-player-bar { flex-wrap: wrap; }
  .eb-player-bar__actions { margin-left: 0; width: 100%; }
  .eb-player-note { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .eb-player__loading span[aria-hidden] { animation: none; }
}

/* Provider badge sits on the right so the LIVE flag can own the left corner. */
.eb-media-card__thumb:has(.eb-media-card__live) .eb-media-card__badge { left: auto; right: 10px; }

/* Footer developer credit on the member / streams pages. */
.eb-footer__inner .creator-credit {
  justify-self: end;
  color: var(--eb-ink-faint);
  font-size: var(--eb-fs-xs);
  text-decoration: none;
}

.eb-footer__inner .creator-credit strong { color: var(--eb-gold); }
.eb-footer__inner .creator-credit:hover strong { color: var(--eb-gold-bright); }

/* The big provider glyph must not size the badges that sit on top of it. */
.eb-media-card__thumb .eb-media-card__badge,
.eb-media-card__thumb .eb-media-card__live { font-size: 10px; text-shadow: none; }
.eb-media-card__thumb .eb-media-card__live i { flex: none; }

/* Chat placed under the player (admin setting "Oynatıcının altında"). */
.eb-chat-below { margin-top: var(--eb-s-5); }
.eb-chat-below .eb-chat { height: min(52vh, 480px); }

/* ==========================================================================
   güncel v1 — chat surface contrast + layout without empty gaps
   ==========================================================================
   The chat body itself is a cross-origin iframe (YouTube / Twitch / Kick); its
   inner CSS cannot be changed from this site and no attempt is made to fake it.
   What is fixed here is everything we do own: the card, the heading, the
   loading state, the empty and error states and the surface the iframe sits on.
   ========================================================================== */

.eb-chat-card {
  display: grid;
  gap: 0;
  border: 1px solid var(--eb-line-gold);
  border-radius: var(--eb-r-xl);
  overflow: hidden;
  background: linear-gradient(160deg, var(--eb-surface-2), var(--eb-surface-1));
  box-shadow: var(--eb-shadow-2);
}

.eb-chat-card__head {
  display: flex;
  align-items: center;
  gap: var(--eb-s-2);
  min-height: 48px;
  padding: 0 var(--eb-s-4);
  border-bottom: 1px solid var(--eb-line-gold);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}

.eb-chat-card__head h2 {
  margin: 0;
  color: var(--eb-gold-bright);
  font-size: var(--eb-fs-sm);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.eb-chat-card__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--eb-emerald);
  box-shadow: 0 0 10px rgba(58, 211, 154, 0.7);
}

.eb-chat {
  position: relative;
  height: min(70vh, 620px);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  /* Dark surface behind the frame: no white flash before the chat paints. */
  background: var(--eb-surface-1);
  color-scheme: dark;
}

.eb-chat iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--eb-surface-1);
}

.eb-chat__loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--eb-s-2);
  color: var(--eb-ink-muted);
  background: linear-gradient(160deg, var(--eb-surface-2), var(--eb-surface-1));
  transition: opacity var(--eb-dur-base) var(--eb-ease);
}

.eb-chat__loading span[aria-hidden] { font-size: 30px; color: var(--eb-gold); animation: eb-spin 2.4s linear infinite; }

/* The iframe's own load event removes the placeholder; if the provider never
   fires it, the placeholder simply stays as a readable dark panel. */
.eb-chat.is-ready .eb-chat__loading { opacity: 0; pointer-events: none; }

.eb-chat__empty,
.eb-chat__error {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--eb-s-2);
  padding: var(--eb-s-5);
  text-align: center;
  color: var(--eb-ink-soft);
  background: linear-gradient(160deg, var(--eb-surface-2), var(--eb-surface-1));
}

.eb-chat__error { color: var(--eb-red-soft); }

.eb-chat-below { margin-top: var(--eb-s-5); }
.eb-chat-below .eb-chat { height: min(52vh, 480px); }

/* Chat turned off in the admin panel: the column collapses completely, no
   empty box and no reserved space are left behind. */
.eb-stream-aside { display: grid; gap: var(--eb-s-4); align-content: start; }
.eb-stream-layout--wide > aside { margin-top: var(--eb-s-5); }

@media (max-width: 1080px) {
  .eb-chat { height: min(60vh, 520px); }
}

@media (max-width: 768px) {
  .eb-stream-layout[data-chat-mobile="off"] .eb-chat-card { display: none; }
  .eb-chat { height: min(58vh, 460px); }
}

@media (prefers-reduced-motion: reduce) {
  .eb-chat__loading span[aria-hidden] { animation: none; }
}
