/* ==========================================================================
   Tabscribber - Premium Dark Glassmorphic Design System
   ========================================================================== */

:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #121824;
  --bg-tertiary: #1b2333;
  --bg-glass: rgba(18, 24, 36, 0.75);
  --bg-glass-hover: rgba(27, 35, 51, 0.85);

  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(251, 146, 60, 0.35);

  --accent-amber: #f59e0b;
  --accent-amber-light: #fbbf24;
  --accent-orange: #ea580c;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px rgba(245, 158, 11, 0.25);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Ambient glow blobs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}
.glow-1 {
  width: 550px;
  height: 550px;
  background: var(--accent-orange);
  top: -150px;
  left: -100px;
}
.glow-2 {
  width: 650px;
  height: 650px;
  background: var(--accent-purple);
  bottom: -200px;
  right: -150px;
}

/* Glass panel utility */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

/* App Header */
.app-header {
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 13, 20, 0.8);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4);
}
.brand-text h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-purple));
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}
.brand-tagline {
  font-size: 0.825rem;
  color: var(--text-secondary);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
}
.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.status-indicator.live {
  background-color: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Main Content Layout */
.main-content {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 1.75rem auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
  z-index: 10;
}

/* Input Card */
.input-card {
  padding: 1.5rem;
}
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}
.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
}
.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/* Dropzone */
.dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 2.75rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(0, 0, 0, 0.15);
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.05);
  box-shadow: var(--shadow-glow);
}
.dropzone-icon {
  font-size: 2.75rem;
  color: var(--accent-amber);
  margin-bottom: 1rem;
}
.dropzone h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.dropzone-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.selected-file-banner {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.file-info i {
  font-size: 1.5rem;
}

/* YouTube Form */
.youtube-form {
  padding: 1rem 0;
}
.url-input-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  transition: var(--transition);
}
.url-input-group:focus-within {
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.url-input-group .input-icon {
  font-size: 1.4rem;
  color: #ef4444;
  padding-left: 0.5rem;
}
.url-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
}
.input-tip {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Demos Grid */
.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.demo-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.demo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: var(--shadow-sm);
}
.demo-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.demo-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.demo-card p {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 1rem;
  flex: 1;
}
.demo-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.785rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  font-family: var(--font-main);
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange));
  color: #fff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}
.btn-outline {
  background: transparent;
  color: var(--accent-amber-light);
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.btn-outline:hover {
  background: rgba(245, 158, 11, 0.1);
}
.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.825rem;
}

/* Processing Box */
.processing-box {
  padding: 2.5rem;
  text-align: center;
}
.spinner-wrapper {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(245, 158, 11, 0.15);
  border-top-color: var(--accent-amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.processing-box h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.processing-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.progress-bar-container {
  max-width: 450px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  margin: 0 auto;
  overflow: hidden;
}
.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-orange));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* Tablature Player Card */
.tab-player-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.player-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.score-meta h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}
.score-tags {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.tag-tuning {
  color: var(--accent-amber-light);
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.05);
  font-family: var(--font-mono);
}
.score-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Player Controls Bar */
.player-controls-bar {
  padding: 1rem 1.5rem;
  background: rgba(10, 13, 20, 0.6);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.transport-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-ctrl {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}
.btn-ctrl:hover {
  background: var(--bg-tertiary);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-ctrl.active {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
  border-color: var(--accent-amber);
}
.btn-play {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-orange));
  color: #fff;
  border: none;
  font-size: 1.15rem;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.4);
}
.btn-play:hover {
  transform: scale(1.06);
  filter: brightness(1.1);
}

.control-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.custom-select {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-family: var(--font-main);
  font-size: 0.85rem;
  outline: none;
}

.btn-segmented {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2px;
}
.segment-btn, .segment-layout {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}
.segment-btn.active, .segment-layout.active {
  background: var(--accent-amber);
  color: #000;
  font-weight: 700;
}

.zoom-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-icon {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
}
.btn-icon:hover {
  background: var(--bg-tertiary);
}
#zoomLabel {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  min-width: 44px;
  text-align: center;
}

/* AlphaTab Viewport */
.alphatab-viewport-container {
  padding: 2rem 1.5rem;
  background: #ffffff;
  min-height: 520px;
  overflow-x: auto;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}
#alphaTab {
  width: 100%;
  min-height: 480px;
}

/* AlphaTab Cursor & Highlight Glow */
.at-cursor-bar {
  background: rgba(245, 158, 11, 0.25) !important;
}
.at-cursor-beat {
  background: rgba(234, 88, 12, 0.45) !important;
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.6) !important;
}

/* AI Tutor Drawer */
.tutor-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 460px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.tutor-drawer.open {
  right: 0;
}
.tutor-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tutor-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.tutor-title i {
  color: var(--accent-amber);
  font-size: 1.35rem;
}
.tutor-badge {
  font-size: 0.7rem;
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
}
.tutor-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}
.tutor-loading {
  text-align: center;
  padding: 2rem 0;
}
.spinner-small {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(245, 158, 11, 0.2);
  border-top-color: var(--accent-amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
.tutor-content {
  line-height: 1.6;
  font-size: 0.95rem;
}
.tutor-content h3 {
  font-size: 1.1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--accent-amber-light);
}
.tutor-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}
.tutor-content li {
  margin-bottom: 0.4rem;
}

/* Footer */
.app-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.825rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  background: rgba(10, 13, 20, 0.7);
}

/* Header Right Group & Settings Pill */
.header-right-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.btn-settings-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.btn-settings-pill:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--border-glow);
  transform: translateY(-1px);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-online {
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}
.dot-offline {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}
.dot-unknown {
  background: #f59e0b;
}

/* Modal Overlay & Card */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}
.modal-card {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #111726;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.modal-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.modal-title h3 {
  font-size: 1.15rem;
  font-weight: 600;
}
.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: rgba(10, 13, 20, 0.5);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Server notices & tips */
.server-architecture-notice {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.45;
}
.server-architecture-notice i {
  color: var(--accent-cyan);
  font-size: 1.1rem;
  margin-top: 2px;
}
.server-architecture-notice strong {
  color: var(--text-primary);
}

.network-setup-tip {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.825rem;
  line-height: 1.45;
}
.network-setup-tip strong {
  color: var(--accent-amber-light);
}
.network-setup-tip code {
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-amber-light);
  font-family: var(--font-mono);
}

.input-with-action {
  display: flex;
  gap: 0.5rem;
}
.input-with-action input {
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.form-help {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.form-row {
  display: flex;
  gap: 1rem;
}
.col-half {
  flex: 1;
}

.custom-input {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}
.custom-input:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.custom-slider {
  accent-color: var(--accent-amber);
  cursor: pointer;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 0.5rem;
}

/* Connection Status Banner */
.connection-status-banner {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: var(--transition);
}
.connection-status-banner.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}
.connection-status-banner.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}
.connection-status-banner .status-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.connection-status-banner .status-help {
  font-size: 0.785rem;
  color: var(--text-secondary);
  padding-left: 1.4rem;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 900px) {
  .player-controls-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .tutor-drawer {
    width: 100vw;
    right: -100vw;
  }
  .form-row {
    flex-direction: column;
  }
}

