/* ==========================================================================
   C53ENT — Global Audio Player Styles
   Component: Sticky C53 Radio Player (bottom of viewport)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Player Container
   -------------------------------------------------------------------------- */
.c53-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: 72px;
  background: #111111;
  border-top: 1px solid #2A2A2A;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  gap: 1.25rem;
}

/* --------------------------------------------------------------------------
   Station Label / Brand
   -------------------------------------------------------------------------- */
.c53-player__label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.c53-player__station-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #F5F5F5;
  white-space: nowrap;
}

/* LIVE badge */
.c53-player__live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid #FFD700;
  border-radius: 2px;
  padding: 0.15rem 0.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFD700;
  flex-shrink: 0;
}

.c53-player__live-dot {
  width: 5px;
  height: 5px;
  background: #FFD700;
  border-radius: 50%;
  animation: live-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* --------------------------------------------------------------------------
   Play / Pause Button
   -------------------------------------------------------------------------- */
.c53-player__play-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #FFD700;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease, transform 150ms ease;
}

.c53-player__play-btn:hover {
  background: #e6c200;
  transform: scale(1.05);
}

.c53-player__play-btn:active {
  transform: scale(0.97);
}

.c53-player__play-btn svg {
  width: 18px;
  height: 18px;
  fill: #000000;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Track Info
   -------------------------------------------------------------------------- */
.c53-player__track-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.c53-player__track-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F5F5F5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.c53-player__track-note {
  font-size: 0.7rem;
  color: #666666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Inter', sans-serif;
}

/* --------------------------------------------------------------------------
   Progress Bar
   -------------------------------------------------------------------------- */
.c53-player__progress-wrap {
  flex: 2;
  min-width: 80px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.c53-player__progress-bar {
  width: 100%;
  height: 4px;
  background: #2A2A2A;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  border: none;
  padding: 0;
}

.c53-player__progress-bar::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #FFD700 var(--progress, 0%), #2A2A2A var(--progress, 0%));
  border-radius: 2px;
  cursor: pointer;
}

.c53-player__progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFD700;
  cursor: pointer;
  margin-top: -5px;
  border: 2px solid #111111;
  transition: transform 150ms ease;
}

.c53-player__progress-bar:hover::-webkit-slider-thumb {
  transform: scale(1.2);
}

.c53-player__progress-bar::-moz-range-track {
  width: 100%;
  height: 4px;
  background: #2A2A2A;
  border-radius: 2px;
  cursor: pointer;
}

.c53-player__progress-bar::-moz-range-progress {
  height: 4px;
  background: #FFD700;
  border-radius: 2px;
}

.c53-player__progress-bar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFD700;
  cursor: pointer;
  border: 2px solid #111111;
}

.c53-player__time {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  color: #666666;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Volume Control
   -------------------------------------------------------------------------- */
.c53-player__volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.c53-player__vol-icon {
  color: #A0A0A0;
  flex-shrink: 0;
  cursor: pointer;
  transition: color 150ms ease;
}

.c53-player__vol-icon:hover {
  color: #FFD700;
}

.c53-player__vol-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

.c53-player__volume {
  width: 80px;
  height: 4px;
  background: #2A2A2A;
  border-radius: 2px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  border: none;
}

.c53-player__volume::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #FFD700 var(--vol, 80%), #2A2A2A var(--vol, 80%));
  border-radius: 2px;
  cursor: pointer;
}

.c53-player__volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFD700;
  cursor: pointer;
  margin-top: -4px;
  border: 2px solid #111111;
}

.c53-player__volume::-moz-range-track {
  width: 100%;
  height: 4px;
  background: #2A2A2A;
  border-radius: 2px;
}

.c53-player__volume::-moz-range-progress {
  height: 4px;
  background: #FFD700;
  border-radius: 2px;
}

.c53-player__volume::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FFD700;
  cursor: pointer;
  border: 2px solid #111111;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .c53-player {
    gap: 0.75rem;
    padding: 0 0.85rem;
    height: 64px;
  }

  .c53-player__progress-wrap {
    max-width: none;
    flex: 1;
  }

  .c53-player__volume-wrap {
    display: none; /* hide on small screens */
  }

  .c53-player__track-note {
    display: none;
  }

  .c53-player__station-name {
    display: none;
  }
}

@media (max-width: 480px) {
  .c53-player__track-info {
    max-width: 120px;
  }
}
