/* ZHURMA.FM Radio - Styles
 * Pure CSS, no frameworks
 * 
 * Colors per spec:
 * - Background: Black (#000)
 * - Text: White (#fff)
 * - Accent: Golden (#D4AF37 - metallic gold)
 * - Muted: Gray (#888)
 */

:root {
  --color-bg: #000;
  --color-text: #fff;
  --color-accent: #D4AF37;
  --color-accent-glow: rgba(212, 175, 55, 0.4);
  --color-muted: #888;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

/* Visualizer Canvas - Full screen background */
.visualizer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  transition: opacity 0.5s ease;
  /* Scale lower-res canvas render to fill screen (adaptive quality) */
  object-fit: cover;
}

/* Visualizer states */
.visualizer.visualizer-idle {
  opacity: 0.7;
}

.visualizer.visualizer-active {
  opacity: 1;
}

/* UI Overlay - Sits on top of visualizer */
.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.4s ease;
}

.overlay > * {
  pointer-events: auto;
}

/* Controls auto-hide state - now only affects play button */
.play-btn.controls-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Legacy overlay controls-hidden (keeping for any other usage) */
.overlay.controls-hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay.controls-hidden > * {
  pointer-events: none;
}

/* Allow tapping the hidden overlay to show controls */
.overlay.controls-hidden::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

/* Top Bar */
.top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.top-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo .accent {
  color: var(--color-accent);
}

/* Mode Toggle */
.mode-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.mode-btn {
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  color: var(--color-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.mode-btn:hover {
  color: var(--color-text);
}

.mode-btn.active {
  background: rgba(212, 175, 55, 0.2);
  color: var(--color-accent);
}

.mode-btn + .mode-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Center - Play Button / Loading / Error / Buffering */
.center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

/* Play Button */
.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  transform: scale(1);
}

.play-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: var(--color-accent);
  transform: scale(1.05);
}

/* Play button tap feedback - pressed state */
.play-btn.pressed {
  transform: scale(0.95) !important;
  transition: transform 0.05s ease;
}

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

.play-btn svg {
  width: 32px;
  height: 32px;
}

.play-btn.playing {
  border-color: var(--color-accent);
  box-shadow: 0 0 20px var(--color-accent-glow);
}

/* Loading State */
.loading-state {
  text-align: center;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 1rem;
  color: var(--color-muted);
}

/* Buffering State */
.buffering-state {
  text-align: center;
}

.buffering-spinner {
  width: 64px;
  height: 64px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

/* Pulsing animation for buffering */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.98);
  }
}

.buffering-state .buffering-spinner {
  animation: spin 0.8s linear infinite, pulse 1.5s ease-in-out infinite;
}

/* Connection Quality Indicators */
.buffering-spinner.quality-good {
  border-top-color: var(--color-accent); /* Golden for good connection */
  animation-duration: 0.8s; /* Normal speed */
}

.buffering-spinner.quality-fair {
  border-top-color: #ff9500; /* Orange for fair connection */
  animation-duration: 1.2s; /* Slightly slower */
  border-width: 4px; /* Thicker border */
}

.buffering-spinner.quality-poor {
  border-top-color: #ff3b30; /* Red for poor connection */
  animation-duration: 1.8s; /* Slower spin */
  border-width: 5px; /* Thickest border */
  opacity: 0.8; /* Slightly faded */
}

.buffering-text {
  font-size: 1rem;
  color: var(--color-muted);
  animation: pulse 1.5s ease-in-out infinite;
}

/* Error State */
.error-state {
  text-align: center;
}

.error-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.error-message {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.retry-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.retry-btn:hover {
  background: rgba(212, 175, 55, 0.3);
  transform: scale(1.02);
}

/* Connection Error State */
.connection-error {
  text-align: center;
}

.connection-error-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.connection-error-message {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.try-again-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.try-again-btn:hover {
  background: rgba(212, 175, 55, 0.3);
  transform: scale(1.02);
}

/* Volume Control (Desktop only) */
.volume-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.volume-container:hover {
  opacity: 1;
}

.volume-icon {
  font-size: 1.25rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.1s;
}

.volume-icon:hover {
  transform: scale(1.1);
}

.volume-icon:active {
  transform: scale(0.95);
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--color-accent) 0%, var(--color-accent) 100%, rgba(255,255,255,0.2) 100%, rgba(255,255,255,0.2) 100%);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-text);
  cursor: pointer;
  transition: transform 0.1s;
}

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

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: var(--color-text);
  cursor: pointer;
  transition: transform 0.1s;
}

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

.volume-level {
  font-size: 0.75rem;
  color: var(--color-muted);
  min-width: 32px;
  text-align: right;
}

/* Bottom - Station Info */
.bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.station-name {
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.now-playing {
  font-size: 0.875rem;
  color: var(--color-muted);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.listeners {
  font-size: 0.75rem;
  color: var(--color-accent);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  margin-top: 0.25rem;
  opacity: 0.8;
}

/* Station Indicators - Left side vertical column */
.indicators {
  position: fixed;
  left: 10px;
  top: 60px;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  z-index: 20;
  pointer-events: auto;
  max-height: calc(100vh - 120px); /* Account for top/bottom spacing */
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.indicators::-webkit-scrollbar {
  display: none;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

.indicator.active {
  background: var(--color-accent);
  width: 10px;
  height: 10px;
  transform: scale(1.3);
  border-radius: 50%;
}

/* Vertical Station Navigation Dots - Left side */
.station-nav-dots {
  position: fixed;
  left: 15px;
  top: 80px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  z-index: 20;
  pointer-events: auto;
  max-height: calc(100vh - 160px); /* Account for top/bottom spacing */
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
}

.station-nav-dots::-webkit-scrollbar {
  display: none;
}

.station-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.station-nav-dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.station-nav-dot.active {
  background: var(--color-accent);
  width: 12px;
  height: 12px;
  transform: scale(1.0);
  box-shadow: 0 0 8px var(--color-accent-glow);
}

/* Hide elements conditionally */
.hidden {
  display: none !important;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .overlay {
    padding: 1rem;
  }

  .station-name {
    font-size: 1.25rem;
  }

  .play-btn {
    width: 64px;
    height: 64px;
  }

  .play-btn svg {
    width: 24px;
    height: 24px;
  }
  
  .mode-btn {
    padding: 0.4rem 0.6rem;
    font-size: 1rem;
  }
  
  /* Hide volume on mobile - use system controls */
  .volume-container {
    display: none !important;
  }

  /* Adjust indicators for mobile */
  .indicators {
    left: 1rem;
    top: 50px;
    gap: 0.5rem;
  }

  .indicator {
    width: 6px;
    height: 6px;
  }

  .indicator.active {
    width: 8px;
    height: 8px;
  }

  /* Adjust vertical navigation dots for mobile */
  .station-nav-dots {
    left: 10px;
    top: 70px;
    bottom: 70px;
    gap: 6px;
  }

  .station-nav-dot {
    width: 6px;
    height: 6px;
  }

  .station-nav-dot.active {
    width: 10px;
    height: 10px;
  }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .loading-spinner,
  .buffering-spinner {
    animation: none;
  }
  
  .play-btn {
    transition: none;
  }
  
  .visualizer {
    transition: none;
  }
}

/* =============================================================================
   CATALOG VIEW - Browse all stations
   ============================================================================= */

/* Top bar right section */
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Catalog button */
.catalog-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.catalog-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: var(--color-accent);
}

/* Catalog View - Full screen overlay */
.catalog-view {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.catalog-view.hidden {
  display: none;
}

/* Catalog Header */
.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.catalog-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--color-text);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.catalog-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Search Box */
.catalog-search {
  position: relative;
  padding: 1rem 1.5rem;
}

.catalog-search input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--color-text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.catalog-search input::placeholder {
  color: var(--color-muted);
}

.catalog-search input:focus {
  border-color: var(--color-accent);
}

.catalog-search-clear {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
}

.catalog-search-clear:hover {
  color: var(--color-text);
}

/* Region Filter Tabs */
.catalog-filters {
  display: flex;
  padding: 0 1.5rem;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.catalog-filters::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: var(--color-muted);
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.filter-tab:hover {
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.4);
}

.filter-tab.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

/* Sort Controls */
.catalog-sort {
  position: relative;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.sort-btn {
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s;
}

.sort-btn:hover {
  color: var(--color-text);
}

.sort-dropdown {
  position: absolute;
  top: 100%;
  right: 1.5rem;
  background: rgba(30, 30, 30, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  z-index: 10;
  min-width: 150px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.sort-dropdown.hidden {
  display: none;
}

.sort-option {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.sort-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sort-option.active {
  color: var(--color-accent);
}

/* Section Title (Favorites header) */
.section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1.5rem 0.5rem;
  margin: 0;
}

.favorites-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

/* Catalog Grid Container (scrollable) */
.catalog-grid-container {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

/* Station Grid */
.station-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

/* Station Card */
.station-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.station-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.station-card:active {
  transform: scale(0.98);
}

.station-card.now-playing {
  border-color: var(--color-accent);
  box-shadow: 0 0 20px var(--color-accent-glow);
}

.station-card.now-playing::after {
  content: "▶ NOW PLAYING";
  display: block;
  font-size: 0.625rem;
  color: var(--color-accent);
  margin-top: 0.5rem;
  font-weight: 600;
}

.station-card.favorite .station-card-favorite {
  color: #ff4757;
}

/* Station Card Elements */
.station-card-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}

.station-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.station-card-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-card-location {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-card-listeners {
  font-size: 0.75rem;
  color: var(--color-accent);
}

.station-card-favorite {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Loading indicator */
.catalog-loading {
  text-align: center;
  padding: 2rem;
}

.catalog-loading .loading-spinner {
  margin: 0 auto 0.5rem;
}

/* No Results */
.catalog-no-results {
  text-align: center;
  padding: 3rem 1rem;
}

.no-results-text {
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.clear-filters-btn {
  padding: 0.5rem 1rem;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  color: var(--color-accent);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.clear-filters-btn:hover {
  background: rgba(212, 175, 55, 0.3);
}

/* Region Group Headers (for "By Region" sort) */
.region-header {
  grid-column: 1 / -1;
  padding: 0.5rem 0;
  margin-top: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.region-header:first-child {
  margin-top: 0;
}

/* =============================================================================
   STATION DETAILS MODAL
   ============================================================================= */

.station-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.station-modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: rgba(30, 30, 30, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  max-width: 360px;
  width: calc(100% - 2rem);
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--color-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-text);
}

.modal-station-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.modal-station-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-station-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.modal-station-location {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.modal-stats {
  text-align: left;
  margin-bottom: 1.5rem;
}

.modal-stat {
  font-size: 0.875rem;
  color: var(--color-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-stat:last-child {
  border-bottom: none;
}

.modal-stat a {
  color: var(--color-accent);
  text-decoration: none;
}

.modal-stat a:hover {
  text-decoration: underline;
}

.modal-actions {
  display: flex;
  gap: 1rem;
}

.modal-action-btn {
  flex: 1;
  padding: 0.875rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-play-btn {
  background: var(--color-accent);
  border: none;
  color: var(--color-bg);
}

.modal-play-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.modal-favorite-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text);
}

.modal-favorite-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-favorite-btn.favorited {
  color: #ff4757;
  border-color: #ff4757;
}

/* =============================================================================
   SCROLLABLE INDICATOR DOTS (for 90+ stations)
   ============================================================================= */

.indicator-hint {
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1;
  padding: 0.25rem 0;
  opacity: 0.6;
  transform: rotate(90deg);
  flex-shrink: 0;
}

/* Mobile responsive adjustments for catalog */
@media (max-width: 640px) {
  .catalog-header {
    padding: 0.75rem 1rem;
  }
  
  .catalog-search {
    padding: 0.75rem 1rem;
  }
  
  .catalog-filters {
    padding: 0 1rem;
  }
  
  .catalog-sort {
    padding: 0.5rem 1rem;
  }
  
  .catalog-grid-container {
    padding: 0.75rem 1rem;
  }
  
  .station-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
  }
  
  .station-card {
    padding: 0.75rem;
  }
  
  .station-card-logo {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
  
  .station-card-name {
    font-size: 0.75rem;
  }
  
  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .modal-station-logo {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }
}

/* Screen Reader Only - for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
