/* Programme foot — LKZ+ (grille propre & transparente) */

.prog-page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0.25rem clamp(1rem, 3vw, 1.75rem) 3rem;
}

.prog-shell {
  display: grid;
  gap: 1.15rem;
}

.prog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.prog-head__left {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  padding-left: 0;
}

.prog-accent {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 3.5rem;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    hsl(var(--primary)) 0%,
    hsla(var(--primary) / 0.6) 55%,
    transparent 100%
  );
}

.prog-head__left > div:last-child {
  margin-left: 1.35rem;
}

.prog-kicker-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.prog-kicker-icon {
  width: 0.9rem;
  height: 0.9rem;
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.prog-kicker {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.prog-title {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.prog-count {
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.prog-search-wrap {
  position: relative;
  width: min(100%, 320px);
  flex: 1 1 220px;
}

.prog-search-wrap svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.prog-search {
  width: 100%;
  height: 2.65rem;
  padding: 0 0.95rem 0 2.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.prog-search::placeholder { color: rgba(255, 255, 255, 0.38); }

.prog-search:focus {
  border-color: hsla(var(--primary) / 0.55);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px hsla(var(--primary) / 0.14);
}

/* Filters — onglets classiques (ligne violette), pas de pills */
.prog-filters {
  display: grid;
  gap: 0.55rem;
}

.prog-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.45rem 0 0.25rem;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.prog-days.channels-tabs,
.prog-comps.channels-tabs {
  display: flex;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  position: relative;
  align-self: stretch;
}

.prog-days.channels-tabs::-webkit-scrollbar,
.prog-comps.channels-tabs::-webkit-scrollbar {
  display: none;
}

.prog-comps.channels-tabs {
  border-bottom-color: transparent;
}

.prog-days .channels-tabs__line,
.prog-comps .channels-tabs__line {
  display: block !important;
}

.prog-days .channels-tab,
.prog-comps .channels-tab {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
  padding: 0.35rem 0.05rem 0.7rem;
  min-height: 40px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  flex: 0 0 auto;
  box-shadow: none;
  text-shadow: none;
}

.prog-comps .channels-tab {
  font-size: 0.8rem;
  min-height: 34px;
  padding: 0.2rem 0.05rem 0.55rem;
}

.prog-days .channels-tab:hover,
.prog-comps .channels-tab:hover {
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
}

.prog-days .channels-tab.is-active,
.prog-comps .channels-tab.is-active {
  color: #fff;
  background: transparent;
  border-color: transparent;
}

.prog-days .channels-tab__count,
.prog-comps .channels-tab__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.2rem;
  height: 1.2rem;
  margin-left: 0.15rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
}

.prog-days .channels-tab.is-active .channels-tab__count,
.prog-comps .channels-tab.is-active .channels-tab__count {
  background: hsla(var(--primary) / 0.22);
  color: #e9d5ff;
}

/* Spotlight */
.prog-spotlight {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(185, 131, 255, 0.22);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.16), rgba(0, 0, 0, 0.18) 55%);
}

.prog-spotlight__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 255, 0.75);
}

.prog-spotlight__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: hsl(var(--primary));
  box-shadow: 0 0 10px hsla(var(--primary) / 0.55);
  animation: progSpotPulse 1.8s ease-in-out infinite;
}

.prog-spotlight__dot.is-live {
  background: hsl(0 100% 59%);
  box-shadow: 0 0 10px hsla(0 100% 59% / 0.55);
}

@keyframes progSpotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.88); }
}

.prog-spotlight__match {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 3vw, 1.6rem);
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.prog-spotlight__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex: 1 1 7rem;
  max-width: 11rem;
}

.prog-spotlight__team img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
}

.prog-spotlight__team span {
  font-size: 0.95rem;
  font-weight: 750;
  text-align: center;
  color: #fff;
  line-height: 1.2;
}

.prog-spotlight__vs {
  flex-shrink: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.28);
}

.prog-spotlight__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
}

.prog-spotlight__time {
  font-size: 0.85rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: #fff;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.prog-spotlight__ch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.prog-spotlight__ch img {
  height: 22px;
  width: auto;
  max-width: 68px;
  object-fit: contain;
}

/* Match board */
.prog-board {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.prog-slot {
  margin: 0.85rem 0 0.35rem;
  padding: 0 0.15rem;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.prog-slot:first-child { margin-top: 0.15rem; }

.prog-row {
  display: grid;
  grid-template-columns: 4.1rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem 0.7rem;
  border-radius: 0.85rem;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.15s, border-color 0.15s;
}

.prog-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.06);
}

.prog-row.is-live {
  background: rgba(255, 45, 45, 0.08);
  border-color: rgba(255, 70, 70, 0.18);
}

.prog-row.is-soon {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(185, 131, 255, 0.16);
}

.prog-row.is-mplex {
  margin-top: 0.35rem;
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(185, 131, 255, 0.2);
}

.prog-row.is-child {
  padding-left: 1.1rem;
  opacity: 0.92;
}

.prog-row__time-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
}

.prog-row__time {
  font-size: 0.98rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 1;
}

.prog-row__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.4rem;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prog-row__badge.is-live {
  background: rgba(255, 45, 45, 0.18);
  color: #ff6b6b;
}

.prog-row__badge.is-soon {
  background: rgba(168, 85, 247, 0.2);
  color: #d2b4ff;
}

.prog-row__badge.is-tv {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
}

.prog-row__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.prog-row__match {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.prog-team {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
  min-width: 0;
}

.prog-team img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.prog-vs {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
  flex-shrink: 0;
}

.prog-mplex-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d2b4ff;
}

.prog-comp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.prog-comp__logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.prog-comp .stage { color: rgba(255, 255, 255, 0.3); }

.prog-row__ch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
  max-width: 9.5rem;
}

.prog-row__ch img {
  height: 20px;
  width: auto;
  max-width: 62px;
  object-fit: contain;
  display: block;
}

.prog-ch-text {
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  white-space: nowrap;
}

.prog-ch-none {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.25);
  font-style: italic;
}

.prog-empty {
  padding: 3rem 0.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .prog-page { padding-bottom: 2.25rem; }

  .prog-head { align-items: stretch; }

  .prog-search-wrap { width: 100%; flex-basis: 100%; }

  .prog-row {
    grid-template-columns: 3.4rem minmax(0, 1fr) auto;
    padding: 0.7rem 0.45rem;
    gap: 0.55rem;
  }

  .prog-team { font-size: 0.88rem; }
  .prog-team img { width: 20px; height: 20px; }
  .prog-row__time { font-size: 0.9rem; }
  .prog-row__ch { max-width: 4.6rem; }
  .prog-row__ch img { height: 16px; max-width: 48px; }
  .prog-spotlight__team img { width: 44px; height: 44px; }
  .prog-spotlight__team span { font-size: 0.84rem; }
}
