/* ==========================================================================
   RadioPlay CZ/SK – Liquid Glass (Fluid Glassmorphism) Design System
   ========================================================================== */

:root {
  --bg-dark: #06080d;
  --bg-glass: rgba(13, 17, 26, 0.55);
  --bg-glass-hover: rgba(22, 28, 42, 0.7);
  --bg-glass-card: rgba(18, 22, 33, 0.5);
  
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-light: rgba(255, 255, 255, 0.22);
  --glass-border-glow: rgba(99, 102, 241, 0.5);
  
  --glass-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), inset 0 -1px 1px rgba(0, 0, 0, 0.5), 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --glass-shadow-hover: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 0 30px rgba(99, 102, 241, 0.3), 0 20px 40px rgba(0, 0, 0, 0.6);

  --primary-rgb: 99, 102, 241;
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #818cf8;
  --accent-cyan: #06b6d4;
  --accent-magenta: #ec4899;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(6, 8, 13, 0.8);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Liquid Ambient Background Blobs */
.liquid-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  background-color: #06080d;
}

.liquid-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.65;
  will-change: transform;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.5) 0%, rgba(79, 70, 229, 0) 70%);
  top: -120px;
  left: -120px;
  animation: liquidFloat1 18s ease-in-out infinite alternate;
}

.blob-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.45) 0%, rgba(14, 116, 144, 0) 70%);
  bottom: -180px;
  right: -120px;
  animation: liquidFloat2 22s ease-in-out infinite alternate;
}

.blob-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.4) 0%, rgba(190, 24, 93, 0) 70%);
  top: 35%;
  left: 45%;
  animation: liquidFloat3 16s ease-in-out infinite alternate;
}

.blob-4 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(126, 34, 206, 0) 70%);
  bottom: 15%;
  left: -80px;
  animation: liquidFloat4 20s ease-in-out infinite alternate;
}

@keyframes liquidFloat1 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(140px, 90px) scale(1.15) rotate(90deg); }
  100% { transform: translate(-60px, 150px) scale(0.95) rotate(180deg); }
}

@keyframes liquidFloat2 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-150px, -100px) scale(1.2) rotate(-120deg); }
  100% { transform: translate(70px, -170px) scale(0.9) rotate(-240deg); }
}

@keyframes liquidFloat3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-120px, 130px) scale(1.25); }
  100% { transform: translate(120px, -90px) scale(0.85); }
}

@keyframes liquidFloat4 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(160px, -120px) scale(1.1); }
  100% { transform: translate(-90px, 100px) scale(0.95); }
}

/* App Layout Container */
.app-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Glass Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 6px 20px rgba(99, 102, 241, 0.45);
}

.logo-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #ffffff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 0.825rem;
  color: var(--text-secondary);
}

.badge-live {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent-magenta), var(--primary));
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  -webkit-text-fill-color: initial;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.4);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Glass Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(79, 70, 229, 0.95));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 6px 18px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 8px 24px rgba(99, 102, 241, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--glass-border-light);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--glass-border);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--glass-border-light);
}

.btn-danger-outline {
  background: transparent;
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.6);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 8px;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-icon:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: var(--glass-border-light);
  transform: translateY(-1px);
}

.btn-icon:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Main Grid Layout */
.main-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 1.5rem;
  flex: 1;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Hero Player Card */
.hero-player-card {
  background: var(--bg-glass);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.hero-player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan), var(--accent-magenta));
}

.hero-player-card.is-playing {
  border-color: var(--glass-border-glow);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35), 0 0 35px rgba(99, 102, 241, 0.3), 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Visualizer Container */
.visualizer-container {
  height: 96px;
  background: rgba(6, 8, 13, 0.7);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

#visualizerCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.visualizer-overlay {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 44px;
  width: 100%;
}

.wave-bar {
  width: 6px;
  height: 10px;
  background: linear-gradient(to top, var(--primary), var(--accent-cyan));
  border-radius: 3px;
  transition: height 0.2s ease;
}

.playing .wave-bar {
  animation: soundwave 1.2s infinite ease-in-out alternate;
}

.playing .wave-bar:nth-child(1) { animation-delay: 0.1s; }
.playing .wave-bar:nth-child(2) { animation-delay: 0.3s; }
.playing .wave-bar:nth-child(3) { animation-delay: 0.5s; }
.playing .wave-bar:nth-child(4) { animation-delay: 0.2s; }
.playing .wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes soundwave {
  0% { height: 8px; }
  100% { height: 44px; }
}

/* Now Playing Info */
.now-playing-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.station-avatar {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary-light);
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.hero-player-card.is-playing .station-avatar {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(6, 182, 212, 0.3));
  border-color: var(--primary-light);
  color: #fff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.45);
  animation: avatarPulse 3s infinite alternate;
}

@keyframes avatarPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

.station-meta {
  flex: 1;
  min-width: 0;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.status-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-indicator.live .dot {
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 1.5s infinite;
}

.status-indicator.buffering .dot {
  background: var(--accent-amber);
  animation: pulse 0.8s infinite;
}

.status-indicator.error .dot {
  background: #ef4444;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.station-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-url-display {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
}

/* Live Song Recognition Banner */
.now-playing-song {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(6, 182, 212, 0.14));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.song-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-magenta));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.45);
}

.song-text-meta {
  flex: 1;
  min-width: 0;
}

.song-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--primary-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.song-title-text {
  font-size: 0.925rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Controls */
.player-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-play-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 8px 24px rgba(99, 102, 241, 0.45);
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-play-large:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 10px 30px rgba(99, 102, 241, 0.65);
}

.btn-play-large:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.volume-container {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.volume-slider {
  flex: 1;
  accent-color: var(--primary);
  cursor: pointer;
}

.volume-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 36px;
  text-align: right;
}

/* Troubleshoot Box */
.stream-troubleshoot {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-size: 0.825rem;
  color: #fef08a;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.troubleshoot-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Filter Card */
.filter-card {
  background: var(--bg-glass);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--glass-shadow);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 2.4rem 0.75rem 2.6rem;
  background: rgba(6, 8, 13, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
  background: rgba(6, 8, 13, 0.85);
}

.search-box #btnClearSearch {
  position: absolute;
  right: 8px;
}

.filter-chips {
  display: flex;
  gap: 0.5rem;
}

.chip {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.chip.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(6, 182, 212, 0.3));
  border-color: var(--primary);
  color: #fff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Radio Grid Section */
.content-area {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
}

.station-count-tag {
  font-size: 0.825rem;
  color: var(--text-secondary);
  background: var(--bg-glass);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}

.radios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.15rem;
}

/* Radio Cards (Liquid Glass Effect) */
.radio-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-glass-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18), 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

/* Specular Shimmer on Hover */
.radio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s ease;
  pointer-events: none;
}

.radio-card:hover::before {
  left: 150%;
}

.radio-card:hover {
  transform: translateY(-6px) scale(1.015);
  background: var(--bg-glass-hover);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35), 0 0 25px rgba(99, 102, 241, 0.25), 0 20px 40px rgba(0, 0, 0, 0.5);
}

.radio-card.active-playing {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(6, 182, 212, 0.15));
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 0 35px rgba(99, 102, 241, 0.4), 0 15px 35px rgba(0, 0, 0, 0.6);
  animation: liquidPulse 4s ease-in-out infinite alternate;
}

@keyframes liquidPulse {
  0% { border-color: rgba(99, 102, 241, 0.6); box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 0 30px rgba(99, 102, 241, 0.35), 0 15px 35px rgba(0, 0, 0, 0.6); }
  50% { border-color: rgba(236, 72, 153, 0.6); box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 0 35px rgba(236, 72, 153, 0.4), 0 15px 35px rgba(0, 0, 0, 0.6); }
  100% { border-color: rgba(6, 182, 212, 0.6); box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 0 30px rgba(6, 182, 212, 0.35), 0 15px 35px rgba(0, 0, 0, 0.6); }
}

.radio-card:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-badge {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
}

.card-fav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.card-fav-btn:hover, .card-fav-btn.is-fav {
  color: #f59e0b;
  transform: scale(1.15);
}

.card-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary-light);
  flex-shrink: 0;
  transition: var(--transition);
}

.active-playing .card-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.card-details {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-url {
  font-size: 0.725rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--glass-border);
}

.btn-card-play {
  flex: 1;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--glass-border);
  font-weight: 600;
}

.btn-card-play:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 4px 15px rgba(99, 102, 241, 0.35);
}

.active-playing .btn-card-play {
  background: linear-gradient(135deg, var(--primary), var(--accent-magenta));
  border-color: rgba(255, 255, 255, 0.4);
}

.card-actions-menu {
  display: flex;
  gap: 0.35rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Modal Backdrops & Glass Cards */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  background: rgba(15, 20, 30, 0.85);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 25px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: modalScale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-card.modal-lg {
  max-width: 720px;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.modal-footer {
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(6, 8, 13, 0.65);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
  background: rgba(6, 8, 13, 0.85);
}

.code-textarea {
  font-family: monospace;
  font-size: 0.825rem;
  resize: vertical;
}

.form-help {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* CSV Tabs */
.csv-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.75rem;
}

.csv-tab {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.csv-tab.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(6, 182, 212, 0.3));
  border-color: var(--primary);
  color: #fff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.tab-content {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.tab-content.active {
  display: flex;
}

.csv-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.import-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(6, 8, 13, 0.5);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.margin-top-sm {
  margin-top: 0.5rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast {
  background: rgba(13, 17, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.35rem;
  color: #fff;
  font-size: 0.875rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success { border-left-color: var(--accent-green); }
.toast.error { border-left-color: #ef4444; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Footer Section */
.app-footer {
  margin-top: auto;
  padding: 1.25rem 1.5rem;
  background: var(--bg-glass);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.85rem;
  box-shadow: var(--glass-shadow);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-tags {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   Mobile & Responsive Layout Optimizations
   ========================================================================== */

@media (hover: none) {
  .radio-card:hover {
    transform: none;
  }
  .btn-primary:hover, .btn-secondary:hover, .btn-icon:hover {
    transform: none;
  }
}

@media (max-width: 960px) {
  .app-container {
    padding: 1rem;
    gap: 1.15rem;
  }

  .main-layout {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .app-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }

  .logo-container {
    justify-content: flex-start;
  }

  .header-actions {
    width: 100%;
    display: flex;
    gap: 0.6rem;
  }

  .header-actions .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.65rem 0.75rem;
  }
}

@media (max-width: 600px) {
  .logo-text h1 {
    font-size: 1.3rem;
  }

  .logo-icon {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }

  .hero-player-card {
    padding: 1.15rem;
    gap: 1rem;
  }

  .player-controls {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .btn-play-large {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .volume-container {
    width: 100%;
    order: 3;
  }

  .radios-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .modal-backdrop {
    padding: 0.75rem;
  }

  .modal-card {
    max-height: 88vh;
    overflow-y: auto;
    border-radius: var(--radius-md);
  }

  .modal-header {
    padding: 1rem 1.15rem;
  }

  .modal-body {
    padding: 1.15rem;
    gap: 0.9rem;
  }

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-tags {
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
  }
}

@media (max-width: 380px) {
  .header-actions {
    flex-direction: column;
  }

  .header-actions .btn {
    width: 100%;
  }
}

