/* DEPOOL RADIO LIVE - Modern Dribbble-inspired Styling */
:root {
  --primary: #dc2626;
  --primary-hover: #b91c1c;
  --primary-light: #fef2f2;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.06), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 35px -10px rgba(0,0,0,0.09);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

/* App Wrapper: Mobile-first vertical presentation */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

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

.icon-btn {
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: #e2e8f0;
}

/* Hero Spotlight Live Player */
.hero-player-section {
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.live-player-card {
  background: #0f172a;
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.live-player-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.35) 0%, rgba(220, 38, 38, 0) 70%);
  pointer-events: none;
}

.player-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.station-badge {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.5px;
  animation: pulse-red 2s infinite;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  display: inline-block;
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.program-info {
  margin-bottom: 18px;
}

.program-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 4px;
}

.program-slogan {
  font-size: 12px;
  color: #94a3b8;
}

/* Audio Wave Visualizer */
.equalizer-wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 28px;
  margin-bottom: 16px;
}

.eq-bar {
  width: 4px;
  background: #ef4444;
  border-radius: 2px;
  height: 6px;
  transition: height 0.2s ease;
}

.is-playing .eq-bar:nth-child(1) { animation: bounce 0.8s ease-in-out infinite alternate; }
.is-playing .eq-bar:nth-child(2) { animation: bounce 1.1s ease-in-out infinite alternate 0.1s; }
.is-playing .eq-bar:nth-child(3) { animation: bounce 0.7s ease-in-out infinite alternate 0.2s; }
.is-playing .eq-bar:nth-child(4) { animation: bounce 1.3s ease-in-out infinite alternate 0.3s; }
.is-playing .eq-bar:nth-child(5) { animation: bounce 0.9s ease-in-out infinite alternate 0.15s; }
.is-playing .eq-bar:nth-child(6) { animation: bounce 1.2s ease-in-out infinite alternate 0.25s; }
.is-playing .eq-bar:nth-child(7) { animation: bounce 0.6s ease-in-out infinite alternate 0.05s; }
.is-playing .eq-bar:nth-child(8) { animation: bounce 1.0s ease-in-out infinite alternate 0.35s; }

@keyframes bounce {
  0% { height: 4px; }
  100% { height: 26px; }
}

/* Player Controls */
.player-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.play-main-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.play-main-btn:active {
  transform: scale(0.96);
}

.volume-mute-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.volume-mute-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.stream-quality-tag {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

/* Category Filter Bar */
.filter-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: #f1f5f9;
  color: var(--text-muted);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: #0f172a;
  color: #ffffff;
}

/* Feed Section: Vertical Cards */
.feed-section {
  padding: 8px 16px 80px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  box-shadow: var(--shadow-md);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #0f172a;
  overflow: hidden;
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .card-image {
  transform: scale(1.02);
}

.card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-content {
  padding: 16px;
}

.card-date {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 6px;
}

.card-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 6px;
  cursor: pointer;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

/* Audio Player inside Card */
.card-audio-player {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card-audio-play-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.1s ease;
}

.card-audio-play-btn:active {
  transform: scale(0.94);
}

.card-audio-meta {
  flex-grow: 1;
  min-width: 0;
}

.audio-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 5px;
}

.audio-progress-bar {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin-top: 6px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.audio-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* Expandable Details Container */
.card-expanded-body {
  display: none;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
}

.card-expanded-body.open {
  display: block;
}

.card-video-container {
  margin-top: 12px;
  position: relative;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.card-video-container iframe,
.card-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.card-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
}

.expand-toggle-btn {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-share-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.card-share-btn:hover {
  color: var(--text-main);
}

/* Bottom Navigation / Mini Player */
.sticky-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.04);
  z-index: 60;
}

.mini-stream-btn {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.mini-admin-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 8px;
}
