:root {
  --bg-color: #0c0f17;
  --surface-color: rgba(22, 28, 45, 0.7);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-hover: rgba(30, 41, 67, 0.85);
  
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.35);
  --primary-hover: #2563eb;
  
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --shadow-card: 0 16px 36px -8px rgba(0, 0, 0, 0.45);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-color: #f1f5f9;
  --surface-color: rgba(255, 255, 255, 0.85);
  --surface-border: rgba(0, 0, 0, 0.08);
  --surface-hover: rgba(255, 255, 255, 0.98);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --shadow-card: 0 16px 36px -8px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: 'Cairo', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Ambient Background Lights */
.glow-bg {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
  animation: pulse 8s ease-in-out infinite alternate;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  top: -100px;
  right: -100px;
}

.glow-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  bottom: 50px;
  left: -100px;
  animation-delay: -4s;
}

@keyframes pulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.35; }
  100% { transform: scale(1.15) translate(30px, 20px); opacity: 0.55; }
}

/* Header */
.app-header {
  border-bottom: 1px solid var(--surface-border);
  backdrop-filter: blur(16px);
  background: rgba(12, 15, 23, 0.7);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.brand-title {
  font-family: 'Outfit', 'Cairo', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-title span {
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

/* Main Container */
.main-container {
  max-width: 1240px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Cards (Glassmorphism) */
.card {
  background: var(--surface-color);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.title-with-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* Input Section */
.input-card {
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 8px 32px -4px rgba(59, 130, 246, 0.15);
}

.input-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.input-wrapper {
  flex: 1;
  min-width: 300px;
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 2.8rem;
  padding-right: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: rgba(10, 13, 20, 0.75);
  color: #fff;
  font-size: 0.95rem;
  font-family: 'Outfit', monospace;
  outline: none;
  transition: var(--transition);
}

.input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: rgba(15, 23, 42, 0.9);
}

.btn-clear {
  position: absolute;
  left: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 1rem;
  border-radius: 4px;
  transition: var(--transition);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: #fff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-subtle {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--surface-border);
}

.btn-subtle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--surface-border);
}

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

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--surface-border);
}

.live-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.tag-pill {
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-family: 'Outfit', sans-serif;
}

/* Results Wrapper (2 columns) */
.results-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .results-wrapper {
    grid-template-columns: 1fr;
  }
}

.results-column, .player-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Stream Metadata Grid */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.meta-item {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.meta-val {
  font-family: 'Outfit', monospace;
  font-size: 0.92rem;
  font-weight: 600;
  color: #e2e8f0;
  word-break: break-all;
}

/* Converted Links */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: var(--transition);
}

.link-box:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.3);
}

.link-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.format-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.format-badge.hls {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.format-badge.ts {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.format-badge.m3u {
  background: rgba(139, 92, 246, 0.18);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.format-badge.embed {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.format-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.link-field {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.link-field input {
  flex: 1;
  background: rgba(10, 13, 20, 0.85);
  border: 1px solid var(--surface-border);
  color: #cbd5e1;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', monospace;
  font-size: 0.85rem;
  outline: none;
}

.btn-copy, .btn-action, .btn-download {
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--surface-border);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

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

.play-btn {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
  color: #60a5fa;
}

.play-btn:hover {
  background: var(--primary);
  color: #fff;
}

.btn-download {
  background: rgba(139, 92, 246, 0.25);
  border-color: rgba(139, 92, 246, 0.4);
  color: #c084fc;
}

.btn-download:hover {
  background: var(--accent-purple);
  color: #fff;
}

/* Player Column */
.player-view {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

#liveVideoPlayer {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 15, 23, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  transition: var(--transition);
}

.player-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.player-controls-extra {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stream-info-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.bullet-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
}

.bullet-indicator.active {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.player-buttons-group {
  display: flex;
  gap: 0.5rem;
}

/* Info Card */
.info-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  color: var(--accent-cyan);
}

.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tips-list li {
  position: relative;
  padding-right: 1.25rem;
}

.tips-list li::before {
  content: "•";
  position: absolute;
  right: 0;
  color: var(--primary);
  font-weight: bold;
}

.tips-list code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  color: #fff;
}

/* History Card */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.history-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.history-url {
  font-family: 'Outfit', monospace;
  font-size: 0.85rem;
  color: #cbd5e1;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem 0;
}

/* Alerts & Toasts */
.alert {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.alert-danger {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fda4af;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 50%;
  transform: translateX(50%) translateY(100px);
  background: #1e293b;
  color: #fff;
  border: 1px solid var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast.show {
  transform: translateX(50%) translateY(0);
  opacity: 1;
}

/* Footer */
.app-footer {
  text-align: center;
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 3rem;
}

/* Custom Branding Panel */
.custom-branding-panel {
  margin-top: 1.25rem;
  padding: 1.15rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
}

.branding-header {
  margin-bottom: 0.85rem;
}

.branding-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}

.branding-toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.toggle-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #93c5fd;
}

.custom-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 0.75rem;
  transition: var(--transition);
}

.custom-input-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.custom-input-box label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.input-wrapper-sm input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(10, 13, 20, 0.9);
  border: 1px solid var(--surface-border);
  color: #fff;
  font-family: 'Outfit', monospace;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.input-wrapper-sm input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Highlight Box for Branded Link */
.highlight-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12)) !important;
  border: 1px solid rgba(59, 130, 246, 0.45) !important;
  box-shadow: 0 4px 20px -2px rgba(59, 130, 246, 0.25);
}

.format-badge.custom-brand {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

.highlight-input {
  border-color: rgba(59, 130, 246, 0.5) !important;
  background: rgba(15, 23, 42, 0.95) !important;
  color: #93c5fd !important;
  font-weight: 600;
}

.custom-link-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.custom-link-subtext code {
  color: #67e8f9;
  direction: ltr;
  word-break: break-all;
}

/* Server Setup Card */
.server-setup-card {
  border-color: rgba(139, 92, 246, 0.25);
}

.server-setup-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.code-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

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

.tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.code-snippet-box {
  position: relative;
  background: #090d16;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.code-snippet-box pre {
  margin: 0;
  overflow-x: auto;
  font-family: 'Outfit', monospace;
  font-size: 0.82rem;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 250px;
}

.copy-snippet-btn {
  position: absolute;
  top: 10px;
  left: 10px;
}

/* Supabase Card Styling */
.supabase-card {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 8px 30px -4px rgba(16, 185, 129, 0.15);
}

.supabase-config-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.field-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

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

.sql-snippet-box {
  background: #090d16;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.snippet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  color: #6ee7b7;
}

.sql-snippet-box pre {
  margin: 0;
  font-family: 'Outfit', monospace;
  font-size: 0.8rem;
  color: #a7f3d0;
  overflow-x: auto;
}

.save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.save-bar-info {
  font-size: 0.95rem;
}

.save-bar-info strong {
  color: #34d399;
}

.supabase-channels-container h3 {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.supabase-channels-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sb-channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sb-channel-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(16, 185, 129, 0.4);
}

.sb-channel-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sb-channel-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #f8fafc;
}

.sb-channel-url {
  font-family: 'Outfit', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  word-break: break-all;
}

.sb-channel-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-danger {
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #f43f5e;
}

.btn-danger:hover {
  background: #f43f5e;
  color: #fff;
}

.badge-connected {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.badge-disconnected {
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.4);
}

.hidden {
  display: none !important;
}
