/* ═══════════════════════════════════════════════════════════════
   TALTASHMAL.COM — Shared Design System
   Mix: Bundesliga structure + FourFourTwo palette + Egyptian identity
   Apply to all pages: <link rel="stylesheet" href="/taltashmal.css">
   ═══════════════════════════════════════════════════════════════ */

/* ── GOOGLE FONTS (load in each HTML <head>) ─────────────────
   <link href="https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&family=Barlow+Condensed:wght@300;400;600;700&family=Bebas+Neue&display=swap" rel="stylesheet">
   ──────────────────────────────────────────────────────────── */

/* ── COLOR TOKENS ────────────────────────────────────────────── */
:root {
  /* Primary — Egyptian flag red / Al Ahly / FourFourTwo */
  --red:          #C8102E;
  --red-light:    #E8264A;
  --red-dark:     #9A0C22;

  /* Egyptian flag green — used as a subtle accent */
  --green:        #007A3D;
  --green-light:  #2E7D32;
  --win-bg:       rgba(46,125,50,.1);

  /* Pharaonic gold — used very sparingly */
  --gold:         #C9A84C;
  --gold-light:   #E8C96A;

  /* Backgrounds — warm cream (FourFourTwo signature) */
  --bg:           #F5F0EA;
  --surface:      #FFFFFF;
  --surface2:     #FAFAF8;

  /* Borders */
  --border:       #E2DDD6;
  --border-dark:  #C8C0B4;

  /* Typography */
  --text:         #111111;
  --text2:        #444444;
  --muted:        #777777;
  --muted2:       #AAAAAA;

  /* Functional */
  --error:        #C8102E;

  /* Radius */
  --radius:       6px;
  --radius-lg:    10px;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Cairo', sans-serif;
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ── HEADER ──────────────────────────────────────────────────── */
.ts-header {
  background: #111111;
  border-bottom: 3px solid var(--red);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
/* Egyptian flag 3-colour stripe at very top */
.ts-header::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg,
    var(--red) 0% 33.3%,
    #ffffff    33.3% 66.6%,
    #111111    66.6% 100%
  );
}
.ts-header-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 28px; flex-wrap: wrap;
  max-width: 1400px; margin: 0 auto;
}
.ts-logo {
  display: flex; align-items: center; gap: 11px; flex-shrink: 0;
}
.ts-logo-badge {
  width: 42px; height: 42px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  box-shadow: 0 0 14px rgba(200,16,46,.4);
}
.ts-logo-text h1 {
  font-family: 'Cairo', sans-serif;
  font-size: 20px; font-weight: 900;
  color: #ffffff; line-height: 1;
}
.ts-logo-text p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; color: rgba(255,255,255,.45);
  letter-spacing: 2px; text-transform: uppercase;
  margin-top: 1px;
}
.ts-nav {
  display: flex; gap: 4px; margin-right: auto; flex-wrap: wrap;
}
.ts-nav a {
  padding: 6px 13px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,.65);
  border-radius: var(--radius);
  transition: all .2s; white-space: nowrap;
}
.ts-nav a:hover         { color: #fff; background: rgba(255,255,255,.08); }
.ts-nav a.active        { color: #fff; background: var(--red); }
.ts-nav a.nav-wc        { color: #6ddb7a; }
.ts-nav a.nav-wc:hover  { background: rgba(109,219,122,.12); color: #6ddb7a; }

/* ── NAV DROPDOWNS ──────────────────────────────────────────── */
.ts-nav .ts-drop { position: relative; }
.ts-nav .ts-drop > span {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  padding: 6px 13px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,.65);
  border-radius: var(--radius);
  transition: all .2s; white-space: nowrap;
}
.ts-nav .ts-drop > span::after { content: '▾'; font-size: 10px; margin-right: 2px; }
.ts-nav .ts-drop > span:hover  { color: #fff; background: rgba(255,255,255,.08); }
.ts-nav .ts-drop.has-active > span { color: #fff; background: var(--red); }

.ts-drop-menu {
  position: absolute; top: 100%; right: 0; margin-top: 6px;
  min-width: 230px;
  background: #1c1c1c; border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; box-shadow: 0 14px 30px rgba(0,0,0,.4);
  padding: 6px; z-index: 300;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.ts-nav .ts-drop:hover .ts-drop-menu,
.ts-nav .ts-drop:focus-within .ts-drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.ts-drop-menu a {
  display: block; padding: 9px 12px; border-radius: 6px;
  font-family: 'Cairo', sans-serif; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.75); text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s;
}
.ts-drop-menu a:hover  { background: rgba(255,255,255,.08); color: #fff; }
.ts-drop-menu a.active { background: var(--red); color: #fff; font-weight: 900; }

@media (max-width: 900px) {
  .ts-drop-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: rgba(0,0,0,.25);
    display: none; margin-top: 2px;
  }
  .ts-nav .ts-drop.open .ts-drop-menu { display: block; }
}

/* ── STATUS BAR ─────────────────────────────────────────────── */
.ts-statusbar {
  background: var(--red);
  color: #fff;
  padding: 10px 28px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: 'Cairo', sans-serif; font-size: 12px;
}
.ts-statusbar-inner {
  max-width: 1400px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; gap: 12px;
}
.ts-status-group {
  display: flex; align-items: center; gap: 12px;
  flex: 1; min-width: 0;
}
.ts-sdot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.5); flex-shrink: 0;
}
.ts-sdot.live    { background: #fff; animation: ts-pulse 1.5s infinite; }
.ts-sdot.spin    { background: rgba(255,255,255,.6); animation: ts-pulse .7s infinite; }
.ts-sdot.error   { background: rgba(255,255,255,.4); }
.ts-status-text  { flex: 1; }
.ts-status-text strong { font-weight: 700; }
.ts-sitename {
  font-family: 'Cairo', sans-serif; font-size: 36px; font-weight: 900;
  color: #fff; flex-shrink: 0; white-space: nowrap;
  letter-spacing: .3px; text-align: center;
  flex: 1;
  text-shadow:
    -1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000,
    -1.5px  1.5px 0 #000, 1.5px  1.5px 0 #000,
    0 -1.5px 0 #000, 0 1.5px 0 #000,
    -1.5px 0 0 #000, 1.5px 0 0 #000;
}
.ts-sitename-spacer {
  flex: 1; min-width: 0;
}
@media(max-width: 900px) {
  .ts-sitename { font-size: 24px; }
}
@media(max-width: 600px) {
  .ts-sitename { font-size: 18px; }
  .ts-sitename-spacer { display: none; }
}
.ts-status-badge {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  padding: 2px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.ts-refresh-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: 4px 14px;
  font-family: 'Cairo', sans-serif; font-size: 11px;
  border-radius: 20px; transition: background .2s;
  white-space: nowrap;
}
.ts-refresh-btn:hover    { background: rgba(255,255,255,.25); }
.ts-refresh-btn:disabled { opacity: .5; cursor: default; }

/* ── TODAY MATCHES BAR ──────────────────────────────────────── */
.ts-todaybar {
  background: #fff;
  border-bottom: 2px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.ts-todaybar::-webkit-scrollbar { display: none; }
.ts-todaybar-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: stretch; gap: 0;
  padding: 0 28px;
}
.ts-today-label {
  font-family: 'Cairo', sans-serif; font-size: 11px;
  font-weight: 900; color: var(--red);
  white-space: nowrap; padding: 9px 14px 9px 0;
  border-left: 3px solid var(--red);
  margin-left: 14px; flex-shrink: 0;
  display: flex; align-items: center;
}
.ts-match-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-left: 1px solid var(--border);
  flex-shrink: 0; transition: background .15s;
}
.ts-match-pill:hover { background: var(--surface2); }
.ts-match-teams {
  font-family: 'Cairo', sans-serif; font-size: 12px;
  font-weight: 700; color: var(--text);
  white-space: nowrap; display: flex; align-items: center; gap: 6px;
}
.ts-match-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700; color: var(--red); letter-spacing: 1px;
}
.ts-match-score.live { animation: ts-pulse 1s infinite; }
.ts-pill-badge {
  font-size: 9px; padding: 2px 7px; border-radius: 20px;
  font-family: 'Cairo', sans-serif; font-weight: 700; white-space: nowrap;
}
.ts-pill-badge.done     { background: #e8f5e9; color: var(--green-light); border: 1px solid #c8e6c9; }
.ts-pill-badge.live     { background: #ffebee; color: var(--red); border: 1px solid #ffcdd2; animation: ts-pulse 1.5s infinite; }
.ts-pill-badge.upcoming { background: #fff8e1; color: #f57f17; border: 1px solid #ffe082; }

/* ── PAGE WRAPPER / GRID ─────────────────────────────────────── */
.ts-page {
  max-width: 1400px; margin: 0 auto;
  padding: 20px 28px;
}
.ts-grid-3 {
  display: grid;
  grid-template-columns: 300px 1fr 280px;
  gap: 20px;
}
.ts-grid-2 {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
}
@media(max-width: 1100px) {
  .ts-grid-3 { grid-template-columns: 260px 1fr; }
  .ts-grid-3 .col-right { display: none; } /* hide right col on medium screens */
}
@media(max-width: 720px) {
  .ts-grid-3, .ts-grid-2 { grid-template-columns: 1fr; }
  .ts-grid-3 .col-right  { display: block; }
  .ts-page { padding: 14px 16px; }
}

/* ── SECTION HEADER — Bundesliga style ──────────────────────── */
.ts-sec-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.ts-sec-header h2 {
  font-family: 'Cairo', sans-serif;
  font-size: 15px; font-weight: 900;
  color: var(--text); white-space: nowrap;
}
.ts-sec-header::after {
  content: ''; flex: 1; height: 2px; background: var(--border);
}
.ts-sec-icon { font-size: 15px; flex-shrink: 0; }
.ts-sec-more {
  font-family: 'Cairo', sans-serif; font-size: 11px;
  color: var(--red); font-weight: 700; white-space: nowrap; flex-shrink: 0;
  padding: 3px 10px; border: 1px solid var(--red);
  border-radius: 20px; transition: all .2s;
}
.ts-sec-more:hover { background: var(--red); color: #fff; }

/* ── PANEL ───────────────────────────────────────────────────── */
.ts-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.ts-panel-header {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-bottom: 2px solid var(--red);
}
.ts-panel-header h3 {
  font-family: 'Cairo', sans-serif;
  font-size: 14px; font-weight: 900; color: var(--text); flex: 1;
}
.ts-panel-icon { font-size: 16px; }

/* ── NEWS GRID — Bundesliga large card style ─────────────────── */
.ts-news-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 14px; padding: 14px;
}
@media(max-width: 600px) { .ts-news-grid { grid-template-columns: 1fr; } }

.ts-news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
}
.ts-news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  border-color: var(--red);
}
.ts-news-card.featured {
  grid-column: 1/-1;
  display: grid; grid-template-columns: 1fr 1fr;
}
@media(max-width: 560px) { .ts-news-card.featured { grid-template-columns: 1fr; } }

.ts-nc-img-wrap { position: relative; overflow: hidden; }
.ts-nc-img {
  width: 100%; height: 180px; object-fit: cover;
  background: var(--border); transition: transform .3s;
}
.ts-news-card.featured .ts-nc-img { height: 100%; min-height: 220px; }
.ts-news-card:hover .ts-nc-img { transform: scale(1.04); }

.ts-nc-tag {
  position: absolute; top: 10px; right: 10px;
  background: var(--red); color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px; font-weight: 700;
  padding: 2px 8px; border-radius: 3px;
  letter-spacing: 1px; text-transform: uppercase;
}
.ts-nc-body { padding: 11px 13px; }
.ts-nc-cat {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700;
  color: var(--red); letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 5px;
}
.ts-nc-title {
  font-family: 'Cairo', sans-serif;
  font-size: 13px; font-weight: 700; color: var(--text);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.ts-news-card.featured .ts-nc-title { font-size: 17px; -webkit-line-clamp: 4; }
.ts-nc-summary {
  font-family: 'Cairo', sans-serif; font-size: 12px;
  color: var(--text2); margin-top: 5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.ts-nc-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--border);
  font-family: 'Barlow Condensed', sans-serif; font-size: 10px; color: var(--muted);
}
.ts-nc-read { color: var(--red); font-weight: 700; letter-spacing: .5px; }

/* ── ENGLISH NEWS LIST ───────────────────────────────────────── */
.ts-en-list { list-style: none; }
.ts-en-item {
  display: flex; gap: 11px; padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  transition: background .15s; cursor: pointer;
}
.ts-en-item:last-child { border-bottom: none; }
.ts-en-item:hover { background: var(--surface2); }
.ts-en-img {
  width: 78px; height: 56px; object-fit: cover;
  border-radius: 4px; flex-shrink: 0; background: var(--border);
}
.ts-en-body { flex: 1; min-width: 0; }
.ts-en-source {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px; font-weight: 700;
  color: var(--red); letter-spacing: 1px; text-transform: uppercase;
}
.ts-en-title {
  font-family: 'Cairo', sans-serif; font-size: 12px;
  font-weight: 700; color: var(--text); margin-top: 3px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.ts-en-summary {
  font-family: 'Cairo', sans-serif; font-size: 11px;
  color: var(--text2); margin-top: 2px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.ts-en-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; color: var(--muted); margin-top: 3px;
}

/* ── YOUTUBE CARDS ───────────────────────────────────────────── */
.ts-yt-card { border-bottom: 1px solid var(--border); }
.ts-yt-card:last-child { border-bottom: none; }
.ts-yt-thumb {
  position: relative; overflow: hidden; cursor: pointer;
}
.ts-yt-thumb img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  transition: transform .3s;
}
.ts-yt-thumb:hover img { transform: scale(1.04); }
.ts-yt-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(200,16,46,.4);
  pointer-events: none; transition: transform .2s, background .2s;
}
.ts-yt-thumb:hover .ts-yt-play {
  transform: translate(-50%,-50%) scale(1.12);
  background: var(--red-dark);
}
.ts-yt-meta { padding: 9px 13px; }
.ts-yt-channel {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px; font-weight: 700;
  color: var(--red); letter-spacing: 1px; text-transform: uppercase;
}
.ts-yt-title {
  font-family: 'Cairo', sans-serif; font-size: 12px;
  font-weight: 700; color: var(--text); margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.ts-yt-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; color: var(--muted); margin-top: 2px;
}

/* ── STANDINGS TABLE ─────────────────────────────────────────── */
.ts-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ts-standings-table { width: 100%; border-collapse: collapse; min-width: 360px; }
.ts-standings-table th {
  font-family: 'Cairo', sans-serif; font-size: 10px; font-weight: 700;
  color: var(--muted); padding: 7px 8px; text-align: center;
  border-bottom: 2px solid var(--border); background: var(--surface2);
}
.ts-standings-table th.left { text-align: right; }
.ts-standings-table td {
  padding: 7px 8px; text-align: center;
  font-family: 'Barlow Condensed', sans-serif; font-size: 13px;
  border-bottom: 1px solid var(--border); color: var(--text2);
}
.ts-standings-table tr:last-child td { border-bottom: none; }
.ts-standings-table tr:hover td { background: #fef9f9; }
/* Side-bar row indicators */
.ts-standings-table tr.ts-champ td  { border-right: 3px solid var(--gold); }
.ts-standings-table tr.ts-euro td   { border-right: 3px solid var(--green); }
.ts-standings-table tr.ts-rel td    { border-right: 3px solid var(--red); }
/* WC group advancing rows */
.ts-standings-table tr.ts-adv td   { background: rgba(46,125,50,.04); }

.ts-st-pos          { font-weight: 700; color: var(--muted); width: 22px; }
.ts-st-pos.gold     { color: var(--gold); }
.ts-st-pos.green    { color: var(--green); }
.ts-st-pos.red      { color: var(--red); }
.ts-st-team         { display: flex; align-items: center; gap: 7px; text-align: right; }
.ts-st-badge        { font-size: 16px; }
.ts-st-name-ar      { font-family: 'Cairo', sans-serif; font-size: 13px; font-weight: 700; color: var(--text); }
.ts-st-name-en      { font-family: 'Barlow Condensed', sans-serif; font-size: 9px; color: var(--muted); display: block; }
.ts-st-pts          { font-weight: 700; color: var(--text); font-size: 14px; }
.ts-gd-pos          { color: var(--green-light); }
.ts-gd-neg          { color: var(--red); }

/* ── TOP SCORER WIDGET ───────────────────────────────────────── */
.ts-scorer-hero {
  display: flex; align-items: center; gap: 13px;
  padding: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
}
.ts-scorer-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.3);
}
.ts-scorer-label { font-size: 10px; opacity: .7; }
.ts-scorer-name  { font-size: 16px; font-weight: 900; line-height: 1.2; }
.ts-scorer-club  { font-size: 11px; opacity: .75; margin-top: 1px; }
.ts-scorer-num   {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 40px; font-weight: 900; line-height: 1;
  margin-right: auto;
}
.ts-scorer-num small {
  display: block; font-size: 10px;
  text-align: center; opacity: .7; letter-spacing: 1px;
}
.ts-scorer-list  { list-style: none; }
.ts-scorer-row {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 13px; border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.ts-scorer-row:last-child  { border-bottom: none; }
.ts-scorer-row:hover       { background: #fef9f9; }
.ts-sr-rank  { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; color: var(--muted); width: 18px; text-align: center; flex-shrink: 0; }
.ts-sr-name  { font-size: 13px; font-weight: 700; flex: 1; }
.ts-sr-club  { font-size: 10px; color: var(--muted); }
.ts-sr-goals { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 700; color: var(--red); flex-shrink: 0; }

/* ── TRANSFERS LIST ──────────────────────────────────────────── */
.ts-tr-item {
  display: flex; gap: 9px; padding: 9px 13px;
  border-bottom: 1px solid var(--border);
  transition: background .15s; cursor: pointer;
}
.ts-tr-item:last-child { border-bottom: none; }
.ts-tr-item:hover { background: var(--surface2); }
.ts-tr-thumb   { width: 112px; max-width: 112px; height: 112px; min-width: 112px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--surface2); }
.ts-tr-thumb-ph{ width: 112px; max-width: 112px; height: 112px; min-width: 112px; border-radius: 8px; flex-shrink: 0; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 32px; }
.ts-tr-body    { flex: 1; min-width: 0; }
.ts-tr-title {
  font-family: 'Cairo', sans-serif; font-size: 12px; font-weight: 700;
  color: var(--text); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.ts-tr-summary {
  font-family: 'Cairo', sans-serif; font-size: 11px;
  color: var(--text2); margin-top: 2px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.ts-tr-meta   { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; color: var(--muted); margin-top: 3px; }
.ts-tr-source { color: var(--red); font-weight: 700; }

/* ── TRANSFERMARKT LINKS ─────────────────────────────────────── */
.ts-tm-grid  { display: flex; flex-wrap: wrap; gap: 6px; padding: 11px 13px; }
.ts-tm-link {
  padding: 4px 11px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; font-size: 12px; font-weight: 700;
  color: var(--text2); transition: all .2s; white-space: nowrap;
}
.ts-tm-link:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ── TABLE LEGEND ────────────────────────────────────────────── */
.ts-legend {
  display: flex; gap: 13px; flex-wrap: wrap;
  padding: 9px 13px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--muted);
}
.ts-leg { display: flex; align-items: center; gap: 5px; }
.ts-leg-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }

/* ── SEE ALL LINK ────────────────────────────────────────────── */
.ts-see-all {
  display: block; text-align: center; padding: 9px;
  font-size: 12px; font-weight: 700; color: var(--red);
  border-top: 1px solid var(--border); transition: background .2s;
}
.ts-see-all:hover { background: #fef9f9; }

/* ── TABS ────────────────────────────────────────────────────── */
.ts-tabs {
  display: flex; gap: 3px;
  padding: 14px 28px 0;
  max-width: 1400px; margin: 0 auto;
  border-bottom: 2px solid var(--border);
}
.ts-tab {
  padding: 9px 18px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--muted);
  border: none; background: transparent;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.ts-tab:hover        { color: var(--text); }
.ts-tab.active       { color: var(--red); border-bottom-color: var(--red); }

/* ── NOTICE BOX ──────────────────────────────────────────────── */
.ts-notice {
  background: #fff8e1;
  border-right: 3px solid var(--gold);
  padding: 8px 13px; font-size: 12px;
  color: var(--text2); border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 14px;
}

/* ── LOADING SPINNER ─────────────────────────────────────────── */
.ts-loading {
  display: flex; align-items: center; justify-content: center;
  padding: 50px; flex-direction: column; gap: 11px;
}
.ts-spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: ts-spin .8s linear infinite;
}
.ts-loading p { font-size: 12px; color: var(--muted); }

/* ── LIGHTBOX MODAL ──────────────────────────────────────────── */
.ts-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.88);
  align-items: center; justify-content: center;
}
.ts-modal-overlay.open { display: flex; }
.ts-modal-box {
  width: 90vw; max-width: 920px;
  background: #111;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.ts-modal-video { position: relative; padding-top: 56.25%; }
.ts-modal-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.ts-modal-footer {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 15px; background: #1a1a1a;
}
.ts-modal-ch    { font-size: 10px; color: var(--red); font-weight: 700; font-family: 'Barlow Condensed', sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.ts-modal-title { font-size: 13px; color: #fff; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-modal-close {
  background: var(--red); border: none; color: #fff;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 16px; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

/* ── BRACKET OVERRIDES (keeps WC bracket working) ────────────── */
/* The bracket uses its own internal CSS vars — we just ensure
   the container gets a white background and clean borders */
.ts-bracket-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
}
.ts-bracket-scroll { overflow-x: auto; padding: 14px 0 14px 14px; }

/* ── GROUP CARDS (WC page) ───────────────────────────────────── */
.ts-groups-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
}
@media(max-width: 900px) { .ts-groups-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width: 560px) { .ts-groups-grid { grid-template-columns: 1fr; } }

.ts-group-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ts-group-header {
  background: linear-gradient(90deg, #fef9f9, var(--surface));
  padding: 8px 12px;
  border-bottom: 2px solid var(--red);
  display: flex; align-items: center; justify-content: space-between;
}
.ts-group-label {
  font-family: 'Cairo', sans-serif;
  font-size: 15px; font-weight: 900; color: var(--red);
  display: flex; align-items: center; gap: 6px;
}
.ts-live-tag {
  font-size: 9px; color: var(--red);
  background: #ffebee; border: 1px solid #ffcdd2;
  padding: 1px 6px; border-radius: 3px; font-weight: 700;
  animation: ts-pulse 1.5s infinite;
}
.ts-advance-note {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; color: var(--muted);
}

/* Match rows inside group cards */
.ts-matches-section { border-top: 1px solid var(--border); padding: 9px 11px; }
.ts-ms-label {
  font-family: 'Cairo', sans-serif; font-size: 10px;
  color: var(--muted); margin-bottom: 5px; font-weight: 700;
}
.ts-match-row {
  display: flex; align-items: center; padding: 4px 0;
  border-bottom: 1px solid var(--border); gap: 4px;
}
.ts-match-row:last-child { border-bottom: none; }
.ts-mr-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; color: var(--muted); width: 58px; flex-shrink: 0;
}
.ts-mr-team {
  display: flex; align-items: center; gap: 4px;
  font-family: 'Cairo', sans-serif; font-size: 12px; font-weight: 700;
  flex: 1; white-space: nowrap; overflow: hidden;
}
.ts-mr-team.right { flex-direction: row-reverse; text-align: right; }
.ts-mr-team.win   { color: var(--text); }
.ts-mr-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: 1px;
  width: 46px; text-align: center; flex-shrink: 0; color: var(--red);
}
.ts-mr-score.upcoming { font-size: 10px; color: var(--muted); font-family: 'Cairo', sans-serif; }
.ts-mr-score.live     { animation: ts-pulse 1s infinite; }
.ts-live-pill {
  display: inline-block; background: #ffebee; color: var(--red);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px; padding: 1px 5px; border-radius: 3px;
  border: 1px solid #ffcdd2;
}

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes ts-pulse { 0%,100%{opacity:1} 50%{opacity:.25} }
@keyframes ts-spin  { to{transform:rotate(360deg)} }
@keyframes ts-fadein{ from{opacity:0} to{opacity:1} }

/* ── UTILITIES ───────────────────────────────────────────────── */
.ts-mb-0  { margin-bottom: 0; }
.ts-mb-4  { margin-bottom: 4px; }
.ts-mb-8  { margin-bottom: 8px; }
.ts-mb-14 { margin-bottom: 14px; }
.ts-mb-20 { margin-bottom: 20px; }
.ts-text-red   { color: var(--red); }
.ts-text-muted { color: var(--muted); }
.ts-text-gold  { color: var(--gold); }
.ts-fw-700     { font-weight: 700; }
.ts-fw-900     { font-weight: 900; }
.ts-font-cairo { font-family: 'Cairo', sans-serif; }
.ts-font-barlow{ font-family: 'Barlow Condensed', sans-serif; }

/* ── ARTICLE POPUP (built dynamically by shared.js — opens our own ──
   original AI-written articles from /news/, never the source page) */
.article-modal-box{
  position:relative;
  width:50vw;min-width:400px;max-width:680px;
  max-height:80vh;
  background:var(--surface);
  border-radius:var(--radius-lg);
  box-shadow:0 20px 60px rgba(0,0,0,.4);
  display:flex;flex-direction:column;
  overflow:hidden;
}
@media(max-width:900px){
  .article-modal-box{ width:88vw;min-width:0; }
}
.article-modal-close{
  position:absolute;top:14px;left:14px;z-index:2;
  width:32px;height:32px;border-radius:50%;
  background:var(--surface2);border:1px solid var(--border);
  color:var(--text);font-size:15px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.article-modal-scroll{
  padding:30px 28px 20px;overflow-y:auto;flex:1;
}
.article-modal-meta{
  font-family:'Barlow Condensed',sans-serif;font-size:11px;
  color:var(--red);font-weight:700;letter-spacing:.4px;
  margin-bottom:10px;
}
.article-modal-title{
  font-family:'Cairo',sans-serif;font-size:19px;font-weight:900;
  color:var(--text);line-height:1.5;margin-bottom:16px;
}
.article-modal-body{
  font-family:'Cairo',sans-serif;font-size:14px;color:var(--text2);
  line-height:2;
}
.article-modal-footer{
  padding:12px 24px;background:var(--surface2);
  border-top:1px solid var(--border);
  font-family:'Cairo',sans-serif;font-size:11px;font-weight:700;
  color:var(--muted);
}

/* ── AI-WRITTEN ARTICLE LIST CARDS (the clickable summary rows in the
   panel — full text only shows inside the popup above) */
.ai-article{
  padding:14px 0;border-bottom:1px solid var(--border);
  transition:background .15s;
}
.ai-article:last-child{border-bottom:none;padding-bottom:4px;}
.ai-article:hover{background:#fef9f9;}
.ai-article:hover .ai-article-title{color:var(--red);}
.ai-article-title{
  font-family:'Cairo',sans-serif;font-size:14px;font-weight:700;
  color:var(--text);line-height:1.5;margin-bottom:6px;transition:color .15s;
}
.ai-article-meta{
  font-family:'Barlow Condensed',sans-serif;font-size:10.5px;
  color:var(--red);font-weight:700;letter-spacing:.3px;
}
