/**
 * WonderDesign Radio Player Styles
 * Author: wonderdesign
 * Version: 2.1.0
 *
 * Components:
 *  1. Hero Card Player (.wd-hero-player)
 *  2. Footer Sticky Player (.wd-footer-player)
 *  3. On Air Now / Schedule (.wd-onair)
 *  4. Latest Shows — Tabs (.wd-shows)
 *  5. Visualizer Animation
 *
 * All accent colors use --wd-accent so they can be overridden globally:
 *   :root { --wd-accent: #ff6600; }
 */

:root {
  --wd-accent: #ff6600;
  --wd-accent-hover: #e65c00;
  --wd-bg-dark: #0d0d0d;
  --wd-bg-card: #1a1a1a;
  --wd-text: #ffffff;
  --wd-text-muted: #888888;
  --wd-border: #333333;
}

/* ═══════════════════════════════════════════
   1. HERO CARD PLAYER
   ═══════════════════════════════════════════ */
.wd-hero-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 320px;
  max-width: 100%;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 24px 20px;
  box-sizing: border-box;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
  color: #1a1a1a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Now Playing header row */
.wd-hero-player__header {
  width: 100%;
  margin-bottom: 18px;
}

.wd-hero-player__np-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.wd-hero-player__show-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.wd-hero-player__show-icon-default {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff3e6;
  border-radius: 8px;
  flex-shrink: 0;
}

.wd-hero-player__np-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.wd-hero-player__np-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wd-hero-player__show-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wd-hero-player__live-badge {
  background: #ff4500;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Visualizer */
.wd-hero-player__visualizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 48px;
  width: 100%;
  margin-bottom: 16px;
  padding: 0 10px;
  box-sizing: border-box;
}

.wd-hero-player__visualizer span {
  display: block;
  width: 4px;
  background: #ff6600;
  border-radius: 2px;
  height: 6px;
  transition: height 0.15s ease;
}

.wd-hero-player--playing .wd-hero-player__visualizer span {
  animation: wd-viz-bar 0.6s ease-in-out infinite alternate;
}

.wd-hero-player__visualizer span:nth-child(1) {
  animation-delay: 0s;
}
.wd-hero-player__visualizer span:nth-child(2) {
  animation-delay: 0.08s;
}
.wd-hero-player__visualizer span:nth-child(3) {
  animation-delay: 0.16s;
}
.wd-hero-player__visualizer span:nth-child(4) {
  animation-delay: 0.24s;
}
.wd-hero-player__visualizer span:nth-child(5) {
  animation-delay: 0.32s;
}
.wd-hero-player__visualizer span:nth-child(6) {
  animation-delay: 0.12s;
}
.wd-hero-player__visualizer span:nth-child(7) {
  animation-delay: 0.2s;
}
.wd-hero-player__visualizer span:nth-child(8) {
  animation-delay: 0.28s;
}
.wd-hero-player__visualizer span:nth-child(9) {
  animation-delay: 0.04s;
}
.wd-hero-player__visualizer span:nth-child(10) {
  animation-delay: 0.36s;
}
.wd-hero-player__visualizer span:nth-child(11) {
  animation-delay: 0.1s;
}
.wd-hero-player__visualizer span:nth-child(12) {
  animation-delay: 0.22s;
}
.wd-hero-player__visualizer span:nth-child(13) {
  animation-delay: 0.3s;
}
.wd-hero-player__visualizer span:nth-child(14) {
  animation-delay: 0.14s;
}
.wd-hero-player__visualizer span:nth-child(15) {
  animation-delay: 0.26s;
}

@keyframes wd-viz-bar {
  0% {
    height: 6px;
  }
  100% {
    height: 40px;
  }
}

/* Controls row */
.wd-hero-player__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 14px;
}

.wd-hero-player__ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #555;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
  padding: 0;
}

.wd-hero-player__ctrl-btn:hover {
  color: #1a1a1a;
  background: #f0f0f0;
}

.wd-hero-player__play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: #ff6600;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: 0 4px 16px rgba(255, 102, 0, 0.4);
}

.wd-hero-player__play-btn:hover {
  background: #e65c00;
  transform: scale(1.06);
}

.wd-hero-player__play-btn:active {
  transform: scale(0.95);
}

.wd-hero-player__play-btn svg {
  display: block;
}

/* Volume row */
.wd-hero-player__volume-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
  padding: 0 4px;
  box-sizing: border-box;
}

.wd-hero-player__mute-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: #888;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.wd-hero-player__mute-btn:hover {
  color: #1a1a1a;
}

.wd-hero-player__volume-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  accent-color: #ff6600;
}

.wd-hero-player__volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff6600;
  cursor: pointer;
  border: none;
}

.wd-hero-player__volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff6600;
  cursor: pointer;
  border: none;
}

/* Listen Live CTA */
.wd-hero-player__listen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  background: #ff6600;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.wd-hero-player__listen-btn:hover {
  background: #e65c00;
}

/* ═══════════════════════════════════════════
   2. FOOTER STICKY PLAYER
   ═══════════════════════════════════════════ */
.wd-footer-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: var(--wd-bg-dark, #111111);
  border-top: 1px solid var(--wd-border, #222);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
}

.wd-footer-player__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 24px;
  gap: 20px;
}

/* Info area */
.wd-footer-player__info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #ccc;
}

.wd-footer-player__live-dot {
  width: 8px;
  height: 8px;
  background: var(--wd-accent, #ff4500);
  border-radius: 50%;
  flex-shrink: 0;
  animation: wd-radio-pulse 1.5s ease-in-out infinite;
}

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

.wd-footer-player__live-label {
  color: var(--wd-accent, #ff4500);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
}

.wd-footer-player__icon-music {
  display: flex;
  align-items: center;
}

.wd-footer-player__show-name {
  font-weight: 700;
  color: var(--wd-text, #fff);
  white-space: nowrap;
}

.wd-footer-player__meta {
  color: #777;
  font-size: 12px;
  white-space: nowrap;
}

/* Controls center */
.wd-footer-player__controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.wd-footer-player__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.wd-footer-player__btn--play,
.wd-footer-player__btn--pause {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--wd-accent, #ff6600);
}

.wd-footer-player__btn--play:hover,
.wd-footer-player__btn--pause:hover {
  background: var(--wd-accent-hover, #e65c00);
  transform: scale(1.06);
}

/* Footer visualizer */
.wd-footer-player__visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 24px;
}

.wd-footer-player__visualizer span {
  display: block;
  width: 3px;
  height: 4px;
  background: var(--wd-accent, #ff6600);
  border-radius: 1px;
  transition: height 0.15s ease;
}

.wd-footer-player--playing .wd-footer-player__visualizer span {
  animation: wd-viz-footer 0.5s ease-in-out infinite alternate;
}

.wd-footer-player__visualizer span:nth-child(1) {
  animation-delay: 0s;
}
.wd-footer-player__visualizer span:nth-child(2) {
  animation-delay: 0.07s;
}
.wd-footer-player__visualizer span:nth-child(3) {
  animation-delay: 0.14s;
}
.wd-footer-player__visualizer span:nth-child(4) {
  animation-delay: 0.21s;
}
.wd-footer-player__visualizer span:nth-child(5) {
  animation-delay: 0.1s;
}
.wd-footer-player__visualizer span:nth-child(6) {
  animation-delay: 0.18s;
}
.wd-footer-player__visualizer span:nth-child(7) {
  animation-delay: 0.05s;
}

@keyframes wd-viz-footer {
  0% {
    height: 4px;
  }
  100% {
    height: 22px;
  }
}

/* Volume area */
.wd-footer-player__volume-area {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wd-footer-player__btn--mute {
  color: #999;
}

.wd-footer-player__btn--mute:hover {
  color: #fff;
}

.wd-footer-player__volume {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  accent-color: var(--wd-accent, #ff6600);
}

.wd-footer-player__volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--wd-accent, #ff6600);
  cursor: pointer;
  border: none;
}

.wd-footer-player__volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--wd-accent, #ff6600);
  cursor: pointer;
  border: none;
}

/* Playing state */
.wd-footer-player--playing .wd-footer-player__live-dot {
  background: #00cc44;
  animation: wd-radio-pulse 0.8s ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   3. ON AIR NOW / SCHEDULE
   ═══════════════════════════════════════════ */
.wd-onair {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
  color: #ffffff;
}

.wd-onair__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.wd-onair__section-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #ff6600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

/* Featured card — compact horizontal */
.wd-onair__featured {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 24px;
  box-sizing: border-box;
}

.wd-onair__featured-body {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.wd-onair__featured-img-wrap {
  flex-shrink: 0;
  width: 120px;
}

.wd-onair__featured-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.wd-onair__featured-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.wd-onair__show-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.wd-onair__show-time {
  font-size: 14px;
  color: #888;
}

.wd-onair__listen-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: #ff6600;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  transition: background 0.2s ease;
}

.wd-onair__listen-btn:hover {
  background: #e65c00;
}

/* Schedule sidebar — clean rows */
.wd-onair__schedule {
  box-sizing: border-box;
}

.wd-onair__schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wd-onair__sched-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 14px;
  border-bottom: 1px solid #1e1e1e;
  transition: background 0.2s ease;
}

.wd-onair__sched-item:last-child {
  border-bottom: none;
}

.wd-onair__sched-time {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 14px;
  font-weight: 600;
  color: #888;
  min-width: 80px;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.wd-onair__sched-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  flex: 1;
}

.wd-onair__sched-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #ff4500;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.wd-onair__sched-live::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: wd-radio-pulse 1.2s ease-in-out infinite;
}

/* Active/live schedule item */
.wd-onair__sched-item--live {
  background: rgba(255, 102, 0, 0.06);
  border-left: 3px solid #ff6600;
  border-radius: 6px;
  padding-left: 12px;
  margin: 2px 0;
}

.wd-onair__sched-item--live .wd-onair__sched-time {
  color: #ff6600;
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   4. LATEST SHOWS
   ═══════════════════════════════════════════ */
.wd-shows {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    sans-serif;
}

.wd-shows__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.wd-shows__header-left {
  flex: 1;
  min-width: 0;
}

.wd-shows__section-title {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.15;
}

.wd-shows__subtitle {
  font-size: 15px;
  color: #888888;
  margin: 8px 0 0;
  line-height: 1.5;
}

.wd-shows__view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  border: 1px solid #ff6600;
  border-radius: 6px;
  color: #ff6600;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-top: 6px;
}

.wd-shows__view-all:hover {
  background: #ff6600;
  color: #fff;
}

/* Tabs */
.wd-shows__tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.wd-shows__tab {
  padding: 8px 20px;
  border: 1px solid #333;
  border-radius: 20px;
  background: transparent;
  color: #ccc;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.wd-shows__tab:hover {
  border-color: #ff6600;
  color: #ff6600;
}

.wd-shows__tab--active {
  background: #ff6600;
  border-color: #ff6600;
  color: #fff;
}

.wd-shows__title-hl {
  color: #ff6600;
}

.wd-shows__grid {
  display: grid;
  gap: 24px;
}

.wd-shows__grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.wd-shows__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.wd-shows__grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.wd-shows__card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  transition:
    border-color 0.3s ease,
    transform 0.2s ease;
}

.wd-shows__card:hover {
  transform: translateY(-4px);
}

.wd-shows__card--active {
  border-color: #ff6600;
}

.wd-shows__card-img-wrap {
  position: relative;
  overflow: hidden;
}

.wd-shows__card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.wd-shows__card:hover .wd-shows__card-img {
  transform: scale(1.05);
}

.wd-shows__now-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ff6600;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  display: none;
}

.wd-shows__card--active .wd-shows__now-badge {
  display: block;
}

.wd-shows__card-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Category badge on card */
.wd-shows__card-category {
  display: inline-block;
  background: rgba(255, 102, 0, 0.15);
  color: #ff6600;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  width: fit-content;
  margin-bottom: 4px;
}

.wd-shows__card-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wd-shows__card-icon {
  color: #ff6600;
  font-size: 16px;
  flex-shrink: 0;
}

.wd-shows__card-icon i,
.wd-shows__card-icon svg {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.wd-shows__card-name {
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin: 2px 0 0;
}

.wd-shows__card-host {
  font-size: 13px;
  color: #777;
  margin: 0;
}

.wd-shows__card-host-name {
  color: #ff6600;
}

.wd-shows__time {
  font-size: 12px;
  color: #888;
  margin: 0;
}

.wd-shows__card-time-sep {
  margin: 0 4px;
  color: #555;
}

.wd-shows__card-days {
  color: #888;
}

.wd-shows__card-desc {
  font-size: 13px;
  color: #999;
  line-height: 1.5;
  margin: 4px 0 0;
}

/* ═══════════════════════════════════════════
   5. BODY PADDING FOR FOOTER PLAYER
   ═══════════════════════════════════════════ */
body.wd-has-footer-player {
  padding-bottom: 72px;
}

/* ═══════════════════════════════════════════
   7. RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .wd-hero-player {
    width: 280px;
  }

  .wd-onair__grid {
    grid-template-columns: 1fr;
  }

  .wd-onair__featured-body {
    flex-direction: column;
  }

  .wd-onair__featured-img-wrap {
    width: 100px;
  }

  .wd-onair__featured-img {
    width: 100px;
    height: 100px;
  }

  .wd-footer-player__inner {
    padding: 8px 16px;
    gap: 12px;
  }

  .wd-footer-player__meta {
    display: none;
  }

  .wd-footer-player__volume-area {
    display: none;
  }

  .wd-shows__grid--3,
  .wd-shows__grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .wd-shows__section-title {
    font-size: 28px;
  }

  .wd-shows__header {
    flex-direction: column;
  }

  .wd-shows__view-all {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .wd-hero-player {
    width: 100%;
    min-width: 240px;
  }

  .wd-footer-player__info {
    font-size: 11px;
  }

  .wd-footer-player__btn--play,
  .wd-footer-player__btn--pause {
    width: 40px;
    height: 40px;
  }

  .wd-shows__grid--2,
  .wd-shows__grid--3,
  .wd-shows__grid--4 {
    grid-template-columns: 1fr;
  }
}
