/* ==========================================================================
   MTube TV — Dark Cinematic 10-Foot UI Stylesheet
   Optimized for Smart TVs (LG webOS, Tizen, Android TV) and Desktop/Tablet
   ========================================================================== */

:root {
  --bg-base: #0a0b0e;
  --bg-surface: #12141a;
  --bg-surface-elevated: #1a1e27;
  --bg-glass: rgba(18, 20, 26, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #ff0033;
  --text-primary: #ffffff;
  --text-secondary: #9ea4b0;
  --text-muted: #5e6472;
  --accent-red: #ff0033;
  --accent-red-hover: #ff2a55;
  --accent-glow: rgba(255, 0, 51, 0.4);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition-fast: 0.18s cubic-bezier(0.2, 0, 0, 1);
  --transition-normal: 0.28s cubic-bezier(0.2, 0, 0, 1);
}

/* OLED Pure Black Mode */
body.oled-black-mode {
  --bg-base: #000000;
  --bg-surface: #050505;
  --bg-surface-elevated: #0a0a0a;
  --bg-glass: rgba(0, 0, 0, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.4;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ==========================================================================
   TV Spatial Navigation Focus Styles (Crucial for D-Pad Remote)
   ========================================================================== */
.focusable {
  outline: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.focusable:focus,
.focusable.focused {
  outline: none;
  box-shadow: 0 0 0 3.5px var(--border-focus), 0 8px 24px var(--accent-glow) !important;
  transform: scale(1.03);
  z-index: 10;
}

/* ==========================================================================
   Header Bar
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 36px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 12px rgba(255, 26, 68, 0.3));
}

.brand-icon svg {
  width: 36px;
  height: 36px;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--border-subtle);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 44%;
  max-width: 580px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
}

#search-input {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 13px 20px 13px 48px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
}

#search-input::placeholder {
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.btn-primary {
  background: var(--accent-red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-red-hover);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-header {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.btn-header svg {
  width: 16px;
  height: 16px;
}

.btn-header.active {
  background: rgba(255, 0, 51, 0.15);
  border-color: var(--accent-red);
  color: #fff;
}

/* ==========================================================================
   Category Chips Bar
   ========================================================================== */
.categories-bar {
  padding: 14px 36px;
  background: var(--bg-base);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.categories-bar::-webkit-scrollbar {
  display: none;
}

.chips-track {
  display: flex;
  gap: 12px;
}

.chip {
  padding: 9px 20px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.chip:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.chip.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* ==========================================================================
   Main Content & Video Grid
   ========================================================================== */
.main-content {
  padding: 28px 36px 60px;
}

/* Channel Exploration Banner */
.channel-banner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(255, 26, 68, 0.14) 0%, rgba(18, 20, 26, 0.95) 55%);
  border: 1px solid rgba(255, 26, 68, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  animation: fadeIn 0.25s ease-out;
}

.channel-banner-info {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}

.channel-banner-avatar-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 2.5px solid var(--accent-red);
  box-shadow: 0 4px 16px rgba(255, 26, 68, 0.35);
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-banner-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-banner-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-red) 0%, #990022 100%);
}

.channel-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.channel-banner-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-banner-meta {
  font-size: 14px;
  color: var(--text-secondary);
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 16px;
}

.content-heading-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.content-header h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.content-meta {
  font-size: 14px;
  color: var(--text-muted);
}

/* Filter Pills Group (TV & Desktop) */
.filter-pills-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  padding: 5px 8px;
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  overflow-x: auto;
  max-width: 100%;
}

.filter-pill {
  padding: 7px 15px;
  border-radius: 18px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.filter-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.filter-pill.active {
  background: linear-gradient(135deg, rgba(255, 26, 68, 0.24) 0%, rgba(255, 26, 68, 0.12) 100%);
  color: #ffffff;
  border-color: rgba(255, 26, 68, 0.6);
  box-shadow: 0 0 12px rgba(255, 26, 68, 0.25);
}

.filter-pill.focused,
.filter-pill:focus-visible {
  outline: none;
  border-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 26, 68, 0.6) !important;
  transform: scale(1.05);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

/* Video Card */
.video-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.thumb-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-shorts {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #ff1a44 0%, #b80d2d 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 26, 68, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  text-transform: uppercase;
}

.badge-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.card-avatar-col {
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.card-avatar-col:hover {
  transform: scale(1.12);
}

.card-avatar,
.card-avatar-fallback {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #1f232b 0%, #12141a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  user-select: none;
}

.card-avatar-fallback {
  color: var(--accent-red);
  background: rgba(255, 26, 68, 0.12);
  border-color: rgba(255, 26, 68, 0.35);
}

.card-info-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.card-channel {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
  cursor: pointer;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
}

.card-channel:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-top: 2px;
  line-height: 1.35;
}

.card-bullet {
  color: var(--text-muted);
  font-size: 11px;
  opacity: 0.7;
}

.card-views,
.card-published {
  white-space: nowrap;
}

/* Spinner & Empty State */
.spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  gap: 16px;
}

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

.spinner.large {
  width: 64px;
  height: 64px;
  border-width: 4px;
}

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

.spinner-text {
  font-size: 15px;
  color: var(--text-secondary);
}

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

.empty-state svg {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  stroke: var(--text-muted);
}

.empty-state h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

/* ==========================================================================
   Modals: Phone Remote Pairing & Keyboard Shortcuts
   ========================================================================== */
.pairing-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pairing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
}

.room-code-box {
  margin: 18px 0;
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 0, 51, 0.4);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.room-code-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.room-code-digits {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 4px;
  margin-top: 4px;
}

.room-instructions {
  font-size: 13px;
  color: var(--text-secondary);
}

.remote-link-pill {
  background: var(--bg-surface-elevated);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  color: #10b981;
  font-family: monospace;
  font-size: 13px;
  margin-top: 6px;
  word-break: break-all;
}

/* Shortcuts Grid */
.shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

kbd {
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* PIN Protection Modal & TV Keypad */
.pin-card {
  max-width: 400px;
}

.pin-display-wrap {
  margin: 16px 0 10px 0;
}

.pin-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 12px;
}

.pin-input:focus {
  border-color: var(--accent-red);
}

.pin-error-msg {
  background: rgba(255, 26, 68, 0.15);
  border: 1px solid var(--accent-red);
  color: #ff4d6d;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.pin-key {
  height: 52px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.pin-key:active {
  background: var(--accent-red);
  transform: scale(0.96);
}

.pin-key-action {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 15px;
}

/* Volume HUD */
.volume-hud {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1030;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none;
  animation: fadeIn 0.2s ease-out;
}

.volume-hud svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.volume-bar-track {
  width: 140px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.volume-bar-fill {
  height: 100%;
  background: var(--accent-red);
  border-radius: 3px;
  transition: width 0.1s linear;
}

#volume-level-text {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  min-width: 38px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   Fullscreen Video Player Modal & OSD
   ========================================================================== */
.player-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border: none;
}

.player-buffering {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1010;
  pointer-events: none;
}

.player-buffering span {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* OSD Overlay */
.player-osd {
  position: absolute;
  inset: 0;
  z-index: 1020;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 48px;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, transparent 25%, transparent 75%, rgba(0,0,0,0.92) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.player-osd.visible {
  opacity: 1;
  pointer-events: auto;
}

.osd-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.osd-video-info {
  max-width: 65%;
}

.osd-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.osd-channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 5px 14px;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.osd-channel-btn:hover,
.osd-channel-btn:focus {
  background: rgba(255, 26, 68, 0.22);
  border-color: var(--accent-red);
  color: #fff;
  transform: scale(1.03);
}

.osd-channel-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 26, 68, 0.15);
  padding: 2px 7px;
  border-radius: 10px;
}

.osd-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stream-badge {
  background: rgba(255, 0, 51, 0.2);
  border: 1px solid var(--accent-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

.btn-icon.favorited svg {
  fill: var(--accent-red);
  stroke: var(--accent-red);
}

/* Center Indicator */
.osd-center-indicator {
  align-self: center;
  min-width: 90px;
  height: 90px;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  animation: pulseCenter 0.4s ease-out;
}

.osd-center-indicator svg {
  width: 36px;
  height: 36px;
}

@keyframes pulseCenter {
  0% { transform: scale(0.7); opacity: 0; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Bottom OSD Bar */
.osd-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Timeline */
.timeline-container {
  width: 100%;
  padding: 10px 0;
  cursor: pointer;
}

.timeline-bar {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.timeline-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 3px;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent-red);
  border-radius: 3px;
}

.timeline-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.osd-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.btn-control {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.btn-control:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.06);
}

.btn-control.btn-play {
  background: var(--accent-red);
  width: 48px;
  height: 48px;
}

.btn-control.btn-play:hover {
  background: var(--accent-red-hover);
}

.btn-control svg {
  width: 22px;
  height: 22px;
}

.btn-control svg text {
  font-family: var(--font-sans);
  pointer-events: none;
  user-select: none;
}

.btn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-toggle svg {
  width: 16px;
  height: 16px;
}

.btn-toggle .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.time-display {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  gap: 4px;
}

.time-sep {
  color: var(--text-muted);
}

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

/* TV Responsive Rules */
@media (max-width: 900px) {
  .app-header { padding: 12px 18px; }
  .search-container { width: auto; flex: 1; }
  .btn-text { display: none; }
  .main-content { padding: 18px; }
  .player-osd { padding: 20px; }
  .osd-title { font-size: 18px; }
}
