/* ============================================================
   AGR Radio - site public (tema light)
   ============================================================ */

body.public-page {
  background: var(--bg-0);
  --player-height: 80px;
  padding-bottom: calc(var(--player-height) + env(safe-area-inset-bottom, 0px) + var(--sp-4));
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header-inner {
  display: flex;
  align-items: center;
  height: var(--header-height);
  gap: var(--sp-4);
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand:hover { color: var(--text-primary); }
.brand--logo {
  line-height: 0;
}
/* Logo AGR wide (~3:1) — nu fortam patrat */
.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 720px) {
  .brand-logo {
    height: 32px;
    max-width: min(160px, 48vw);
  }
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--signal);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 800;
  box-shadow: none;
}
.brand em {
  font-style: normal;
  color: var(--signal);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-left: auto;
}
.site-nav a {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.site-nav a:hover { color: var(--text-primary); background: var(--bg-2); }
.site-nav a.active { color: var(--signal); background: var(--signal-dim); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
}

.account-menu { position: relative; }
.account-menu-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-1);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.account-menu-btn:hover,
.account-menu.open .account-menu-btn {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.account-menu-btn.is-photo { border-color: transparent; }
.account-avatar-img,
.account-menu-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.account-avatar-icon { display: block; }
.account-avatar-initials,
.account-menu-face span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--signal);
  line-height: 1;
}
.account-menu-drop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 248px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 20;
}
.account-menu-drop[hidden] { display: none; }
.account-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.account-menu-face {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--signal-dim);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.account-menu-who {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.account-menu-who strong {
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-menu-who span {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
}
.account-menu-item:hover { background: var(--bg-2); color: var(--text-primary); }
.account-menu-item--danger { color: var(--danger); }
.account-menu-item--danger:hover { background: var(--danger-dim); color: var(--danger); }
.account-menu-logout { margin: 0; }

.nav-logout { margin: 0; }
.nav-logout button {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.nav-logout button:hover { color: var(--text-primary); background: var(--bg-2); }

/* ----- Hero light ----- */
.hero--light {
  padding: var(--sp-12) 0 var(--sp-10);
  background: var(--bg-0);
}
.hero--light.hero--split {
  padding: clamp(1rem, 2.4vw, 1.75rem) 0;
}
.hero--light::before { display: none; }
.hero--light h1 em {
  font-style: normal;
  color: var(--signal);
  background: none;
  -webkit-text-fill-color: inherit;
}
.hero-eyebrow { color: var(--signal); }

.video-hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.video-hero iframe { z-index: 1; }

.section--alt { background: var(--bg-1); }

.timeline-slot-thumb {
  width: 100%;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--sp-2);
  background: var(--bg-2);
}
.timeline-slot-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 6px; box-sizing: border-box; }
.timeline-slot.current { box-shadow: var(--shadow-sm); border-color: var(--signal); }

/* ----- Istoric compact ----- */
.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 900px) {
  .history-grid { grid-template-columns: 1fr; }
}
.history-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  min-height: 72px;
}
.history-card-art {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-2);
}
.history-card-art img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 4px; box-sizing: border-box; }
.history-card-body { flex: 1; min-width: 0; }
.history-card-time { font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: 2px; }
.history-card-title {
  font-weight: 600;
  font-size: var(--fs-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-card-artist {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-card-badge { flex-shrink: 0; }

/* ----- Program page ----- */
.program-page { padding: var(--sp-10) 0 var(--sp-12); }
.program-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
}
.program-sub { margin: var(--sp-2) 0 0; max-width: 520px; }
.program-today-pill {
  flex-shrink: 0;
  padding: var(--sp-3) var(--sp-5);
  background: var(--signal-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}
.program-today-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--signal);
}
.program-today-count { font-size: var(--fs-sm); color: var(--text-secondary); }

.week-tabs-wrap { position: relative; margin-bottom: var(--sp-8); }
.week-tabs-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--signal);
  border-radius: 2px;
  transition: transform 0.28s ease, width 0.28s ease;
  pointer-events: none;
}
.week-tabs { border-bottom: 1px solid var(--border); padding-bottom: var(--sp-1); }
.week-tab.active { background: transparent; border-color: transparent; color: var(--signal); }

.day-schedule {
  display: none;
  opacity: 0;
  transform: translateY(8px);
}
.day-schedule.active {
  display: block;
  opacity: 1;
  transform: none;
  animation: programFadeIn 0.35s ease;
}
.day-schedule.program-panel-enter { animation: programFadeIn 0.35s ease; }
@keyframes programFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .day-schedule.active, .day-schedule.program-panel-enter { animation: none; }
  .week-tabs-indicator { transition: none; }
}

.program-empty {
  text-align: center;
  padding: var(--sp-10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

.program-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 88px;
}
.program-timeline::before {
  content: '';
  position: absolute;
  left: 39px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.program-slot {
  position: relative;
  padding: var(--sp-3) 0 var(--sp-3) var(--sp-4);
}
.program-slot::before {
  content: '';
  position: absolute;
  left: -53px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--border-strong);
  z-index: 1;
}
.program-slot.current::before {
  background: var(--signal);
  border-color: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-dim);
}
.program-slot-time {
  position: absolute;
  left: -88px;
  top: 50%;
  transform: translateY(-50%);
  width: 72px;
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}
.program-slot-time-end { display: block; opacity: 0.7; }
.program-slot-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.program-slot-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.program-slot.current .program-slot-card {
  border-color: var(--signal);
  background: var(--signal-dim);
}
.program-slot-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.program-slot-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(1.2px) saturate(1.06);
  transform: scale(1.03);
  opacity: 0.82;
}
.program-slot-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    color-mix(in srgb, var(--bg-0) 46%, transparent) 0%,
    color-mix(in srgb, var(--bg-0) 28%, transparent) 52%,
    color-mix(in srgb, var(--bg-0) 10%, transparent) 100%
  );
}
.program-slot.current .program-slot-bg::after {
  background: linear-gradient(
    105deg,
    color-mix(in srgb, var(--bg-0) 38%, transparent) 0%,
    color-mix(in srgb, var(--signal-dim) 24%, transparent) 52%,
    color-mix(in srgb, var(--bg-0) 8%, transparent) 100%
  );
}
.program-slot-thumb,
.program-slot-body,
.program-slot-badges {
  position: relative;
  z-index: 1;
}
.program-slot-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-2);
  display: grid;
  place-items: center;
}
.program-slot-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 4px; box-sizing: border-box; }
.program-slot-thumb img.is-cover { object-fit: cover; padding: 0; }
.program-slot-thumb img.is-music-art { background: #10244a; }
.program-slot.is-music .program-slot-bg img { object-position: 78% center; }
.program-slot-thumb-fallback {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.program-slot-body { flex: 1; min-width: 0; }
.program-slot-title { margin: 0 0 var(--sp-1); font-size: var(--fs-base); }
.program-slot-title a { color: inherit; }
.program-slot-title a:hover { color: var(--signal); }
.program-slot-meta { margin: 0; font-size: var(--fs-xs); color: var(--text-secondary); }
.program-slot-card.has-banner .program-slot-title,
.program-slot-card.has-banner .program-slot-meta {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}
.program-slot-badges { display: flex; flex-direction: column; gap: var(--sp-1); flex-shrink: 0; }

.program-now-line {
  position: absolute;
  left: 34px;
  right: 0;
  height: 2px;
  background: var(--signal);
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: top 0.6s ease, opacity 0.3s ease;
}
.program-now-line.is-visible { opacity: 1; }
.program-now-line::before {
  content: '';
  position: absolute;
  left: -6px;
  top: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--signal);
  animation: programPulse 2s ease infinite;
}
@keyframes programPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--signal-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

/* ----- Player light + thumbnail (extras) ----- */
.player-art-wrap {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.player-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 3px;
  box-sizing: border-box;
  transition: opacity 0.25s ease;
}
.player-art.is-changing { opacity: 0.5; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 18px;
}

@media (max-width: 720px) {
  .header-actions { margin-left: auto; }
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-4);
    gap: var(--sp-1);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: var(--sp-3) var(--sp-4); }
}

/* ----- Hero ----- */
.hero {
  padding: var(--sp-16) 0 var(--sp-12);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -300px;
  right: -200px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, var(--signal-dim), transparent 65%);
  pointer-events: none;
}

.hero-copy { min-width: 0; max-width: 40rem; }
.hero--split .container {
  padding-inline: clamp(0.7rem, 3vw, 1.25rem);
}
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(0.5rem, 2.6cqi, 2.5rem);
  align-items: center;
  width: 100%;
  container-type: inline-size;
  container-name: hero;
}
.hero--split .hero-copy {
  max-width: none;
}
@media (max-width: 900px) {
  .hero,
  .hero--light { padding: var(--sp-8) 0 var(--sp-6); }
  .hero--light.hero--split { padding: clamp(0.85rem, 2.2vw, 1.35rem) 0; }
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
}
.hero--split .hero-eyebrow {
  font-size: clamp(0.52rem, 1.55cqi, 0.8rem);
  letter-spacing: 0.12em;
  margin-bottom: clamp(0.25rem, 1.1cqi, 0.75rem);
  gap: 0.35em 0.65em;
}
.hero h1 {
  font-size: clamp(1.75rem, 6.5vw, var(--fs-4xl));
  line-height: 1.15;
  margin-bottom: var(--sp-4);
  overflow-wrap: break-word;
}
.hero--split h1 {
  font-size: clamp(1.08rem, 4.15cqi, 2.75rem);
  line-height: 1.12;
  margin-bottom: clamp(0.3rem, 1.2cqi, 1rem);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--signal), #00b4d8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 2.4vw, var(--fs-lg));
  line-height: 1.5;
  max-width: 38rem;
  margin-bottom: var(--sp-6);
}
.hero--split .hero-sub {
  font-size: clamp(0.7rem, 1.85cqi, 1.2rem);
  line-height: 1.45;
  max-width: 36rem;
  margin-bottom: clamp(0.45rem, 1.6cqi, 1.5rem);
}
.hero-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--sp-3);
  align-items: stretch;
}
.hero--split .hero-actions {
  flex-wrap: wrap;
  gap: clamp(0.3rem, 1.1cqi, 0.65rem);
}

.btn-play-hero {
  min-height: 48px;
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--fs-base);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
}
.hero--split .btn-play-hero {
  min-height: clamp(2rem, 6.2cqi, 3rem);
  padding: 0.4em 1.1em;
  font-size: clamp(0.68rem, 1.7cqi, 1rem);
  gap: 0.45em;
  flex: 0 1 auto;
}
.hero--split .btn-play-hero svg {
  width: clamp(12px, 2.2cqi, 18px);
  height: clamp(12px, 2.2cqi, 18px);
}
@media (max-width: 560px) {
  .hero-actions { gap: var(--sp-2); }
  .btn-play-hero {
    min-height: 44px;
    padding: var(--sp-2) var(--sp-3);
    font-size: var(--fs-sm);
    gap: 6px;
  }
  .btn-play-hero svg { width: 16px; height: 16px; }
  .hero--split .hero-actions { gap: clamp(0.28rem, 1cqi, 0.45rem); }
  .hero--split .btn-play-hero {
    min-height: clamp(2rem, 6.2cqi, 2.4rem);
    padding: 0.32em 0.55em;
    font-size: clamp(0.68rem, 1.7cqi, 0.8rem);
  }
  .hero--split .btn-play-hero svg {
    width: clamp(12px, 2.2cqi, 15px);
    height: clamp(12px, 2.2cqi, 15px);
  }
}
.btn-play-hero .hero-spinner {
  display: none;
  flex-shrink: 0;
  animation: agr-spin 0.75s linear infinite;
}
.btn-play-hero.is-buffering {
  pointer-events: none;
  opacity: 0.92;
  cursor: wait;
}
.btn-play-hero.is-buffering .hero-play-icon { display: none; }
.btn-play-hero.is-buffering .hero-spinner { display: block; }
.btn-play-hero.is-playing {
  background: var(--bg-2, #e8f8f2);
  color: var(--signal);
  border: 1px solid color-mix(in srgb, var(--signal) 35%, transparent);
}
.btn-play-hero.is-playing:hover {
  background: color-mix(in srgb, var(--signal) 12%, #fff);
}

/* ----- Now playing card (hero) — 2 coloane pe orice ecran ----- */
.np-card {
  min-width: 0;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: clamp(8px, 2.6cqi, 14px);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.np-card-art {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--signal) 16%, #fff), transparent 55%),
    var(--bg-2);
  overflow: hidden;
}
.np-card-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.np-card-art::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.18), transparent);
  pointer-events: none;
}
.np-card-body {
  padding: clamp(0.4rem, 1.55cqi, 0.85rem) clamp(0.45rem, 1.7cqi, 0.95rem) clamp(0.45rem, 1.6cqi, 0.9rem);
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}
.np-card-kicker {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin: 0 0 clamp(0.15rem, 0.6cqi, 0.35rem);
  font-family: var(--font-mono);
  font-size: clamp(0.55rem, 1.25cqi, 0.75rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  line-height: 1;
}
.np-card-dot {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 55%, transparent);
  animation: np-pulse 1.6s var(--ease) infinite;
  flex-shrink: 0;
}
.np-card.is-live .np-card-dot {
  background: var(--danger);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 50%, transparent);
}
.np-card.is-live .np-card-kicker { color: var(--danger); }
.np-card-show {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 2.15cqi, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}
.np-card-file {
  margin: 0.15em 0 0;
  font-size: clamp(0.65rem, 1.55cqi, 0.95rem);
  line-height: 1.3;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.np-card-file[hidden] { display: none; }
.np-card-next {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  min-width: 0;
  margin: 0.35em 0 0;
  font-size: clamp(0.55rem, 1.25cqi, 0.72rem);
  line-height: 1.3;
  color: var(--text-muted);
}
.np-card-next[hidden] { display: none; }
.np-card-next-label {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.np-card-next-title {
  min-width: 0;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.np-card-progress {
  margin-top: clamp(0.35rem, 1.2cqi, 0.7rem);
}
.np-card-bar {
  height: clamp(3px, 0.55cqi, 5px);
  border-radius: var(--radius-full);
  background: var(--bg-3);
  overflow: hidden;
}
.np-card-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--signal), var(--agr-blue-light, #5eb3e8));
  transition: width 0.35s linear;
}
.np-card.is-live:not(.is-timed) .np-card-bar span {
  width: 42% !important;
  background: linear-gradient(90deg, transparent, var(--danger), transparent);
  background-size: 200% 100%;
  animation: np-livebar 1.4s linear infinite;
}
.np-card-times {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5em;
  margin-top: 0.35em;
  font-family: var(--font-mono);
  font-size: clamp(0.58rem, 1.35cqi, 0.8rem);
  letter-spacing: 0.02em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.np-card-times #npRemain {
  color: var(--text-primary);
  font-weight: 600;
}
@keyframes np-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); }
  70% { box-shadow: 0 0 0 0.45em color-mix(in srgb, currentColor 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 0%, transparent); }
}
@keyframes np-livebar {
  0% { transform: translateX(-80%); }
  100% { transform: translateX(180%); }
}

/* ----- Video live hero ----- */
.video-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  background: var(--bg-1);
}
.video-hero iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-hero-badge {
  position: static;
}
.video-hero-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
}
.video-hero-title {
  font-size: 14px;
  font-weight: 700;
}
.video-hero-hint {
  width: 100%;
  font-size: 12px;
  opacity: 0.85;
}

/* ----- Sectiuni ----- */
.section { padding: var(--sp-12) 0; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}
.section-header h2 { margin: 0; }
.section-header .section-link {
  font-size: var(--fs-sm);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* ----- Timeline program azi (legacy, alte pagini) ----- */
.timeline {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  padding-bottom: var(--sp-3);
  scroll-snap-type: x mandatory;
}
.timeline::-webkit-scrollbar { height: 6px; }
.timeline::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }

.timeline-slot {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.timeline-slot:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.timeline-slot.current {
  border-color: var(--signal);
  box-shadow: var(--glow-signal);
}
.timeline-slot-time {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--signal);
  margin-bottom: var(--sp-2);
}
.timeline-slot-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-base);
  margin-bottom: var(--sp-1);
}
.timeline-slot-host { font-size: var(--fs-xs); color: var(--text-muted); }

/* ----- Programul zilei (home, rundown de emisie) ----- */
.section--day {
  padding: 12px 0 64px;
  background:
    linear-gradient(180deg, #f4f6f9 0%, var(--bg-0) 48px);
}
.airlog {
  max-width: 920px;
  margin: 0 auto;
}
.airlog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.airlog-kicker {
  margin: 0 0 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}
.airlog-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.airlog-date {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}
.airlog-week {
  font-size: 13px;
  font-weight: 600;
  color: var(--signal);
  white-space: nowrap;
  border-bottom: 1px solid color-mix(in srgb, var(--signal) 35%, transparent);
}
.airlog-week:hover { border-bottom-color: var(--signal); }

.airlog-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-2);
  color: var(--text-secondary);
}
.airlog-pill--live {
  background: var(--danger-dim);
  color: var(--danger);
}
.airlog-pill--next {
  background: var(--signal-dim);
  color: var(--signal);
}
.airlog-pill--now {
  background: var(--signal);
  color: #fff;
}

.airlog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.airlog-row {
  display: grid;
  grid-template-columns: 72px 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  position: relative;
  border: 1px solid transparent;
  border-radius: 14px;
}
.airlog-row-time {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  line-height: 1.2;
  z-index: 1;
}
.airlog-row-time strong {
  font-size: 15px;
  letter-spacing: -0.04em;
}
.airlog-row-time span {
  font-size: 11px;
  color: var(--text-muted);
}
.airlog-row-art {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, var(--air-accent, var(--signal)) 18%, var(--bg-2));
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}
.airlog-row-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.airlog-note { color: var(--text-muted); font-size: 16px; }
.airlog-row-body { min-width: 0; }
.airlog-row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.airlog-row-title a { color: inherit; }
.airlog-row-title a:hover { color: var(--signal); }
.airlog-row-body p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.airlog-row .airlog-pill { color: var(--text-secondary); background: var(--bg-2); }
.airlog-row .airlog-pill--live { background: var(--danger-dim); color: var(--danger); }
.airlog-row .airlog-pill--now { background: var(--signal); color: #fff; }
.airlog-row.is-past {
  opacity: 0.48;
}
.airlog-row.is-now {
  background: #fff;
  border-color: var(--signal);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--signal) 35%, transparent);
}
.airlog-row.is-now .airlog-row-time strong { color: var(--signal); }

@media (max-width: 760px) {
  .airlog-row { grid-template-columns: 56px 48px minmax(0, 1fr); gap: 10px; padding: 10px 12px; }
  .airlog-row-time strong { font-size: 13px; }
  .airlog-row-art { width: 48px; height: 48px; }
  .airlog-head { align-items: flex-start; }
}

/* ----- Grile carduri emisiuni ----- */
.shows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-6);
}
.show-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
}
.show-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}
.show-card-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  position: relative;
  overflow: hidden;
}
.show-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 16px;
  box-sizing: border-box;
}
.show-card-image .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--bg-3);
}
.show-card-body { padding: var(--sp-5); flex: 1; }
.show-card-title { font-size: var(--fs-lg); margin-bottom: var(--sp-1); }
.show-card-host {
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  color: var(--signal);
  margin-bottom: var(--sp-3);
}
.show-card-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* ----- Istoric piese ----- */
.history-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.history-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-fast) var(--ease);
}
.history-item:last-child { border-bottom: 0; }
.history-item:hover { background: var(--bg-2); }
.history-time {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  flex: 0 0 48px;
}
.history-track { flex: 1; min-width: 0; }
.history-track-title {
  font-weight: 600;
  font-size: var(--fs-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-track-artist {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----- Program saptamanal ----- */
.week-tabs {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-2);
}
.week-tab {
  flex: 0 0 auto;
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-1);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  font-family: var(--font-body);
}
.week-tab:hover { border-color: var(--border-strong); color: var(--text-primary); }
.week-tab.active {
  background: var(--signal-dim);
  border-color: var(--signal);
  color: var(--signal);
}
.week-tab small { display: block; font-size: 10px; font-weight: 400; color: var(--text-muted); }

.day-schedule { display: none; flex-direction: column; gap: var(--sp-3); }
.day-schedule.active { display: flex; }

.schedule-row {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
  transition: border-color var(--dur-fast) var(--ease);
}
.schedule-row:hover { border-color: var(--border-strong); }
.schedule-row.current {
  border-color: var(--signal);
  background: linear-gradient(90deg, var(--signal-dim), var(--bg-1) 40%);
}
.schedule-row-time {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--signal);
  flex: 0 0 110px;
}
.schedule-row-body { flex: 1; min-width: 0; }
.schedule-row-title { font-weight: 600; }
.schedule-row-meta { font-size: var(--fs-xs); color: var(--text-muted); }

/* ----- Pagina emisiune (header Facebook: coperta stanga-jos pe banner) ----- */
.show-page {
  padding-bottom: var(--sp-12);
}
.show-fb-stage {
  position: relative;
  z-index: 1;
}
.show-fb-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5;
  min-height: 180px;
  max-height: 360px;
  background: linear-gradient(135deg, #1b4b8f, #5eb3e8 70%, #9ad4f0);
  overflow: hidden;
}
.show-fb-banner.is-fallback {
  background: linear-gradient(135deg, #163a72, #2f6fad 60%, #5eb3e8);
}
.show-fb-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.show-fb-banner img.is-blur {
  filter: blur(22px) saturate(1.15);
  transform: scale(1.18);
  opacity: 0.88;
}
.show-fb-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 38%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}
.show-fb-overlay {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: var(--sp-5);
  z-index: 2;
  pointer-events: none;
}
.show-fb-cover {
  width: 148px;
  height: 148px;
  flex: 0 0 148px;
  border-radius: 10px;
  overflow: hidden;
  border: 4px solid var(--bg-0);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  display: grid;
  place-items: center;
  transform: translateY(46%);
  pointer-events: auto;
}
.show-fb-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.show-fb-initials {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--bg-3);
}
.show-fb-names {
  flex: 1;
  min-width: 0;
  padding-bottom: 18px;
  pointer-events: auto;
}
.show-fb-names h1,
.show-fb-host {
  font-family: 'Oswald', var(--font-display), sans-serif;
  color: #fff;
  -webkit-text-stroke: 5px #0b1220;
  paint-order: stroke fill;
  text-shadow:
    -2px -2px 0 #0b1220,
    2px -2px 0 #0b1220,
    -2px 2px 0 #0b1220,
    2px 2px 0 #0b1220,
    0 3px 12px rgba(0, 0, 0, 0.55);
}
.show-fb-names h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.show-fb-host {
  margin: 6px 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 600;
  -webkit-text-stroke-width: 3px;
}
.show-fb-body {
  padding-top: 16px;
}
.show-fb-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-left: calc(148px + var(--sp-5));
  min-height: 76px;
}
.show-fb-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}
.show-fb-next-kicker {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.show-listen { margin-top: 0; }
.show-listen .btn-play-hero {
  flex: 0 1 auto;
}
.show-fb-about {
  margin-top: var(--sp-8);
}
.show-own-voices {
  margin-top: var(--sp-8);
}
.show-own-voices h2 {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-lg);
}
.show-own-hint {
  margin: 0;
  color: var(--text-secondary);
}
.show-own-hint a { color: var(--signal); }
.show-own-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.show-own-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
}
.show-own-play {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  color: var(--signal);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
}
.show-own-play:hover { background: var(--signal); color: #04150e; }
.show-own-body { flex: 1; min-width: 0; }
.show-own-body strong { display: block; font-size: var(--fs-sm); }
.show-own-body span { font-size: var(--fs-xs); color: var(--text-muted); }
@media (max-width: 720px) {
  .show-fb-banner {
    aspect-ratio: 16 / 9;
    min-height: 140px;
    max-height: 220px;
  }
  .show-fb-overlay {
    gap: var(--sp-3);
  }
  .show-fb-cover {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
    border-radius: 8px;
  }
  .show-fb-names {
    padding-bottom: 12px;
  }
  .show-fb-names h1 {
    -webkit-text-stroke-width: 4px;
  }
  .show-fb-toolbar {
    margin-left: calc(96px + var(--sp-3));
    min-height: 52px;
  }
}

.episode-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.episode-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
}
.episode-play {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  color: var(--signal);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: all var(--dur-fast) var(--ease);
}
.episode-play:hover { background: var(--signal); color: #04150e; box-shadow: var(--glow-signal); }
.episode-body { flex: 1; min-width: 0; }
.episode-title { font-weight: 600; font-size: var(--fs-sm); }
.episode-meta { font-size: var(--fs-xs); color: var(--text-muted); font-family: var(--font-mono); }

/* Extensie Chrome — pagina instalare */
.ext-install-card {
  max-width: 640px;
  margin: var(--sp-8) auto;
  padding: var(--sp-8);
}
.ext-install-head {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  margin-bottom: var(--sp-6);
}
.ext-install-head h1 { margin: 0 0 var(--sp-2); }
.ext-install-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background: var(--signal-dim);
  color: var(--signal);
}
.ext-download-btn {
  display: inline-flex;
  margin-bottom: var(--sp-6);
}
.ext-steps {
  margin: 0 0 var(--sp-5);
  padding-left: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.ext-steps li { margin-bottom: var(--sp-3); }
.ext-steps code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--text-primary);
}
.ext-note { margin: 0; }

/* ----- Player persistent ----- */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  min-height: var(--player-height);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.08);
  z-index: var(--z-player);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.player-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 10px 16px;
}
.player-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}
.player-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.player-play {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--signal);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.player-play:hover { box-shadow: var(--shadow-md); transform: scale(1.05); }
.player-play:active { transform: scale(0.96); }
.player-play-art { display: none; }
.player-mood-switch { display: none; }
.player-play svg { width: 20px; height: 20px; }
.player-play.buffering {
  pointer-events: none;
  cursor: wait;
  box-shadow: 0 0 0 3px var(--signal-glow);
}
.player-play.buffering #playIcon,
.player-play.buffering #pauseIcon { display: none !important; }
.player-play.buffering #bufferIcon { display: block !important; }
.player-spinner {
  animation: agr-spin 0.75s linear infinite;
}
@keyframes agr-spin {
  to { transform: rotate(360deg); }
}

.player-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.player-meta-top {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
}
.player-track {
  font-weight: 600;
  font-size: var(--fs-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-sub {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
}

.player-viz {
  flex: 0 0 72px;
  height: 32px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.player-viz span {
  flex: 1;
  background: var(--signal);
  opacity: 0.85;
  border-radius: 1px;
  height: 8%;
  transition: height 90ms linear;
}

.player-listeners {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  min-width: 2.4em;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-1);
  border: 1px solid var(--border);
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  min-width: 0;
}
.player-vol-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 8px;
  padding: 0;
}
.player-vol-btn:hover { color: var(--signal); background: var(--signal-dim); }
.player-vol-btn .player-vol-off { display: none; }
.player-volume.is-muted .player-vol-on { display: none; }
.player-volume.is-muted .player-vol-off { display: block; }
.player-volume input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 88px;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.player-volume input[type='range']::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(
    to right,
    var(--signal) 0%,
    var(--signal) var(--vol, 90%),
    var(--bg-3) var(--vol, 90%),
    var(--bg-3) 100%
  );
}
.player-volume input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--signal);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
}
.player-volume input[type='range']::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: var(--bg-3);
}
.player-volume input[type='range']::-moz-range-progress {
  height: 4px;
  border-radius: 99px;
  background: var(--signal);
}
.player-volume.is-ios-hardware-volume {
  flex: 0 0 auto;
  max-width: none;
}
.player-volume.is-ios-hardware-volume input[type='range'] {
  display: none;
  width: 0;
  min-width: 0;
}

/* iOS / iPadOS: HTMLMediaElement.volume e ignorat — sliderul nu controleaza sunetul */
@supports (-webkit-touch-callout: none) {
  @media (hover: none) and (pointer: coarse) {
    .player-volume {
      flex: 0 0 auto;
      max-width: none;
    }
    .player-volume input[type='range'] {
      display: none;
      width: 0;
      min-width: 0;
    }
  }
}
html.agr-ios-mobile .player-volume {
  flex: 0 0 auto;
  max-width: none;
}
html.agr-ios-mobile .player-volume input[type='range'],
html.agr-ios-mobile #playerVolume,
html.agr-ios-mobile .app-volume {
  display: none !important;
}

.player-volume input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--signal);
}

.player-cast,
.player-pwa {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-1);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}
.player-cast:hover,
.player-pwa:hover {
  border-color: var(--signal);
  color: var(--signal);
  background: var(--signal-dim);
}
.player-cast:active,
.player-pwa:active { transform: scale(0.94); }
.player-cast.is-hidden,
.player-pwa.is-hidden { display: none; }
.player-cast.is-connected {
  border-color: var(--signal);
  color: #fff;
  background: var(--signal);
}

.player-like {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-1);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}
.player-like svg { width: 18px; height: 18px; }
.player-like .player-like-filled { display: none; }
.player-like .player-like-outline { display: block; }
.player-like-count {
  font-family: var(--font-mono);
  font-size: 11px;
  min-width: 1ch;
}
.player-like:hover:not(:disabled) {
  border-color: #e11d48;
  color: #e11d48;
  background: rgba(225, 29, 72, 0.06);
}
.player-like.is-liked {
  border-color: rgba(225, 29, 72, 0.45);
  color: #e11d48;
  background: rgba(225, 29, 72, 0.08);
}
.player-like.is-liked .player-like-filled { display: block; }
.player-like.is-liked .player-like-outline { display: none; }
.player-like:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.player-like:active:not(:disabled) { transform: scale(0.96); }

.player-mood {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-1);
}
.player-mood-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 6px;
}
.player-mood-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.player-mood-btn:hover { color: var(--text-primary); }
.player-mood-btn.is-on {
  background: var(--signal);
  color: #fff;
}
.player-mood-btn.is-busy { pointer-events: none; opacity: 0.7; }
.player-mood-pct {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.75;
}
.player-mood-btn.is-on .player-mood-pct { opacity: 0.9; }

.player-flash {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  background: #1a1f2e;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-flash.is-error { background: #9f1239; }
.player-flash[hidden] { display: none; }

.pwa-sheet {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-player) + 20);
  display: grid;
  place-items: end center;
}
.pwa-sheet[hidden] { display: none; }
.pwa-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.4);
  cursor: pointer;
}
.pwa-sheet-card {
  position: relative;
  width: min(420px, calc(100vw - 20px));
  margin: 0 10px calc(12px + env(safe-area-inset-bottom, 0px));
  padding: 22px 22px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  animation: pwa-up 220ms var(--ease);
}
@keyframes pwa-up {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.pwa-sheet-card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}
.pwa-sheet-steps {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 14px;
}
.pwa-sheet-steps li { margin-bottom: 8px; }
.pwa-sheet-steps b { color: var(--text-primary); }
.pwa-sheet-ok { width: 100%; }

@media (max-width: 1100px) {
  .player-viz { display: none; }
}
@media (max-width: 820px) {
  .player-mood-label { display: none; }
}

@media (max-width: 720px) and (orientation: portrait) {
  body.public-page { --player-height: 128px; }
  .player-inner {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: 'main' 'tools';
    gap: 8px;
    padding: 10px 12px 8px;
  }
  .player-main { grid-area: main; }
  .player-tools {
    grid-area: tools;
    width: 100%;
    justify-content: space-between;
  }
  .player-play { flex-basis: 44px; width: 44px; height: 44px; }
  .player-art-wrap { width: 40px; height: 40px; }
  .player-volume { flex: 1 1 auto; max-width: 140px; }
  .player-volume input[type='range'] { width: 100%; min-width: 72px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  body.public-page { --player-height: 62px; }
  .player-inner { padding: 6px 12px; gap: 10px; }
  .player-play { flex-basis: 38px; width: 38px; height: 38px; }
  .player-art-wrap { width: 34px; height: 34px; }
  .player-sub { display: none; }
  .player-viz,
  .player-mood-label { display: none; }
  .player-listeners { display: inline-flex; }
  .player-volume input[type='range'] { width: 64px; }
}

@media (max-width: 420px) {
  .player-like-count { display: none; }
  .player-mood-pct { display: none; }
}

/* ----- Footer ----- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-12) 0;
  margin-top: var(--sp-12);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-8);
  flex-wrap: wrap;
}
.footer-brand { min-width: 0; }
.footer-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  object-position: left center;
}
.footer-links { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--signal); }

/* ----- Pagina eroare ----- */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-12) var(--sp-5);
}
.error-code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--signal), #00b4d8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--sp-4);
}

/* ----- Prose (despre) ----- */
.prose { max-width: 680px; color: var(--text-secondary); }
.prose p { margin-bottom: var(--sp-5); }

/* ----- Cont public ----- */
.auth-page { padding-top: 32px; padding-bottom: 48px; }
.auth-page--wide { max-width: 720px; }
.auth-card {
  max-width: 420px;
  margin: 0 auto;
}
.auth-card h1,
.account-head h1 {
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  font-size: clamp(1.5rem, 4vw, 2rem);
}
.auth-lead {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 15px;
}
.auth-error,
.auth-info {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  margin: 0 0 16px;
}
.auth-error { background: var(--danger-dim); color: var(--danger); }
.auth-info { background: var(--signal-dim); color: var(--signal); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-secondary); }
.auth-submit { width: 100%; }
.auth-switch { margin: 18px 0 0; font-size: 14px; color: var(--text-muted); }
.auth-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.account-head { margin-bottom: 20px; }
.account-tabs {
  display: flex;
  gap: 2px;
  margin: 0 0 18px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-1);
  overflow-x: auto;
}
.account-tab {
  flex: 1 1 0;
  min-width: 72px;
  text-align: center;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
}
.account-tab:hover { color: var(--text-primary); background: var(--bg-0); }
.account-tab.is-active {
  color: #fff;
  background: var(--signal);
}
.account-panel[hidden] { display: none !important; }
.account-embed-lead {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 15px;
}
.account-embed-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.account-embed-stats div {
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-0);
  border: 1px solid var(--border);
}
.account-embed-stats strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.account-embed-stats span {
  font-size: 12px;
  color: var(--text-muted);
}
.account-embed-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.account-embed-themes {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}
.account-embed-theme {
  border: 1px solid var(--border);
  background: var(--bg-0);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.account-embed-theme:hover { color: var(--text-primary); border-color: var(--border-strong); }
.account-embed-theme.is-active {
  color: #fff;
  background: var(--signal);
  border-color: var(--signal);
}
.account-embed-preview {
  margin: 0 0 12px;
  max-width: 380px;
  background: #0a162c;
  border-radius: 16px;
}
.account-embed-preview.is-light {
  background: #eef1f5;
}
.account-embed-preview iframe {
  display: block;
  width: 100%;
  height: 108px;
  border: 0;
}
.account-embed-code {
  width: 100%;
  min-height: 72px;
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-0);
  color: var(--text-primary);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.45;
  resize: vertical;
}
.account-embed-hint { margin: 12px 0 0; }
@media (max-width: 560px) {
  .account-embed-stats { grid-template-columns: 1fr; }
}
.account-profile {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.account-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.account-photo-face {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--signal-dim);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}
.account-photo-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-photo-face span {
  font-size: 28px;
  font-weight: 700;
  color: var(--signal);
}
.account-photo-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.account-profile-form { flex: 1; min-width: 220px; }
.auth-hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.account-block {
  margin-bottom: 32px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-1);
}
.account-block h2 { margin: 0 0 14px; font-size: 1.1rem; }
.account-favs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.account-fav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}
.account-fav:last-child { border-bottom: 0; }
.account-fav strong { display: block; font-size: 14px; }
.account-fav span { font-size: 12px; color: var(--text-muted); }
