/* M3U8 Inside Glassmorphism Stylesheet (Light-Blue Theme) */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg-gradient: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
  
  --primary: #2563eb; /* Cobalt Blue */
  --primary-hover: #1d4ed8;
  --primary-light: rgba(37, 99, 245, 0.1);
  --text-dark: #1e293b;
  --text-muted: #64748b;
  
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 17px; /* Increased base size for rem scaling */
}

@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  font-size: 1rem;
}

/* Immersive Full Screen IPTV Player View styles */
body.tv-mode {
  background: #000;
  overflow: hidden;
}
body.tv-mode sidebar {
  display: none !important;
}
body.tv-mode main {
  width: 100vw !important;
  max-width: 100vw !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Auth Login Overlay */
#auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  z-index: 1000;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

#auth-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.login-card {
  background: rgba(15, 23, 42, 0.85);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  box-shadow: var(--glass-shadow);
  padding: 4.5rem;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  color: #f8fafc;
}

.login-card h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #38bdf8;
}

.login-card p {
  color: #94a3b8;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.login-ambient {
  flex-grow: 1;
  background: radial-gradient(circle at 70% 30%, rgba(14, 165, 233, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.12) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem;
  color: #94a3b8;
}

.login-ambient h3 {
  color: #f8fafc;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

@media (max-width: 900px) {
  .login-ambient {
    display: none;
  }
  .login-card {
    max-width: 100%;
  }
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(37, 99, 245, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

/* Layout App */
#app-container {
  display: none;
  width: 100vw;
  min-height: 100vh;
}

body.authenticated #app-container {
  display: flex;
}

/* Sidebar */
sidebar {
  width: 280px;
  background: rgba(255, 255, 255, 0.35);
  border-right: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.logo-section h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
  background: var(--glass-bg);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(31, 38, 135, 0.04);
}

.nav-item svg {
  width: 20px;
  height: 20px;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 24px;
}

.user-info {
  display: flex;
  flex-direction: column;
}

.username {
  font-weight: 600;
  font-size: 14px;
}

.logout-btn {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.logout-btn:hover {
  opacity: 0.8;
}

/* Main Content Area */
main {
  flex-grow: 1;
  padding: 40px;
  overflow-y: auto;
  max-width: 1400px;
  margin: 0 auto;
  width: calc(100% - 280px);
}

.header-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.header-title h2 {
  font-size: 26px;
  font-weight: 700;
}

.header-title p {
  color: var(--text-muted);
  font-size: 15px;
}

.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
}

/* Stats/Metrics Overview */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-icon {
  background: rgba(37, 99, 245, 0.1);
  color: var(--primary);
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-info h3 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.stat-info p {
  font-size: 24px;
  font-weight: 700;
}

/* Tab Panels */
.tab-content {
  display: none;
}

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

/* Tables */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  font-size: 15px;
  vertical-align: middle;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.2);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}
.badge-active::before { background: var(--success); }

.badge-offline {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}
.badge-offline::before { background: var(--danger); }

.badge-unchecked {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}
.badge-unchecked::before { background: var(--warning); }

/* Playback Tester Panel */
.tester-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
}

.video-container {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.video-container video {
  width: 100%;
  height: 100%;
}

.diagnostics-panel {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.diagnostic-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 8px;
}

.diagnostic-item span:first-child {
  font-weight: 600;
  color: var(--text-muted);
}

.diagnostic-item span:last-child {
  font-weight: 700;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  z-index: 900;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  padding: 16px;
  box-sizing: border-box;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  padding: 32px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-muted);
}

/* Action Rows */
.actions-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.search-wrapper {
  position: relative;
  flex-grow: 1;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.5);
  font-family: inherit;
  outline: none;
}

.search-input:focus {
  background: white;
  border-color: var(--primary);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.actions-buttons {
  display: flex;
  gap: 12px;
}

/* Notifications section */
.notifications-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.notification-item {
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.notification-indicator.red {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

/* Mini channel card */
.channel-logo-mini {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: white;
  border: 1px solid rgba(0,0,0,0.05);
}

/* DRM selection inputs container */
.drm-details {
  display: none;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.25);
  margin-top: 12px;
  border: 1px dashed rgba(37, 99, 245, 0.2);
}

.drm-details.active {
  display: block;
}

/* Copy Link button style */
.btn-copy {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn-copy:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

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

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-icon:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.btn-icon.edit:hover {
  color: var(--primary);
}

.btn-icon.delete:hover {
  color: var(--danger);
}

/* Drag and Drop Reordering */
tr.draggable-row {
  cursor: grab;
  user-select: none;
}

tr.draggable-row:active {
  cursor: grabbing;
}

tr.drag-over {
  border-top: 3px solid var(--primary) !important;
  background: var(--primary-light) !important;
}

body.is-dragging tr.draggable-row * {
  pointer-events: none;
}
body.is-dragging tr.draggable-row {
  pointer-events: all;
}

.drag-handle {
  color: var(--text-muted);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drag-handle:active {
  cursor: grabbing;
}

/* Video.js integration overrides */
.video-container .video-js {
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

/* Recording status badges */
.badge-scheduled {
  background: rgba(37, 99, 245, 0.15);
  color: var(--primary);
}
.badge-scheduled::before { background: var(--primary); }

.badge-recording {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
  animation: pulse 1.5s infinite;
}
.badge-recording::before { background: var(--danger); }

.badge-completed {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}
.badge-completed::before { background: var(--success); }

.badge-failed {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
}
.badge-failed::before { background: var(--text-muted); }

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

/* Playback Modal Layout */
.playback-modal-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  margin-top: 16px;
}

.playback-video-section {
  display: flex;
  flex-direction: column;
}

.playback-info-section {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Green check override button */
.btn-icon.check-success {
  color: var(--success);
}
.btn-icon.check-success:hover {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

/* responsive modal body */
/* responsive modal body */
@media (max-width: 900px) {
  .playback-modal-body {
    grid-template-columns: 1fr;
  }
}

/* LCN Table Cell Styling */
.lcn-cell {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  background: rgba(37, 99, 245, 0.08);
  border-radius: 12px;
  padding: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

/* Immersive IPTV Player Layout */
.tv-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 1;
}

.tv-video-container video, 
.tv-video-container .video-js,
.tv-video-container .vjs-tech {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}

/* Exit / Home button */
.tv-btn-home {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 10;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.tv-btn-home:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Sidebar Channels Overlay */
.tv-channels-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  background: linear-gradient(to left, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(0); /* starts visible */
  color: #fff;
}

.tv-channels-sidebar.collapsed {
  transform: translateX(100%);
}

.tv-sidebar-header {
  padding: 2.5rem 2rem 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tv-sidebar-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.tv-channels-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* TV Channel Row Item */
.tv-channel-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.tv-channel-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.tv-channel-item.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.15);
}

.tv-channel-item-lcn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #38bdf8;
  min-width: 45px;
}

.tv-channel-item-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  padding: 2px;
}

.tv-channel-item-name {
  font-weight: 600;
  font-size: 1.05rem;
}

/* TV Bottom Infobar Overlay */
.tv-infobar {
  position: absolute;
  left: 50%;
  bottom: 2.5rem;
  transform: translateX(-50%);
  width: calc(100% - 400px);
  max-width: 1100px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(7, 10, 19, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  z-index: 5;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  color: #fff;
  overflow: hidden;
  opacity: 1;
}

.tv-infobar.hidden {
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
}

.tv-infobar-progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.tv-infobar-progress-bar {
  height: 100%;
  background: #f43f5e; /* Red fill line */
  width: 0%;
  transition: width 0.5s ease;
}

.tv-infobar-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 1.8rem 2.5rem;
  gap: 3rem;
}

.tv-infobar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 2.5rem;
}

.tv-infobar-lcn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #38bdf8;
  line-height: 1;
}

.tv-infobar-chname {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  word-break: break-word;
}

.tv-infobar-center {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tv-program-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tv-program-time {
  color: #f59e0b; /* Warm Gold */
  font-weight: 600;
  font-size: 1rem;
  min-width: 60px;
}

.tv-program-title {
  font-weight: 500;
  font-size: 1.05rem;
  color: #fff;
}

.tv-program-extra {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.tv-program-row.next {
  opacity: 0.5;
}

.tv-infobar-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 2.5rem;
}

.tv-clock {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.tv-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tv-live-badge {
  background: #e11d48;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  animation: pulse 1.5s infinite;
}

/* Mobile responsive adjustments */
@media (max-width: 1024px) {
  .tv-channels-sidebar {
    width: 320px;
  }
  .tv-infobar {
    width: calc(100% - 40px);
    left: 20px;
    transform: none;
    bottom: 20px;
  }
  .tv-infobar.hidden {
    transform: translateY(20px);
  }
}

@media (max-width: 768px) {
  .tv-infobar-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .tv-infobar-left {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
  }
  .tv-infobar-right {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
    justify-content: space-between;
  }
}


/* TV Quality Selector */
.tv-quality-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s, color 0.2s;
  background: rgba(255,255,255,0.05);
}
.tv-quality-btn:hover {
  transform: rotate(45deg);
  background: rgba(255,255,255,0.15);
  color: #38bdf8;
}
.tv-quality-dropdown {
  display: none;
  position: absolute;
  bottom: 100%;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 100;
  min-width: 140px;
  overflow: hidden;
  margin-bottom: 8px;
  backdrop-filter: blur(12px);
}
.tv-quality-option {
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: left;
}
.tv-quality-option:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}
.tv-quality-option.active {
  background: rgba(37, 99, 245, 0.25);
  color: #38bdf8;
  border-left: 3px solid #38bdf8;
}
