/* Personar FM - Multi-page Application Styles */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
  overflow: hidden;
}

/* App Layout */
#app-root {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Sidebar */
#sidebar {
  width: 280px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: width 0.3s ease;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  z-index: 100;
}

#sidebar.collapsed {
  width: 60px;
}

#sidebar.collapsed .sport-name,
#sidebar.collapsed .sidebar-subtitle,
#sidebar.collapsed .sidebar-sport-menu {
  display: none;
}

#sidebar.collapsed .sidebar-header h1 {
  font-size: 24px;
  text-align: center;
}

/* Sidebar Header */
.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.1);
}

.sidebar-header h1 {
  font-size: 24px;
  margin-bottom: 5px;
}

.sidebar-subtitle {
  font-size: 12px;
  opacity: 0.8;
}

/* Sidebar Sports List */
.sidebar-sports {
  flex: 1;
  padding: 10px 0;
  overflow-y: auto;
}

.sidebar-sport {
  margin-bottom: 5px;
}

.sidebar-add-sport {
  padding: 10px 20px;
  margin-top: 10px;
}

.btn-add-sport {
  width: 100%;
  padding: 10px 16px;
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px dashed rgba(255,255,255,0.4);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-sport:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.6);
}

.sidebar-sport-header {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}

.sidebar-sport-header:hover {
  background: rgba(255,255,255,0.1);
}

.sidebar-sport.active .sidebar-sport-header {
  background: rgba(255,255,255,0.15);
}

.sport-icon {
  font-size: 20px;
  margin-right: 10px;
}

.sport-name {
  flex: 1;
  font-weight: 500;
}

.sport-toggle {
  font-size: 12px;
  opacity: 0.7;
  transition: transform 0.2s;
}

/* Sidebar Sport Menu */
.sidebar-sport-menu {
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.1);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.sidebar-sport-menu.open {
  display: flex;
  max-height: 200px;
}

.sidebar-link {
  padding: 10px 20px 10px 50px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  border-left-color: rgba(255,255,255,0.5);
}

.sidebar-link.active {
  background: rgba(255,255,255,0.2);
  color: white;
  border-left-color: white;
  font-weight: 500;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.1);
  text-align: center;
}

.btn-collapse {
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.btn-collapse:hover {
  background: rgba(255,255,255,0.3);
}

/* Main Content Area */
#app-content {
  flex: 1;
  overflow-y: auto;
  background: #f5f7fa;
}

/* Page Container */
.page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px;
}

.page-header {
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 32px;
  color: #2c3e50;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 16px;
  color: #7f8c8d;
}

.page-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 30px;
  min-height: 400px;
}

/* Loading State */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(102, 126, 234, 0.2);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-container p {
  margin-top: 15px;
  color: #7f8c8d;
  font-size: 16px;
}

/* Error State */
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  text-align: center;
}

.error-container h2 {
  color: #e74c3c;
  margin-bottom: 10px;
}

.error-container p {
  color: #7f8c8d;
  margin-bottom: 20px;
}

.error-container button {
  padding: 10px 20px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.error-container button:hover {
  background: #5568d3;
}

/* Placeholder Message (for Phase 1) */
.placeholder-message {
  text-align: center;
  padding: 60px 20px;
  color: #7f8c8d;
}

.placeholder-icon {
  font-size: 80px;
  margin-bottom: 20px;
}

.placeholder-message h2 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 28px;
}

.placeholder-message p {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.8;
}

.placeholder-message ul {
  text-align: left;
  display: inline-block;
  margin-top: 20px;
}

.placeholder-message li {
  margin-bottom: 8px;
  font-size: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
  #sidebar {
    width: 100%;
    max-width: 280px;
    position: absolute;
    left: -280px;
    transition: left 0.3s ease;
    height: 100vh;
  }

  #sidebar.open {
    left: 0;
  }

  #sidebar.collapsed {
    width: 100%;
    max-width: 280px;
  }

  .page-container {
    padding: 20px;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .page-content {
    padding: 20px;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.3);
}

/* Sidebar scrollbar (lighter for dark background) */
#sidebar::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}

#sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
}

#sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

/* Stream Management Page - DAW Mixer Interface (Phase 2) */
.stream-management-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  color: white;
}

.stream-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: #2a2a2a;
  border-bottom: 2px solid #667eea;
  flex-shrink: 0;
}

.stream-header-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.stream-header-left h1 {
  margin: 0;
  font-size: 28px;
  color: white;
}

.stream-counter {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.counter-number {
  font-size: 32px;
  font-weight: bold;
  color: #2ecc71;
}

.counter-label {
  font-size: 14px;
  color: #aaa;
}

.stream-header-right {
  display: flex;
  gap: 10px;
}

.btn-start-all, .btn-stop-all, .btn-reset-all {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-start-all {
  background: #2ecc71;
  color: white;
}

.btn-start-all:hover {
  background: #27ae60;
}

.btn-stop-all {
  background: #e74c3c;
  color: white;
}

.btn-stop-all:hover {
  background: #c0392b;
}

.btn-reset-all {
  background: #f39c12;
  color: white;
}

.btn-reset-all:hover {
  background: #d68910;
}

/* Mixer Container */
.mixer-container {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 20px;
  background: #1a1a1a;
}

.channel-strips {
  display: flex;
  gap: 15px;
  min-width: min-content;
  height: 100%;
}

/* Channel Strip */
.channel-strip {
  width: 250px;
  background: #2a2a2a;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s;
  flex-shrink: 0;
}

.channel-strip.active {
  background: #2d3436;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.channel-strip.stopped {
  opacity: 0.7;
}

.channel-strip-header {
  padding: 10px;
  text-align: right;
}

.btn-settings {
  background: rgba(255,255,255,0.1);
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.btn-settings:hover:not(:disabled) {
  background: rgba(255,255,255,0.2);
}

.btn-settings:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.channel-strip-body {
  flex: 1;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.channel-name {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  color: white !important;
}

.channel-number {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Status LED */
.status-led {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
}

.led-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #666;
  transition: all 0.3s;
}

.led-active .led-dot {
  background: #2ecc71;
  box-shadow: 0 0 15px #2ecc71;
  animation: pulse-led 2s infinite;
}

@keyframes pulse-led {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.led-inactive .led-dot {
  background: #555;
}

.led-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
}

.led-active .led-label {
  color: #2ecc71;
  font-weight: bold;
}

/* Audio Source */
.audio-source {
  padding: 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  border-left: 3px solid #667eea;
}

.audio-source-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  margin-bottom: 4px;
}

.audio-source-value {
  font-size: 13px;
  color: white;
}

/* RTSP URL Container */
.rtsp-url-container {
  padding: 10px;
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
  position: relative;
}

.rtsp-url-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  margin-bottom: 4px;
}

.rtsp-url {
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 10px;
  color: #2ecc71;
  word-break: break-all;
  padding-right: 30px;
}

.btn-copy-url {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.1);
  border: none;
  padding: 4px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s;
}

.btn-copy-url:hover {
  background: rgba(255,255,255,0.2);
}

/* Audio File Container */
.audio-file-container {
  padding: 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  border-left: 3px solid #f39c12;
}

.audio-file-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  margin-bottom: 4px;
}

.audio-file-value {
  font-size: 13px;
  color: white;
}

/* Channel Strip Footer */
.channel-strip-footer {
  padding: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-channel-start, .btn-channel-stop {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-channel-start {
  background: #2ecc71;
  color: white;
}

.btn-channel-start:hover {
  background: #27ae60;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.btn-channel-stop {
  background: #e74c3c;
  color: white;
}

.btn-channel-stop:hover {
  background: #c0392b;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

/* Custom scrollbar for mixer */
.mixer-container::-webkit-scrollbar {
  height: 12px;
}

.mixer-container::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 6px;
}

.mixer-container::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 6px;
}

.mixer-container::-webkit-scrollbar-thumb:hover {
  background: #5568d3;
}

/* Add Channel Strip (Phase 3) */
.add-channel-strip {
  background: transparent;
  border: 2px dashed #667eea;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.btn-add-channel {
  background: transparent;
  border: none;
  color: #667eea;
  font-size: 64px;
  cursor: pointer;
  padding: 60px;
  text-align: center;
  transition: all 0.3s;
}

.btn-add-channel:hover {
  color: #764ba2;
  transform: scale(1.15);
}

/* Delete Button (Phase 3) */
.btn-danger {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #c53030 0%, #9c2828 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

/* ==================== Phase 4: Audio Creation Page ==================== */

/* Section Styles */
.csv-editor-section,
.audio-generation-section,
.audio-files-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}

.section-header h2 {
  color: #2d3748;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.editor-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Save Status Indicator */
.save-status {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.save-status.loading {
  background: #edf2f7;
  color: #4a5568;
}

.save-status.success {
  background: #c6f6d5;
  color: #22543d;
}

.save-status.warning {
  background: #fef5e7;
  color: #975a16;
}

.save-status.error {
  background: #fed7d7;
  color: #9b2c2c;
}

/* CSV Editor */
.csv-help {
  background: #f7fafc;
  border-left: 4px solid #667eea;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #4a5568;
  line-height: 1.8;
}

.csv-help code {
  background: #edf2f7;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 13px;
  color: #667eea;
}

.csv-editor-container {
  display: flex;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  max-height: 500px;
  position: relative;
}

.csv-line-numbers {
  background: #f7fafc;
  color: #a0aec0;
  padding: 12px 8px;
  text-align: right;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.5;
  user-select: none;
  overflow-y: hidden;
  border-right: 1px solid #e2e8f0;
  min-width: 50px;
}

.line-number {
  height: 21px;
}

.csv-editor {
  flex: 1;
  padding: 12px;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.5;
  border: none;
  outline: none;
  resize: none;
  overflow-y: auto;
  background: white;
  color: #2d3748;
  tab-size: 2;
}

.csv-editor::placeholder {
  color: #cbd5e0;
}

/* Validation Errors */
.validation-errors {
  margin-top: 16px;
  padding: 16px;
  background: #fed7d7;
  border: 1px solid #fc8181;
  border-radius: 8px;
  display: none;
}

.validation-error-header {
  font-weight: 600;
  color: #9b2c2c;
  margin-bottom: 12px;
}

.validation-error-item {
  padding: 8px 12px;
  background: white;
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #742a2a;
}

.validation-error-item:last-child {
  margin-bottom: 0;
}

.validation-error-item strong {
  color: #c53030;
}

/* Audio Generation Section */
.generation-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.crowd-noise-toggle {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.toggle-label input[type="checkbox"] {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 48px;
  height: 24px;
  background: #cbd5e0;
  border-radius: 24px;
  transition: background 0.3s;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider {
  background: #667eea;
}

.toggle-label input[type="checkbox"]:checked + .toggle-slider::after {
  transform: translateX(24px);
}

.toggle-text {
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
}

.crowd-noise-options {
  padding: 12px 16px;
  background: #f7fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  margin-left: 60px;
}

.volume-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #4a5568;
}

.volume-label input[type="range"] {
  flex: 1;
  min-width: 150px;
}

#crowd-volume-value {
  font-weight: 600;
  color: #667eea;
  min-width: 30px;
}

.generation-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #f7fafc;
  border-radius: 8px;
  margin-top: 16px;
}

.progress-spinner {
  width: 32px;
  height: 32px;
  border: 4px solid #e2e8f0;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.progress-message {
  font-size: 16px;
  color: #4a5568;
  font-weight: 500;
}

.generation-logs {
  margin-top: 16px;
}

.log-entry {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 8px;
  font-weight: 500;
}

.log-entry.success {
  background: #c6f6d5;
  color: #22543d;
}

.log-entry.error {
  background: #fed7d7;
  color: #9b2c2c;
}

.log-output {
  background: #2d3748;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 8px;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 300px;
  overflow-y: auto;
}

/* Audio Files List */
.audio-files-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.loading-message {
  text-align: center;
  padding: 40px;
  color: #a0aec0;
  font-size: 16px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.empty-state p {
  color: #4a5568;
  font-size: 16px;
  margin: 8px 0;
}

.empty-hint {
  color: #a0aec0;
  font-size: 14px;
}

.error-message {
  text-align: center;
  padding: 40px;
  color: #e53e3e;
  font-size: 16px;
}

.audio-file-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.3s;
}

.audio-file-item:hover {
  background: #edf2f7;
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.audio-file-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.audio-file-info {
  flex: 1;
  min-width: 0;
}

.audio-file-name {
  font-weight: 600;
  color: #2d3748;
  font-size: 15px;
  margin-bottom: 4px;
  word-break: break-all;
}

.audio-file-meta {
  font-size: 13px;
  color: #718096;
}

.audio-file-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-icon {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-icon:hover {
  background: #f7fafc;
  border-color: #667eea;
  transform: translateY(-2px);
}

.btn-icon.btn-danger {
  border-color: #fc8181;
}

.btn-icon.btn-danger:hover {
  background: #fed7d7;
  border-color: #f56565;
}

.btn-icon.playing {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.btn-icon.playing:hover {
  background: #5568d3;
  border-color: #5568d3;
}

/* Responsive adjustments for Phase 4 */
@media (max-width: 768px) {
  .csv-editor-container {
    max-height: 300px;
  }

  .csv-editor {
    font-size: 12px;
  }

  .csv-line-numbers {
    font-size: 12px;
    min-width: 40px;
  }

  .audio-file-item {
    flex-wrap: wrap;
  }

  .audio-file-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .editor-controls {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .generation-controls {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .crowd-noise-options {
    margin-left: 0;
    width: 100%;
  }
}

/* ============================================================================
   OPTA Feed Page Styles
   ============================================================================ */

.opta-page {
  /* Page-specific overrides */
}

.opta-section {
  background: white;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.opta-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.opta-section .section-header h2 {
  margin: 0;
  color: #2c3e50;
  font-size: 20px;
  font-weight: 600;
}

.opta-section .section-header p {
  margin: 4px 0 0 0;
  color: #7f8c8d;
  font-size: 14px;
}

/* OPTA Form Styles */

.opta-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.opta-form .form-row {
  display: flex;
  gap: 16px;
}

.opta-form .form-row.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.opta-form .form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.opta-form label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 14px;
}

.opta-form input[type="text"],
.opta-form input[type="number"],
.opta-form select {
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  background: white;
}

.opta-form input:focus,
.opta-form select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.opta-form small {
  color: #7f8c8d;
  font-size: 12px;
  margin-top: 4px;
}

.opta-form .form-actions {
  display: flex;
  gap: 12px;
  padding-top: 12px;
}

/* Match Cards */

.opta-matches-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 16px;
}

.opta-match-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s;
}

.opta-match-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #667eea;
}

/* Match card status colors */
.opta-match-card.status-active {
  border-left: 4px solid #2ecc71;
}

.opta-match-card.status-halftime {
  border-left: 4px solid #f39c12;
}

.opta-match-card.status-fulltime {
  border-left: 4px solid #95a5a6;
}

.opta-match-card.status-played {
  border-left: 4px solid #bdc3c7;
  opacity: 0.8;
}

.opta-match-card.status-prematch {
  border-left: 4px solid #3498db;
}

/* Match Header */

.match-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.match-teams .team {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.match-teams .team.home {
  flex-direction: row;
}

.match-teams .team.away {
  flex-direction: row-reverse;
}

.match-teams .team-name {
  font-weight: 600;
  color: #2c3e50;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-teams .team-score {
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
  min-width: 32px;
  text-align: center;
}

.match-teams .match-separator {
  color: #95a5a6;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.match-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.status-active {
  background: #2ecc71;
  color: white;
}

.status-badge.status-halftime {
  background: #f39c12;
  color: white;
}

.status-badge.status-fulltime {
  background: #95a5a6;
  color: white;
}

.status-badge.status-played {
  background: #bdc3c7;
  color: white;
}

.status-badge.status-prematch {
  background: #3498db;
  color: white;
}

.match-time {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  font-family: 'Courier New', monospace;
}

/* Match Info */

.match-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.match-info .info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.match-info .label {
  font-size: 11px;
  text-transform: uppercase;
  color: #7f8c8d;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.match-info .value {
  font-size: 14px;
  color: #2c3e50;
  font-weight: 600;
}

/* Match Actions */

.match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.match-actions .btn {
  flex: 1;
  min-width: fit-content;
}

/* Empty/Loading/Error States */

.empty-state,
.loading-state,
.error-state {
  padding: 48px 24px;
  text-align: center;
  color: #7f8c8d;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #e0e0e0;
}

.empty-state p {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #2c3e50;
  font-weight: 600;
}

.empty-state small {
  font-size: 14px;
  color: #7f8c8d;
}

.loading-state {
  border-color: #3498db;
  color: #3498db;
}

.error-state {
  border-color: #e74c3c;
  color: #e74c3c;
}

/* Button Variants for OPTA page */

.btn-warning {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
  border: none;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
}

/* Responsive Design */

@media (max-width: 768px) {
  .opta-matches-list {
    grid-template-columns: 1fr;
  }

  .opta-form .form-row.two-cols {
    grid-template-columns: 1fr;
  }

  .match-teams {
    flex-direction: column;
    gap: 8px;
  }

  .match-teams .team {
    width: 100%;
  }

  .match-teams .match-separator {
    display: none;
  }

  .match-actions {
    flex-direction: column;
  }

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

/* ============================================================================
   Feed Panel (Slide-in)
   ============================================================================ */

.feed-panel {
  position: fixed;
  top: 0;
  right: -600px;
  width: 600px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease-in-out;
}

.feed-panel.open {
  right: 0;
}

.feed-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 2px solid #e0e0e0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.feed-panel-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.feed-panel-header .btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.feed-panel-header .btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.feed-panel-tabs {
  display: flex;
  gap: 0;
  background: #f8f9fa;
  border-bottom: 2px solid #e0e0e0;
}

.feed-tab {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: #7f8c8d;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}

.feed-tab:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

.feed-tab.active {
  background: white;
  color: #667eea;
  border-bottom-color: #667eea;
}

.feed-panel-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.feed-tab-content {
  display: none;
  height: 100%;
  overflow-y: auto;
}

.feed-tab-content.active {
  display: block;
}

/* JSON Viewer */

.feed-json-viewer {
  height: 100%;
  overflow: auto;
}

.feed-json-viewer pre {
  margin: 0;
  padding: 24px;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #2c3e50;
  background: #f8f9fa;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Events Timeline */

.events-timeline {
  padding: 24px;
}

.timeline-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.timeline-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.timeline-stats .stat .label {
  font-size: 11px;
  text-transform: uppercase;
  color: #7f8c8d;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.timeline-stats .stat .value {
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
}

.timeline-events {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-event {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.2s;
}

.timeline-event.next {
  border-color: #667eea;
  background: linear-gradient(to right, rgba(102, 126, 234, 0.1), white);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.timeline-event.past {
  opacity: 0.5;
  border-color: #bdc3c7;
}

.timeline-event .event-time {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #667eea;
  min-width: 60px;
  padding-top: 2px;
}

.timeline-event.past .event-time {
  color: #95a5a6;
}

.timeline-event .event-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-event .event-text {
  font-size: 14px;
  color: #2c3e50;
  font-weight: 500;
}

.timeline-event .event-role {
  font-size: 11px;
  text-transform: uppercase;
  color: #7f8c8d;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.timeline-event .event-countdown {
  font-size: 12px;
  color: #667eea;
  font-weight: 600;
  margin-top: 4px;
}

.timeline-event.next .event-countdown {
  color: #2ecc71;
  animation: pulse 2s ease-in-out infinite;
}

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

/* Responsive Feed Panel */

@media (max-width: 768px) {
  .feed-panel {
    right: -100%;
    width: 100%;
  }

  .feed-panel.open {
    right: 0;
  }

  .timeline-stats {
    grid-template-columns: 1fr;
  }

  .timeline-event {
    flex-direction: column;
    gap: 8px;
  }

  .timeline-event .event-time {
    min-width: auto;
  }
}

/* Role Language Configuration Styles */
.language-config-section {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.language-config-section h3 {
  margin-bottom: 10px;
  color: #333;
  font-size: 18px;
}

.language-config-section .help-text {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.role-language-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
}

.role-language-row {
  display: grid;
  grid-template-columns: 150px 1fr 1fr;
  gap: 15px;
  align-items: center;
  padding: 12px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.role-language-row .role-name {
  font-weight: 600;
  color: #667eea;
}

.role-language-select,
.role-voice-select {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.role-language-select label,
.role-voice-select label {
  font-size: 12px;
  font-weight: 500;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-language-select select,
.role-voice-select select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.role-language-select select:hover,
.role-voice-select select:hover {
  border-color: #667eea;
}

.role-language-select select:focus,
.role-voice-select select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.generation-options {
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.generation-options h3 {
  margin-bottom: 15px;
  color: #333;
  font-size: 18px;
}

.generation-controls {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .role-language-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Sessions Management */
.sessions-container {
  margin-bottom: 30px;
}

.sessions-container h2 {
  margin-bottom: 15px;
  color: #2c3e50;
}

.session-card {
  background: white;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.session-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.session-info h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.session-badge {
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
}

.session-actions {
  display: flex;
  gap: 10px;
}

.btn-stop-session {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-stop-session:hover {
  background: rgba(255,255,255,0.3);
}

.session-streams {
  padding: 15px 20px;
}

.stream-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  margin-bottom: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #2ecc71;
}

.stream-item.stream-stopped {
  border-left-color: #95a5a6;
  opacity: 0.7;
}

.stream-info {
  flex: 1;
}

.stream-name {
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stream-led {
  font-size: 10px;
}

.stream-led.led-green {
  color: #2ecc71;
}

.stream-led.led-gray {
  color: #95a5a6;
}

.stream-url {
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  font-size: 11px;
  color: #7f8c8d;
  word-break: break-all;
}

.stream-actions {
  display: flex;
  gap: 8px;
}

.btn-copy-small {
  background: #ecf0f1;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s;
}

.btn-copy-small:hover {
  background: #bdc3c7;
}

/* Channel Configuration Cards */
.channel-config-card {
  background: white;
  border-radius: 6px;
  padding: 15px;
  border: 1px solid #e1e4e8;
}

.channel-config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e1e4e8;
}

.channel-config-header h4 {
  margin: 0;
  color: #2c3e50;
  font-size: 16px;
}

.channel-config-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.config-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.config-label {
  font-size: 12px;
  color: #7f8c8d;
  font-weight: 500;
}

.config-value {
  font-size: 13px;
  color: #2c3e50;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

/* Delete Sport Button */
.btn-delete-sport {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-delete-sport:hover {
  background: #c0392b;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 8px;
  margin-bottom: 30px;
}

.empty-state p {
  color: #7f8c8d;
  margin-bottom: 20px;
  font-size: 16px;
}

.btn-primary {
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #5568d3;
}

/* Counter separator */
.counter-separator {
  margin: 0 10px;
  color: #7f8c8d;
  font-size: 18px;
}

/* Audio Upload Buttons */
.btn-upload-audio {
  background: #3498db;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
  display: inline-block;
}

.btn-upload-audio:hover {
  background: #2980b9;
}

.btn-upload-audio-inline {
  background: #3498db;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-upload-audio-inline:hover {
  background: #2980b9;
}

/* Audio file input group */
.audio-file-input-group {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.audio-file-input-group input {
  flex: 1;
}

/* ============================================================================
   Radio Central Page Styles
   ============================================================================ */

.radio-central-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding-bottom: 100px;
}

.radio-header {
  text-align: center;
  padding: 40px 20px 30px;
  color: white;
}

.radio-header h1 {
  font-size: 36px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.radio-header p {
  color: #aaa;
  font-size: 16px;
}

/* Stations Container */
.stations-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

.stations-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Sport Group */
.sport-group {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 20px;
}

.sport-group-title {
  color: #667eea;
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sport-stations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Station Card */
.station-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.station-card.on-air {
  border-color: #2ecc71;
  background: rgba(46, 204, 113, 0.1);
}

.station-card.on-air:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(46, 204, 113, 0.3);
}

.station-card.playing {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.15);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.station-card.off-air {
  opacity: 0.5;
  border-color: #555;
  cursor: not-allowed;
}

.station-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.on-air-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #555;
}

.on-air-dot.active {
  background: #2ecc71;
  box-shadow: 0 0 10px #2ecc71;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px #2ecc71; }
  50% { opacity: 0.6; box-shadow: 0 0 5px #2ecc71; }
}

.on-air-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
}

.station-card.on-air .on-air-label {
  color: #2ecc71;
}

.station-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.station-name {
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.station-description {
  font-size: 13px;
  color: #aaa;
}

.btn-listen {
  background: #2ecc71;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  font-size: 14px;
}

.btn-listen:hover {
  background: #27ae60;
  transform: scale(1.02);
}

.btn-listen.playing {
  background: #667eea;
}

.btn-listen.playing:hover {
  background: #5568d3;
}

/* Fixed Player Bar */
.radio-player-bar {
  position: fixed;
  bottom: 0;
  left: 280px;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, #2d2d3d 0%, #1a1a2e 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 100;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
}

.now-playing-icon {
  font-size: 28px;
}

.now-playing-details {
  display: flex;
  flex-direction: column;
}

.now-playing-label {
  font-size: 12px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.now-playing-station {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-player {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #667eea;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-player:hover:not(:disabled) {
  background: #5568d3;
  transform: scale(1.1);
}

.btn-player:disabled {
  background: #444;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-player.btn-stop {
  background: #e74c3c;
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.btn-player.btn-stop:hover:not(:disabled) {
  background: #c0392b;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.volume-icon {
  font-size: 18px;
  color: #aaa;
}

#volume-slider {
  width: 100px;
  accent-color: #667eea;
  cursor: pointer;
}

#volume-label {
  color: #aaa;
  font-size: 13px;
  min-width: 35px;
  text-align: right;
}

/* Small spinner for player button */
.spinner-small {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Empty State for Radio Central */
.radio-central-page .empty-state {
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 60px 20px;
  text-align: center;
}

.radio-central-page .empty-state .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.radio-central-page .empty-state h3 {
  color: #aaa;
  margin-bottom: 10px;
  font-size: 20px;
}

.radio-central-page .empty-state p {
  color: #666;
  font-size: 14px;
}

/* Error state */
.radio-central-page .error-state {
  background: rgba(231, 76, 60, 0.1);
  border: 2px dashed rgba(231, 76, 60, 0.3);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
}

.radio-central-page .error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.radio-central-page .error-state h3 {
  color: #e74c3c;
  margin-bottom: 10px;
}

.radio-central-page .error-state p {
  color: #aaa;
  margin-bottom: 20px;
}

.btn-retry {
  background: #667eea;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-retry:hover {
  background: #5568d3;
}

/* Loading state for Radio Central */
.radio-central-page .loading-state {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  padding: 60px 20px;
  text-align: center;
}

.radio-central-page .loading-state .spinner {
  margin: 0 auto 16px;
}

.radio-central-page .loading-state p {
  color: #aaa;
}

/* Make sidebar header clickable */
.sidebar-header {
  cursor: pointer;
  transition: background 0.2s;
}

.sidebar-header:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Responsive Radio Central */
@media (max-width: 768px) {
  .radio-player-bar {
    left: 0;
    padding: 0 16px;
    flex-direction: column;
    height: auto;
    padding: 16px;
    gap: 12px;
  }

  .player-info {
    width: 100%;
  }

  .player-controls {
    width: 100%;
    justify-content: center;
  }

  .stations-container {
    padding: 0 16px;
  }

  .sport-stations {
    grid-template-columns: 1fr;
  }

  .radio-header h1 {
    font-size: 28px;
  }
}

