/* Phase 13.1 — Evotic TV player page. HLS via hls.js (fallback natif Safari). */

/* Phase Bonus-2.6.5 — channels grid (cards layout, dead auto-hidden) */
.bc-channel-section {
  margin: 12px 14px 6px;
}
.bc-channel-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 800; color: #fff;
  margin: 0 0 10px;
}
.bc-channel-section-title i { color: #6750A4; }
.bc-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.bc-channel-card {
  appearance: none; border: none; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.10);
  color: #fff;
  min-height: 110px;
  position: relative;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.bc-channel-card:active { transform: scale(0.97); }
.bc-channel-card.active {
  border-color: #6750A4;
  background: linear-gradient(135deg, rgba(103, 80, 164,.30), rgba(103, 80, 164,.10));
  box-shadow: 0 0 0 2px rgba(103, 80, 164,.35);
}
.bc-channel-card.checking { opacity: 0.6; }
.bc-channel-card.dead { display: none; }
.bc-card-icon {
  font-size: 28px; line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
.bc-card-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bc-card-name {
  font-weight: 800; font-size: 14px; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bc-card-desc {
  font-size: 11px; opacity: 0.75; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.bc-card-cat {
  font-size: 10px; opacity: 0.55; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.4px;
}
.bc-card-status {
  position: absolute; top: 8px; right: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.5px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px;
  border-radius: 8px;
  background: rgba(0,0,0,0.35);
}
.bc-channel-card.live .bc-card-status {
  background: rgba(76,175,80,0.22); color: #81C784;
}
.bc-channel-card.checking .bc-card-status {
  background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.6);
}
.bc-live-dot-mini {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4CAF50;
  box-shadow: 0 0 6px rgba(76,175,80,0.8);
  animation: bc-pulse-dot 1.4s ease-in-out infinite;
}
@keyframes bc-pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.bc-body { background: #0F172A; min-height: 100vh; color: #fff; padding-bottom: 32px; }

.app-header.bc-header {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.app-header.bc-tv-header { background: linear-gradient(135deg, #E91E63, #C2185B 60%, #880E4F); color: #fff; }
.app-header.bc-header .app-header-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; max-width: 860px; margin: 0 auto;
}
.app-header.bc-header .hdr-back {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.22); color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
  transition: transform .15s, background .15s;
}
.app-header.bc-header .hdr-back:active { transform: scale(.92); background: rgba(255,255,255,.3); }
.app-header.bc-header .app-header-title {
  flex: 1; display: flex; flex-direction: column;
  min-width: 0; line-height: 1.15;
}
.app-header.bc-header .app-header-name {
  font-size: 17px; font-weight: 900; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-header.bc-header .app-header-sub {
  font-size: 10px; font-weight: 800; color: rgba(255,255,255,.85);
  text-transform: uppercase; letter-spacing: .5px; margin-top: 1px;
  display: flex; align-items: center;
}

.bc-live-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9.5px; font-weight: 900; padding: 2px 7px;
  border-radius: 8px; background: rgba(255,255,255,.18);
  letter-spacing: .6px;
}
.bc-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--card-bg);
  animation: bcPulse 1.6s ease-in-out infinite;
}
@keyframes bcPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.4); } }

.bc-shell { max-width: 860px; margin: 0 auto; padding: 14px 16px 24px; }

/* ─── Video player ─── */
.bc-player-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #000; border-radius: 18px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.bc-video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.bc-player-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.5); pointer-events: none;
}
.bc-player-overlay.hidden { display: none; }
.bc-player-loading { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 13px; font-weight: 700; }
.bc-player-error {
  text-align: center; padding: 20px; color: #fff; font-size: 13px;
  max-width: 320px;
}
.bc-player-error i { font-size: 32px; margin-bottom: 10px; color: #FF6B6B; }
.bc-player-error-title { font-weight: 900; margin-bottom: 8px; font-size: 14px; }
/* Phase Bonus-2.10 — recovery actions in player error overlay */
.bc-player-error-actions {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 14px; align-items: stretch;
}
.bc-player-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: 13px;
  cursor: pointer; border: 0; transition: transform .12s, opacity .15s;
  background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(6px);
}
.bc-player-action.primary { background: #6750A4; color: #fff; }
.bc-player-action.danger { background: rgba(220, 38, 38, 0.28); color: #FFB4B4; }
.bc-player-action:hover { transform: translateY(-1px); }
.bc-player-action:disabled { opacity: 0.55; cursor: default; }

/* ─── Current program ─── */
.bc-now-section {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 16px 18px; margin-top: 14px;
}
.bc-now-label {
  font-size: 10.5px; font-weight: 900; letter-spacing: 1px;
  color: rgba(255,255,255,.6); text-transform: uppercase; margin-bottom: 6px;
}
.bc-now-title { font-size: 18px; font-weight: 900; color: #fff; line-height: 1.3; }
.bc-now-host { font-size: 12.5px; color: rgba(255,255,255,.75); font-weight: 700; margin-top: 4px; }
.bc-now-host:empty { display: none; }
.bc-now-desc { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.6; margin-top: 10px; }
.bc-now-desc:empty { display: none; }

/* ─── Schedule list ─── */
.bc-schedule { margin-top: 22px; }
.bc-schedule-title {
  font-size: 14px; font-weight: 900; color: #fff;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.bc-schedule-title i { color: #E91E63; }

.bc-schedule-list { display: flex; flex-direction: column; gap: 8px; }
.bc-schedule-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.bc-schedule-row.active {
  background: rgba(233,30,99,.14);
  border-color: rgba(233,30,99,.35);
}
.bc-schedule-time {
  font-size: 12px; font-weight: 900; color: #fff;
  font-variant-numeric: tabular-nums;
  min-width: 60px; text-align: center;
}
.bc-schedule-body { flex: 1; min-width: 0; }
.bc-schedule-prog-title { font-size: 13.5px; font-weight: 800; color: #fff; line-height: 1.3; }
.bc-schedule-host { font-size: 11.5px; color: rgba(255,255,255,.6); margin-top: 2px; font-weight: 600; }
.bc-schedule-empty {
  text-align: center; padding: 40px 16px;
  color: rgba(255,255,255,.55); font-size: 12.5px;
}

.bc-schedule-empty i { font-size: 28px; opacity: .4; margin-bottom: 10px; display: block; }

/* ns-loading inherited from news.css/style.css */
.bc-shell .ns-loading { color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 10px; padding: 32px; font-size: 13px; justify-content: center; }
.gs-spinner { display: inline-block; width: 22px; height: 22px; border: 2.5px solid rgba(255,255,255,.18); border-top-color: #E91E63; border-radius: 50%; animation: bcSpin .8s linear infinite; }
@keyframes bcSpin { to { transform: rotate(360deg); } }

.err { color: #FF6B6B; font-size: 12.5px; }
