/* Auth pages radio player (extracted from base_auth_techworks.html) */

:root{
  /* reuse auth page accents */
  --auth-accent: var(--accent, #667eea);
  --auth-accent-secondary: var(--accent-secondary, #764ba2);
}

.radio-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 12px 12px 14px;
  background: linear-gradient(180deg, rgba(8, 9, 16, 0.10), rgba(8, 9, 16, 0.75));
  backdrop-filter: blur(22px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -24px 70px rgba(0,0,0,.60);
}
.radio-player:before{
  content:'';
  position:absolute;
  left:0; right:0; top:0;
  height:1px;
  background: linear-gradient(90deg, rgba(102,126,234,0) 0%, rgba(102,126,234,.60) 25%, rgba(118,75,162,.60) 75%, rgba(118,75,162,0) 100%);
  opacity:.85;
  pointer-events:none;
}

.radio-player-bar {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 18px 60px rgba(0,0,0,.40);
}

/* Auth radio layout */
.radio-player-bar-auth{ }

.rp-meta{min-width:0;}
.rp-title{
  font-size:11px;
  font-weight:1000;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(255,255,255,.72);
  margin-bottom:2px;
  line-height:1.1;
}
.rp-sub{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.rp-pill{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.82);
  font-size:11px;
  font-weight:900;
  white-space:nowrap;
}
.rp-station{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:rgba(255,255,255,.92);
  font-weight:900;
  letter-spacing:.01em;
}
.rp-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-left:auto;
}

.rp-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 12px 35px rgba(0,0,0,.25);
}

.rp-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.rp-main {
  background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-secondary) 100%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 16px 44px rgba(102,126,234,.28),
    0 20px 70px rgba(0,0,0,.38);
}

.rp-main:hover {
  filter: brightness(1.1);
}

.rp-main.playing {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
}

/* Visualizer (subtle) */
.rp-viz{
  display:flex;
  align-items:flex-end;
  gap:3px;
  height:14px;
  margin-left:2px;
  opacity:.8;
}
.rp-viz span{
  width:3px;
  height:6px;
  border-radius:999px;
  background: rgba(255,255,255,.35);
  transform-origin: bottom;
}
#authRadioPlayer.is-playing .rp-viz span{
  background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.25));
  animation: viz 1.1s ease-in-out infinite;
}
#authRadioPlayer.is-playing .rp-viz span:nth-child(2){ animation-delay:.12s; }
#authRadioPlayer.is-playing .rp-viz span:nth-child(3){ animation-delay:.24s; }
#authRadioPlayer.is-playing .rp-viz span:nth-child(4){ animation-delay:.36s; }
@keyframes viz{
  0%,100%{ transform: scaleY(.55); opacity:.7; }
  50%{ transform: scaleY(1.35); opacity:1; }
}

/* Track (not used on auth, but safe to keep) */
.rp-track-wrapper {
  padding: 4px 0;
}

.rp-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.rp-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--auth-accent), #22c55e);
  border-radius: 999px;
  transition: width 0.1s linear;
}

.rp-time {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.rp-vol {
  width: 132px;
  height: 26px;
  cursor: pointer;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.rp-vol:focus{ outline:none; }
.rp-vol::-webkit-slider-runnable-track{
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.rp-vol::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  margin-top: -6px;
  background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-secondary) 100%);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.rp-vol::-moz-range-track{
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.10);
}
.rp-vol::-moz-range-thumb{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-secondary) 100%);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

/* Stations bar */
.radio-waves-bar {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 10px 0;
  max-width: 980px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.radio-waves-bar::-webkit-scrollbar{ display:none; }

.wave-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.wave-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
}

.wave-btn.active {
  background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-secondary) 100%);
  border-color: rgba(255,255,255,.22);
  color: white;
  box-shadow: 0 12px 36px rgba(102,126,234,.18);
}

.wave-btn i {
  font-size: 11px;
}

@media (max-width: 768px) {
  .radio-player-bar-auth {
    gap: 12px;
    padding: 10px 12px;
  }

  .rp-title{display:none;}
  .rp-vol{
    width: 96px;
  }

  .rp-btn {
    width: 46px;
    height: 46px;
  }

  .radio-waves-bar {
    gap: 10px;
    padding: 10px 6px 0;
  }

  .wave-btn {
    padding: 10px 12px;
    font-size: 12px;
  }

  .wave-btn span {
    display: inline;
  }
}

