/* tbcounter.com/shared/live-events.css - the events window (live-events.js). The marketing
   site's tokens, set on .le with fallbacks so the widget looks the same on any page. */
.le {
  --le-bg: var(--bg, #0b0b0d);
  --le-surface: var(--surface, #131316);
  --le-surface-2: #18181c;
  --le-border: rgba(200, 152, 99, 0.12);
  --le-border-strong: rgba(200, 152, 99, 0.26);
  --le-soft: rgba(255, 255, 255, 0.06);
  --le-text: var(--text, #f3eee0);
  --le-muted: var(--text-muted, #a8a193);
  --le-dim: var(--text-dim, #6b6557);
  --le-gold: var(--gold, #c89863);
  --le-gold-bright: var(--gold-bright, #e0b97a);
  --le-gold-ink: #17110a;
  --le-live: #9ccfae;
  --le-live-bg: rgba(106, 147, 119, 0.22);
  --le-display: var(--font-display, "Fraunces", Georgia, serif);
  color: var(--le-text);
  font-variant-numeric: tabular-nums;
}
.le button { font: inherit; color: inherit; }

/* Head: title + clock switch, then the window and its arrows */
.le-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.le-title { margin: 0; font-family: var(--le-display); font-weight: 600; font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -0.01em; line-height: 1.1; }
.le-tz { display: inline-flex; padding: 3px; background: var(--le-surface); border: 1px solid var(--le-soft); border-radius: 10px; }
.le-tz button { padding: 6px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--le-muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.le-tz button[aria-pressed="true"] { background: var(--le-gold); color: var(--le-gold-ink); }
.le-tz button:focus-visible, .le-step:focus-visible, .le-now:focus-visible { outline: 2px solid var(--le-gold); outline-offset: 2px; }

.le-nav { display: flex; align-items: center; gap: 10px; margin: 16px 0 20px; flex-wrap: wrap; }
.le-step {
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--le-border-strong); border-radius: 10px;
  background: var(--le-surface); color: var(--le-gold-bright);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.le-step:hover:not(:disabled) { background: var(--le-surface-2); border-color: var(--le-gold); }
.le-step:disabled { opacity: 0.35; cursor: default; }
.le-range { display: flex; flex-direction: column; min-width: 0; }
.le-range-t { font-weight: 600; font-size: 15px; }
.le-range-z { font-size: 12px; color: var(--le-dim); }
.le-now { margin-left: auto; padding: 8px 12px; border: 1px solid var(--le-soft); border-radius: 9px; background: transparent; color: var(--le-gold-bright); font-size: 13px; font-weight: 600; cursor: pointer; }
.le-now:hover { border-color: var(--le-border-strong); }

/* Groups */
.le-group h3 { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--le-dim); }
.le-group h3 span { margin-left: 4px; color: var(--le-muted); letter-spacing: 0; }
.le-none { margin: 0; padding: 14px 16px; border: 1px dashed var(--le-soft); border-radius: 10px; color: var(--le-dim); font-size: 14px; }
.le-retry { margin-left: 8px; padding: 4px 10px; border: 1px solid var(--le-border-strong); border-radius: 8px; background: transparent; color: var(--le-gold-bright); cursor: pointer; }
.le-loading { padding: 24px 0; color: var(--le-dim); }

.le-mark {
  display: inline-block; margin: 0 8px 12px 0; padding: 6px 12px;
  border: 1px solid var(--le-border-strong); border-radius: 999px;
  background: rgba(200, 152, 99, 0.08); color: var(--le-gold-bright); font-size: 13px; font-weight: 600;
}
.le-long { margin: 12px 0 0; font-size: 13px; color: var(--le-muted); }
.le-long span { color: var(--le-dim); font-weight: 600; }

/* Main event cards: the banner whole, then name, hours, state */
.le-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.le-card, .le-mini {
  overflow: hidden;
  background: var(--le-surface);
  border: 1px solid var(--le-soft);
  border-radius: 10px;
}
.le-art { display: block; width: 100%; aspect-ratio: 389 / 123; object-fit: contain; background: #0b0b0d; }
.le-art.none { background: linear-gradient(135deg, color-mix(in srgb, var(--c, #6b6557) 35%, #131316), #131316); }
.le-cb { padding: 9px 11px 10px; }
.le-ct { font-weight: 600; font-size: 14px; line-height: 1.25; }
.le-card.epic .le-ct::before { content: "\2694\FE0E"; margin-right: 6px; color: var(--le-gold-bright); font-size: 0.85em; }
.le-when { margin-top: 3px; font-size: 12.5px; color: var(--le-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.le-chip { padding: 0 7px; border-radius: 999px; background: var(--le-soft); color: var(--le-text); font-size: 11px; font-weight: 600; }
.le-cs { margin-top: 5px; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; font-size: 12.5px; font-weight: 600; }
.le-cs > span { white-space: nowrap; }
.le-cd { color: var(--le-gold-bright); }
.le-state { padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.le-state.live { background: var(--le-live-bg); color: var(--le-live); }
.le-state.next { background: rgba(200, 152, 99, 0.2); color: var(--le-gold-bright); }
.le-card.live, .le-mini.live { border-color: rgba(106, 147, 119, 0.5); box-shadow: 0 0 0 2px rgba(106, 147, 119, 0.16); }
.le-card.next, .le-mini.next { border-color: rgba(200, 152, 99, 0.45); }

/* Mini + Forest side by side; their cards in a grid, a day label where the day changes */
.le-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; margin-top: 28px; }
.le-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.le-day { grid-column: 1 / -1; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--le-gold); }
.le-day:first-child { margin-top: 0; }
.le-mini .le-cb { padding: 7px 9px 8px; }
.le-mini .le-ct { font-size: 13px; }
.le-mini .le-cs { font-size: 12px; }
.le-bonus { margin-top: 4px; font-size: 11.5px; line-height: 1.3; color: var(--le-gold-bright); }

@media (max-width: 560px) {
  .le-nav { gap: 8px; }
  .le-range { flex: 1; }
  .le-range-t { font-size: 14px; }
  .le-now { margin-left: 0; width: 100%; }
  .le-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .le-card .le-cb { padding: 7px 9px 8px; }
  .le-card .le-ct { font-size: 13px; }
  .le-when, .le-cs { font-size: 12px; }
  .le-pair { grid-template-columns: minmax(0, 1fr); }
  .le-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- the Live now band (mountNow) ---------------------------------------------------------- */
.le-live { padding: 18px 20px 20px; background: var(--le-surface); border: 1px solid var(--le-border); border-radius: 16px; }
.ln-head { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ln-title { display: inline-flex; align-items: center; gap: 9px; font-family: var(--le-display); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; }
.ln-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--le-live); box-shadow: 0 0 0 0 rgba(156, 207, 174, 0.6); animation: ln-pulse 2s infinite; }
@keyframes ln-pulse { 0% { box-shadow: 0 0 0 0 rgba(156, 207, 174, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(156, 207, 174, 0); } 100% { box-shadow: 0 0 0 0 rgba(156, 207, 174, 0); } }
@media (prefers-reduced-motion: reduce) { .ln-dot { animation: none; } }
.ln-cal { margin-left: auto; color: var(--le-gold-bright); font-size: 13px; font-weight: 600; text-decoration: none; }
.ln-cal:hover { text-decoration: underline; }
.ln-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
.ln-grid.three { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.ln-col h3 { margin: 0 0 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--le-dim); }
.ln-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin-bottom: 6px; border: 1px solid var(--le-soft); border-radius: 10px; background: var(--le-bg); }
.ln-row.live { border-color: rgba(106, 147, 119, 0.4); }
.ln-art { flex: none; width: 92px; aspect-ratio: 389 / 123; object-fit: contain; border-radius: 6px; background: #0b0b0d; }
.ln-art.none { display: block; background: linear-gradient(135deg, #22222a, #131316); }
.ln-txt { min-width: 0; }
.ln-name { font-weight: 600; font-size: 13.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-row.epic .ln-name::before { content: "\2694\FE0E"; margin-right: 5px; color: var(--le-gold-bright); font-size: 0.85em; }
.ln-more { margin: 0 0 6px; font-size: 12px; color: var(--le-dim); }
.ln-soon { margin: 0; padding: 12px 14px; border: 1px dashed var(--le-border-strong); border-radius: 10px; color: var(--le-muted); }
@media (max-width: 900px) {
  .ln-grid, .ln-grid.three { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 560px) {
  .le-live { padding: 14px 12px 14px; }
  .ln-cal { margin-left: 0; }
  .ln-art { width: 76px; }
}

/* ---- right to left (a translated page in Arabic: dir="rtl" on <html>) ------------------------
   The flex rows and the grids mirror by themselves, and so do the step arrows (U+2039 / U+203A, as
   text); these are the sides set by name. Arabic letters join: the spaced capitals are not
   letter-spaced in Arabic. Nothing here applies to a page that reads left to right. */
html[dir="rtl"] .le-now { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .le-group h3 span { margin-left: 0; margin-right: 4px; }
html[dir="rtl"] .le-mark { margin: 0 0 12px 8px; }
html[dir="rtl"] .le-card.epic .le-ct::before { margin-right: 0; margin-left: 6px; }
html[dir="rtl"] .ln-cal { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .ln-row.epic .ln-name::before { margin-right: 0; margin-left: 5px; }
html[lang="ar"] .le-group h3, html[lang="ar"] .le-state, html[lang="ar"] .ln-col h3 { letter-spacing: normal; }
@media (max-width: 560px) {
  html[dir="rtl"] .le-now { margin-right: 0; }
  html[dir="rtl"] .ln-cal { margin-right: 0; }
}

/* ---- another language's words fitting (website translation part 3b, task 8): html[lang] other than "en" is only
   on a translated page. A longer state line ("Se termine dans 1 h 00 min 00 s") wraps before its countdown, which
   stays whole on its own line, instead of being cut by the card. */
html[lang]:not([lang="en"]) .le-cs > span { white-space: normal; }
html[lang]:not([lang="en"]) .le-cs .le-cd { white-space: nowrap; }
