/* ============================================
   PXD Radio — Light Glassmorphism Landing Page
   Font: Space Grotesk (modern geometric)
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red-primary: #d62839;
  --red-glow: rgba(214, 40, 57, 0.5);
  --red-deep: #b71c2e;
  --red-soft: rgba(214, 40, 57, 0.08);
  --bg-base: #f0eded;
  --bg-warm: #faf7f5;
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-bg-hover: rgba(255, 255, 255, 0.6);
  --glass-bg-inner: rgba(255, 255, 255, 0.35);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-border-subtle: rgba(255, 255, 255, 0.4);
  --glass-border-active: rgba(214, 40, 57, 0.4);
  --glass-shadow: rgba(0, 0, 0, 0.06);
  --glass-shadow-deep: rgba(0, 0, 0, 0.1);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a5a;
  --text-muted: #8a8a9a;
  --blur: 20px;
  --blur-heavy: 30px;
  --transition-fast: 0.2s ease;
  --transition-med: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Animated Background Orbs ---------- */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.orb-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(214, 40, 57, 0.25) 0%, transparent 70%);
  top: -15%;
  left: -12%;
  animation: floatOrb1 14s ease-in-out infinite;
}

.orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 130, 100, 0.2) 0%, transparent 70%);
  bottom: -18%;
  right: -12%;
  animation: floatOrb2 18s ease-in-out infinite;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 180, 100, 0.18) 0%, transparent 70%);
  top: 45%;
  left: 55%;
  animation: floatOrb3 20s ease-in-out infinite;
}

.orb-4 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(214, 40, 57, 0.15) 0%, transparent 70%);
  top: 25%;
  left: 15%;
  animation: floatOrb4 22s ease-in-out infinite;
}

.orb-5 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(200, 60, 80, 0.12) 0%, transparent 70%);
  bottom: 15%;
  left: 35%;
  animation: floatOrb5 16s ease-in-out infinite;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(80px, 60px) scale(1.1); }
  50% { transform: translate(40px, 120px) scale(0.95); }
  75% { transform: translate(-30px, 80px) scale(1.05); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-60px, -40px) scale(1.15); }
  50% { transform: translate(-100px, -80px) scale(0.9); }
  75% { transform: translate(-40px, -120px) scale(1.1); }
}

@keyframes floatOrb3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-80px, 50px) scale(1.2); }
  66% { transform: translate(60px, -40px) scale(0.85); }
}

@keyframes floatOrb4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, -60px) scale(1.15); }
}

@keyframes floatOrb5 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -80px) scale(1.1); }
  50% { transform: translate(-60px, -40px) scale(0.95); }
  75% { transform: translate(-20px, 60px) scale(1.05); }
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 28px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(214, 40, 57, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(255, 160, 100, 0.08) 0%, transparent 50%),
    linear-gradient(165deg, #f5f0ee 0%, #ede7e4 30%, #f0eaec 60%, #eee8e6 100%);
}

/* ---------- Logo (outside card) ---------- */
.logo-container {
  width: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-20px);
  animation: logoEntrance 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  transition: filter var(--transition-med), transform var(--transition-med);
}

.logo:hover {
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.2));
  transform: scale(1.02);
}

@keyframes logoEntrance {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}



/* ---------- Announcement Section ---------- */
.announcement {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 620px;
  text-align: center;
  padding: 8px 20px 16px;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.announcement-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
  border-radius: 2px;
  opacity: 0.5;
}

.announcement-heading {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--text-primary);
}

.announcement-text {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 500px;
}

.announcement-highlight {
  display: block;
  margin-top: 10px;
  color: var(--red-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

/* ---------- Glass Card (player) ---------- */
.glass-card {
  width: 100%;
  max-width: 620px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-heavy)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--blur-heavy)) saturate(1.6);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 32px 36px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 -1px 0 rgba(0, 0, 0, 0.02) inset,
    0 4px 12px var(--glass-shadow),
    0 16px 40px var(--glass-shadow-deep),
    0 0 0 0.5px rgba(255, 255, 255, 0.4) inset;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  animation: cardAppear 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

@keyframes cardAppear {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- Live Badge ---------- */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(214, 40, 57, 0.1);
  border: 1px solid rgba(214, 40, 57, 0.2);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--red-primary);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--transition-med), transform var(--transition-med);
}

.live-badge.visible {
  opacity: 1;
  transform: scale(1);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-primary);
  animation: livePulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 6px var(--red-glow);
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ---------- Channels ---------- */
.channels-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.channels-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.channel-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px 22px;
  background: var(--glass-bg-inner);
  backdrop-filter: blur(var(--blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 20px;
  color: var(--text-primary);
  cursor: pointer;
  overflow: hidden;
  transition:
    background var(--transition-fast),
    border-color var(--transition-med),
    transform var(--transition-fast),
    box-shadow var(--transition-med);
  outline: none;
  font-family: inherit;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.channel-btn:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 24px rgba(0, 0, 0, 0.08);
}

.channel-btn:active {
  transform: translateY(0) scale(0.98);
}

.channel-btn.active {
  border-color: var(--glass-border-active);
  background: rgba(214, 40, 57, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 0 24px rgba(214, 40, 57, 0.08),
    0 4px 16px rgba(214, 40, 57, 0.06);
}

.channel-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at 50% 40%, rgba(214, 40, 57, 0.08) 0%, transparent 70%);
  transition: opacity var(--transition-med);
  pointer-events: none;
}

.channel-btn.active .channel-glow {
  opacity: 1;
}

.channel-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition-med), transform var(--transition-med);
}

.channel-btn.active .channel-icon {
  color: var(--red-primary);
  transform: scale(1.1);
}

.channel-icon svg {
  width: 100%;
  height: 100%;
}

.channel-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  transition: color var(--transition-med);
}

.channel-btn.active .channel-label {
  color: var(--red-primary);
}

.channel-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
  font-weight: 400;
}

/* ---------- Player Bar ---------- */
.player-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(var(--blur)) saturate(1.3);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.3);
  border: 1px solid var(--glass-border-subtle);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.player-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

/* ---------- Equalizer ---------- */
.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  opacity: 0.35;
  transition: opacity var(--transition-med);
}

.equalizer.playing {
  opacity: 1;
}

.equalizer .bar {
  width: 3px;
  background: var(--red-primary);
  border-radius: 2px;
  transition: height 0.1s ease;
}

.equalizer .bar:nth-child(1) { height: 6px; animation: none; }
.equalizer .bar:nth-child(2) { height: 10px; animation: none; }
.equalizer .bar:nth-child(3) { height: 14px; animation: none; }
.equalizer .bar:nth-child(4) { height: 8px; animation: none; }
.equalizer .bar:nth-child(5) { height: 12px; animation: none; }

.equalizer.playing .bar:nth-child(1) { animation: eqBar 0.8s ease-in-out infinite; }
.equalizer.playing .bar:nth-child(2) { animation: eqBar 0.6s ease-in-out infinite 0.1s; }
.equalizer.playing .bar:nth-child(3) { animation: eqBar 0.7s ease-in-out infinite 0.2s; }
.equalizer.playing .bar:nth-child(4) { animation: eqBar 0.9s ease-in-out infinite 0.15s; }
.equalizer.playing .bar:nth-child(5) { animation: eqBar 0.5s ease-in-out infinite 0.05s; }

@keyframes eqBar {
  0%, 100% { height: 4px; }
  50% { height: 20px; }
}

.player-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.player-channel {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-status {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Player Controls ---------- */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--red-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-med);
  box-shadow: 0 4px 16px rgba(214, 40, 57, 0.3);
  outline: none;
  flex-shrink: 0;
}

.control-btn:hover {
  background: var(--red-deep);
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(214, 40, 57, 0.4);
}

.control-btn:active {
  transform: scale(0.95);
}

.control-btn svg {
  width: 20px;
  height: 20px;
}

.icon-play {
  margin-left: 2px;
}

.hidden {
  display: none !important;
}

/* ---------- Volume ---------- */
.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.1);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(214, 40, 57, 0.3);
  transition: transform 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red-primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(214, 40, 57, 0.3);
}

/* ---------- Footer ---------- */
.footer-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.5px;
}

/* ============================================
   Responsive — Mobile First
   ============================================ */

@media (max-width: 480px) {
  .hero {
    padding: 32px 14px;
    justify-content: center;
    gap: 22px;
  }

  .logo-container {
    width: 200px;
  }

  .announcement-heading {
    font-size: 1.25rem;
  }

  .announcement-text {
    font-size: 0.8rem;
  }

  .announcement-highlight {
    font-size: 0.78rem;
  }

  .glass-card {
    padding: 28px 20px 28px;
    border-radius: 22px;
    gap: 20px;
  }

  .channels {
    gap: 12px;
  }

  .channel-btn {
    padding: 22px 12px 18px;
    border-radius: 16px;
  }

  .channel-icon {
    width: 30px;
    height: 30px;
  }

  .channel-label {
    font-size: 0.9rem;
  }

  .channel-desc {
    font-size: 0.65rem;
  }

  .player-bar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .player-info {
    order: 1;
    flex: 1;
  }

  .player-controls {
    order: 2;
  }

  .volume-control {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
  }

  .volume-slider {
    width: 100%;
    flex: 1;
  }

  .control-btn {
    width: 44px;
    height: 44px;
  }

  .orb-1 { width: 300px; height: 300px; }
  .orb-2 { width: 250px; height: 250px; }
  .orb-3 { width: 180px; height: 180px; }
  .orb-4 { width: 150px; height: 150px; }
  .orb-5 { width: 200px; height: 200px; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .logo-container {
    width: 240px;
  }

  .glass-card {
    max-width: 460px;
    padding: 32px 28px 32px;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .orb,
  .logo-container,
  .equalizer .bar {
    animation: none !important;
  }

  .glass-card,
  .announcement {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .logo-container {
    opacity: 1;
    transform: none;
  }

  .live-dot {
    animation: none;
    opacity: 1;
  }
}
