/* LiveScoreTV v2: dark sports-listings design system */
:root {
  --bg: #0a0d12; --bg-2: #0e1219; --card: #131822; --card-h: #18202d; --border: #1f2735; --border-2: #2a3446;
  --text: #f1f5f9; --text-2: #94a3b8; --text-3: #7c8aa0;
  --accent: #22c55e; --accent-2: #16a34a; --live: #ef4444; --star: #fbbf24; --link: #60a5fa;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --display: 'Barlow Condensed', 'Inter', sans-serif; --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --r: 10px; --r-l: 14px; --hh: 60px; --wrap: 1360px; --g: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 56px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--g) * 2); margin-inline: auto; padding-inline: var(--g); }
.i { width: 18px; height: 18px; flex: none; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--accent); color: #04130a; font-weight: 700; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 10px; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: rgba(10, 13, 18, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.hdr-in { height: var(--hh); display: flex; align-items: center; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.55rem; letter-spacing: 0.01em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #04130a; display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; }
.brand b { color: var(--accent); font-weight: 800; }
.search { position: relative; flex: 1; min-width: 0; max-width: 420px; }
.search .inp { min-width: 0; }
@media (max-width: 420px) { .brand { font-size: 1.3rem; } .brand-mark { width: 26px; height: 26px; } .hdr-in { gap: 10px; } }
.tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; }
.controls > * { min-width: 0; }
.search .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.inp { width: 100%; min-height: 40px; padding: 8px 12px 8px 36px; border-radius: 9px; border: 1px solid var(--border); background: var(--card); font-size: 0.92rem; }
.inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15); }
.inp::placeholder { color: var(--text-3); }
.menu { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.menu > li { position: relative; list-style: none; }
.menu-btn, .menu > li > a { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.menu-btn:hover, .menu > li > a:hover, .menu-btn[aria-expanded='true'] { color: var(--text); background: var(--card); }
.dd { position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; min-width: 240px; max-height: 70vh; overflow: auto; padding: 6px; border-radius: 12px; background: #141a25; border: 1px solid var(--border-2); box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.8); }
.dd a, .dd button { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 7px; border: 0; background: none; text-align: left; text-decoration: none; font-size: 0.9rem; color: var(--text); }
.dd a:hover, .dd button:hover { background: var(--card-h); }
.dd small { color: var(--text-3); font-family: var(--mono); }
.dd h4 { margin: 8px 10px 4px; font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.tz-sel { min-height: 36px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); font-size: 0.82rem; max-width: 180px; }
.leaguebar { border-bottom: 1px solid var(--border); background: var(--bg-2); }
.leaguebar .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
.leaguebar .wrap::-webkit-scrollbar { display: none; }
.lpill { flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text-2); font-size: 0.84rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.lpill:hover, .lpill[aria-current] { color: var(--text); border-color: var(--accent); }
@media (max-width: 1023.98px) { .menu, .tz-wrap { display: none; } .search { max-width: none; } }

/* ---------- 3-column layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 18px 40px; }
@media (min-width: 1024px) { .layout { grid-template-columns: 250px minmax(0, 1fr); } }
@media (min-width: 1280px) { .layout { grid-template-columns: 250px minmax(0, 1fr) 300px; } }
.col-l, .col-r { display: grid; gap: 14px; align-content: start; }
@media (min-width: 1024px) { .col-l { position: sticky; top: calc(var(--hh) + 64px); max-height: calc(100vh - var(--hh) - 80px); overflow-y: auto; scrollbar-width: thin; } }
@media (max-width: 1023.98px) {
  .col-l, .col-r { position: fixed; inset: 0 0 64px 0; z-index: 80; padding: 16px; background: var(--bg); overflow-y: auto; transform: translateX(-100%); transition: transform 0.22s ease; visibility: hidden; }
  .col-r { transform: translateX(100%); }
  html[data-drawer='left'] .col-l, html[data-drawer='right'] .col-r { transform: none; visibility: visible; }
  .drawer-head { display: flex !important; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) { .col-r { display: none; } }
.drawer-head { display: none; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.drawer-head b { font-size: 1.1rem; }
.box { border-radius: var(--r-l); background: var(--card); border: 1px solid var(--border); overflow: hidden; }
.box-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 0.9rem; }
.box-h small { color: var(--text-3); font-weight: 500; }
.box details > summary { list-style: none; cursor: pointer; }
.box details > summary::-webkit-details-marker { display: none; }
.box details > summary::after { content: '▾'; color: var(--text-3); transition: transform 0.2s; }
.box details:not([open]) > summary::after { transform: rotate(-90deg); }
.nav-list { margin: 0; padding: 6px; list-style: none; }
.nav-list a, .nav-list button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 36px; padding: 6px 8px; border-radius: 7px; border: 0; background: none; text-align: left; color: var(--text); text-decoration: none; font-size: 0.88rem; }
.nav-list a:hover, .nav-list button:hover { background: var(--card-h); }
.nav-list .n { margin-left: auto; min-width: 26px; padding: 1px 7px; border-radius: 999px; background: var(--bg-2); color: var(--text-2); font-family: var(--mono); font-size: 0.75rem; text-align: center; }
.nav-list .n.live { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.nav-list .ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crest { width: 20px; height: 20px; border-radius: 4px; object-fit: contain; flex: none; background: transparent; }
.crest-ph { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--border); color: var(--text-2); font-size: 0.6rem; font-weight: 700; }
.empty-s { padding: 12px 14px; color: var(--text-3); font-size: 0.85rem; }

/* ---------- center: date bar + controls ---------- */
.col-c { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.col-l, .col-r { grid-template-columns: minmax(0, 1fr); }
.page-h h1 { font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: 0.005em; }
.page-h p { margin-top: 4px; color: var(--text-2); font-size: 0.92rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; padding: 0; list-style: none; font-size: 0.82rem; color: var(--text-3); }
.crumbs li + li::before { content: '›'; margin-right: 6px; }
.crumbs a { text-decoration: none; color: var(--text-2); }
.crumbs a:hover { color: var(--accent); }
.dates { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.dates::-webkit-scrollbar { display: none; }
.date { flex: none; min-width: 64px; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); text-decoration: none; color: var(--text-2); font-size: 0.78rem; }
.date b { color: var(--text); font-size: 0.92rem; }
.date:hover { border-color: var(--border-2); }
.date[aria-current='date'] { background: var(--accent); border-color: var(--accent); color: #04130a; }
.date[aria-current='date'] b { color: #04130a; }
.date.pick { position: relative; }
.date.pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tabs { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); }
.tab { min-height: 34px; padding: 5px 12px; border: 0; border-radius: 7px; background: none; color: var(--text-2); font-weight: 600; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; }
.tab[aria-pressed='true'] { background: var(--card-h); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }
.tab .n { font-family: var(--mono); font-size: 0.72rem; color: var(--text-3); }
.switch { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.switch input { appearance: none; width: 34px; height: 20px; border-radius: 999px; background: var(--border-2); position: relative; transition: background 0.2s; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(14px); }
.sel { min-height: 40px; padding: 6px 30px 6px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' fill='none' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.ml-auto { margin-left: auto; }
.sport-sel { max-width: 160px; }

/* ---------- match list ---------- */
.list { display: grid; gap: 12px; }
.grp { border-radius: var(--r-l); background: var(--card); border: 1px solid var(--border); overflow: hidden; }
.grp-h { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; background: var(--bg-2); border-bottom: 1px solid var(--border); text-align: left; }
.grp-h a { text-decoration: none; font-weight: 700; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp-h a:hover { color: var(--accent); }
.grp-h small { color: var(--text-3); font-size: 0.75rem; white-space: nowrap; }
.grp-h .tog { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 7px; border: 0; background: none; color: var(--text-3); transition: transform 0.2s; }
.grp.collapsed .tog { transform: rotate(-90deg); }
.grp.collapsed .rows { display: none; }
.star { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; border: 0; background: none; color: var(--text-3); font-size: 1.05rem; line-height: 1; }
.star:hover { color: var(--star); background: var(--card-h); }
.star[aria-pressed='true'] { color: var(--star); }
.row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 64px; padding: 8px 6px 8px 12px; border-bottom: 1px solid var(--border); text-decoration: none; transition: background-color 0.12s; }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--card-h); }
.r-time { font-family: var(--mono); font-size: 0.85rem; color: var(--text-2); text-align: center; line-height: 1.2; }
.r-time .st { display: block; font-size: 0.7rem; color: var(--text-3); margin-top: 2px; }
.r-live { color: var(--live); font-weight: 700; }
.r-live .st { color: var(--live); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-right: 4px; vertical-align: 1px; }
@media (prefers-reduced-motion: no-preference) { .dot { animation: pulse 1.4s infinite; } @keyframes pulse { 50% { opacity: 0.25; } } }
.r-teams { min-width: 0; display: grid; gap: 4px; }
.team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.92rem; }
.team b { margin-left: auto; padding-left: 8px; font-family: var(--mono); font-size: 0.95rem; }
.team.win span { font-weight: 700; }
.hide-scores .team b { visibility: hidden; }
.hide-scores .team b::before { content: '–'; visibility: visible; color: var(--text-3); }
.r-side { display: flex; align-items: center; gap: 4px; }
.tvs { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; max-width: 170px; }
.tv { padding: 1px 7px; border-radius: 5px; background: rgba(96, 165, 250, 0.1); color: #93c5fd; font-size: 0.7rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tv.muted { background: var(--bg-2); color: var(--text-3); }
@media (max-width: 520px) { .tvs { display: none; } .row { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; } }
.note-s { font-size: 0.8rem; color: var(--text-3); }
.empty { padding: 28px 16px; text-align: center; color: var(--text-2); border: 1px dashed var(--border-2); border-radius: var(--r-l); }
/* skeleton (same height as a row: no layout shift) */
.sk-row { height: 64px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, var(--card) 0%, var(--card-h) 50%, var(--card) 100%); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .sk-row { animation: sk 1.2s linear infinite; } @keyframes sk { to { background-position: -200% 0; } } }

/* ---------- right column ---------- */
.up { display: grid; }
.up a { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--border); text-decoration: none; font-size: 0.85rem; }
.up a:last-child { border-bottom: 0; }
.up a:hover { background: var(--card-h); }
.up .t { font-family: var(--mono); color: var(--text-2); font-size: 0.75rem; line-height: 1.25; text-align: center; }
.up .m { min-width: 0; }
.up .m b, .up .m span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up .m span { color: var(--text-3); font-size: 0.75rem; }

/* ---------- editorial content (guides) ---------- */
.prose { border-radius: var(--r-l); background: var(--card); border: 1px solid var(--border); padding: clamp(18px, 3vw, 30px); }
.prose h1 { font-family: var(--display); font-size: clamp(1.9rem, 4.5vw, 2.7rem); font-weight: 800; }
.prose h2 { margin: 30px 0 10px; font-size: 1.3rem; }
.prose h3 { margin: 20px 0 8px; font-size: 1.05rem; }
.prose p, .prose li { color: #cbd5e1; }
.prose p { margin: 10px 0; }
.prose ul, .prose ol { padding-left: 20px; }
.prose a { color: var(--link); }
.prose .eyebrow { color: var(--accent); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.prose .hero-panel > p { font-size: 1.05rem; color: var(--text-2); margin-top: 10px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: #04130a !important; font-weight: 700; text-decoration: none !important; font-size: 0.92rem; }
.btn:hover { background: #4ade80; }
.btn.secondary { background: transparent; color: var(--text) !important; border-color: var(--border-2); }
.btn.secondary:hover { border-color: var(--accent); }
.prose .notice, .prose .editorial-note, .prose .source-note, .prose .table-note { margin: 14px 0; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.06); color: #cbd5e1; font-size: 0.9rem; }
.prose .table-note, .prose .source-note { border-color: var(--border); background: var(--bg-2); }
.broadcast-table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--border); border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.prose th, .prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--bg-2); color: var(--text-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.prose tr:last-child td { border-bottom: 0; }
.prose .content-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.prose { min-width: 0; overflow-wrap: anywhere; }
.prose table { overflow-wrap: normal; }
.prose .sidebar { display: grid; gap: 12px; align-content: start; }
.prose .sidebar > * { padding: 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); }
.prose .sidebar h2, .prose .sidebar h3 { margin-top: 0; font-size: 1rem; }
.prose .quick-links, .prose .source-list, .prose .speed-list, .prose .device-list { padding-left: 18px; }
.prose .section { margin-top: 10px; }
.faq details, .prose details { border-bottom: 1px solid var(--border); }
.faq summary, .prose details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 14px 2px; font-weight: 600; color: var(--text); }
.faq summary::-webkit-details-marker, .prose details summary::-webkit-details-marker { display: none; }
.faq summary::after, .prose details summary::after { content: '+'; color: var(--accent); font-family: var(--mono); font-size: 1.15rem; line-height: 1; }
.faq details[open] summary::after, .prose details[open] summary::after { content: '−'; }
.faq details p, .prose details p { margin: 0 2px 14px; color: var(--text-2); }
.seo-block { display: grid; gap: 10px; }
.prose .grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 14px 0; }
.prose .grid .card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: border-color 0.15s, transform 0.15s; }
.prose .grid .card:hover { border-color: var(--accent); transform: translateY(-2px); }
.prose .grid .card h3 { margin: 4px 0 0; font-size: 1rem; }
.prose .grid .card p { margin: 0; font-size: 0.86rem; color: var(--text-2); }
.prose .grid .icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(34, 197, 94, 0.1); color: var(--accent); }
.prose .grid .icon .i { width: 20px; height: 20px; }
.prose .section-head h2 { margin-top: 0; }
@media (min-width: 1024px) { .tz-box { display: none; } }
.seo-block h2 { font-size: 1.15rem; }

/* ---------- match page ---------- */
.mh { border-radius: 18px; border: 1px solid var(--border); padding: 18px; background: radial-gradient(120% 90% at 50% 0%, rgba(34, 197, 94, 0.12), transparent 60%), var(--card); }
.mh-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mh-league { font-weight: 700; text-decoration: none; color: var(--text-2); }
.mh-league:hover { color: var(--accent); }
.mh-h1 { margin-top: 10px; text-align: center; font-family: var(--display); font-size: clamp(1.5rem, 4.5vw, 2.2rem); font-weight: 800; }
.mh-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 18px 0 8px; }
.mh-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-decoration: none; min-width: 0; }
.mh-team b { font-size: clamp(0.95rem, 3vw, 1.2rem); line-height: 1.2; overflow-wrap: anywhere; }
.mh-team small { color: var(--text-3); font-size: 0.75rem; }
.mh-team:hover b { color: var(--accent); }
.mh-crest { width: clamp(52px, 14vw, 76px); height: clamp(52px, 14vw, 76px); object-fit: contain; }
.mh-ph { display: grid; place-items: center; border-radius: 50%; background: var(--border); font-weight: 800; font-size: 1.6rem; color: var(--text-2); }
.mh-mid { text-align: center; min-width: 96px; }
.mh-score { font-family: var(--mono); font-size: clamp(1.9rem, 7vw, 2.8rem); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mh-st { color: var(--text-2); font-size: 0.82rem; }
.mh-live { color: var(--live); font-weight: 700; font-family: var(--mono); }
.mh-cd { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.mh-cd > span { color: var(--text-2); font-size: 0.85rem; font-weight: 600; margin-right: 4px; }
.mh-cd div { min-width: 54px; text-align: center; }
.mh-cd b { display: block; font-family: var(--mono); font-size: 1.4rem; color: var(--accent); }
.mh-cd small { color: var(--text-3); font-size: 0.7rem; }
.mh-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.mh-meta li { padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); font-size: 0.88rem; }
.mh-meta span { display: block; color: var(--text-3); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pad { padding: 16px 18px; }
.box.pad h2 { font-size: 1.1rem; margin-bottom: 12px; }
.tv-list { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 6px; }
.tv-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); }
.tv-list li span { color: var(--text-2); font-size: 0.85rem; }
.tv-list li b { color: #93c5fd; font-size: 0.9rem; }
.tv-list li.is-mine { border-color: rgba(34, 197, 94, 0.5); background: rgba(34, 197, 94, 0.06); }
.muted-s { color: var(--text-3); font-size: 0.85rem; }
.notice-s { margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.06); color: #cbd5e1; font-size: 0.84rem; }
.zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.zones li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); font-size: 0.88rem; }
.zones abbr { display: inline-block; min-width: 26px; margin-right: 6px; padding: 0 4px; border-radius: 4px; background: var(--border); color: var(--text-2); font-size: 0.68rem; font-weight: 700; text-align: center; text-decoration: none; }
.zones b { font-family: var(--mono); font-size: 0.85rem; white-space: nowrap; }
.more { display: grid; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mm { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 46px; padding: 8px 12px; border-bottom: 1px solid var(--border); text-decoration: none; font-size: 0.9rem; }
.mm:last-child { border-bottom: 0; }
.mm:hover { background: var(--card-h); }
.mm-t { font-family: var(--mono); color: var(--text-2); font-size: 0.82rem; }
.mm-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm b { font-family: var(--mono); }

/* match page v2.1 */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; }
.pill-live { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }
.pill-ft { background: var(--bg-2); color: var(--text-2); border: 1px solid var(--border); }
.pill-ns { background: rgba(34, 197, 94, 0.12); color: #86efac; }
.mh-tools { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.switch-sm { min-height: 34px; padding: 2px 8px; font-size: 0.78rem; }
.mh-h1 span { display: block; margin-top: 4px; font-family: var(--font); font-size: 0.9rem; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.mh-when { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 12px; margin: 6px 0 0; color: var(--text-2); font-size: 0.88rem; }
.mh-utc { font-family: var(--mono); color: var(--text-3); font-size: 0.8rem; }
.hide-scores .mh-score.is-score { filter: blur(9px); user-select: none; }
.tv-sub { margin: 4px 0 8px; font-size: 0.82rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.tv-sub a { color: var(--text); text-decoration: none; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.tv-sub a:hover { color: var(--accent); }
.tv-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 0.9rem; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.tv-table th, .tv-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.tv-table tr:last-child th, .tv-table tr:last-child td { border-bottom: 0; }
.tv-table th { width: 38%; color: var(--text-2); font-weight: 600; background: var(--bg-2); }
.tv-table td { color: #93c5fd; font-weight: 600; }
.tv-table tr.is-mine th { color: var(--accent); }
.info { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; margin: 0; }
.info div { padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); min-width: 0; }
.info dt { color: var(--text-3); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.info dd { margin: 2px 0 0; font-size: 0.92rem; font-weight: 600; overflow-wrap: anywhere; }
.info a { color: var(--link); text-decoration: none; }
.info a:hover { text-decoration: underline; }
.form-cols { display: grid; gap: 14px; }
@media (min-width: 720px) { .form-cols { grid-template-columns: 1fr 1fr; } }
.res { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 6px; border-radius: 6px; font-family: var(--mono); font-size: 0.72rem; font-weight: 700; }
.res-w { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.res-l { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }
.res-d { background: var(--border); color: var(--text-2); }
.mm { grid-template-columns: 56px minmax(0, 1fr) auto auto; }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--border); background: #070a0e; padding: 36px 0 calc(90px + env(safe-area-inset-bottom)); color: var(--text-2); font-size: 0.88rem; }
@media (min-width: 1024px) { .ftr { padding-bottom: 32px; } }
.ftr-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .ftr-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.ftr h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 8px; }
.ftr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.ftr a { text-decoration: none; color: #cbd5e1; }
.ftr a:hover { color: var(--accent); }
.ftr-legal { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-3); }
.ftr-about { grid-column: 1 / -1; }
@media (min-width: 900px) { .ftr-about { grid-column: auto; } }

/* ---------- mobile bottom nav ---------- */
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); background: rgba(10, 13, 18, 0.97); border-top: 1px solid var(--border); }
.bnav a, .bnav button { min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--text-3); font-size: 0.7rem; font-weight: 600; text-decoration: none; }
.bnav .i { width: 22px; height: 22px; }
.bnav [aria-current], .bnav [aria-pressed='true'] { color: var(--accent); }
@media (min-width: 1024px) { .bnav { display: none; } }
.scrim { position: fixed; inset: 0; z-index: 79; background: rgba(0, 0, 0, 0.5); }

/* ---------- League badges: country/region flag + sport glyph (generated, no licensed logos) ---------- */
.lg { position: relative; flex: none; display: inline-block; width: 24px; height: 17px; border-radius: 4px; background: var(--border-2) center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); vertical-align: middle; }
.lg::before { content: ""; position: absolute; right: -5px; bottom: -5px; width: 13px; height: 13px; border-radius: 50%; background: #0b1018; box-shadow: 0 0 0 1.5px var(--card); }
.lg::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 9px; height: 9px; background: #e8eef6; -webkit-mask: var(--sp) center / contain no-repeat; mask: var(--sp) center / contain no-repeat; }
.lg.fl-none { background: linear-gradient(135deg, #1d2a3d, #121a26); }
.lg.fl-none::before { display: none; }
.lg.fl-none::after { right: 5px; bottom: 2px; width: 13px; height: 13px; background: #cbd5e1; }
.lpill .lg { margin-right: 8px; }
.nav-list .lg { margin-right: 3px; }
.grp-h .lg { margin-right: 4px; }
.mh-league { display: inline-flex; align-items: center; gap: 8px; }
.mh-league .lg { margin-right: 2px; }
.fl-eng { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23fff'/%3E%3Crect x='13' y='0' width='4' height='20' fill='%23ce1124'/%3E%3Crect x='0' y='8' width='30' height='4' fill='%23ce1124'/%3E%3C/svg%3E"); }
.fl-sct { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23005eb8'/%3E%3Cpath d='M0 0L30 20M30 0L0 20' stroke='%23fff' stroke-width='3.4'/%3E%3C/svg%3E"); }
.fl-wls { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='10.01' fill='%23fff'/%3E%3Crect x='0' y='10' width='30' height='10.01' fill='%2300b140'/%3E%3Ccircle cx='15' cy='10' r='4' fill='%23c8102e'/%3E%3C/svg%3E"); }
.fl-gb { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23012169'/%3E%3Cpath d='M0 0L30 20M30 0L0 20' stroke='%23fff' stroke-width='4'/%3E%3Cpath d='M0 0L30 20M30 0L0 20' stroke='%23c8102e' stroke-width='1.4'/%3E%3Crect x='12' y='0' width='6' height='20' fill='%23fff'/%3E%3Crect x='0' y='7' width='30' height='6' fill='%23fff'/%3E%3Crect x='13.3' y='0' width='3.4' height='20' fill='%23c8102e'/%3E%3Crect x='0' y='8.3' width='30' height='3.4' fill='%23c8102e'/%3E%3C/svg%3E"); }
.fl-es { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23c60b1e'/%3E%3Crect x='0' y='5' width='30' height='10' fill='%23ffc400'/%3E%3C/svg%3E"); }
.fl-it { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='10.01' height='20' fill='%23009246'/%3E%3Crect x='10' y='0' width='10.01' height='20' fill='%23fff'/%3E%3Crect x='20' y='0' width='10.01' height='20' fill='%23ce2b37'/%3E%3C/svg%3E"); }
.fl-fr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='10.01' height='20' fill='%230055a4'/%3E%3Crect x='10' y='0' width='10.01' height='20' fill='%23fff'/%3E%3Crect x='20' y='0' width='10.01' height='20' fill='%23ef4135'/%3E%3C/svg%3E"); }
.fl-de { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='6.676666666666667' fill='%23000'/%3E%3Crect x='0' y='6.666666666666667' width='30' height='6.676666666666667' fill='%23dd0000'/%3E%3Crect x='0' y='13.333333333333334' width='30' height='6.676666666666667' fill='%23ffce00'/%3E%3C/svg%3E"); }
.fl-br { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23009c3b'/%3E%3Cpath d='M15 2.5 27.5 10 15 17.5 2.5 10z' fill='%23ffdf00'/%3E%3Ccircle cx='15' cy='10' r='4.3' fill='%23002776'/%3E%3C/svg%3E"); }
.fl-pt { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='12' height='20' fill='%23046a38'/%3E%3Crect x='12' y='0' width='18' height='20' fill='%23da291c'/%3E%3Ccircle cx='12' cy='10' r='3.6' fill='%23ffe900' stroke='%23ffe900'/%3E%3C/svg%3E"); }
.fl-nl { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='6.676666666666667' fill='%23ae1c28'/%3E%3Crect x='0' y='6.666666666666667' width='30' height='6.676666666666667' fill='%23fff'/%3E%3Crect x='0' y='13.333333333333334' width='30' height='6.676666666666667' fill='%2321468b'/%3E%3C/svg%3E"); }
.fl-ar { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='6.676666666666667' fill='%2374acdf'/%3E%3Crect x='0' y='6.666666666666667' width='30' height='6.676666666666667' fill='%23fff'/%3E%3Crect x='0' y='13.333333333333334' width='30' height='6.676666666666667' fill='%2374acdf'/%3E%3Ccircle cx='15' cy='10' r='2' fill='%23f6b40e'/%3E%3C/svg%3E"); }
.fl-mx { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='10.01' height='20' fill='%23006847'/%3E%3Crect x='10' y='0' width='10.01' height='20' fill='%23fff'/%3E%3Crect x='20' y='0' width='10.01' height='20' fill='%23ce1126'/%3E%3Ccircle cx='15' cy='10' r='2' fill='%238c5a2b'/%3E%3C/svg%3E"); }
.fl-gr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='2.232222222222222' fill='%230d5eaf'/%3E%3Crect x='0' y='2.2222222222222223' width='30' height='2.232222222222222' fill='%23fff'/%3E%3Crect x='0' y='4.444444444444445' width='30' height='2.232222222222222' fill='%230d5eaf'/%3E%3Crect x='0' y='6.666666666666667' width='30' height='2.232222222222222' fill='%23fff'/%3E%3Crect x='0' y='8.88888888888889' width='30' height='2.232222222222222' fill='%230d5eaf'/%3E%3Crect x='0' y='11.11111111111111' width='30' height='2.232222222222222' fill='%23fff'/%3E%3Crect x='0' y='13.333333333333334' width='30' height='2.232222222222222' fill='%230d5eaf'/%3E%3Crect x='0' y='15.555555555555557' width='30' height='2.232222222222222' fill='%23fff'/%3E%3Crect x='0' y='17.77777777777778' width='30' height='2.232222222222222' fill='%230d5eaf'/%3E%3Crect x='0' y='0' width='11.1' height='11.1' fill='%230d5eaf'/%3E%3Crect x='4.45' y='0' width='2.2' height='11.1' fill='%23fff'/%3E%3Crect x='0' y='4.45' width='11.1' height='2.2' fill='%23fff'/%3E%3C/svg%3E"); }
.fl-tr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23e30a17'/%3E%3Ccircle cx='12' cy='10' r='5' fill='%23fff'/%3E%3Ccircle cx='13.3' cy='10' r='4' fill='%23e30a17'/%3E%3Ccircle cx='18.2' cy='10' r='1.4' fill='%23fff'/%3E%3C/svg%3E"); }
.fl-be { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='10.01' height='20' fill='%23000'/%3E%3Crect x='10' y='0' width='10.01' height='20' fill='%23fdda24'/%3E%3Crect x='20' y='0' width='10.01' height='20' fill='%23ef3340'/%3E%3C/svg%3E"); }
.fl-us { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23fff'/%3E%3Crect x='0' y='0' width='30' height='1.5384615384615385' fill='%23b22234'/%3E%3Crect x='0' y='3.076923076923077' width='30' height='1.5384615384615385' fill='%23b22234'/%3E%3Crect x='0' y='6.153846153846154' width='30' height='1.5384615384615385' fill='%23b22234'/%3E%3Crect x='0' y='9.230769230769232' width='30' height='1.5384615384615385' fill='%23b22234'/%3E%3Crect x='0' y='12.307692307692308' width='30' height='1.5384615384615385' fill='%23b22234'/%3E%3Crect x='0' y='15.384615384615385' width='30' height='1.5384615384615385' fill='%23b22234'/%3E%3Crect x='0' y='18.461538461538463' width='30' height='1.5384615384615385' fill='%23b22234'/%3E%3Crect x='0' y='0' width='13' height='10.8' fill='%233c3b6e'/%3E%3C/svg%3E"); }
.fl-na { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23fff'/%3E%3Crect x='0' y='0' width='15' height='1.5384615384615385' fill='%23b22234'/%3E%3Crect x='0' y='3.076923076923077' width='15' height='1.5384615384615385' fill='%23b22234'/%3E%3Crect x='0' y='6.153846153846154' width='15' height='1.5384615384615385' fill='%23b22234'/%3E%3Crect x='0' y='9.230769230769232' width='15' height='1.5384615384615385' fill='%23b22234'/%3E%3Crect x='0' y='12.307692307692308' width='15' height='1.5384615384615385' fill='%23b22234'/%3E%3Crect x='0' y='15.384615384615385' width='15' height='1.5384615384615385' fill='%23b22234'/%3E%3Crect x='0' y='18.461538461538463' width='15' height='1.5384615384615385' fill='%23b22234'/%3E%3Crect x='0' y='0' width='7.5' height='10.8' fill='%233c3b6e'/%3E%3Crect x='15' y='0' width='3.6' height='20' fill='%23d52b1e'/%3E%3Crect x='26.4' y='0' width='3.6' height='20' fill='%23d52b1e'/%3E%3Cpath d='M22.2 5.2 23.4 8l2-.6-.8 3 1.2.6-3.6 2.2.2 2.3h-.4l.2-2.3-3.6-2.2 1.2-.6-.8-3 2 .6z' fill='%23d52b1e'/%3E%3C/svg%3E"); }
.fl-ca { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23fff'/%3E%3Crect x='0' y='0' width='7.5' height='20' fill='%23d52b1e'/%3E%3Crect x='22.5' y='0' width='7.5' height='20' fill='%23d52b1e'/%3E%3Cpath d='M15 4.2 16.4 7.4l2.4-.7-1 3.5 1.4.7-4.2 2.6.3 2.7h-.6l.3-2.7-4.2-2.6 1.4-.7-1-3.5 2.4.7z' fill='%23d52b1e'/%3E%3C/svg%3E"); }
.fl-jp { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23fff'/%3E%3Ccircle cx='15' cy='10' r='6' fill='%23bc002d'/%3E%3C/svg%3E"); }
.fl-au { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%2300008b'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='7.5' cy='15' r='2'/%3E%3Ccircle cx='22.5' cy='4' r='1.1'/%3E%3Ccircle cx='19.5' cy='9' r='1.1'/%3E%3Ccircle cx='25.5' cy='8' r='1.1'/%3E%3Ccircle cx='22.5' cy='16' r='1.2'/%3E%3C/g%3E%3Crect x='0' y='0' width='15' height='10' fill='%23012169'/%3E%3Cpath d='M0 0L15 10M15 0L0 10' stroke='%23fff' stroke-width='2'/%3E%3Crect x='6' y='0' width='3' height='10' fill='%23fff'/%3E%3Crect x='0' y='3.5' width='15' height='3' fill='%23fff'/%3E%3Crect x='6.75' y='0' width='1.5' height='10' fill='%23c8102e'/%3E%3Crect x='0' y='4.25' width='15' height='1.5' fill='%23c8102e'/%3E%3C/svg%3E"); }
.fl-at { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='6.676666666666667' fill='%23c8102e'/%3E%3Crect x='0' y='6.666666666666667' width='30' height='6.676666666666667' fill='%23fff'/%3E%3Crect x='0' y='13.333333333333334' width='30' height='6.676666666666667' fill='%23c8102e'/%3E%3C/svg%3E"); }
.fl-ch { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23da291c'/%3E%3Crect x='13' y='4' width='4' height='12' fill='%23fff'/%3E%3Crect x='9' y='8' width='12' height='4' fill='%23fff'/%3E%3C/svg%3E"); }
.fl-dk { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23c8102e'/%3E%3Crect x='8' y='0' width='5' height='20' fill='%23fff'/%3E%3Crect x='0' y='7.5' width='30' height='5' fill='%23fff'/%3E%3C/svg%3E"); }
.fl-se { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23006aa7'/%3E%3Crect x='8' y='0' width='5' height='20' fill='%23fecc02'/%3E%3Crect x='0' y='7.5' width='30' height='5' fill='%23fecc02'/%3E%3C/svg%3E"); }
.fl-no { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23ba0c2f'/%3E%3Crect x='8' y='0' width='5' height='20' fill='%23fff'/%3E%3Crect x='0' y='7.5' width='30' height='5' fill='%23fff'/%3E%3Crect x='9.25' y='0' width='2.5' height='20' fill='%2300205b'/%3E%3Crect x='0' y='8.75' width='30' height='2.5' fill='%2300205b'/%3E%3C/svg%3E"); }
.fl-fi { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23fff'/%3E%3Crect x='8' y='0' width='5' height='20' fill='%23002f6c'/%3E%3Crect x='0' y='7.5' width='30' height='5' fill='%23002f6c'/%3E%3C/svg%3E"); }
.fl-pl { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='10.01' fill='%23fff'/%3E%3Crect x='0' y='10' width='30' height='10.01' fill='%23dc143c'/%3E%3C/svg%3E"); }
.fl-ru { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='6.676666666666667' fill='%23fff'/%3E%3Crect x='0' y='6.666666666666667' width='30' height='6.676666666666667' fill='%230039a6'/%3E%3Crect x='0' y='13.333333333333334' width='30' height='6.676666666666667' fill='%23d52b1e'/%3E%3C/svg%3E"); }
.fl-ua { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='10.01' fill='%230057b7'/%3E%3Crect x='0' y='10' width='30' height='10.01' fill='%23ffd700'/%3E%3C/svg%3E"); }
.fl-hr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='6.676666666666667' fill='%23ff0000'/%3E%3Crect x='0' y='6.666666666666667' width='30' height='6.676666666666667' fill='%23fff'/%3E%3Crect x='0' y='13.333333333333334' width='30' height='6.676666666666667' fill='%23171796'/%3E%3Crect x='12.5' y='5' width='5' height='6' fill='%23ff0000'/%3E%3Crect x='12.5' y='5' width='2.5' height='3' fill='%23fff'/%3E%3Crect x='15' y='8' width='2.5' height='3' fill='%23fff'/%3E%3C/svg%3E"); }
.fl-co { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='10' fill='%23fcd116'/%3E%3Crect x='0' y='10' width='30' height='5' fill='%23003893'/%3E%3Crect x='0' y='15' width='30' height='5' fill='%23ce1126'/%3E%3C/svg%3E"); }
.fl-ec { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='10' fill='%23ffdd00'/%3E%3Crect x='0' y='10' width='30' height='5' fill='%23034ea2'/%3E%3Crect x='0' y='15' width='30' height='5' fill='%23ed1c24'/%3E%3Ccircle cx='15' cy='10' r='2.4' fill='%236b4c2a'/%3E%3C/svg%3E"); }
.fl-cl { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='10' fill='%23fff'/%3E%3Crect x='0' y='10' width='30' height='10' fill='%23d52b1e'/%3E%3Crect x='0' y='0' width='10' height='10' fill='%230039a6'/%3E%3Ccircle cx='5' cy='5' r='1.8' fill='%23fff'/%3E%3C/svg%3E"); }
.fl-uy { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='2.232222222222222' fill='%23fff'/%3E%3Crect x='0' y='2.2222222222222223' width='30' height='2.232222222222222' fill='%230038a8'/%3E%3Crect x='0' y='4.444444444444445' width='30' height='2.232222222222222' fill='%23fff'/%3E%3Crect x='0' y='6.666666666666667' width='30' height='2.232222222222222' fill='%230038a8'/%3E%3Crect x='0' y='8.88888888888889' width='30' height='2.232222222222222' fill='%23fff'/%3E%3Crect x='0' y='11.11111111111111' width='30' height='2.232222222222222' fill='%230038a8'/%3E%3Crect x='0' y='13.333333333333334' width='30' height='2.232222222222222' fill='%23fff'/%3E%3Crect x='0' y='15.555555555555557' width='30' height='2.232222222222222' fill='%230038a8'/%3E%3Crect x='0' y='17.77777777777778' width='30' height='2.232222222222222' fill='%23fff'/%3E%3Crect x='0' y='0' width='11.1' height='11.1' fill='%23fff'/%3E%3Ccircle cx='5.5' cy='5.5' r='3' fill='%23fcd116'/%3E%3C/svg%3E"); }
.fl-in { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='6.676666666666667' fill='%23ff9933'/%3E%3Crect x='0' y='6.666666666666667' width='30' height='6.676666666666667' fill='%23fff'/%3E%3Crect x='0' y='13.333333333333334' width='30' height='6.676666666666667' fill='%23138808'/%3E%3Ccircle cx='15' cy='10' r='2.3' fill='none' stroke='%23000080' stroke-width='.8'/%3E%3C/svg%3E"); }
.fl-sa { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23006c35'/%3E%3Crect x='7' y='13' width='16' height='1.4' fill='%23fff'/%3E%3Crect x='7' y='7' width='16' height='3' fill='%23fff'/%3E%3C/svg%3E"); }
.fl-al { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23e41e20'/%3E%3Cpath d='M15 5c-2 0-3 1.5-3 3l-4-2 2 4-3 1 4 2-1 3 5-2 5 2-1-3 4-2-3-1 2-4-4 2c0-1.5-1-3-3-3z' fill='%23000'/%3E%3C/svg%3E"); }
.fl-eu { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23003399'/%3E%3Ccircle cx='15' cy='10' r='6' fill='none' stroke='%23ffcc00' stroke-width='1.7' stroke-linecap='round' stroke-dasharray='0 3.1416'/%3E%3C/svg%3E"); }
.fl-eu2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23f36c21'/%3E%3Ccircle cx='15' cy='10' r='6' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-dasharray='0 3.1416'/%3E%3C/svg%3E"); }
.fl-eu3 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%2300a651'/%3E%3Ccircle cx='15' cy='10' r='6' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-dasharray='0 3.1416'/%3E%3C/svg%3E"); }
.fl-world { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%231e3a5f'/%3E%3Cg fill='none' stroke='%239cc7ff' stroke-width='1'%3E%3Ccircle cx='15' cy='10' r='6.5'/%3E%3Cpath d='M8.5 10h13M15 3.5c-3.5 3.6-3.5 9.4 0 13M15 3.5c3.5 3.6 3.5 9.4 0 13'/%3E%3C/g%3E%3C/svg%3E"); }
.sp-soccer { --sp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='%23000' stroke='%23000'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke-width='2.4'/%3E%3Cpath d='m12 7.5 4 2.9-1.5 4.6h-5L8 10.4z' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E"); }
.sp-basketball { --sp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='%23000' stroke='%23000'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke-width='2.2'/%3E%3Cpath d='M3 12h18M12 3v18M6 5.5c2.5 3.5 2.5 9.5 0 13M18 5.5c-2.5 3.5-2.5 9.5 0 13' fill='none' stroke-width='1.8'/%3E%3C/g%3E%3C/svg%3E"); }
.sp-hockey { --sp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='%23000' stroke='%23000'%3E%3Cellipse cx='12' cy='9.5' rx='9' ry='3.8' stroke-width='0'/%3E%3Cpath d='M3 9.5v4.2c0 2.1 4 3.8 9 3.8s9-1.7 9-3.8V9.5c0 2.1-4 3.8-9 3.8s-9-1.7-9-3.8z' stroke-width='0'/%3E%3C/g%3E%3C/svg%3E"); }
.sp-afootball { --sp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='%23000' stroke='%23000'%3E%3Cpath d='M4 20C4 11 11 4 20 4c0 9-7 16-16 16z' stroke-width='0'/%3E%3Cpath d='m9.5 14.5 5-5M11 11l2 2M12.6 9.4l2 2M9.4 12.6l2 2' stroke='%23fff' stroke-width='1.3' fill='none'/%3E%3C/g%3E%3C/svg%3E"); }
.sp-rugby { --sp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='%23000' stroke='%23000'%3E%3Cellipse cx='12' cy='12' rx='10' ry='6' transform='rotate(-35 12 12)' stroke-width='0'/%3E%3C/g%3E%3C/svg%3E"); }
.sp-tennis { --sp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='%23000' stroke='%23000'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke-width='2.4'/%3E%3Cpath d='M5.6 5.6c3.2 3.2 3.2 9.6 0 12.8M18.4 5.6c-3.2 3.2-3.2 9.6 0 12.8' fill='none' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E"); }
.sp-cricket { --sp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='%23000' stroke='%23000'%3E%3Cpath d='m14.5 3.5 6 6-9 9a2 2 0 0 1-2.8 0l-3.2-3.2a2 2 0 0 1 0-2.8z' stroke-width='0'/%3E%3Ccircle cx='19' cy='19' r='2.4' stroke-width='0'/%3E%3C/g%3E%3C/svg%3E"); }
.sp-baseball { --sp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='%23000' stroke='%23000'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke-width='2.4'/%3E%3Cpath d='M8 5c1.8 4 1.8 10 0 14M16 5c-1.8 4-1.8 10 0 14' fill='none' stroke-width='1.6' stroke-dasharray='1.6 1.4'/%3E%3C/g%3E%3C/svg%3E"); }
.sp-fight { --sp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='%23000' stroke='%23000'%3E%3Crect x='5' y='3.5' width='14' height='12' rx='5' stroke-width='0'/%3E%3Crect x='7' y='15' width='10' height='5.5' rx='1' stroke-width='0'/%3E%3C/g%3E%3C/svg%3E"); }
.sp-motor { --sp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='%23000' stroke='%23000'%3E%3Cpath d='M5 21V4' fill='none' stroke-width='2'/%3E%3Cpath d='M6 4h14v10H6z' stroke-width='0'/%3E%3C/g%3E%3C/svg%3E"); }
.sp-other { --sp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='%23000' stroke='%23000'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0z' fill='none' stroke-width='2.2'/%3E%3Cpath d='M17 5h3v2a3 3 0 0 1-3 3M7 5H4v2a3 3 0 0 0 3 3' fill='none' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E"); }
/* ---------- Time zone note + crest fallback ---------- */
.tz-note { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-2); color: var(--text-2); font-size: 0.82rem; }
.tz-note b { color: var(--text); }
.tz-note .i { width: 15px; height: 15px; color: var(--accent); }
.linkish { padding: 0; border: 0; background: none; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; }
.mh-ph { position: relative; background: none; border-radius: 0; color: var(--text-2); }
.mh-ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mh-ph b { position: relative; font-family: var(--display); font-size: clamp(1.1rem, 4vw, 1.5rem); letter-spacing: 0.02em; color: var(--text); }

/* ---------- Language menu ---------- */
.menu-btn .i { width: 16px; height: 16px; }
.dd-lang { min-width: 180px; }
.dd-lang a[aria-current], .lang-box a[aria-current] { color: var(--accent); font-weight: 700; }
.lang-box .nav-list { display: flex; flex-wrap: wrap; gap: 4px; }
.lang-box .nav-list li { flex: 1 1 auto; }
.lang-box .nav-list a { justify-content: center; border: 1px solid var(--border); }
/* Longer 'live' words (AO VIVO, EN VIVO) stay on one line */
.r-time.r-live { white-space: nowrap; font-size: 0.74rem; letter-spacing: -0.01em; }
.nav-list .n { white-space: nowrap; flex: none; }
/* 8+ languages: compact grid that never gets clipped by the sidebar */
.lang-box { flex-shrink: 0; min-height: max-content; }
.lang-box .nav-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 4px; }
.lang-box .nav-list a { min-height: 32px; padding: 4px 6px; font-size: 0.82rem; }
/* Sidebar boxes keep their full height; the sticky sidebar scrolls instead of squeezing them */
.col-l, .col-r { grid-auto-rows: max-content; }
.fl-ro { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect width='10.01' height='20' fill='%23002b7f'/%3E%3Crect x='10' width='10.01' height='20' fill='%23fcd116'/%3E%3Crect x='20' width='10' height='20' fill='%23ce1126'/%3E%3C/svg%3E"); }
/* Desktop already has the globe menu in the header: the language box is for the mobile drawer only */
@media (min-width: 1024px) { .lang-box { display: none; } }
.dd-lang { columns: 2; min-width: 300px; }
.dd-lang a { break-inside: avoid; }
.fl-qa { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%238a1538'/%3E%3Crect x='0' y='0' width='9' height='20' fill='%23fff'/%3E%3C/svg%3E"); }
.fl-ae { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='6.676666666666667' fill='%23009739'/%3E%3Crect x='0' y='6.666666666666667' width='30' height='6.676666666666667' fill='%23fff'/%3E%3Crect x='0' y='13.333333333333334' width='30' height='6.676666666666667' fill='%23000'/%3E%3Crect x='0' y='0' width='7.5' height='20' fill='%23ef3340'/%3E%3C/svg%3E"); }
.fl-tn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23e70013'/%3E%3Ccircle cx='15' cy='10' r='5.5' fill='%23fff'/%3E%3Ccircle cx='14.2' cy='10' r='3.6' fill='%23e70013'/%3E%3Ccircle cx='15.4' cy='10' r='2.9' fill='%23fff'/%3E%3Cpolygon points='16.30,8.00 16.77,9.35 18.20,9.38 17.06,10.25 17.48,11.62 16.30,10.80 15.12,11.62 15.54,10.25 14.40,9.38 15.83,9.35' fill='%23e70013'/%3E%3C/svg%3E"); }
.fl-kr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23fff'/%3E%3Cpath d='M10 10a5 5 0 0 1 10 0z' fill='%23cd2e3a'/%3E%3Cpath d='M10 10a5 5 0 0 0 10 0z' fill='%230047a0'/%3E%3Cg stroke='%23000' stroke-width='1.2'%3E%3Cpath d='M4 3.5l3 2.2M23 3.5l3 2.2M4 16.5l3-2.2M23 16.5l3-2.2'/%3E%3C/g%3E%3C/svg%3E"); }
.fl-th { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23a51931'/%3E%3Crect x='0' y='3.33' width='30' height='13.34' fill='%23f4f5f8'/%3E%3Crect x='0' y='6.67' width='30' height='6.66' fill='%232d2a4a'/%3E%3C/svg%3E"); }
.fl-vn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23da251d'/%3E%3Cpolygon points='15.00,4.40 16.41,8.46 20.71,8.55 17.28,11.14 18.53,15.25 15.00,12.80 11.47,15.25 12.72,11.14 9.29,8.55 13.59,8.46' fill='%23ffcd00'/%3E%3C/svg%3E"); }
.fl-id { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='10.01' fill='%23ce1126'/%3E%3Crect x='0' y='10' width='30' height='10.01' fill='%23fff'/%3E%3C/svg%3E"); }
.fl-eg { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='6.676666666666667' fill='%23ce1126'/%3E%3Crect x='0' y='6.666666666666667' width='30' height='6.676666666666667' fill='%23fff'/%3E%3Crect x='0' y='13.333333333333334' width='30' height='6.676666666666667' fill='%23000'/%3E%3Ccircle cx='15' cy='10' r='1.8' fill='%23c09300'/%3E%3C/svg%3E"); }
.fl-ma { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20' preserveAspectRatio='xMidYMid slice'%3E%3Crect x='0' y='0' width='30' height='20' fill='%23c1272d'/%3E%3Cpolygon points='15,4.5 16.8,9.6 21.6,9.6 17.6,12.7 19.1,17.5 15,14.5 10.9,17.5 12.4,12.7 8.4,9.6 13.2,9.6' fill='none' stroke='%23006233' stroke-width='1'/%3E%3C/svg%3E"); }
/* ---------- Right-to-left languages (Arabic) ---------- */
[dir='rtl'] .search .i { left: auto; right: 11px; }
[dir='rtl'] .search .inp { padding-left: 12px; padding-right: 36px; }
[dir='rtl'] .nav-list a, [dir='rtl'] .nav-list button, [dir='rtl'] .dd a, [dir='rtl'] .dd button { text-align: right; }
[dir='rtl'] .nav-list .n { margin-left: 0; margin-right: auto; }
[dir='rtl'] .lpill .lg { margin-right: 0; margin-left: 8px; }
[dir='rtl'] .dd { right: auto; left: 0; }
[dir='rtl'] .lg::before { right: auto; left: -5px; }
[dir='rtl'] .lg::after { right: auto; left: -3px; }
[dir='rtl'] .lg.fl-none::after { left: 5px; }
/* Team names, scores and times are Latin text: keep each one readable left-to-right */
[dir='rtl'] .team > span, [dir='rtl'] .mh-team b, [dir='rtl'] .mm-n, [dir='rtl'] .r-time, [dir='rtl'] .mm-t, [dir='rtl'] .mh-utc, [dir='rtl'] .tv { unicode-bidi: isolate; }
[dir='rtl'] .mh-score { direction: ltr; unicode-bidi: isolate; }
[dir='rtl'] .mh-teams { direction: ltr; }
/* RTL: Latin names (leagues, teams) keep their own direction so the ellipsis cuts the end, not the start */
[dir='rtl'] .ellip, [dir='rtl'] .grp-h a, [dir='rtl'] .grp-h b, [dir='rtl'] .up .m b, [dir='rtl'] .up .m span { unicode-bidi: plaintext; text-align: right; }
