/* ── Schedule timeline ── */
.sched-day-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--theme-muted);
  margin-bottom: 14px;
  transition: color 0.35s;
}
.sched-timeline {
  position: relative;
  padding-left: 24px;
}
.sched-timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--theme-rule);
}
.sched-item {
  position: relative;
  margin-bottom: 20px;
}
.sched-item:last-child { margin-bottom: 0; }
.sched-dot {
  position: absolute;
  left: -20px; top: 5px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--theme-sep);
}
.sched-dot.gold { background: var(--theme-accent); }
.sched-time {
  font-family: "Space Grotesk", monospace;
  font-size: 11px;
  color: var(--theme-muted);
  margin-bottom: 3px;
}
.sched-time.gold { color: var(--theme-accent); }
.sched-event { font-size: 15px; color: var(--theme-text); font-weight: 500; transition: color 0.35s; }
.sched-pin {
  background: none; border: none; padding: 0;
  cursor: pointer; font-size: 13px;
  margin-left: 6px; opacity: 0.8;
}

/* ── Game plan table ── */
.lp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
}
.lp-table th {
  font-family: "Space Grotesk", monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--theme-muted);
  text-align: left;
  padding: 0 4px 6px;
  border-bottom: 1px solid var(--theme-border);
}
.lp-table td {
  padding: 7px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 12px;
  color: var(--theme-subtle);
}
.lp-table tr:last-child td { border-bottom: none; }
.lp-table .pos { color: var(--theme-muted); font-family: "Space Grotesk", monospace; font-size: 10px; width: 18px; }
.lp-table .time { font-family: "Space Grotesk", monospace; color: var(--purple); font-size: 11px; white-space: nowrap; padding-right: 6px; }
.lp-table .match { color: var(--theme-text); }
.lp-table .match b { color: var(--theme-accent); }
.lp-table .board { font-family: "Space Grotesk", monospace; font-size: 10px; color: var(--theme-muted); text-align: right; white-space: nowrap; }

.placeholder {
  color: var(--theme-muted);
  font-size: 12px;
  font-style: italic;
  padding: 14px 0;
  text-align: center;
}

/* ── Weather ── */
.wx-card {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.wx-card:last-child { border-bottom: none; }
.wx-date {
  font-family: "Space Grotesk", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--theme-accent);
  margin-bottom: 8px;
  transition: color 0.35s;
}
.wx-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.wx-icon { font-size: 26px; }
.wx-temp { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--theme-text); }
.wx-tmin { font-size: 14px; font-weight: 400; color: var(--theme-muted); margin-left: 3px; }
.wx-desc { font-size: 12px; color: var(--theme-subtle); margin-bottom: 8px; }
.wx-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 6px;
  font-family: "Space Grotesk", monospace;
  font-size: 10.5px;
  color: var(--theme-muted);
}
.wx-stats b { color: var(--theme-subtle); font-weight: 500; }
.cc-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 4px;
  margin: 8px 0;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cc-slot { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cc-ico { font-size: 18px; }
.cc-lbl {
  font-family: "Space Grotesk", monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--theme-muted);
}
.cc-val { font-size: 12px; font-weight: 600; color: var(--theme-subtle); }
.wx-loading, .nr-loading {
  color: var(--theme-muted);
  font-family: "Space Grotesk", monospace;
  font-size: 11px;
  padding: 24px 0;
  text-align: center;
}
.wx-err, .nr-err {
  color: #ff9b9b;
  font-size: 11px;
  padding: 10px;
  background: #1c0f12;
  border: 1px solid #5b2330;
  border-radius: 6px;
  margin-top: 10px;
}

/* ── Rules accordion ── */
.rules-accordion { cursor: pointer; }
.rules-accordion-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}
.rules-accordion-title::-webkit-details-marker { display: none; }
.rules-accordion-title::after {
  content: "›";
  font-size: 16px;
  font-weight: 400;
  color: var(--theme-muted);
  transition: transform 0.2s;
  line-height: 1;
  margin-left: 8px;
  flex-shrink: 0;
}
.rules-accordion[open] > .rules-accordion-title::after { transform: rotate(90deg); }

.rules-accordion > *:not(summary) {
  animation: rulesOpen 0.18s ease;
}
@keyframes rulesOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* ── Rules content ── */
.rules-section { margin-bottom: 14px; }
.rules-section h3 {
  font-family: "Space Grotesk", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--theme-accent);
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--theme-border);
  transition: color 0.35s;
}
.rules-section p { font-size: 12px; color: var(--theme-subtle); line-height: 1.55; margin-bottom: 6px; }
.rules-section p b { color: var(--theme-text); }
.rules-deild {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  margin-bottom: 8px;
}
.rules-deild-item { font-size: 12px; color: var(--theme-subtle); }
.rules-deild-item b { color: var(--theme-text); }
.rules-note {
  font-size: 11px;
  color: var(--theme-muted);
  font-style: italic;
  margin-top: 4px;
  line-height: 1.5;
}
.rules-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--blue);
  text-decoration: none;
}
.rules-link:hover { text-decoration: underline; }

/* ── Photos ── */
.photo-strip-wrap { margin-bottom: 14px; }
.photo-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.photo-strip::-webkit-scrollbar { display: none; }
.photo-thumb {
  width: 90px; height: 90px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  background: rgba(255,255,255,0.05);
}
.photo-thumb:hover { transform: scale(1.04); }
.photo-upload-btn {
  width: 90px; height: 90px;
  border-radius: 10px;
  border: 1.5px dashed rgba(92,207,221,0.4);
  background: rgba(92,207,221,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  gap: 4px;
  transition: all 0.2s;
}
.photo-upload-btn:hover { border-color: var(--gold); background: rgba(92,207,221,0.1); }
.photo-upload-btn span { font-size: 24px; line-height: 1; }
.photo-upload-btn small {
  font-size: 9px;
  letter-spacing: 1px;
  color: rgba(92,207,221,0.6);
  text-transform: uppercase;
}
.photo-uploading {
  width: 90px; height: 90px;
  border-radius: 10px;
  background: rgba(92,207,221,0.08);
  border: 1px solid rgba(92,207,221,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  color: rgba(92,207,221,0.6);
  font-family: "Space Grotesk", monospace;
}

/* ── Slideshow placeholder ── */
.sshow-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--theme-muted);
  font-family: "Space Grotesk", monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.sshow-placeholder-icon { font-size: 28px; opacity: 0.35; }

/* ── Slideshow ── */
.sshow-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4/3;
  max-height: 380px;
  touch-action: pan-y;
}
.sshow-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.sshow-img {
  height: 100%;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
}
.sshow-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  border: none; color: #fff;
  font-size: 22px; line-height: 1;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer; z-index: 5;
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.sshow-btn:hover { background: rgba(212,175,55,0.65); }
.sshow-prev { left: 10px; }
.sshow-next { right: 10px; }
.sshow-dots { display: flex; justify-content: center; gap: 7px; margin-top: 10px; }
.sshow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.3s;
}
.sshow-dot.on { background: var(--theme-accent); }
.sshow-counter { text-align: center; font-family: "Space Grotesk", monospace; font-size: 11px; color: var(--theme-muted); margin-top: 6px; }

/* ── Password overlay (photo upload) ── */
.photo-pw-overlay {
  position: fixed;
  inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.photo-pw-overlay.open { display: flex; }
.photo-pw-box {
  background: #13131e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px 24px;
  width: 100%;
  max-width: 320px;
}
.photo-pw-box h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: var(--theme-text); }
.photo-pw-box input[type=password] {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  padding: 11px 14px;
  outline: none;
  margin-bottom: 12px;
}
.photo-pw-box input[type=password]:focus { border-color: var(--gold); }
.photo-pw-btn {
  width: 100%;
  background: var(--gold); color: #000;
  border: none; border-radius: 10px;
  padding: 12px;
  font-family: "Outfit", sans-serif;
  font-weight: 700; font-size: 14px;
  cursor: pointer; margin-bottom: 8px;
}
.photo-pw-cancel {
  width: 100%;
  background: none; border: none;
  color: rgba(255,255,255,0.65);
  font-family: "Outfit", sans-serif;
  font-size: 13px; cursor: pointer; padding: 6px;
}
.pw-msg { font-size: 12px; color: #f07070; text-align: center; margin-top: 6px; display: none; }

/* ── Lightbox ── */
.lightbox-overlay {
  position: fixed;
  inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
  max-width: 100%; max-height: 100dvh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  cursor: zoom-in;
  transition: transform 0.15s;
}
.lightbox-close {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 24px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}
.lightbox-close:hover { color: #fff; }

/* ── Sponsor footer ── */
.sponsor-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 4px;
  opacity: 0.45;
}
.sponsor-label {
  font-family: "Space Grotesk", monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--theme-muted);
}
.sponsor-logo { height: 28px; object-fit: contain; cursor: pointer; }
[data-theme="light"] .sponsor-logo { filter: invert(1); }
.sponsor-logo:hover { opacity: 0.8; }

/* ── Coach notes / info text ── */
.coach-text { font-size: 14px; line-height: 1.7; color: var(--theme-text); transition: color 0.35s; }
.coach-empty { color: var(--theme-muted); font-style: italic; font-size: 13px; }

/* ── Live table (native) ── */
.live-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-family: "Space Grotesk", monospace;
}
.live-table thead th {
  padding: 6px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--theme-muted);
  border-bottom: 1px solid var(--theme-border);
}
.live-table thead th.lt-name { text-align: left; padding-left: 6px; }
.live-table tbody tr { border-bottom: 1px solid rgba(255,255,255,0.04); }
[data-theme="light"] .live-table tbody tr { border-bottom: 1px solid rgba(0,0,0,0.05); }
.live-table tbody td {
  padding: 7px 4px;
  text-align: center;
  color: var(--theme-text);
}
.live-table tbody td.lt-name { text-align: left; padding-left: 6px; font-weight: 500; }
.live-table tbody td.lt-pos { color: var(--theme-muted); width: 24px; }
.live-table tbody td.lt-goals { color: var(--theme-muted); font-size: 12px; }
.live-table tbody td.lt-pts { font-weight: 700; color: var(--theme-accent); }
.live-table tbody tr.lt-cutoff { border-bottom: 2px solid var(--theme-accent); }
.live-table-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.live-table-link {
  font-size: 11px;
  color: var(--theme-muted);
  font-family: "Space Grotesk", monospace;
  text-decoration: none;
}
.live-table-link:hover { color: var(--theme-accent); }
.live-table-ts { font-size: 10px; color: var(--theme-muted); font-family: "Space Grotesk", monospace; }
.live-table-empty { font-size: 13px; color: var(--theme-muted); font-style: italic; padding: 8px 0; }

/* ── Zoomable images ── */
img.zoomable { cursor: zoom-in; }

.field-map {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

/* ── LP note ── */
.lp-note {
  font-family: "Space Grotesk", monospace;
  font-size: 9px;
  color: var(--theme-muted);
  margin-top: 8px;
}

/* ── Leikjaplan container ── */
.leikjaplan-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}

.lp-game {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.lp-time {
  font-family: "Space Grotesk", monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  white-space: nowrap;
}

.lp-match {
  font-size: 13px;
  color: var(--theme-text);
  font-weight: 500;
}

.lp-venue {
  font-family: "Space Grotesk", monospace;
  font-size: 12px;
  color: var(--theme-muted);
  text-align: right;
}
