/* Maçlar bölümü: lig kartları, iki satırlı maç satırları (durum | takımlar ve skor), bildirimler */

.scores {
  flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
  padding: 2px 16px 16px;
}

/* ---------- Başlık: gün, bildirim ---------- */

.sc-hero {
  flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.sc-hero-icon { width: 34px; height: 34px; filter: drop-shadow(0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent)); }
.sc-hero-text { flex: 1; min-width: 140px; }
.sc-hero-text h2 { font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.sc-hero-text p { color: var(--muted); font-size: 12px; }
.sc-tools { display: flex; align-items: center; gap: 8px; }
.sc-days {
  display: flex; height: 30px; overflow: hidden;
  background: var(--raise); border: 1px solid var(--line); border-radius: 8px;
}
.sc-day-btn { width: 30px; flex: none; color: var(--muted); font-size: 15px; }
.sc-day-btn:hover:not(:disabled) { color: var(--fg); background: var(--panel); }
.sc-day-btn:disabled { opacity: 0.35; cursor: default; }
.sc-day { min-width: 150px; padding: 0 10px; border-inline: 1px solid var(--line); font-size: 12px; white-space: nowrap; }
.sc-day:hover { background: var(--panel); }
.sc-notify {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--raise); border: 1px solid var(--line); color: var(--accent);
}
.sc-notify:hover { border-color: var(--faint); }
.sc-notify[aria-pressed="false"] { color: var(--faint); }

/* ---------- Süzgeç ---------- */

.sc-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-filter:empty { display: none; }
.sc-chip {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px;
  color: var(--muted); background: var(--raise); border: 1px solid var(--line); font-size: 12px; white-space: nowrap;
}
.sc-chip small { color: var(--faint); font-size: 11px; }
.sc-chip:hover { color: var(--fg); border-color: var(--faint); }
.sc-chip.on { color: var(--fg); border-color: var(--accent); }
/* Canlı: yanıp sönen kırmızı nokta (ekran paylaşımındaki LIVE ile aynı renk) */
.sc-chip.has-live::before,
.sc-match.in .sc-status::before,
.sc-tk-head.live span::before {
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--err);
  animation: sc-pulse 1.4s ease-in-out infinite;
}
@keyframes sc-pulse { 50% { opacity: 0.3; } }

/* ---------- Lig kartları ---------- */

.sc-list { columns: 2 340px; column-gap: 14px; }
.sc-league { break-inside: avoid; margin-bottom: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.sc-league-head {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px;
  background: var(--raise); border-bottom: 1px solid var(--line); font-size: 12px;
}
.sc-league-head b { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-league-head small { color: var(--faint); font-size: 11px; white-space: nowrap; }
.sc-league-head small.live { color: var(--err); }

/* ---------- Maç satırı ---------- */

.sc-match + .sc-match { border-top: 1px solid var(--line); }
.sc-row {
  width: 100%; display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 3px 10px;
  padding: 8px 12px; text-align: left;
}
.sc-row:hover { background: color-mix(in srgb, var(--raise) 55%, transparent); }
.sc-match.follow .sc-row { box-shadow: inset 2px 0 var(--accent); } /* favori ya da Türk takımı */
.sc-status {
  grid-row: span 2; display: flex; align-items: center; gap: 5px;
  color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.sc-match.in .sc-status { color: var(--fg); font-weight: 600; }
.sc-team { display: flex; align-items: center; gap: 8px; min-width: 0; height: 22px; }
/* Koyu logolar koyu temada, açık logolar açık temada kaybolmasın: ince kontur */
.sc-logo, .sc-league-logo {
  width: 18px; height: 18px; flex: none; object-fit: contain;
  filter: drop-shadow(0 0 0.6px color-mix(in srgb, var(--fg) 55%, transparent));
}
/* Logo yüklenene kadar ve açılmazsa: takım renginde baş harf */
.sc-crest {
  display: grid; place-items: center; border-radius: 50%; filter: none;
  background: var(--crest, var(--raise)); color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 22%, transparent);
}
.sc-crest::after { content: attr(data-letter); }
.sc-crest.light { color: #15161a; }
.sc-crest.dark { color: #fff; }
.sc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-team.won .sc-name { font-weight: 600; }
.sc-team.lost { color: var(--muted); }
.sc-red { flex: none; width: 7px; height: 10px; border-radius: 1.5px; background: #e5383b; }
svg.i.sc-star { width: 12px; height: 12px; fill: var(--accent); stroke: none; }
.sc-score { margin-left: auto; padding-left: 8px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-match.in .sc-score { color: var(--accent); }

/* Az önce gol: satır birkaç kez hafifçe parlar, golü atan tarafta "GOL" */
.sc-match.goal, .sc-tk-row.goal {
  animation: sc-goal 1.6s ease-in-out 5;
  animation-delay: calc(var(--since, 0) * -1ms); /* yeniden çizimde baştan başlamasın */
}
@keyframes sc-goal { 50% { background: color-mix(in srgb, var(--accent) 16%, transparent); } }
.sc-score.scored::before {
  content: "GOL"; margin-right: 8px; padding: 1px 6px; border-radius: 999px; vertical-align: 1px;
  font-size: 10px; letter-spacing: 0.06em; color: var(--accent-fg); background: var(--accent);
}

/* ---------- Ayrıntı: goller, kartlar, favori ---------- */

.sc-details { display: grid; gap: 8px; padding: 0 12px 12px 84px; font-size: 12px; }
.sc-events { list-style: none; display: grid; gap: 4px; }
.sc-ev { display: grid; grid-template-columns: 46px 14px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.sc-ev-min { color: var(--faint); font-variant-numeric: tabular-nums; }
.sc-ev-ball { font-size: 11px; line-height: 1; }
.sc-ev-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-ev small { color: var(--faint); font-size: 11px; }
.sc-note { color: var(--faint); font-size: 11px; }
.sc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sc-fav {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; max-width: 100%; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sc-fav svg.i { width: 13px; height: 13px; }
.sc-fav:hover { color: var(--fg); border-color: var(--faint); }
.sc-fav.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.sc-fav.on svg.i { fill: currentColor; }
.sc-link { margin-left: auto; color: var(--accent); font-size: 11px; text-decoration: none; }
.sc-link:hover { text-decoration: underline; }

/* ---------- Boş durum, yükleniyor ---------- */

.sc-empty {
  column-span: all; display: grid; justify-items: center; gap: 6px; padding: 32px 20px; text-align: center;
  border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 12px; line-height: 1.6;
}
.sc-empty .icon { width: 44px; height: 44px; }
.sc-empty > b { color: var(--fg); font-size: 13px; }
.sc-skeleton { display: contents; }
.sc-skel {
  height: 54px; border-top: 1px solid var(--line);
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--fg) 6%, transparent) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: sc-shimmer 1.4s linear infinite;
}
@keyframes sc-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.sc-foot { color: var(--faint); font-size: 11px; text-align: center; }

/* ---------- Yan panel: takip edilen maçlar ---------- */

.sc-ticker {
  flex: none; display: grid; gap: 2px; margin: auto 8px 10px; padding: 6px;
  background: var(--raise); border: 1px solid var(--line); border-radius: 10px; font-size: 12px;
}
.sc-tk-head {
  display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 4px;
  color: var(--faint); font-size: 11px; letter-spacing: 0.06em;
}
.sc-tk-head span { display: flex; align-items: center; gap: 6px; }
.sc-tk-head:hover small { color: var(--accent); }
/* Durum solda; iki logo skorun iki yanında (adlar ipucunda) */
.sc-tk-row {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px;
  height: 30px; padding: 0 6px; border-radius: 6px; text-align: left;
}
.sc-tk-row:hover { background: var(--panel); }
.sc-tk-status { color: var(--faint); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-tk-row.in .sc-tk-status { color: var(--err); font-weight: 600; }
.sc-tk-row .sc-logo { width: 22px; height: 22px; }
.sc-tk-row .sc-logo:nth-child(2) { justify-self: end; }
.sc-tk-row .sc-crest { font-size: 11px; }
.sc-tk-score { min-width: 30px; text-align: center; font-variant-numeric: tabular-nums; }
.sc-tk-row.in .sc-tk-score { color: var(--accent); }

/* ---------- Bildirim (her bölümde, sağ üstte: yazı kutusunu kapatmasın) ---------- */

.sc-toasts {
  position: fixed; top: 52px; right: 16px; z-index: 50; display: grid; gap: 8px;
  width: min(340px, calc(100vw - 32px)); pointer-events: none;
}
.sc-toast {
  pointer-events: auto; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 1px 12px;
  padding: 10px 14px 10px 12px; text-align: left; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 12px 32px rgb(0 0 0 / 0.35);
  animation: sc-toast-in 0.4s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.sc-toast .icon { grid-row: span 3; width: 36px; height: 36px; }
.sc-toast.goal { border-color: var(--accent); }
.sc-toast.goal .icon { animation: sc-kick 0.9s ease-out; }
.sc-toast-title { color: var(--faint); font-size: 11px; letter-spacing: 0.08em; }
.sc-toast.goal .sc-toast-title { color: var(--accent); font-size: 12px; }
.sc-toast-line, .sc-toast small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-toast-score { font-variant-numeric: tabular-nums; }
.sc-toast small { color: var(--muted); font-size: 11px; }
.sc-toast.out { animation: sc-toast-out 0.25s ease-in forwards; }
@keyframes sc-toast-in { from { opacity: 0; transform: translateY(-12px) scale(0.96); } }
@keyframes sc-toast-out { to { opacity: 0; transform: translateX(24px); } }
@keyframes sc-kick { from { transform: translateX(-14px) rotate(-200deg) scale(0.6); } 70% { transform: translateX(2px) rotate(10deg) scale(1.08); } }

/* ---------- Dar ekran ---------- */

@container (max-width: 520px) {
  .sc-tools { width: 100%; }
  .sc-days { flex: 1; }
  .sc-day { flex: 1; min-width: 0; }
  .sc-details { padding-left: 12px; }
}
@media (max-width: 760px) {
  .sc-toasts { left: 12px; right: 12px; width: auto; }
}

/* ---------- v6, adım 7: Maçlar listesi tek yazı ölçeğinde (modern görünüm) ----------
   Punto 12 / 13 / 14 / 16, ağırlık 400 / 500 / 600, köşe 4 / 8 / 999. Bildirim kutusu (.sc-toast) yüzen katman: gölgesi kalır. */
[data-look="modern"] .sc-hero-text h2 { font-size: 16px; font-weight: 600; letter-spacing: 0; }
[data-look="modern"] :is(.sc-chip small, .sc-league-head small, .sc-ev small, .sc-note, .sc-link, .sc-foot, .sc-tk-status, .sc-toast small, .sc-toast-title, .sc-ev-ball) { font-size: 12px; }
[data-look="modern"] .sc-toast-title { letter-spacing: 0; }
[data-look="modern"] .sc-day-btn { font-size: 14px; }
[data-look="modern"] .sc-match :is(.sc-time, .sc-min, .sc-status) { font-size: 12px; }
[data-look="modern"] .sc-score { font-weight: 600; }
[data-look="modern"] .sc-crest { font-size: 12px; font-weight: 600; }
[data-look="modern"] .sc-tk-row .sc-crest { font-size: 12px; }
[data-look="modern"] :is(.sc-league, .sc-toast) { border-radius: 8px; }
[data-look="modern"] .sc-tk-row { border-radius: 4px; }
[data-look="modern"] .sc-score.scored::before { font-size: 12px; letter-spacing: 0; font-weight: 600; }
[data-look="modern"] .sc-tk-head { font-size: 12px; letter-spacing: 0; }
[data-look="modern"] .sc-tk-panel { border-radius: 8px; }
[data-look="modern"] :is(.sc-empty, .sc-tk-panel) { border-radius: 8px; }
[data-look="modern"] .sc-empty b { font-weight: 600; }
[data-look="modern"] :is(#scList, .sc-list) :is(.sc-empty, .sc-league) { border-radius: 8px; }
[data-look="modern"] :is(.sc-empty, .sc-league):not(#_) { border-radius: 8px; }
