/* Schedule rail */

.schedule-rail {
  border-radius: 16px;
  border: 1px solid rgba(30, 64, 175, 0.7);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.97), #020617 75%);
  padding: 10px 12px;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.schedule-slot {
  min-width: 190px;
  max-width: 230px;
  padding: 8px 9px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.95);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-slot.now {
  border-color: var(--accent-soft);
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.5);
}

.schedule-time {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.schedule-title {
  font-size: 12px;
  font-weight: 600;
}

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

@media (max-width: 640px) {
  .schedule-slot {
    min-width: 180px;
  }
}

/* Channels grid */

.channels-grid {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.channel-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(30, 64, 175, 0.7);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), #020617);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.12s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.channel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
  border-color: rgba(129, 140, 248, 0.9);
}

.channel-card.playing {
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, 0.9),
    0 0 40px rgba(14, 165, 233, 0.8);
}

.channel-thumb {
  position: relative;
  height: 100px;
  overflow: hidden;
}

.channel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.channel-card:hover .channel-thumb img {
  transform: scale(1.08);
}

.channel-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.98), transparent 55%);
}

.channel-status-pill {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.channel-status-pill.live {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fef2f2;
  box-shadow: 0 0 14px rgba(248, 113, 113, 0.8);
}

.channel-status-pill.offline {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
  border: 1px solid rgba(75, 85, 99, 0.9);
}

.channel-body {
  padding: 8px 9px 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.channel-type {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.channel-name {
  font-size: 13px;
  font-weight: 600;
}

.channel-viewers {
  font-size: 11px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.channel-viewers .icon {
  width: 12px;
  height: 12px;
}