/* ══════════ SCHEDULE: EN ANTENA ══════════ */
#schedule-view, .sch-card-ch-badge, .sch-card-type-badge, .sch-card-time-info, .sch-card-remaining, .sch-card-next, .sch-card-see-agenda {
  font-family: 'Share Tech Mono', monospace;
}

#schedule-view {
  display: none;
  flex: 1;
  overflow: hidden;
  flex-direction: column;
  background: #07050b;
}

#schedule-now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  padding: 18px;
  overflow-y: auto;
  flex: 1;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,255,0,0.25) transparent;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 39px,
    rgba(255,255,255,0.012) 39px,
    rgba(255,255,255,0.012) 40px
  );
}

/* Tarjeta de canal — bisel estilo monitor CRT */
.sch-card {
  background: #0c0c0c;
  border-radius: 10px;
  overflow: visible;
  border: 4px solid #1c1c1c;
  box-shadow:
    inset 0 0 0 1px #2e2e2e,
    0 0 0 1px #0a0a0a,
    0 14px 44px rgba(0,0,0,0.85),
    0 2px 0 #333 inset,
    0 -2px 0 #111 inset;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  clip-path: inset(0 round 7px);
}
.sch-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow:
    inset 0 0 0 1px #3a3a3a,
    0 0 0 1px #181818,
    0 24px 60px rgba(0,0,0,0.9),
    0 0 40px rgba(0,220,180,0.08);
}

/* Pantalla */
.sch-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.sch-card-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.88) contrast(1.05) saturate(0.9);
}
.sch-card-yt {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
  pointer-events: none;
}

/* Scanlines */
.sch-card-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.18) 2px,
    rgba(0,0,0,0.18) 4px
  );
  pointer-events: none;
  z-index: 4;
  animation: tv-flicker 7s ease-in-out infinite;
}

/* Vignette esquinas */
.sch-card-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%,
    transparent 35%,
    rgba(0,0,0,0.55) 80%,
    rgba(0,0,0,0.85) 100%
  );
  pointer-events: none;
  z-index: 3;
}

/* Línea de barrido */
.sch-card-scanbeam {
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(255,255,255,0.04) 20%,
    rgba(255,255,255,0.10) 50%,
    rgba(255,255,255,0.04) 80%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 5;
  animation: scanmove 5s linear infinite;
  animation-delay: var(--scan-delay, 0s);
}

/* LED de encendido */
.sch-card-led {
  position: absolute;
  bottom: 9px; right: 10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 4px #00ff88, 0 0 10px #00ff88;
  z-index: 10;
  animation: led-pulse 2.8s ease-in-out infinite;
}

/* Degradado inferior para título */
.sch-card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.12) 35%,
    rgba(0,0,0,0.88) 100%);
  z-index: 2;
}

.sch-card-ch-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  background: rgba(0,0,0,0.7);
  padding: 3px 8px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
  z-index: 8;
  border: 1px solid rgba(255,255,255,0.08);
}

.sch-card-type-badge {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 9px;
  letter-spacing: 1px;
  background: rgba(0,0,0,0.7);
  padding: 3px 7px;
  border-radius: 3px;
  color: rgba(255,130,0,0.85);
  backdrop-filter: blur(4px);
  z-index: 8;
  border: 1px solid rgba(255,130,0,0.2);
}

.sch-card-title-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 12px 11px;
  z-index: 8;
}

.sch-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(0,0,0,1);
  line-height: 1.3;
  margin-bottom: 2px;
}

.sch-card-time-info {
  font-size: 9px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.sch-card-body {
  padding: 10px 13px 12px;
  background: linear-gradient(to bottom, #111 0%, #0c0c0c 100%);
  border-top: 1px solid #222;
}

.sch-card-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

/* Barra estilo segmentos LED */
.sch-card-bar {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
}
/* Líneas de segmento LED */
.sch-card-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 7px,
    rgba(0,0,0,0.4) 7px,
    rgba(0,0,0,0.4) 8px
  );
  z-index: 1;
  pointer-events: none;
}

.sch-card-bar-fill {
  height: 100%;
  border-radius: 0;
  transition: width 1s linear;
  box-shadow: 0 0 6px currentColor;
  position: relative;
}

.sch-card-remaining {
  font-size: 9px;
  color: rgba(255,255,255,0.28);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.sch-card-next {
  font-size: 9px;
  color: rgba(255,255,255,0.22);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 9px;
  letter-spacing: 0.5px;
}

.sch-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 8px;
}

.sch-card-see-agenda {
  font-size: 9px;
  color: rgba(0,255,200,0.35);
  letter-spacing: 1.5px;
  transition: color 0.15s, text-shadow 0.15s;
}
.sch-card:hover .sch-card-see-agenda {
  color: rgba(0,255,200,0.85);
  text-shadow: 0 0 8px rgba(0,255,200,0.4);
}