/* ============================================================
   YallaScore Theme v5 — Complete Dark Sports CSS
   ============================================================ */

/* ── Variables ── */
:root {
  --bg:       #f4f6f9;
  --bg2:      #ffffff;
  --bg3:      #edf0f5;
  --border:   #d9dde8;
  --border2:  #c5cad8;
  --primary:  #1a73e8;
  --primary2: #1558b0;
  --text:     #1a1d23;
  --text2:    #4a5568;
  --text3:    #8a93a8;
  --live:     #e53935;
  --yellow:   #f59e0b;
  --blue:     #1a73e8;
  --radius:   10px;
  --shadow:   0 4px 24px rgba(0,0,0,.10);
  --header-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 15px;
}
body.rtl, [dir="rtl"] { font-family: 'Cairo', 'Inter', system-ui, sans-serif; }
a { color: var(--primary); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ============================================================
   HEADER
   ============================================================ */
.ys-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  height: var(--header-h);
}
.ys-header-inner {
  display: flex; align-items: center; gap: 16px;
  height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px;
}
.ys-logo {
  font-size: 1.3rem; font-weight: 900; color: var(--text);
  white-space: nowrap; letter-spacing: -.03em;
  display: flex; align-items: center; gap: 6px;
}
.ys-logo span { color: var(--primary); }
.ys-logo .ball { font-size: 1.1rem; }

.ys-nav {
  display: flex; align-items: center; gap: 2px;
  flex: 1; justify-content: center; flex-wrap: nowrap;
}
.ys-nav a {
  color: var(--text2); font-size: .8rem; font-weight: 600;
  padding: 6px 11px; border-radius: 6px; white-space: nowrap;
  transition: all .2s; letter-spacing: .01em;
}
.ys-nav a:hover, .ys-nav a.active {
  color: var(--text); background: var(--bg3);
}
.ys-nav a.live-link { color: var(--live); }
.ys-nav a.live-link::before {
  content: ''; display: inline-block; width: 7px; height: 7px;
  background: var(--live); border-radius: 50%; margin-right: 5px;
  animation: pulse 1.5s infinite;
}

.ys-header-right { display: flex; align-items: center; gap: 10px; }
.ys-lang {
  display: flex; gap: 4px;
}
.ys-lang a {
  font-size: .72rem; font-weight: 700; color: var(--text3);
  padding: 4px 9px; border: 1px solid var(--border); border-radius: 20px;
  transition: all .2s;
}
.ys-lang a:hover, .ys-lang a.active {
  color: var(--primary); border-color: var(--primary); background: rgba(0,230,118,.05);
}

.ys-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px;
}
.ys-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text2); border-radius: 2px; transition: .3s;
}
.ys-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.ys-hamburger.open span:nth-child(2) { opacity: 0; }
.ys-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav */
.ys-mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 12px 16px; z-index: 999;
}
.ys-mobile-nav.open { display: flex; }
.ys-mobile-nav a {
  color: var(--text2); font-size: .88rem; font-weight: 600;
  padding: 10px 14px; border-radius: 8px; display: block;
}
.ys-mobile-nav a:hover { background: var(--bg3); color: var(--text); }

/* ── Live Ticker ── */
.ys-ticker {
  background: var(--bg3); border-bottom: 1px solid var(--border);
  overflow: hidden; height: 34px; display: flex; align-items: center;
}
.ys-ticker-label {
  flex-shrink: 0; background: var(--primary); color: #000;
  font-size: .68rem; font-weight: 800; padding: 0 12px;
  height: 100%; display: flex; align-items: center; gap: 5px;
  text-transform: uppercase; letter-spacing: .05em;
}
.ys-ticker-label::before {
  content: ''; width: 7px; height: 7px; background: #000;
  border-radius: 50%; animation: pulse 1.5s infinite;
}
.ys-ticker-track {
  display: flex; gap: 32px; align-items: center;
  animation: ticker 40s linear infinite; white-space: nowrap;
  padding: 0 20px;
}
.ys-ticker-track:hover { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ys-ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; color: var(--text2);
}
.ys-ticker-item .ts { color: var(--text); font-weight: 700; font-size: .8rem; }
.ys-ticker-item .live { color: var(--live); }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.ys-main { min-height: calc(100vh - var(--header-h) - 200px); }
.ys-section { padding: 32px 0; }
.ys-section + .ys-section { border-top: 1px solid var(--border); }

/* ── Section title ── */
.ys-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 12px;
}
.ys-sec-title {
  font-size: 1rem; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.ys-sec-title::before {
  content: ''; display: block; width: 3px; height: 18px;
  background: var(--primary); border-radius: 2px;
}
.ys-sec-link { font-size: .78rem; color: var(--primary); font-weight: 600; }

/* ── Page hero ── */
.ys-hero {
  background: linear-gradient(135deg, #e8eef8 0%, #f0f4fb 60%, #e8eef8 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  position: relative; overflow: hidden;
}
.ys-hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,230,118,.06) 0%, transparent 70%);
  pointer-events: none;
}
.ys-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,230,118,.08); border: 1px solid rgba(0,230,118,.2);
  border-radius: 20px; padding: 5px 14px;
  font-size: .72rem; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px;
}
.ys-hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); animation: pulse 1.5s infinite;
}
.ys-hero h1 { font-size: clamp(1.5rem,4vw,2.2rem); font-weight: 900; color: var(--text); margin-bottom: 8px; line-height: 1.2; }
.ys-hero p  { color: var(--text2); font-size: .9rem; max-width: 500px; }

/* ============================================================
   MATCH CARDS
   ============================================================ */
.ys-match-wrap {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.ys-match-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.ys-match-header .mh-title { font-size: .72rem; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .05em; }
.ys-match-header .mh-count { font-size: .7rem; color: var(--text3); }

.ys-match-list { display: flex; flex-direction: column; }

.ys-match-card {
  display: grid; grid-template-columns: 1fr 100px 1fr;
  align-items: center; padding: 14px 16px;
  border-bottom: 1px solid rgba(26,37,53,.6);
  transition: background .2s; cursor: default;
  gap: 8px;
}
.ys-match-card:last-child { border-bottom: none; }
.ys-match-card:hover { background: var(--bg3); }
.ys-match-card.is-live { border-left: 3px solid var(--live); }
.ys-match-card.is-final { opacity: .8; }

.ys-mc-team { display: flex; align-items: center; gap: 9px; }
.ys-mc-team.away { flex-direction: row-reverse; text-align: right; }
.ys-mc-team img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.ys-mc-team .tname {
  font-size: .85rem; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px;
}
.ys-mc-center { text-align: center; }
.ys-mc-score {
  font-size: 1.15rem; font-weight: 900; color: var(--text);
  letter-spacing: .06em; line-height: 1;
}
.ys-mc-time {
  font-size: .7rem; margin-top: 4px; color: var(--text3);
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.ys-mc-time.live { color: var(--live); font-weight: 700; }
.ys-mc-time.live::before { content:''; width:6px;height:6px;border-radius:50%;background:var(--live);animation:pulse 1.5s infinite; }
.ys-mc-time.upcoming { color: var(--yellow); }
.ys-mc-league { font-size: .6rem; color: var(--text3); margin-top: 2px; }

.ys-match-empty {
  text-align: center; padding: 40px 20px;
  color: var(--text3); font-size: .88rem;
}
.ys-match-empty .icon { font-size: 2.5rem; margin-bottom: 10px; }
.ys-match-source {
  font-size: .65rem; color: var(--text3); text-align: right;
  padding: 5px 14px 7px; border-top: 1px solid var(--border);
}
.ys-match-source a { color: var(--text3); }

.ys-loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 40px 20px; gap: 12px; color: var(--text3);
}
.ys-spinner {
  width: 26px; height: 26px; border: 2px solid var(--border2);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ============================================================
   STANDINGS TABLE
   ============================================================ */
.ys-table-wrap { overflow-x: auto; }
.ys-standings {
  width: 100%; border-collapse: collapse; font-size: .8rem;
  background: var(--bg2); border-radius: var(--radius); overflow: hidden;
}
.ys-standings th {
  background: var(--bg3); color: var(--text3); font-weight: 700;
  padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border);
  font-size: .7rem; text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap;
}
.ys-standings td { padding: 10px 12px; border-bottom: 1px solid rgba(26,37,53,.5); color: var(--text2); vertical-align: middle; }
.ys-standings tr:last-child td { border-bottom: none; }
.ys-standings tr:hover td { background: var(--bg3); }
.ys-standings .pos { font-weight: 800; color: var(--text); text-align: center; min-width: 24px; }
.ys-standings .pos.cl { color: var(--primary); }
.ys-standings .pos.el { color: var(--yellow); }
.ys-standings .pos.rl { color: var(--live); }
.ys-standings .team-cell { display: flex; align-items: center; gap: 9px; }
.ys-standings .team-logo { width: 22px; height: 22px; object-fit: contain; }
.ys-standings .team-name { color: var(--text); font-weight: 600; }
.ys-standings .pts { font-weight: 800; color: var(--text); }
.form-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50; margin: 0 1px;
  border-radius: 50%;
}
.form-dot.w { background: var(--primary); }
.form-dot.d { background: var(--text3); }
.form-dot.l { background: var(--live); }

/* ============================================================
   TABS
   ============================================================ */
.ys-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border);
  margin-bottom: 20px; overflow-x: auto;
}
.ys-tab {
  padding: 11px 18px; font-size: .82rem; font-weight: 700;
  color: var(--text3); cursor: pointer; border-bottom: 2px solid transparent;
  transition: all .2s; white-space: nowrap; flex-shrink: 0;
}
.ys-tab:hover { color: var(--text2); }
.ys-tab.active { color: var(--primary); border-color: var(--primary); }

/* ============================================================
   VIDEO PLAYER
   ============================================================ */
.ys-player-wrap {
  background: #000; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 20px;
}
.ys-player-bar {
  background: var(--bg3); padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.ys-player-title { font-size: .82rem; font-weight: 700; color: var(--text); }
.ys-player-btns { display: flex; gap: 6px; }
.ys-player-btn {
  padding: 5px 12px; border-radius: 20px; font-size: .72rem;
  font-weight: 700; cursor: pointer; border: 1px solid var(--border);
  background: var(--bg2); color: var(--text2); transition: .2s;
}
.ys-player-btn:hover, .ys-player-btn.active {
  background: var(--primary); border-color: var(--primary); color: #000;
}
.ys-player-screen { position: relative; padding-top: 56.25%; background: #050505; }
.ys-player-screen video, .ys-player-screen iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border: none;
}
.ys-player-ph {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; color: var(--text3); text-align: center; padding: 20px;
}
.ys-player-ph .ph-ball { font-size: 2.5rem; animation: bounce 2s ease-in-out infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.ys-player-ph .ph-msg { font-size: .85rem; color: var(--text3); max-width: 280px; line-height: 1.6; }
.ys-player-ph .ph-tip {
  font-size: .72rem; color: var(--text3); background: var(--bg3);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px;
}

/* Watch links */
.ys-watch-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
  margin: 16px 0;
}
.ys-watch-link {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 10px; text-decoration: none; color: var(--text2);
  font-size: .78rem; font-weight: 600; transition: .2s; text-align: center;
}
.ys-watch-link:hover { background: var(--bg3); border-color: var(--primary); color: #fff; opacity: 1; }
.ys-watch-link .wl-icon { font-size: 1.4rem; }
.ys-watch-link .wl-sub { font-size: .65rem; color: var(--text3); font-weight: 400; }

/* ============================================================
   CARDS & GRIDS
   ============================================================ */
.ys-league-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
}
.ys-league-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 12px; text-decoration: none; transition: .2s; text-align: center;
}
.ys-league-card:hover { background: var(--bg3); border-color: var(--primary); transform: translateY(-2px); opacity: 1; }
.ys-league-card .lc-flag { font-size: 2rem; }
.ys-league-card .lc-name { font-size: .82rem; font-weight: 700; color: var(--text); }
.ys-league-card .lc-sub  { font-size: .7rem; color: var(--text3); }

/* Featured match */
.ys-featured {
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: center; margin-bottom: 20px;
}
.ys-featured .feat-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  color: var(--live); letter-spacing: .08em; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.ys-featured .feat-label::before {
  content: ''; width: 8px; height: 8px; background: var(--live);
  border-radius: 50%; animation: pulse 1.5s infinite;
}
.ys-featured .feat-teams {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  flex-wrap: wrap; margin-bottom: 12px;
}
.ys-featured .feat-team { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ys-featured .feat-team img { width: 56px; height: 56px; object-fit: contain; }
.ys-featured .feat-team .fn { font-size: .9rem; font-weight: 700; color: var(--text); }
.ys-featured .feat-score {
  font-size: 2.5rem; font-weight: 900; color: #fff;
  min-width: 120px; text-align: center;
}
.ys-featured .feat-time { font-size: .78rem; color: var(--live); font-weight: 700; margin-bottom: 14px; }
.ys-featured .feat-watch {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); color: #000; font-size: .82rem;
  font-weight: 800; padding: 10px 24px; border-radius: 25px; text-decoration: none;
  transition: .2s;
}
.ys-featured .feat-watch:hover { background: var(--primary2); opacity: 1; }

/* WC Bracket */
.ys-bracket { overflow-x: auto; }
.ys-groups-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
}
.ys-group-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.ys-group-head {
  background: var(--primary); color: #000; padding: 8px 14px;
  font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
}
.ys-group-body { padding: 4px 0; }
.ys-group-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-bottom: 1px solid rgba(26,37,53,.4);
  font-size: .78rem;
}
.ys-group-row:last-child { border-bottom: none; }
.ys-group-row .gr-pos { font-weight: 700; color: var(--text3); width: 16px; }
.ys-group-row .gr-flag { font-size: .9rem; }
.ys-group-row .gr-name { flex: 1; color: var(--text); font-weight: 600; }
.ys-group-row .gr-pts { font-weight: 800; color: #fff; font-size: .82rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 700; padding: 10px 20px;
  border-radius: 25px; text-decoration: none; transition: .2s; cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { background: var(--primary2); opacity: 1; }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #000; opacity: 1; }
.btn-ghost { background: var(--bg3); color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: #fff; opacity: 1; }
.btn-sm { font-size: .72rem; padding: 6px 14px; }

/* ── Live badge ── */
.ys-live { display: inline-flex; align-items: center; gap: 5px; }
.ys-live::before {
  content: ''; width: 7px; height: 7px; background: var(--live);
  border-radius: 50%; animation: pulse 1.5s infinite;
}

/* ============================================================
   FOOTER
   ============================================================ */
.ys-footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 40px 0 20px; margin-top: 40px;
}
.ys-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 32px;
}
.ys-footer-brand .logo { font-size: 1.3rem; font-weight: 900; color: #fff; margin-bottom: 10px; }
.ys-footer-brand .logo span { color: var(--primary); }
.ys-footer-brand p { font-size: .8rem; color: var(--text3); line-height: 1.7; max-width: 240px; }
.ys-footer-col h4 { font-size: .78rem; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.ys-footer-col a { display: block; font-size: .78rem; color: var(--text3); margin-bottom: 7px; transition: color .2s; }
.ys-footer-col a:hover { color: var(--primary); }
.ys-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.ys-footer-bottom p { font-size: .72rem; color: var(--text3); }
.ys-footer-social { display: flex; gap: 10px; }
.ys-footer-social a {
  width: 34px; height: 34px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--text2); transition: .2s;
}
.ys-footer-social a:hover { background: var(--primary); color: #000; border-color: var(--primary); opacity: 1; }

/* ============================================================
   HOME PAGE SECTIONS
   ============================================================ */
.ys-home-hero {
  background: linear-gradient(140deg, #060b14 0%, #0a1620 60%, #0d1f14 100%);
  padding: 60px 0 48px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.ys-home-hero::before {
  content: '⚽'; position: absolute; font-size: 200px; opacity: .025;
  right: -30px; top: -30px; pointer-events: none;
}
.ys-home-hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 900; color: #fff;
  line-height: 1.15; margin-bottom: 12px;
}
.ys-home-hero h1 em { color: var(--primary); font-style: normal; }
.ys-home-hero p { font-size: .95rem; color: var(--text2); max-width: 440px; margin-bottom: 24px; line-height: 1.7; }
.ys-home-hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ys-hero-stats {
  display: flex; gap: 24px; margin-top: 32px; flex-wrap: wrap;
}
.ys-hero-stat .number { font-size: 1.6rem; font-weight: 900; color: #fff; }
.ys-hero-stat .label  { font-size: .72rem; color: var(--text3); margin-top: 2px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes spin   { to{transform:rotate(360deg)} }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .ys-nav { display: none; }
  .ys-hamburger { display: flex; }
  .ys-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ys-match-card { grid-template-columns: 1fr 80px 1fr; }
  .ys-mc-team .tname { max-width: 90px; font-size: .78rem; }
}
@media (max-width: 600px) {
  .ys-footer-grid { grid-template-columns: 1fr 1fr; }
  .ys-match-card { padding: 10px 12px; }
  .ys-hero h1, .ys-home-hero h1 { font-size: 1.5rem; }
  .ys-league-grid { grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); }
  .ys-featured .feat-score { font-size: 1.8rem; }
}

/* ============================================================
   RTL (Arabic)
   ============================================================ */
[dir="rtl"] .ys-header-inner { flex-direction: row-reverse; }
[dir="rtl"] .ys-mc-team { flex-direction: row-reverse; }
[dir="rtl"] .ys-mc-team.away { flex-direction: row; }
[dir="rtl"] .ys-sec-title::before { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .ys-standings th, [dir="rtl"] .ys-standings td { text-align: right; }
[dir="rtl"] .ys-footer-grid { direction: rtl; }
[dir="rtl"] .ys-tab { font-family: 'Cairo', sans-serif; }

/* ============================================================
   WP body classes
   ============================================================ */
.admin-bar .ys-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ys-header { top: 46px; } }

/* ===== WATCH GRID ===== */
.ys-watch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;margin-top:16px}
.ys-watch-card{display:flex;align-items:center;gap:14px;background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:16px;text-decoration:none;transition:.2s;cursor:pointer}
.ys-watch-card:hover{border-color:var(--primary);transform:translateY(-2px)}
.wc-icon{font-size:2rem;flex-shrink:0}
.wc-info{flex:1}
.wc-name{font-weight:700;color:#fff;font-size:.9rem}
.wc-desc{color:var(--text2);font-size:.77rem;margin-top:2px}
.wc-arrow{color:var(--primary);font-size:1.1rem;font-weight:700}

/* ===== TWO-COL LAYOUT ===== */
.ys-two-col{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:24px}
@media(max-width:800px){.ys-two-col{grid-template-columns:1fr}}

/* ===== LEAGUE HERO ===== */
.ys-league-hero{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:28px;margin-bottom:28px}
.ys-wc-hero{background:linear-gradient(135deg,#0a1a08,#0d1520);border-bottom:1px solid var(--border);padding:32px 0;margin-bottom:28px}

/* ===== WC GROUPS ===== */
.ys-wc-groups{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.ys-wc-group-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:14px}
.ys-wc-group-head{font-weight:800;color:var(--primary);font-size:.8rem;text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}

/* ===== HOME HERO ===== */
.ys-home-hero{background:linear-gradient(160deg,#e8f0fb 0%,#f0f6ff 60%,#e8eef8 100%);padding:60px 0 40px;border-bottom:1px solid var(--border)}
.ys-home-hero h1{font-size:2.4rem;line-height:1.2;margin:12px 0;color:var(--text)}
.ys-home-hero h1 em{color:var(--primary);font-style:normal}
.ys-home-hero p{color:var(--text2);font-size:.95rem;margin-bottom:20px}
.ys-hero-badge{display:inline-flex;align-items:center;gap:6px;background:rgba(244,67,54,.15);border:1px solid rgba(244,67,54,.4);color:#f44336;font-size:.72rem;font-weight:700;padding:4px 10px;border-radius:20px;text-transform:uppercase;letter-spacing:.05em}
.ys-hero-badge .dot{width:6px;height:6px;background:#f44336;border-radius:50%;animation:ys-pulse 1.2s infinite}
.ys-home-hero-btns{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0}
.ys-hero-stats{display:flex;gap:28px;flex-wrap:wrap;margin-top:28px;padding-top:20px;border-top:1px solid var(--border)}
.ys-hero-stat .number{font-size:1.6rem;font-weight:800;color:var(--primary)}
.ys-hero-stat .label{font-size:.72rem;color:var(--text2);margin-top:2px}

/* ===== BTNS ===== */
.btn{display:inline-flex;align-items:center;gap:6px;padding:10px 20px;border-radius:8px;font-weight:700;font-size:.85rem;text-decoration:none;cursor:pointer;border:none;transition:.15s}
.btn-primary{background:var(--primary);color:#000}
.btn-primary:hover{background:var(--primary2)}
.btn-outline{background:transparent;border:1px solid var(--primary);color:var(--primary)}
.btn-outline:hover{background:var(--primary);color:#000}
.btn-ghost{background:var(--bg3);color:var(--text);border:1px solid var(--border)}
.btn-ghost:hover{border-color:var(--text2)}
.btn-sm{padding:7px 14px;font-size:.78rem}

/* ===== PAGE HEAD ===== */
.ys-page-head{padding:32px 0 20px;border-bottom:1px solid var(--border);margin-bottom:28px}
.ys-page-head h1{margin:0 0 6px;color:#fff}
.ys-page-head p{margin:0;color:var(--text2);font-size:.88rem}

/* ===== TAB PANELS ===== */
.ys-tab-panels{margin-top:20px}
.ys-tab-panel{display:none}
.ys-tab-panel.active{display:block}

/* ===== LIGHT THEME OVERRIDES ===== */
/* Footer stays dark for contrast */
.ys-footer { background:#1e2535 !important; }
.ys-footer-nav a, .ys-footer-col p, .ys-footer-col li a { color:#a0aec0; }
.ys-footer-col h4 { color:#e2e8f0; }
.ys-footer-bottom p { color:#6b7280; }

/* Header on light bg */
.ys-header { background:rgba(255,255,255,.97) !important; box-shadow:0 1px 12px rgba(0,0,0,.08); }
.ys-logo { color:#1a1d23 !important; }
.ys-hamburger span { background:#4a5568; }
.ys-mobile-nav { background:#fff; }

/* Match cards on light */
.ys-match-wrap { box-shadow:0 2px 12px rgba(0,0,0,.06); }
.ys-match-card:hover { background:#f8faff; }
.ys-match-card.is-live { background:#fff8f8; }

/* Standings on light */
.ys-standings th { background:#f4f6f9; color:#6b7280; }
.ys-standings td { color:#374151; }
.ys-standings tr:hover td { background:#f8faff; }

/* Ticker on light */
.ys-ticker { background:#f0f4fb; border-color:#d9dde8; }
.ys-ticker-item { color:#4a5568; }
.ys-ticker-item .ts { color:#1a1d23; }

/* Tabs */
.ys-tabs { border-color:#d9dde8; }
.ys-tab { color:#6b7280; }
.ys-tab.active { color:var(--primary); }

/* Buttons on light */
.btn-outline { border-color:var(--primary); color:var(--primary); }
.btn-ghost { background:#f4f6f9; color:#1a1d23; border-color:#d9dde8; }
.btn-ghost:hover { background:#e8eef8; }

/* Watch cards */
.ys-watch-card { background:#fff; }
.ys-watch-card:hover { background:#f8faff; }
.wc-name { color:#1a1d23 !important; }

/* League cards */
.ys-league-card { background:#fff; }
.ys-league-card .lc-name { color:#1a1d23; }

/* Section backgrounds */
.ys-section + .ys-section { border-top-color:#e8edf5; }

/* Nav links */
.ys-nav a { color:#4a5568; }
.ys-nav a:hover, .ys-nav a.active { color:#1a73e8; background:#edf2ff; }
.ys-nav a.live-link { color:#e53935; }

/* WC group table text */
.ys-wc-group-card { background:#fff; }

/* Page head */
.ys-page-head h1 { color:#1a1d23; }

/* Home hero text */
.ys-home-hero { border-bottom-color:#d9dde8; }
.ys-home-hero h1 em { color:var(--primary); }
.ys-hero-stats { border-top-color:#d9dde8; }

/* Featured card */
.ys-featured { background:linear-gradient(135deg,#f0f4fb,#edf0f5); }
.feat-teams .team-name { color:#1a1d23; }
.feat-score { color:#1a1d23; }

/* Player */
.ys-player-bar { background:#f4f6f9; border-bottom:1px solid #d9dde8; }
.ys-player-title { color:#1a1d23; }
.ys-player-btn { background:#fff; color:#4a5568; border-color:#d9dde8; }
.ys-player-btn:hover, .ys-player-btn.active { background:var(--primary); border-color:var(--primary); color:#fff; }
.ys-player-ph { background:#f8faff; }

/* Sec title bar color */
.ys-sec-title::before { background:var(--primary); }
.ys-sec-title { color:#1a1d23; }

/* ============================================================
   MATCH DETAIL PAGE
   ============================================================ */

/* Loading */
.ys-match-detail-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:80px 20px;gap:16px;color:var(--text2)}

/* Match Header */
.ys-md-head-wrap{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:28px;margin:24px 0;text-align:center;box-shadow:var(--shadow)}
.ys-md-status{display:inline-flex;align-items:center;gap:7px;font-size:.78rem;font-weight:800;padding:5px 14px;border-radius:20px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:20px}
.ys-md-status.live{background:rgba(229,57,53,.12);color:var(--live);border:1px solid rgba(229,57,53,.3)}
.ys-md-status.live .dot{width:8px;height:8px;border-radius:50%;background:var(--live);animation:ys-pulse 1.2s infinite}
.ys-md-status.final{background:#f0fdf4;color:#16a34a;border:1px solid #86efac}
.ys-md-status.upcoming{background:#eff6ff;color:var(--primary);border:1px solid #bfdbfe}
.ys-md-teams-row{display:grid;grid-template-columns:1fr 180px 1fr;align-items:center;gap:16px}
.ys-md-team{display:flex;flex-direction:column;align-items:center;gap:10px}
.ys-md-team img{width:72px;height:72px;object-fit:contain}
.ys-md-team-name{font-size:1rem;font-weight:800;color:var(--text);text-align:center}
.ys-md-score-box{text-align:center}
.ys-md-score{font-size:2.6rem;font-weight:900;color:var(--text);letter-spacing:.04em;line-height:1}
.ys-md-venue{font-size:.72rem;color:var(--text2);margin-top:8px}
@media(max-width:500px){.ys-md-teams-row{grid-template-columns:1fr 100px 1fr}.ys-md-score{font-size:1.8rem}.ys-md-team img{width:48px;height:48px}.ys-md-team-name{font-size:.82rem}}

/* Stream section */
.ys-md-stream-wrap{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.ys-md-stream-bar{background:var(--bg3);padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:700;color:var(--text);font-size:.88rem;border-bottom:1px solid var(--border)}
.ys-md-no-stream{display:flex;align-items:center;gap:16px;background:var(--bg2);border:1px dashed var(--border2);border-radius:var(--radius);padding:20px 24px;color:var(--text2);font-size:.88rem}
.ys-md-no-stream span{font-size:2rem}
.ys-md-no-stream strong{color:var(--text);display:block;margin-bottom:4px}

/* Stats */
.ys-stats-head{display:flex;justify-content:space-between;font-size:.78rem;font-weight:700;color:var(--primary);padding:12px 0;border-bottom:1px solid var(--border);margin-bottom:8px}
.ys-stats-list{display:flex;flex-direction:column;gap:6px;padding:8px 0}
.ys-stat-row{display:grid;grid-template-columns:60px 1fr 60px;align-items:center;gap:10px}
.ys-stat-val{font-size:.88rem;font-weight:700;color:var(--text)}
.ys-stat-val.home{text-align:left}.ys-stat-val.away{text-align:right}
.ys-stat-info{text-align:center}
.ys-stat-label{font-size:.7rem;color:var(--text2);margin-bottom:5px}
.ys-stat-bar{display:flex;height:5px;border-radius:3px;overflow:hidden;background:var(--bg3)}
.ys-stat-bar-h{background:var(--primary);border-radius:3px 0 0 3px}
.ys-stat-bar-a{background:#e53935;border-radius:0 3px 3px 0}

/* Lineups */
.ys-lineups-wrap{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:16px}
@media(max-width:680px){.ys-lineups-wrap{grid-template-columns:1fr}}
.ys-lineup-col{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:16px}
.ys-lineup-team-head{display:flex;align-items:center;gap:10px;font-weight:800;color:var(--text);font-size:.9rem;margin-bottom:12px}
.ys-lineup-team-head img{width:28px;height:28px;object-fit:contain}
.ys-lineup-section-label{font-size:.68rem;font-weight:700;color:var(--text3);text-transform:uppercase;letter-spacing:.06em;margin:10px 0 8px;border-bottom:1px solid var(--border);padding-bottom:4px}
.ys-players-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:8px}
.ys-players-grid.subs{opacity:.75}

/* Player card */
.ys-player-card{display:flex;flex-direction:column;align-items:center;gap:5px;background:var(--bg3);border:1px solid var(--border);border-radius:8px;padding:10px 6px;cursor:pointer;transition:.2s;text-align:center}
.ys-player-card:hover{border-color:var(--primary);background:var(--bg2);transform:translateY(-2px)}
.ys-player-card img{width:52px;height:38px;object-fit:cover;border-radius:4px;background:var(--border)}
.ys-player-num{font-size:.68rem;font-weight:800;color:var(--primary)}
.ys-player-name{font-size:.72rem;font-weight:700;color:var(--text);line-height:1.2}
.ys-player-pos{font-size:.62rem;color:var(--text3)}

/* News */
.ys-news-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin-top:16px}
.ys-news-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;text-decoration:none;display:block;transition:.2s}
.ys-news-card:hover{border-color:var(--primary);transform:translateY(-2px);opacity:1}
.ys-news-img{height:150px;background:var(--bg3) center/cover no-repeat}
.ys-news-body{padding:14px}
.ys-news-cat{font-size:.65rem;font-weight:700;color:var(--primary);text-transform:uppercase;letter-spacing:.05em;margin-bottom:5px}
.ys-news-title{font-size:.88rem;font-weight:700;color:var(--text);line-height:1.4;margin-bottom:6px}
.ys-news-desc{font-size:.76rem;color:var(--text2);line-height:1.6}

/* Teams */
.ys-teams-wrap{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:16px}
@media(max-width:680px){.ys-teams-wrap{grid-template-columns:1fr}}
.ys-team-profile{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:20px}
.ys-tp-header{display:flex;align-items:center;gap:16px;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--border)}
.ys-tp-logo{width:60px;height:60px;object-fit:contain}
.ys-tp-name{margin:0 0 4px;font-size:1.1rem;color:var(--text)}
.ys-tp-badge{font-size:.7rem;color:var(--text2)}
.ys-tp-players-label{font-size:.7rem;font-weight:700;color:var(--text3);text-transform:uppercase;letter-spacing:.05em;margin-bottom:10px}
.ys-tp-players{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ys-tp-player{text-align:center;cursor:pointer;transition:.2s}
.ys-tp-player:hover{transform:translateY(-2px)}
.ys-tp-player img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px;background:var(--bg3)}
.ys-tp-player-name{font-size:.7rem;font-weight:700;color:var(--text);margin-top:4px;line-height:1.2}
.ys-tp-player-pos{font-size:.62rem;color:var(--primary)}

/* Videos */
.ys-video-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin-top:16px}
.ys-video-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;cursor:pointer;transition:.2s}
.ys-video-card:hover{border-color:var(--primary);transform:translateY(-2px)}
.ys-video-thumb{height:145px;background:var(--bg3) center/cover no-repeat;position:relative;display:flex;align-items:center;justify-content:center}
.ys-video-play{width:48px;height:48px;background:rgba(0,0,0,.65);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.2rem;color:#fff;transition:.2s}
.ys-video-card:hover .ys-video-play{background:var(--primary);color:#000}
.ys-video-title{font-size:.8rem;font-weight:700;color:var(--text);padding:10px 12px 4px;line-height:1.4}
.ys-video-dur{font-size:.7rem;color:var(--text3);padding:0 12px 10px}

/* Player Modal */
.ys-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:9999;display:flex;align-items:center;justify-content:center;padding:16px}
.ys-modal{background:var(--bg2);border:1px solid var(--border);border-radius:16px;max-width:520px;width:100%;padding:28px;position:relative;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.ys-modal-close{position:absolute;top:14px;right:14px;background:var(--bg3);border:1px solid var(--border);color:var(--text2);width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:.9rem;display:flex;align-items:center;justify-content:center}
.ys-modal-close:hover{background:var(--live);color:#fff;border-color:var(--live)}
.ys-modal-player{display:flex;gap:20px;flex-wrap:wrap}
.ys-modal-photo{flex-shrink:0}
.ys-modal-photo img{width:120px;height:88px;object-fit:cover;border-radius:10px;background:var(--bg3)}
.ys-modal-info{flex:1;min-width:200px}
.ys-modal-name{margin:0 0 4px;font-size:1.2rem;color:var(--text);font-weight:900}
.ys-modal-pos{font-size:.78rem;color:var(--primary);font-weight:700;margin-bottom:12px}
.ys-modal-meta{display:flex;flex-direction:column;gap:6px}
.ys-meta-item{font-size:.78rem;color:var(--text2)}
.ys-meta-item span{font-weight:700;color:var(--text);margin-right:5px}

/* Match cards as links */
a.ys-match-card { cursor:pointer; text-decoration:none; }
a.ys-match-card:hover { background:var(--bg3); opacity:1; border-left:3px solid var(--primary); }
a.ys-match-card.is-live:hover { background:#fff8f8; border-left-color:var(--live); }


/* =============================================
   YallaScore Modal System CSS
   ============================================= */
.ysm-overlay{position:fixed;inset:0;background:rgba(0,0,0,.65);z-index:99999;display:flex;align-items:flex-start;justify-content:center;padding:20px;overflow-y:auto}
.ysm-box{background:#fff;border-radius:14px;max-width:860px;width:100%;margin:auto;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.4)}
.ysm-header{background:linear-gradient(135deg,#1a1d23 0%,#0d1117 100%);padding:24px;position:relative;text-align:center}
.ysm-close{position:absolute;top:12px;right:12px;background:rgba(255,255,255,.15);border:none;color:#fff;width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center}
.ysm-close:hover{background:rgba(255,255,255,.3)}
.ysm-competition{color:#a0aab8;font-size:12px;text-transform:uppercase;letter-spacing:1px;margin-bottom:12px}
.ysm-teams{display:flex;align-items:center;justify-content:center;gap:20px}
.ysm-team{display:flex;flex-direction:column;align-items:center;gap:8px;flex:1;max-width:180px}
.ysm-team img{width:56px;height:56px;object-fit:contain}
.ysm-team-name{color:#fff;font-size:14px;font-weight:600;text-align:center}
.ysm-score{color:#fff;font-size:36px;font-weight:800;min-width:80px;text-align:center}
.ysm-status{display:inline-block;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:700;margin-top:12px}
.ysm-status.live{background:#e53935;color:#fff;animation:pulse 1.5s infinite}
.ysm-status.final{background:#4caf50;color:#fff}
.ysm-status.upcoming{background:rgba(255,255,255,.15);color:#a0aab8}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.6}}

.ysm-stream-zone{padding:16px 20px;background:#f8f9fa;border-bottom:1px solid #e8ecf0}
.ysm-stream-zone h4{margin:0 0 10px;font-size:14px;color:#1a1d23}
.ysm-stream-btns{display:flex;flex-wrap:wrap;gap:8px}
.ysm-stream-btn{padding:8px 16px;border:none;border-radius:8px;cursor:pointer;font-size:13px;font-weight:600;background:#1a73e8;color:#fff;transition:background .2s}
.ysm-stream-btn:hover{background:#1557b0}
.ysm-stream-btn.embed-btn{background:#ff6d00}
.ysm-stream-btn.embed-btn:hover{background:#e65100}
.ysm-no-stream{color:#8a93a8;font-size:13px;margin:0}

.ysm-tabs{display:flex;background:#f4f6f9;border-bottom:2px solid #e8ecf0}
.ysm-tab{padding:12px 20px;cursor:pointer;font-size:14px;font-weight:600;color:#8a93a8;border-bottom:2px solid transparent;margin-bottom:-2px;transition:all .2s}
.ysm-tab:hover{color:#1a73e8}
.ysm-tab.active{color:#1a73e8;border-bottom-color:#1a73e8}
.ysm-panel{display:none;padding:20px;max-height:400px;overflow-y:auto}
.ysm-panel.active{display:block}
.ysm-no-data{color:#8a93a8;text-align:center;padding:20px}
.ysm-close-btn{padding:10px 24px;background:#1a73e8;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:14px;font-weight:600}

/* Stats */
.ysm-stat-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #e8ecf0}
.ysm-team-badge{display:flex;align-items:center;gap:8px}
.ysm-team-badge img{width:28px;height:28px;object-fit:contain}
.ysm-stat-row{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;gap:8px;margin-bottom:10px;position:relative}
.ysm-stat-label{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:11px;color:#8a93a8;white-space:nowrap;background:#fff;padding:0 4px}
.ysm-stat-val{font-size:14px;font-weight:700;color:#1a1d23;text-align:center}
.ysm-stat-bar-wrap{height:6px;border-radius:3px;background:#e8ecf0;display:flex;overflow:hidden}
.ysm-stat-h{background:#1a73e8;height:100%;border-radius:3px 0 0 3px}
.ysm-stat-a{background:#e53935;height:100%;border-radius:0 3px 3px 0}

/* Lineup */
.ysm-lineups{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.ysm-lineup-col h4{font-size:14px;color:#1a1d23;margin:0 0 12px;display:flex;align-items:center;gap:6px}
.ysm-lineup-col h4 img{width:20px;height:20px;object-fit:contain}

/* Player cards */
.ysm-pcard{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid #e8ecf0;border-radius:8px;cursor:pointer;transition:all .2s;margin-bottom:6px}
.ysm-pcard:hover{border-color:#1a73e8;transform:translateY(-1px);box-shadow:0 4px 12px rgba(26,115,232,.15)}
.ysm-pcard img{width:36px;height:36px;border-radius:50%;object-fit:cover;border:2px solid #e8ecf0}
.ysm-pcard-num{font-size:12px;font-weight:700;color:#8a93a8;min-width:20px;text-align:center}
.ysm-pcard-nophoto{width:36px;height:36px;border-radius:50%;background:#e8ecf0;display:flex;align-items:center;justify-content:center;color:#8a93a8;font-size:16px}
.ysm-pcard-info{flex:1;min-width:0}
.ysm-pcard-name{font-size:13px;font-weight:600;color:#1a1d23;white-space:nowraw;overflow:hidden;text-overflow:ellipsis}
.ysm-pcard-pos{font-size:11px;color:#8a93a8}

/* News */
.ysm-news-item{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid #e8ecf0;text-decoration:none;color:inherit}
.ysm-news-item:last-child{border-bottom:none}
.ysm-news-item img{width:80px;height:56px;object-fit:cover;border-radius:6px;flex-shrink:0}
.ysm-news-title{font-size:14px;font-weight:600;color:#1a1d23;margin-bottom:4px;line-height:1.4}
.ysm-news-desc{font-size:12px;color:#8a93a8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Teams */
.ysm-tprofile{display:flex;gap:16px;padding:12px 0;border-bottom:1px solid #e8ecf0}
.ysm-tprofile img{width:60px;height:60px;object-fit:contain}
.ysm-tprofile-info h3{font-size:16px;margin:0 0 4px;color:#1a1d23}
.ysm-tprofile-info p{font-size:13px;color:#8a93a8;margin:0 0 10px}
.ysm-tprofile-players{display:flex;flex-wrap:wrap;gap:6px}

/* Player popup */
#ys-player-popup{position:fixed;inset:0;background:rgba(0,0,0,.7);z-index:100000;display:flex;align-items:center;justify-content:center;padding:20px}
.ysp-wrap{background:#fff;border-radius:16px;padding:32px;max-width:320px;width:100%;text-align:center;position:relative;box-shadow:0 24px 64px rgba(0,0,0,.4)}
.ysp-close{position:absolute;top:12px;right:12px;background:#f4f6f9;border:none;width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:14px}
.ysp-photo{width:100px;height:100px;border-radius:50%;object-fit:cover;border:3px solid #e8ecf0;margin-bottom:12px}
.ysp-name{font-size:20px;font-weight:700;color:#1a1d23;margin-bottom:4px}
.ysp-pos{font-size:14px;color:#8a93a8;margin-bottom:16px}
.ysp-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px}
.ysp-meta-item{background:#f4f6f9;border-radius:8px;padding:10px;text-align:center}
.ysp-meta-item strong{display:block;font-size:14px;font-weight:700;color:#1a1d23}
.ysp-meta-item span{font-size:11px;color:#8a93a8}
.ysp-link{display:inline-block;padding:10px 20px;background:#1a73e8;color:#fff;text-decoration:none;border-radius:8px;font-size:13px;font-weight:600}

/* Responsive */
@media(max-width:600px){
  .ysm-teams{gap:10py}
  .ysm-score{font-size:28px}
  .ysm-lineups{grid-template-columns:1fr}
  .ysm-tab{padding:10px 12px;font-size:12px}
  .ysm-panel{max-height:300px}
}
