:root {
  --bg-page: #f5f5f7;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --bg-card: #ffffff;
  --bg-subtle: rgba(0, 0, 0, 0.048);
  --bg-subtle-hover: rgba(0, 0, 0, 0.09);
  --text-primary: #1d1d1f;
  --text-secondary: #5a5a60;
  --border-hairline: rgba(0, 0, 0, 0.09);
  --accent: #0066cc;
  --accent-soft: rgba(0, 102, 204, 0.12);
  --accent-text: #ffffff;
  --live-red: #c81e1e;
  --live-bg: rgba(200, 30, 30, 0.12);
  --paused-fg: #9a3412;
  --paused-bg: rgba(234, 88, 12, 0.15);
  --adult-fg: #9a3412;
  --adult-bg: rgba(234, 88, 12, 0.14);
  --kids-fg: #4338ca;
  --kids-bg: rgba(67, 56, 202, 0.12);
  --fade-edge: rgba(255, 255, 255, 0.92);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.06);
  --shadow-pill: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  --bg-page: #000000;
  --bg-glass: rgba(28, 28, 30, 0.84);
  --bg-card: #1c1c1e;
  --bg-subtle: rgba(255, 255, 255, 0.085);
  --bg-subtle-hover: rgba(255, 255, 255, 0.16);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --border-hairline: rgba(255, 255, 255, 0.13);
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.18);
  --accent-text: #ffffff;
  --live-red: #ff6961;
  --live-bg: rgba(255, 69, 58, 0.18);
  --paused-fg: #ffb340;
  --paused-bg: rgba(255, 159, 10, 0.2);
  --adult-fg: #ffb340;
  --adult-bg: rgba(255, 159, 10, 0.2);
  --kids-fg: #a5b4fc;
  --kids-bg: rgba(129, 140, 248, 0.18);
  --fade-edge: rgba(28, 28, 30, 0.94);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-pill: 0 2px 8px rgba(0, 0, 0, 0.35);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

svg.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

/* Acessibilidade WCAG 2.1 AA */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--accent);
  color: var(--accent-text);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: top 0.2s ease;
}

.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
}

/* Header Minimalista com Preferências Globais */
.top-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  border-radius: 12px;
  padding: 2px 4px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0071e3, #5e5ce6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25);
  flex-shrink: 0;
}

.brand-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.beta-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-hairline);
}

.kids-lock-pill {
  display: none;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--kids-bg);
  color: var(--kids-fg);
  border: 1px solid var(--border-hairline);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease;
}

.kids-lock-pill:hover { filter: brightness(0.96); }

.kids-entry-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--kids-bg);
  color: var(--kids-fg);
  border: 1px solid var(--border-hairline);
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.kids-entry-btn:hover { filter: brightness(0.96); }

.parental-gate {
  display: none;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-hairline);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  flex-direction: column;
  gap: 12px;
}

.parental-gate.open { display: flex; }

.parental-gate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.parental-gate-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.parental-gate-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.parental-gate-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.parental-input {
  width: 96px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.parental-error {
  font-size: 12px;
  color: var(--live-red);
  font-weight: 600;
  display: none;
}

.share-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-hairline);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.share-btn:hover {
  background: var(--bg-subtle-hover);
  color: var(--text-primary);
}

.header-prefs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  background: var(--bg-subtle);
  border-radius: 999px;
  padding: 2px;
  border: 1px solid var(--border-hairline);
}

.lang-switch button {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch button.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-pill);
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-hairline);
  background: var(--bg-subtle);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.icon-btn:hover { background: var(--bg-subtle-hover); }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 52px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Palco Split (Desktop >= 1024px) & Compacto (Mobile <= 768px) */
.tv-frame {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  align-items: stretch;
}

.video-stage {
  width: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.video-aspect {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000000;
}

#yt-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

div.player-boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #0a0a0c;
  color: rgba(245, 245, 247, 0.78);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  user-select: none;
}

div.player-boot.is-error .boot-spinner {
  display: none;
}

.boot-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.85);
  animation: tgSpin 0.85s linear infinite;
}

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

.off-air-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #111113;
  color: #f5f5f7;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 8px;
}

.off-air-screen strong { font-size: 16px; font-weight: 600; }
.off-air-screen span { font-size: 13px; color: #a1a1a6; max-width: 380px; }

/* Painel Lateral "No Ar Agora" + Controles Externos */
.tv-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-left: 1px solid var(--border-hairline);
  background: var(--bg-glass);
  min-width: 0;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--live-bg);
  color: var(--live-red);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.live-badge:hover { border-color: currentColor; }

.live-badge.paused {
  background: var(--paused-bg);
  color: var(--paused-fg);
}

.live-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.ch-chip {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sync-toast {
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}

.sync-toast.visible { opacity: 1; }

.panel-now {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.now-channel-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.now-channel-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.now-program-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.now-episode-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.progress-wrap {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.5s ease;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.panel-upnext {
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.upnext-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.upnext-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upnext-time {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.panel-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.volume-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
}

.volume-slider {
  flex: 1;
  height: 4px;
  accent-color: var(--accent);
  cursor: pointer;
  min-width: 0;
}

.volume-pct {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: right;
}

.panel-report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 2px;
}

.report-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.report-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.kbd-hint {
  font-size: 10.5px;
  color: var(--text-secondary);
  opacity: 0.8;
  white-space: nowrap;
}

.day-switch {
  display: inline-flex;
  background: var(--bg-subtle);
  border-radius: 999px;
  padding: 2px;
  border: 1px solid var(--border-hairline);
}

.day-switch button {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.day-switch button.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-pill);
}

.control-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.15s ease;
}

.pill-btn:hover { background: var(--bg-subtle-hover); }
.pill-btn.grow { flex: 1 1 auto; min-width: 0; }
#cc-btn { padding: 8px 10px; }
#cc-label { display: none; }

.pill-btn.active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: transparent;
}

.pill-btn.active:hover {
  background: var(--accent);
  filter: brightness(1.06);
}

.pill-btn.unmute-alert {
  background: var(--accent);
  color: var(--accent-text);
  border-color: transparent;
  animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.38); }
  50% { box-shadow: 0 0 0 6px rgba(0, 113, 227, 0); }
}

.zap-group {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
  padding: 2px;
  width: 100%;
}

.zap-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.zap-btn:hover { background: var(--bg-subtle-hover); }

.zap-divider {
  width: 1px;
  height: 16px;
  background: var(--border-hairline);
}

/* Card do Guia EPG */
.epg-card {
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 24px;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.epg-categories-bar {
  display: none;
  position: relative;
  border-bottom: 1px solid var(--border-hairline);
}

.epg-categories-bar::after {
  display: none;
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 32px;
  background: linear-gradient(to left, var(--fade-edge), transparent);
  pointer-events: none;
}

.category-scroll {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 6px;
  padding: 12px 18px;
  overflow-x: visible;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-scroll::-webkit-scrollbar { display: none; }

.category-scroll .filter-pill {
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  font-size: 12px;
  background: transparent;
  border: 1px solid var(--border-hairline);
}

.category-scroll .filter-pill:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

.category-scroll .filter-pill.active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: transparent;
}

.cat-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.76;
}

.filter-pill.active .cat-icon {
  opacity: 1;
}

.epg-toolbar {
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-hairline);
  flex-wrap: wrap;
}

.epg-filters-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-group {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
  padding: 2px;
  gap: 0;
}

.filter-group .filter-pill {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  border: none;
}

.filter-group .filter-pill:hover {
  background: transparent;
  color: var(--text-primary);
}

.filter-group .filter-pill.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-pill);
}

.filter-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-pill:hover {
  background: var(--bg-subtle-hover);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}

.timeline-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.time-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--border-hairline);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.time-nav-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.time-nav-btn.now-btn {
  color: var(--live-red);
  background: var(--live-bg);
  border-color: transparent;
}

.time-nav-btn.now-btn:hover { border-color: currentColor; }

/* Skeleton de Carregamento do EPG */
.epg-skeleton {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.skel-header {
  display: flex;
  height: 38px;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-card);
}

.skel-row {
  display: flex;
  height: 58px;
  border-bottom: 1px solid var(--border-hairline);
}

.skel-row:last-child {
  border-bottom: none;
}

.skel-ch {
  width: 248px;
  flex-shrink: 0;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  border-right: 1px solid var(--border-hairline);
}

.skel-header .skel-ch {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.skel-track {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  overflow: hidden;
}

.skel-bar {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-subtle);
}

.skel-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  animation: tgShimmer 1.5s ease-in-out infinite;
}

[data-theme="dark"] .skel-bar::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

@keyframes tgShimmer {
  100% { transform: translateX(100%); }
}

.skel-line-xs { width: 48px; height: 9px; border-radius: 5px; }
.skel-line-sm { width: 64px; height: 10px; border-radius: 5px; }
.skel-line-md { width: 68%; height: 12px; border-radius: 6px; }
.skel-line-lg { width: 82%; height: 12px; border-radius: 6px; }
.skel-tick { width: 42px; height: 10px; border-radius: 5px; margin-right: 118px; flex-shrink: 0; }
.skel-block { height: 46px; border-radius: 10px; flex-shrink: 0; }
.skel-w-sm { width: 150px; }
.skel-w-md { width: 220px; }
.skel-w-lg { width: 310px; }
.skel-w-xl { width: 260px; flex: 1; min-width: 140px; }

/* Grade EPG Horizontal + Vertical Interno com Cabeçalhos Fixos */
.epg-grid-wrapper {
  display: flex;
  position: relative;
  overflow: auto;
  max-height: clamp(390px, 54vh, 580px);
  -webkit-overflow-scrolling: touch;
}

.epg-empty {
  display: none;
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.channels-col {
  width: 248px;
  flex-shrink: 0;
  position: sticky;
  left: 0;
  border-right: 1px solid var(--border-hairline);
  background: var(--bg-card);
  z-index: 6;
  align-self: flex-start;
}

.channels-header {
  height: 38px;
  padding: 0 14px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 8;
}

.epg-clock {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.channel-row-label {
  width: 100%;
  height: 58px;
  padding: 0 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  border-bottom: 1px solid var(--border-hairline);
  background: transparent;
  color: var(--text-primary);
  transition: background 0.15s ease;
  position: relative;
}

.channel-row-label:hover { background: var(--bg-subtle); }

.channel-row-label.active {
  background: var(--accent-soft);
}

.channel-row-label.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}

.channel-row-main {
  flex: 1;
  height: 100%;
  min-width: 0;
  padding: 0 4px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.fav-row-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.65;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.fav-row-btn:hover {
  opacity: 1;
  background: var(--bg-subtle-hover);
  color: var(--text-primary);
}

.fav-row-btn.is-fav,
.share-btn.is-fav {
  opacity: 1;
  color: #d97706;
}

[data-theme="dark"] .fav-row-btn.is-fav,
[data-theme="dark"] .share-btn.is-fav {
  color: #fbbf24;
}

.fav-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tea-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tea-filter-icon {
  width: 16px;
  height: 10px;
  flex-shrink: 0;
}

.tea-pill-btn.active {
  background: #0284c7;
  color: #ffffff;
}

.tea-pill-btn.active .tea-filter-icon path {
  stroke: #ffffff;
}

.ch-meta-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.ch-num-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.kids-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #047857;
  color: color-mix(in srgb, var(--text-primary) 72%, #059669 28%);
  background: rgba(16, 185, 129, 0.14);
  background: color-mix(in srgb, var(--bg-subtle) 84%, #10b981 16%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border: 1px solid color-mix(in srgb, var(--border-hairline) 65%, #10b981 35%);
  white-space: nowrap;
  line-height: 1.2;
}

[data-theme="dark"] .kids-badge {
  color: #6ee7b7;
  color: color-mix(in srgb, var(--text-primary) 72%, #34d399 28%);
}

.kids-badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.kids-badge-sm {
  padding: 1px 5px;
  font-size: 9px;
  gap: 3px;
}

.kids-badge-sm svg {
  width: 10px;
  height: 10px;
}

.tea-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.14);
  background: color-mix(in srgb, var(--bg-subtle) 84%, #38bdf8 16%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border: 1px solid color-mix(in srgb, var(--border-hairline) 65%, #38bdf8 35%);
  white-space: nowrap;
  line-height: 1.2;
}

.tea-badge svg {
  width: 16px;
  height: 10px;
  flex-shrink: 0;
}

.tea-badge-sm {
  padding: 1px 5px;
  font-size: 9px;
  gap: 3px;
}

.tea-badge-sm svg {
  width: 14px;
  height: 9px;
}

.ch-num {
  font-size: 10.5px;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.ch-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ch-lang-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: 5px;
  padding: 2px 5px;
  line-height: 1.1;
  flex-shrink: 0;
  text-transform: uppercase;
}

.timeline-scroll {
  flex: 0 0 auto;
  overflow: visible;
  position: relative;
}

.timeline-inner {
  position: relative;
  min-height: 100%;
}

.time-ruler {
  height: 38px;
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-card);
}

.ruler-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--border-hairline);
  padding-left: 8px;
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.program-row {
  height: 58px;
  position: relative;
  border-bottom: 1px solid var(--border-hairline);
  transition: background-color 0.15s ease;
}

.program-row.active {
  background-color: rgba(0, 113, 227, 0.05);
  background-color: color-mix(in srgb, var(--accent) 4%, transparent);
}

[data-theme="dark"] .program-row.active {
  background-color: rgba(10, 132, 255, 0.08);
  background-color: color-mix(in srgb, var(--accent) 7%, transparent);
}

.program-block {
  position: absolute;
  top: 5px;
  bottom: 5px;
  border-radius: 10px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  background-color: #f4f4f6;
  border: 1px solid rgba(0, 0, 0, 0.075);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  overflow: clip;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

[data-theme="dark"] .program-block {
  color: #f5f5f7;
  background-color: #242426;
  border-color: rgba(255, 255, 255, 0.085);
}

.program-block.is-past-block {
  opacity: 0.52;
}

.program-block:hover {
  background-color: #eaeaf0;
  border-color: rgba(0, 0, 0, 0.14);
  opacity: 1;
  z-index: 2;
}

[data-theme="dark"] .program-block:hover {
  background-color: #2f2f33;
  border-color: rgba(255, 255, 255, 0.16);
}

.program-block.is-live-block {
  background-color: #f0f7ff;
  background-color: color-mix(in srgb, var(--accent) 7%, #ffffff);
  border-color: rgba(0, 113, 227, 0.34);
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .program-block.is-live-block {
  background-color: #1c2838;
  background-color: color-mix(in srgb, var(--accent) 16%, #1f1f22);
  border-color: rgba(10, 132, 255, 0.44);
  border-color: color-mix(in srgb, var(--accent) 44%, transparent);
}

.program-row.active .program-block.is-live-block {
  background-color: #e3f0ff;
  background-color: color-mix(in srgb, var(--accent) 14%, #ffffff);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), 0 2px 8px rgba(0, 113, 227, 0.14);
  box-shadow: inset 0 0 0 1px var(--accent), 0 2px 8px color-mix(in srgb, var(--accent) 14%, transparent);
}

[data-theme="dark"] .program-row.active .program-block.is-live-block {
  background-color: #183254;
  background-color: color-mix(in srgb, var(--accent) 26%, #1c1c1e);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.program-label {
  position: sticky;
  left: 260px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.program-time-range {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.72;
  font-variant-numeric: tabular-nums;
}

.program-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-red);
  flex-shrink: 0;
}

.program-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  pointer-events: none;
}

.now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--live-red);
  z-index: 5;
  pointer-events: none;
}

.now-tag {
  position: sticky;
  top: 6px;
  display: inline-block;
  transform: translateX(-50%);
  background: var(--live-red);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

/* Tooltip Flutuante */
.epg-tooltip {
  position: fixed;
  z-index: 999;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 11px 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  max-width: 290px;
  display: none;
  font-size: 12.5px;
}

.epg-tooltip-meta {
  display: block;
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 11.5px;
}

/* Vitrine Minimalista de Recomendações */
.recs-section {
  text-align: center;
  padding-top: 6px;
}

.recs-header {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.recs-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.adult-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--adult-bg);
  color: var(--adult-fg);
}

.recs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 310px));
  justify-content: center;
  gap: 16px;
}

.rec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-pill);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rec-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.rec-thumb {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
  flex-shrink: 0;
}

.rec-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.rec-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.rec-cat {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.rec-name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rec-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.rec-cta:hover { background: var(--bg-subtle-hover); }

.affiliate-disclaimer {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* Rodapé Editorial */
.editorial-footer {
  border-top: 1px solid var(--border-hairline);
  padding-top: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 12.5px;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.editorial-footer a.inline-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.editorial-footer a.inline-link:hover { text-decoration: underline; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover { text-decoration: underline; }

.error-banner {
  background: var(--live-bg);
  color: var(--live-red);
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.retry-btn {
  flex-shrink: 0;
  min-height: 32px;
  padding: 5px 14px;
  font-size: 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-hairline);
}

.retry-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Tablet (< 1024px): empilha o painel abaixo do vídeo em barra elegante */
@media (max-width: 1023px) {
  .tv-frame {
    grid-template-columns: 1fr;
  }

  .tv-panel {
    border-left: none;
    border-top: 1px solid var(--border-hairline);
    padding: 14px 18px;
    gap: 12px;
  }

  .panel-upnext { display: none; }

  .panel-controls {
    flex-direction: row;
    flex-wrap: wrap;
    padding-top: 0;
  }

  .zap-group { width: auto; }
}

/* Mobile-First (<= 768px): vídeo sticky + status ultra compacto em 1 linha */
@media (max-width: 768px) {
  .top-nav { padding: 10px 14px; }
  .brand-title { font-size: 17px; }
  .kids-entry-btn { font-size: 11px; padding: 5px 9px; }
  .parental-gate { margin: 0 12px; padding: 14px 16px; }
  .container { padding: 0 0 40px; gap: 14px; }

  .tv-frame {
    border-radius: 0;
    border-left: none;
    border-right: none;
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg-card);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .tv-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    gap: 8px;
    position: relative;
    background: var(--bg-card);
  }

  .panel-top { flex-shrink: 0; }
  .ch-chip,
  .sync-toast,
  .now-channel-row,
  .now-channel-name,
  .progress-meta,
  .panel-upnext,
  .volume-row,
  .panel-report-row,
  .zap-group {
    display: none;
  }

  .live-badge {
    padding: 4px 8px;
    font-size: 9.5px;
  }

  .panel-now {
    flex: 1;
    gap: 1px;
    min-width: 0;
  }

  .now-program-title {
    font-size: 13px;
    -webkit-line-clamp: 1;
  }

  .now-episode-title {
    font-size: 11.5px;
    -webkit-line-clamp: 1;
  }

  /* Barra de progresso finíssima na borda inferior do player sticky */
  .progress-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
  }

  .progress-track {
    height: 2.5px;
    border-radius: 0;
  }

  .panel-controls {
    flex-direction: row;
    flex-shrink: 0;
    gap: 6px;
  }

  .control-row { gap: 6px; }

  .pill-btn {
    min-height: 36px;
    padding: 6px 10px;
    font-size: 11.5px;
  }

  #fs-label, #cc-label { display: none; }

  .epg-card { border-radius: 18px; margin: 0 12px; background: var(--bg-card); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .epg-categories-bar::after { display: block; }
  .category-scroll { flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 10px 32px 10px 14px; }
  .epg-toolbar { padding: 10px 14px; gap: 8px; }
  .time-nav-btn { min-height: 40px; padding: 0 13px; }
  .filter-pill { min-height: 36px; padding: 6px 12px; }
  .filter-group .filter-pill { min-height: 30px; padding: 4px 9px; }
  .epg-grid-wrapper { max-height: none; overflow-x: auto; overflow-y: visible; }
  .channels-col { width: 168px; }
  .skel-ch { width: 168px; padding: 0 12px; }
  .program-label { left: 180px; }
  .channel-row-label { padding: 0 3px 0 0; gap: 2px; }
  .channel-row-main { padding: 0 2px 0 10px; gap: 4px; }
  .fav-row-btn { width: 26px; height: 26px; }
  .ch-num-row { gap: 3px; }
  .ch-num { font-size: 10px; }
  .kids-badge-sm, .tea-badge-sm { padding: 1px 4px; font-size: 8.5px; gap: 2px; }
  .kids-badge-sm svg { display: none; }
  .tea-badge-sm svg { width: 11px; height: 7px; }
  .ch-name { font-size: 12.5px; }
  .epg-clock { display: none; }

  .recs-section { padding: 0 14px; }
  .recs-grid { grid-template-columns: 1fr; }
  .rec-card {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 14px;
    padding: 14px;
  }
  .rec-thumb { width: 72px; height: 72px; border-radius: 14px; }
  .rec-body { align-items: flex-start; }
  .rec-cta { margin-top: 4px; }

  .editorial-footer { padding: 20px 16px 0; }
  .error-banner { margin: 0 12px; }
}

@media (pointer: coarse) {
  .icon-btn { width: 40px; height: 40px; }
  .time-nav-btn { min-height: 40px; }
}

/* Fullscreen (proporção nativa 16:9 sem distorção em qualquer monitor) */
.tv-frame:fullscreen,
.tv-frame:-webkit-full-screen,
.tv-frame.is-fullscreen {
  --bg-glass: rgba(18, 18, 20, 0.94);
  --bg-subtle: rgba(255, 255, 255, 0.1);
  --bg-subtle-hover: rgba(255, 255, 255, 0.18);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --border-hairline: rgba(255, 255, 255, 0.14);
  --accent: #0a84ff;
  --live-red: #ff6961;
  --live-bg: rgba(255, 69, 58, 0.2);
  --paused-fg: #ffb340;
  --paused-bg: rgba(255, 159, 10, 0.22);
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #000000;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.tv-frame:fullscreen .video-stage,
.tv-frame:-webkit-full-screen .video-stage,
.tv-frame.is-fullscreen .video-stage {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.tv-frame:fullscreen .video-aspect,
.tv-frame:-webkit-full-screen .video-aspect,
.tv-frame.is-fullscreen .video-aspect {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  max-width: none;
  max-height: none;
}

.tv-frame:fullscreen .tv-panel,
.tv-frame:-webkit-full-screen .tv-panel,
.tv-frame.is-fullscreen .tv-panel {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-left: none;
  border-top: 1px solid var(--border-hairline);
  padding: 10px 20px;
  gap: 16px;
  position: relative;
}

.tv-frame:fullscreen .panel-upnext,
.tv-frame:-webkit-full-screen .panel-upnext,
.tv-frame.is-fullscreen .panel-upnext,
.tv-frame:fullscreen .progress-wrap,
.tv-frame:-webkit-full-screen .progress-wrap,
.tv-frame.is-fullscreen .progress-wrap,
.tv-frame:fullscreen .now-channel-row,
.tv-frame:-webkit-full-screen .now-channel-row,
.tv-frame.is-fullscreen .now-channel-row,
.tv-frame:fullscreen .now-channel-name,
.tv-frame:-webkit-full-screen .now-channel-name,
.tv-frame.is-fullscreen .now-channel-name,
.tv-frame:fullscreen .volume-row,
.tv-frame:-webkit-full-screen .volume-row,
.tv-frame.is-fullscreen .volume-row,
.tv-frame:fullscreen .panel-report-row,
.tv-frame:-webkit-full-screen .panel-report-row,
.tv-frame.is-fullscreen .panel-report-row,
.tv-frame:fullscreen .zap-group,
.tv-frame:-webkit-full-screen .zap-group,
.tv-frame.is-fullscreen .zap-group {
  display: none;
}

.tv-frame:fullscreen .panel-now,
.tv-frame:-webkit-full-screen .panel-now,
.tv-frame.is-fullscreen .panel-now {
  flex: 1;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tv-frame:fullscreen .now-program-title,
.tv-frame:-webkit-full-screen .now-program-title,
.tv-frame.is-fullscreen .now-program-title {
  font-size: 14px;
  -webkit-line-clamp: 1;
  flex-shrink: 0;
}

.tv-frame:fullscreen .now-episode-title,
.tv-frame:-webkit-full-screen .now-episode-title,
.tv-frame.is-fullscreen .now-episode-title {
  font-size: 13px;
  -webkit-line-clamp: 1;
}

.tv-frame:fullscreen .panel-controls,
.tv-frame:-webkit-full-screen .panel-controls,
.tv-frame.is-fullscreen .panel-controls {
  flex-direction: row;
  padding-top: 0;
  flex-shrink: 0;
}

.tv-frame:fullscreen #fs-label,
.tv-frame:-webkit-full-screen #fs-label,
.tv-frame.is-fullscreen #fs-label,
.tv-frame:fullscreen #cc-label,
.tv-frame:-webkit-full-screen #cc-label,
.tv-frame.is-fullscreen #cc-label {
  display: inline;
}

/* Modo Conforto Sensorial (ativo automaticamente em canais com selo TEA, sem mudar o layout) */
body.is-tea-channel {
  --live-red: #0284c7;
  --live-bg: rgba(2, 132, 199, 0.12);
}

[data-theme="dark"] body.is-tea-channel,
body.is-tea-channel .tv-frame:fullscreen,
body.is-tea-channel .tv-frame:-webkit-full-screen,
body.is-tea-channel .tv-frame.is-fullscreen {
  --live-red: #38bdf8;
  --live-bg: rgba(56, 189, 248, 0.18);
}

body.is-tea-channel .live-dot,
body.is-tea-channel .pill-btn.unmute-alert {
  animation: none;
}

body.is-tea-channel .panel-upnext {
  background: rgba(0, 113, 227, 0.09);
  background: color-mix(in srgb, var(--bg-subtle) 86%, var(--accent) 14%);
  border-color: rgba(0, 113, 227, 0.28);
  border-color: color-mix(in srgb, var(--border-hairline) 70%, var(--accent) 30%);
}

/* Modo Smart TV / 10-foot UI (isolado em body.is-tv-mode; zero impacto em desktop/mobile) */
body.is-tv-mode .container {
  max-width: 1480px;
  padding: 0 32px 48px;
  gap: 24px;
}

body.is-tv-mode .tv-frame,
body.is-tv-mode .epg-card,
body.is-tv-mode .parental-gate,
body.is-tv-mode .tv-panel {
  background: var(--bg-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.is-tv-mode .tv-frame {
  grid-template-columns: minmax(0, 1fr) 392px;
}

body.is-tv-mode .now-channel-name { font-size: 14px; }
body.is-tv-mode .now-program-title { font-size: 22px; }
body.is-tv-mode .now-episode-title { font-size: 16px; }
body.is-tv-mode .upnext-title { font-size: 15px; }
body.is-tv-mode .upnext-time,
body.is-tv-mode .progress-meta { font-size: 13px; }

body.is-tv-mode .pill-btn,
body.is-tv-mode .zap-btn,
body.is-tv-mode .filter-pill,
body.is-tv-mode .time-nav-btn {
  min-height: 44px;
  font-size: 14.5px;
  padding: 8px 15px;
}

body.is-tv-mode .channels-col,
body.is-tv-mode .skel-ch {
  width: 288px;
}

body.is-tv-mode .program-label {
  left: 300px;
}

body.is-tv-mode .channel-row-label,
body.is-tv-mode .program-row,
body.is-tv-mode .skel-row {
  height: 66px;
}

body.is-tv-mode .ch-num { font-size: 12px; }
body.is-tv-mode .ch-name { font-size: 15.5px; }
body.is-tv-mode .program-block { font-size: 15px; }
body.is-tv-mode .program-time-range { font-size: 12.5px; }

body.is-tv-mode button:focus,
body.is-tv-mode a:focus,
body.is-tv-mode input:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(0, 113, 227, 0.28);
  position: relative;
  z-index: 10;
}

[data-theme="dark"] body.is-tv-mode button:focus,
[data-theme="dark"] body.is-tv-mode a:focus,
[data-theme="dark"] body.is-tv-mode input:focus {
  box-shadow: 0 0 0 6px rgba(10, 132, 255, 0.36);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .skel-bar::after {
    display: none;
  }
}
