:root {
  --bg-app: #030812;
  --bg-sidebar: #060d19;
  --bg-card: rgba(16, 29, 51, 0.55);
  --bg-card-hover: rgba(24, 43, 74, 0.75);
  --bg-card-active: rgba(0, 132, 255, 0.15);
  
  --accent-cyan: #00e5ff;
  --accent-blue: #0084ff;
  --accent-blue-glow: rgba(0, 132, 255, 0.25);
  --text-main: #f3f8fe;
  --text-muted: #8ba2c0;
  --text-dimmed: #4f617a;
  
  --red-live: #ff2f44;
  
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-border-focus: rgba(0, 229, 255, 0.25);
  --glass-bg: rgba(10, 19, 36, 0.85);
  
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 8px 16px rgba(0, 0, 0, 0.3);
  
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 800;
}

button, input, select {
  font-family: inherit;
  color: inherit;
  outline: none;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--text-dimmed);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Application Wrapper (Fullscreen overlay layout) */
.app-container {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: #000000;
}

/* Sidebar Channels Navigation (Overlay Slide-in Guide) */
.sidebar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  background-color: rgba(6, 13, 25, 0.92);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-right: 1px solid var(--glass-border);
  box-shadow: 10px 0 45px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 20px;
  overflow: hidden;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar.visible {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-logo {
  font-size: 30px;
  color: var(--accent-blue);
  text-shadow: 0 0 15px var(--accent-blue-glow);
  display: flex;
  align-items: center;
}

.brand-text h1 {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-text span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

/* Search Box styling */
.search-container {
  position: relative;
  margin-bottom: 24px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

#channel-search {
  width: 100%;
  height: 42px;
  background-color: rgba(5, 12, 24, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0 16px 0 40px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

#channel-search:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-blue-glow);
}

.clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-full);
}

.clear-btn:hover {
  color: var(--text-main);
  background-color: var(--glass-border);
}

/* Sidebar Channels Scroll Area */
.channel-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 2px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  user-select: none;
  position: relative;
}

.channel-card:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

.channel-card.active {
  background: var(--bg-card-active);
  border-color: var(--accent-blue);
  box-shadow: 0 4px 20px var(--accent-blue-glow);
}

.channel-card-logo {
  width: 46px;
  height: 46px;
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.channel-card-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

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

.channel-card-name {
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.card-tag.live {
  background-color: rgba(255, 47, 68, 0.12);
  color: var(--red-live);
}

/* Skeleton Loading Shimmers */
.channel-skeleton {
  height: 70px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(30, 48, 80, 0.3) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 10px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--text-dimmed);
}

.empty-state p {
  font-size: 13px;
  font-weight: 600;
}

/* Main Content Area - Full Viewport Player */
/* Main Content Area - Split Viewport (Player + Persistent Bottom Slider) */
.content-area {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #000000;
  z-index: 5;
  display: flex;
  flex-direction: column;
}

.player-panel {
  flex: 1;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.player-card {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #000000;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #000000;
}

#video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background-color: #000000;
}

/* Hidden Cursor when controls are hidden */
.player-card.controls-hidden {
  cursor: none;
}

/* TV Channel Info Overlay (Cable-style Bottom Banner) */
.channel-info-overlay {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: auto;
  top: auto;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  box-shadow: var(--shadow-lg);
  max-width: calc(100% - 60px);
  width: auto;
  
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.channel-info-overlay.visible {
  opacity: 1;
  transform: translateY(0);
}

.overlay-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Remote Navigation Help Banner inside overlay */
.overlay-help {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 24px;
  display: flex;
  align-items: center;
}

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

.help-item {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.key-cap {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  font-family: inherit;
  font-size: 10px;
  color: #ffffff;
}

.overlay-logo-container {
  width: 66px;
  height: 66px;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.overlay-logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.overlay-meta h2 {
  font-size: 20px;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.overlay-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-category {
  background-color: var(--accent-blue-glow);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.15);
}

.tag-resolution {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.tag-views {
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.tag-live {
  background-color: rgba(255, 47, 68, 0.1);
  color: var(--red-live);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Spinner / Loader Overlays */
.player-loader {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 20;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.spinner {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--accent-cyan);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

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

.player-loader span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

/* Large Center Play Overlay */
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 0;
  z-index: 14;
  transition: all 0.25s ease;
  pointer-events: none;
}

.play-overlay i {
  font-size: 40px;
  color: #ffffff;
  background-color: var(--accent-blue);
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  box-shadow: 0 10px 25px rgba(0, 132, 255, 0.4);
  transform: scale(0.8);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-wrapper:hover .play-overlay {
  opacity: 1;
}

.video-wrapper:hover .play-overlay i {
  transform: scale(1);
}

/* Custom Player Controls Bar (Floating Glass Card Bottom Right) */
.player-controls {
  position: absolute;
  bottom: 30px;
  right: 30px;
  left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  z-index: 90;
  box-shadow: var(--shadow-lg);
  
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.player-controls.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.control-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-muted);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.control-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.control-btn.active {
  color: var(--accent-cyan);
}

.control-svg {
  display: block;
}

/* Volume Slider styling */
.volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

#volume-slider {
  width: 90px;
  height: 4px;
  background-color: var(--text-dimmed);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: #ffffff;
  cursor: pointer;
  transition: transform 0.1s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background-color: var(--accent-cyan);
}

/* Live Badge styling */
.live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 47, 68, 0.15);
  border: 1px solid rgba(255, 47, 68, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  color: var(--red-live);
  letter-spacing: 0.5px;
  user-select: none;
}

.live-dot {
  width: 6px;
  height: 6px;
  background-color: var(--red-live);
  border-radius: var(--radius-full);
  animation: pulse-live 1.8s infinite;
}

@keyframes pulse-live {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 47, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(255, 47, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 47, 68, 0); }
}

/* Resolution Quality Selector Dropdown */
.control-group {
  display: flex;
  align-items: center;
  position: relative;
  background-color: rgba(5, 12, 24, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  height: 38px;
}

.dropdown-icon {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 8px;
}

#quality-selector {
  background: none;
  border: none;
  outline: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding-right: 20px;
  appearance: none;
  -webkit-appearance: none;
}

.control-group::after {
  content: '\f0d7';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 10px;
  color: var(--text-muted);
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

#quality-selector:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Alert Error Banner */
.error-banner {
  position: absolute;
  top: 30px;
  right: 30px;
  display: none;
  align-items: center;
  gap: 12px;
  background-color: rgba(255, 47, 68, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 47, 68, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  z-index: 19;
  box-shadow: var(--shadow-lg);
  max-width: 400px;
}

.error-banner.show {
  display: flex;
}

.error-banner i {
  color: #ffffff;
  font-size: 16px;
}

.error-banner span {
  flex: 1;
}

.close-error {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 14px;
}

.close-error:hover {
  color: #ffffff;
}

/* Device Orientation Media Queries */
@media (max-width: 768px) {
  .sidebar {
    position: absolute;
    width: 85%;
    max-width: 300px;
    height: 100%;
    transform: translateX(-100%);
    border-right: 1px solid var(--glass-border);
    border-bottom: none;
    padding: 20px 16px;
  }
  
  .sidebar.visible {
    transform: translateX(0);
  }
  
  .content-area {
    width: 100vw;
    height: 100vh;
  }
  
  .channel-info-overlay {
    bottom: 95px;
    left: 15px;
    right: 15px;
    max-width: calc(100% - 30px);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
  }
  
  .overlay-left {
    gap: 12px;
  }
  
  .overlay-logo-container {
    width: 50px;
    height: 50px;
  }
  
  .overlay-meta h2 {
    font-size: 16px;
  }
  
  .overlay-help {
    border-left: none;
    padding-left: 0;
    margin-top: 4px;
  }
  
  .help-row {
    gap: 10px;
  }
  
  .player-controls {
    bottom: 15px;
    left: 15px;
    right: 15px;
    width: calc(100% - 30px);
    justify-content: space-between;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .player-controls {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding: 12px 14px;
    bottom: 15px;
  }
  
  .channel-info-overlay {
    bottom: 140px;
  }
  
  .controls-left, .controls-right {
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }
  
  #volume-slider {
    width: 65px;
  }
}

/* D-pad Focus state outlines for Smart TV Remote controls */
.channel-card:focus {
  outline: none;
  border-color: var(--accent-cyan) !important;
  background-color: var(--bg-card-hover) !important;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.45) !important;
  transform: translateX(4px);
}

/* Smart TV 10-foot UI Optimization (Displays >= 1920px) */
@media (min-width: 1920px) {
  :root {
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
  }
  
  .app-container {
    grid-template-columns: 400px 1fr;
  }
  
  .sidebar {
    padding: 36px 30px;
  }
  
  .sidebar-header {
    gap: 16px;
    margin-bottom: 36px;
  }
  
  .brand-logo {
    font-size: 44px;
  }
  
  .brand-text h1 {
    font-size: 28px;
  }
  
  .brand-text span {
    font-size: 13px;
    letter-spacing: 1px;
  }
  
  .search-container {
    margin-bottom: 30px;
  }
  
  .search-icon {
    left: 20px;
    font-size: 18px;
  }
  
  #channel-search {
    height: 54px;
    font-size: 16px;
    padding-left: 54px;
  }
  
  .channel-list {
    gap: 16px;
  }
  
  .channel-card {
    padding: 16px;
    gap: 18px;
  }
  
  .channel-card-logo {
    width: 64px;
    height: 64px;
    padding: 6px;
    border-radius: var(--radius-sm);
  }
  
  .channel-card-name {
    font-size: 18px;
    margin-bottom: 6px;
  }
  
  .card-tag {
    font-size: 11px;
    padding: 3px 8px;
  }
  
  .channel-info-overlay {
    bottom: 50px;
    left: 50px;
    top: auto;
    right: auto;
    padding: 24px 32px;
    gap: 36px;
    max-width: calc(100% - 100px);
  }
  
  .overlay-logo-container {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-md);
  }
  
  .overlay-meta h2 {
    font-size: 28px;
    margin-bottom: 8px;
  }
  
  .tag {
    font-size: 12px;
    padding: 5px 12px;
  }
  
  .overlay-help {
    padding-left: 36px;
  }
  
  .help-item {
    font-size: 15px;
    gap: 8px;
  }
  
  .key-cap {
    font-size: 14px;
    padding: 2px 10px;
  }
  
  .player-controls {
    bottom: 50px;
    right: 50px;
    left: auto;
    padding: 16px 32px;
  }
  
  #volume-slider {
    width: 140px;
    height: 6px;
  }
  
  .live-badge {
    padding: 6px 16px;
    font-size: 13px;
    gap: 10px;
  }
  
  .live-dot {
    width: 8px;
    height: 8px;
  }
  
  .control-group {
    height: 48px;
    padding: 0 16px;
  }
  
  #quality-selector {
    font-size: 14px;
    padding-right: 24px;
  }
  
  .dropdown-icon {
    font-size: 14px;
  }
}

/* ==========================================
   Horizontal Channel Slider Carousel Styles
   ========================================== */
.horizontal-slider {
  flex-shrink: 0;
  width: 100%;
  background: linear-gradient(180deg, rgba(6, 13, 25, 0.97) 0%, rgba(10, 18, 32, 0.99) 100%);
  border-top: 1px solid rgba(0, 229, 255, 0.15);
  padding: 14px 24px 12px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.6);
  position: relative;
}

.horizontal-slider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-blue), var(--accent-cyan), transparent);
  opacity: 0.5;
}

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

.slider-header h3 {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-cyan);
}

.slider-tip {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.slider-ribbon {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 10px 4px;
  flex: 1;
}

.slider-ribbon::-webkit-scrollbar {
  height: 4px;
}
.slider-ribbon::-webkit-scrollbar-track {
  background: transparent;
}
.slider-ribbon::-webkit-scrollbar-thumb {
  background: var(--text-dimmed);
  border-radius: var(--radius-full);
}
.slider-ribbon::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.slider-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 140px;
  height: 100px;
  background-color: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex-shrink: 0;
  user-select: none;
}

.slider-card:hover,
.slider-card:focus {
  background-color: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
  outline: none;
}

.slider-card.active {
  background: var(--bg-card-active);
  border-color: var(--accent-blue);
  box-shadow: 0 0 15px var(--accent-blue-glow);
}

.slider-card-logo {
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.slider-card-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.slider-card-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  padding: 0 8px;
}

.slider-card:hover .slider-card-name,
.slider-card:focus .slider-card-name {
  color: #ffffff;
}

/* Horizontal Slider Mobile Optimization */
@media (max-width: 768px) {
  .horizontal-slider {
    padding: 10px 12px 8px;
    gap: 6px;
  }
  
  .slider-header h3 {
    font-size: 11px;
  }
  
  .slider-tip {
    display: none; /* Hide remote tips on touch devices */
  }
  
  .slider-card {
    width: 100px;
    height: 75px;
    gap: 5px;
  }
  
  .slider-card-logo {
    width: 32px;
    height: 32px;
    padding: 3px;
  }
  
  .slider-card-name {
    font-size: 9px;
  }
}

/* Horizontal Slider Smart TV 10-foot UI Optimization */
@media (min-width: 1920px) {
  .horizontal-slider {
    padding: 20px 40px 16px;
    gap: 14px;
  }
  
  .slider-header h3 {
    font-size: 16px;
  }
  
  .slider-tip {
    font-size: 13px;
    gap: 8px;
  }
  
  .slider-card {
    width: 180px;
    height: 120px;
    gap: 10px;
  }
  
  .slider-card-logo {
    width: 56px;
    height: 56px;
    padding: 5px;
  }
  
  .slider-card-name {
    font-size: 13px;
  }
}

