/* ============================================================
   PROGRAMME TV
   ============================================================ */
.tv-wrap { max-width: 920px; margin: 32px auto 64px; padding: 0 20px; }

.tv-breadcrumb { font-size: 11.5px; color: var(--text3); margin-bottom: 18px; }
.tv-breadcrumb a { color: var(--text3); }
.tv-breadcrumb a:hover { color: var(--accent); }

/* ── Hero ─────────────────────────────────────────────────── */
.tv-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0b3d1e 0%, #0f5a2b 55%, #137a35 100%);
  color: #fff; border-radius: 14px; padding: 30px 28px 26px; margin-bottom: 22px;
}
.tv-hero::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; border: 28px solid rgba(255,255,255,0.06);
}
.tv-hero-kicker {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,0.14); padding: 4px 10px; border-radius: 20px; margin-bottom: 12px;
}
.tv-hero h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; line-height: 1.2; margin: 0 0 8px; }
.tv-hero p { font-size: 14px; opacity: .85; max-width: 560px; margin: 0; line-height: 1.55; }
.tv-hero-meta { margin-top: 14px; font-size: 12px; font-weight: 600; opacity: .75; }

/* ── Filters ──────────────────────────────────────────────── */
.tv-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: none; }
.tv-filters::-webkit-scrollbar { display: none; }
.tv-chip {
  flex-shrink: 0; font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600;
  padding: 7px 14px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text2); cursor: pointer; transition: all .15s;
}
.tv-chip:hover { color: var(--text); border-color: var(--text3); }
.tv-chip.active { background: var(--accent); border-color: var(--accent); color: #062b10; }

/* ── Day ──────────────────────────────────────────────────── */
.tv-day { margin-bottom: 26px; }
.tv-day-title {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--accent);
}
.tv-day-title span { font-size: 12px; font-weight: 500; color: var(--text3); text-transform: none; letter-spacing: 0; }
.tv-list { display: flex; flex-direction: column; gap: 8px; }

/* ── Match row ────────────────────────────────────────────── */
.tv-match {
  display: grid; grid-template-columns: 74px 1fr 210px; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid transparent;
  border-radius: 10px; padding: 14px 16px; transition: transform .15s, box-shadow .15s;
}
.tv-match:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.tv-match.is-highlight { border-left-color: var(--accent); background: linear-gradient(90deg, rgba(79,225,15,0.07), var(--surface) 40%); }
.tv-match.is-finished, .tv-match.is-postponed { opacity: .7; }

.tv-time { text-align: center; }
.tv-time time { font-size: 1.15rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.tv-status { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text3); }
.tv-live { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; text-transform: uppercase; color: #ff3232; }
.tv-live i { width: 8px; height: 8px; border-radius: 50%; background: #ff3232; animation: tv-pulse 1.2s infinite; }
@keyframes tv-pulse { 50% { opacity: .25; } }

.tv-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-width: 0; }
.tv-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tv-home { justify-content: flex-end; text-align: right; }
.tv-team img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.tv-name { font-weight: 700; font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.tv-score { min-width: 54px; text-align: center; font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tv-score span { color: var(--text3); }
.tv-vs {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--text3);
  border: 1px solid var(--border); border-radius: 20px; padding: 3px 8px;
}

.tv-info { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 0; }
.tv-league { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text2); text-align: right; }
.tv-league img { width: 16px; height: 16px; object-fit: contain; }
.tv-channel {
  font-size: 12px; font-weight: 700; color: #fff; background: #111114;
  padding: 4px 10px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
[data-theme="dark"] .tv-channel { background: var(--accent); color: #062b10; }
.tv-channel-tbc { background: var(--surface2) !important; color: var(--text3) !important; font-weight: 600; }

/* ── Empty ────────────────────────────────────────────────── */
.tv-empty { text-align: center; padding: 56px 20px; background: var(--surface); border: 1px dashed var(--border); border-radius: 12px; }
.tv-empty-icon { font-size: 2.4rem; margin-bottom: 10px; }
.tv-empty h2 { font-size: 1.1rem; margin: 0 0 6px; }
.tv-empty p { color: var(--text2); font-size: 14px; margin: 0; }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 720px) {
  .tv-wrap { padding: 0 14px; margin-top: 20px; }
  .tv-hero { padding: 24px 20px 20px; }
  .tv-match { grid-template-columns: 1fr; gap: 10px; padding: 12px 14px; }
  .tv-time { text-align: left; order: 1; }
  .tv-teams { order: 2; }
  .tv-info { order: 3; flex-direction: row; justify-content: space-between; align-items: center; }
  .tv-name { font-size: 13px; }
  .tv-team img { width: 26px; height: 26px; }
}

/* teams heading reset (h3 for the match title) */
h3.tv-teams { margin: 0; font-size: inherit; font-weight: inherit; }
.tv-name a { color: inherit; }
.tv-name a:hover { color: var(--accent); }

/* ── Secondary blocks ─────────────────────────────────────── */
.tv-block { margin-top: 40px; }
.tv-block-title {
  font-size: 1.05rem; font-weight: 800; margin: 0 0 14px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.tv-results { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.tv-result {
  display: grid; grid-template-columns: 46px 1fr 56px 1fr minmax(0, 170px); align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13px;
}
.tv-result:last-child { border-bottom: none; }
.tv-result-date { font-size: 11px; color: var(--text3); }
.tv-result-home { text-align: right; font-weight: 600; }
.tv-result-away { font-weight: 600; }
.tv-result-home a, .tv-result-away a { color: inherit; }
.tv-result-score { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--surface2); border-radius: 6px; padding: 3px 0; }
.tv-result-league { font-size: 11px; color: var(--text3); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tv-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tv-article {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; color: var(--text); transition: transform .15s, box-shadow .15s;
}
.tv-article:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tv-article img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.tv-article-title { font-size: 13px; font-weight: 700; line-height: 1.35; padding: 10px 12px 4px; }
.tv-article-date { font-size: 11px; color: var(--text3); padding: 0 12px 12px; margin-top: auto; }

.tv-guide p { font-size: 14px; line-height: 1.7; color: var(--text2); margin: 0 0 16px; }
.tv-channels { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: 13px; }
.tv-channels caption { text-align: left; font-size: 12px; color: var(--text3); padding-bottom: 8px; }
.tv-channels th, .tv-channels td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.tv-channels th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text3); }
.tv-channels td:last-child { font-weight: 700; }

.tv-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; }
.tv-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; font-size: 14px; list-style: none; position: relative; padding-right: 40px; }
.tv-faq summary::-webkit-details-marker { display: none; }
.tv-faq summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--accent); }
.tv-faq details[open] summary::after { content: '–'; }
.tv-faq details p { margin: 0; padding: 0 16px 14px; font-size: 14px; line-height: 1.65; color: var(--text2); }

@media (max-width: 720px) {
  .tv-articles { grid-template-columns: 1fr 1fr; }
  .tv-result { grid-template-columns: 1fr 50px 1fr; }
  .tv-result-date, .tv-result-league { display: none; }
}
@media (max-width: 420px) {
  .tv-articles { grid-template-columns: 1fr; }
}
