/* FULLTIME90 – main stylesheet */
:root {
  --bg-header: #0a1d26;
  --bg-surface: #0e2733;
  --bg-surface-2: #143442;
  --bg-page: #eef1f3;
  --bg-card: #ffffff;
  --bg-hover: #f5f7f8;
  --bg-group: #f0f3f5;
  --accent: #ff3d3d;
  --accent-2: #ff5a3c;
  --accent-soft: rgba(255, 61, 61, .1);
  --text: #1b2a33;
  --text-muted: #6b7b85;
  --text-on-dark: #ffffff;
  --muted-on-dark: #9fb3bd;
  --border: #dde3e7;
  --win: #1fa463;
  --draw: #f2a516;
  --loss: #e8173a;
  --star: #f5b400;
  --flash: #fff3c4;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(10, 29, 38, .06), 0 2px 8px rgba(10, 29, 38, .04);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-page: #0b151b; --bg-card: #12212a; --bg-hover: #182b36; --bg-group: #172934;
    --text: #e6eef2; --text-muted: #8ea2ad; --border: #223843; --flash: #4a3b12; --accent-soft: rgba(255, 61, 61, .16);
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg-page: #0b151b; --bg-card: #12212a; --bg-hover: #182b36; --bg-group: #172934;
  --text: #e6eef2; --text-muted: #8ea2ad; --border: #223843; --flash: #4a3b12; --accent-soft: rgba(255, 61, 61, .16);
  --shadow: none; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg-page); color: var(--text); font: 14px/1.45 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
body > .page, body > .admin-main { flex: 1 0 auto; width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--text-muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.txt-red { color: var(--loss); font-style: normal; }
code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-group); padding: 1px 5px; border-radius: 4px; }
.wrap { max-width: 1260px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.hdr { background: var(--bg-header); color: var(--text-on-dark); position: sticky; top: 0; z-index: 50; }
.hdr-in { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 36px; width: auto; display: block; }
.search { flex: 1; max-width: 420px; margin-left: 12px; }
.search input { width: 100%; height: 36px; border-radius: 18px; border: 1px solid transparent; background: var(--bg-surface-2); color: #fff; padding: 0 16px 0 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239fb3bd' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 14px center; }
.search input::placeholder { color: var(--muted-on-dark); }
.search input:focus { outline: none; border-color: var(--accent-2); }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted-on-dark); cursor: pointer; }
.icon-btn:hover { background: var(--bg-surface-2); color: #fff; }
.menu-btn { display: none; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 20px; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { background: var(--bg-surface-2); }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 800; font-size: 13px; }
.avatar-lg { width: 64px; height: 64px; font-size: 28px; }
.uname { font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu-pop { position: absolute; right: 0; top: calc(100% + 6px); background: var(--bg-card); color: var(--text); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(0,0,0,.25); min-width: 190px; padding: 6px; z-index: 60; }
.usermenu-pop a, .usermenu-pop button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 6px; border: 0; background: none; cursor: pointer; }
.usermenu-pop a:hover, .usermenu-pop button:hover { background: var(--bg-hover); color: var(--text); }
.subnav { background: var(--bg-surface); border-top: 1px solid rgba(255,255,255,.04); }
.subnav-in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; gap: 7px; padding: 0 16px; height: 42px; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; color: var(--muted-on-dark); border-bottom: 3px solid transparent; white-space: nowrap; }
.subnav a:hover { color: #fff; }
.subnav a.on { color: #fff; border-bottom-color: var(--accent); }
.badge-live { background: var(--accent); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 11px; line-height: 18px; min-width: 20px; text-align: center; }
.badge-live:empty, .badge-live[data-zero] { display: none; }
.notice-bar { background: var(--accent); color: #fff; font-weight: 600; padding: 8px 0; font-size: 13px; }
.admin-tag { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.muted-on-dark { color: var(--muted-on-dark); }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 18px; border-radius: 6px; border: 1px solid transparent; font-weight: 700; cursor: pointer; text-decoration: none; transition: filter .15s, background .15s; white-space: nowrap; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-accent { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; }
.btn-accent:hover { filter: brightness(1.08); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.hdr .btn-ghost { border-color: rgba(255,255,255,.2); color: #fff; }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); }
.hdr .btn-ghost:hover { background: var(--bg-surface-2); color: #fff; }
.btn-danger { background: var(--loss); color: #fff; }
.linklike { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.linklike:hover { color: var(--accent); }
.form { display: grid; gap: 14px; }
.form-wide { max-width: 760px; }
.form label { display: grid; gap: 5px; font-weight: 600; font-size: 13px; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=number], .form input[type=search], .form select, .form textarea,
.toolbar input, .toolbar select, .search-big input, .row-form select, .row-form input, .inline-form input {
  height: 40px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-card); padding: 0 12px; font-weight: 400; }
.form textarea { height: auto; padding: 10px 12px; font: 12px ui-monospace, monospace; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-soft); }
.form small { font-weight: 400; }
.check { display: flex !important; grid-auto-flow: column; align-items: flex-start; gap: 9px !important; font-weight: 400 !important; }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.check a { color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.pw-meter { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--loss); transition: width .2s, background .2s; }

/* ---------- layout ---------- */
.page { display: grid; grid-template-columns: 230px minmax(0, 1fr) 290px; gap: 16px; padding-top: 16px; padding-bottom: 32px; align-items: start; }
.sidebar, .rightcol { position: sticky; top: 118px; max-height: calc(100vh - 130px); overflow-y: auto; scrollbar-width: thin; }
.main { min-width: 0; outline: none; }
.panel, .card { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { overflow: hidden; }
.card { padding: 14px 16px; margin-bottom: 16px; }
.card-h, .side-h { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin: 0 0 8px; font-weight: 700; }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; flex-wrap: wrap; }
.h1 { font-size: 20px; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; margin: 22px 0 10px; color: var(--text); }
.h3 { font-size: 15px; font-weight: 700; margin: 18px 0 6px; display: flex; align-items: center; gap: 8px; }
.h4 { font-size: 12px; text-transform: uppercase; color: var(--text-muted); margin: 14px 0 6px; }
.tab-body { padding: 4px 16px 20px; }
.tab-body > .h2:first-child, .split > div > .h2:first-child, .split > section > .h2:first-child { margin-top: 12px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.split .m-ht { display: none; }
.split .m-link { grid-template-columns: 50px minmax(0, 1fr) 24px; }
.more { display: inline-block; margin: 8px 0 4px; color: var(--accent); font-weight: 600; font-size: 13px; }

/* sidebar */
.side-box { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 8px 10px; margin-bottom: 12px; }
.side-box .side-h { padding: 0 8px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 13px; }
.side-list a:hover { background: var(--bg-hover); color: var(--text); }
.side-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-empty { font-size: 12px; color: var(--text-muted); margin: 2px 8px 4px; }
.star-ico { color: var(--star); }
.country summary { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 500; }
.country summary::-webkit-details-marker { display: none; }
.country summary::after { content: "›"; margin-left: auto; color: var(--text-muted); transition: transform .15s; }
.country[open] summary::after { transform: rotate(90deg); }
.country summary:hover { background: var(--bg-hover); }
.country .side-list a { padding-left: 32px; }
.side-more { display: block; padding: 8px 8px 2px; font-size: 12px; font-weight: 700; color: var(--accent); }
.logo, .flag { object-fit: contain; flex-shrink: 0; vertical-align: middle; }
.flag { border-radius: 2px; }
.ph { display: inline-block; background: var(--bg-group); border-radius: 50%; flex-shrink: 0; }
.photo { border-radius: 50%; object-fit: cover; background: var(--bg-group); flex-shrink: 0; }
.photo-lg { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; background: var(--bg-group); }
.promo { display: flex; gap: 12px; align-items: flex-start; }
.promo p { margin: 4px 0 10px; }
.ad-slot { margin-bottom: 16px; text-align: center; min-height: 50px; }

/* ---------- date nav & filters ---------- */
.datenav { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.dn-arrow { display: grid; place-items: center; width: 34px; height: 34px; font-size: 22px; line-height: 1; color: var(--text-muted); }
.dn-arrow:hover { background: var(--bg-hover); color: var(--accent); }
.dn-select select { height: 34px; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); background: var(--bg-card); padding: 0 10px; font-weight: 700; cursor: pointer; }
.filters { display: flex; gap: 6px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; }
.filters button { height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--border); background: var(--bg-card); font-size: 12px; font-weight: 700; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.filters button span { color: var(--text-muted); font-weight: 600; margin-left: 3px; }
.filters button.on { background: var(--bg-header); border-color: var(--bg-header); color: #fff; }
.filters button.on span { color: var(--muted-on-dark); }
.filters button[data-filter=live].on { background: var(--accent); border-color: var(--accent); }
.filters button[data-filter=live].on span { color: #fff; }

/* ---------- league groups & match rows ---------- */
.lg { border-top: 1px solid var(--border); }
.tab-body .lg { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.lg-h { display: flex; align-items: center; gap: 8px; background: var(--bg-group); padding: 7px 12px 7px 6px; min-height: 36px; }
.lg-h-plain { padding-left: 12px; }
.lg-name { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-country { color: var(--text-muted); font-weight: 600; font-size: 11px; letter-spacing: .02em; }
.lg-table { margin-left: auto; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); flex-shrink: 0; }
.lg-table:hover { color: var(--accent); }
.star { flex-shrink: 0; width: 26px; height: 26px; border: 0; background: none; color: var(--border); font-size: 16px; line-height: 1; cursor: pointer; border-radius: 50%; padding: 0; transition: color .15s, transform .15s; }
.star:hover { color: var(--star); }
.star.on { color: var(--star); }
.star:active { transform: scale(.85); }
.star-lg { font-size: 26px; width: 40px; height: 40px; margin-left: auto; }
.star-sm { font-size: 14px; width: 22px; height: 22px; }
.m-row { display: flex; align-items: center; border-top: 1px solid var(--border); min-height: 50px; padding-left: 6px; transition: background .3s; }
.lg-h + .m-row, .lg > .m-row:first-child { border-top: 0; }
.m-row:hover { background: var(--bg-hover); }
.m-row.hl { background: var(--accent-soft); }
.m-row.flash { animation: goal 2.4s ease-out; }
@keyframes goal { 0%, 30% { background: var(--flash); } 100% { background: transparent; } }
.m-link { flex: 1; display: grid; grid-template-columns: 60px minmax(0, 1fr) 28px 34px; align-items: center; gap: 8px; padding: 6px 12px 6px 4px; color: var(--text); min-width: 0; }
.m-link:hover { color: var(--text); }
.m-time { display: grid; text-align: center; font-size: 12px; color: var(--text-muted); line-height: 1.25; }
.m-date { font-size: 11px; }
.s-live .m-status { color: var(--accent); font-weight: 800; }
.s-live .m-status::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 4px; vertical-align: 2px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
.s-other .m-status { color: var(--loss); font-size: 11px; }
.m-teams { display: grid; gap: 3px; min-width: 0; }
.m-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-team.win .tname { font-weight: 700; }
.m-score { display: grid; gap: 3px; text-align: center; font-weight: 800; }
.s-live .m-score { color: var(--accent); }
.s-scheduled .m-score { color: var(--text-muted); font-weight: 400; }
.m-ht { display: grid; gap: 3px; font-size: 11px; color: var(--text-muted); text-align: center; }
.matches .lg:first-child { border-top: 0; }
.empty { text-align: center; color: var(--text-muted); padding: 32px 16px; margin: 0; }
.empty svg { color: var(--text-muted); display: block; margin: 0 auto 10px; }
.seo-text { margin-top: 16px; padding: 4px 6px; color: var(--text-muted); font-size: 12.5px; }
.seo-text h2 { font-size: 14px; color: var(--text); margin: 0 0 6px; }

/* ---------- hero & tabs ---------- */
.hero { display: flex; align-items: center; gap: 16px; padding: 18px 16px 14px; }
.hero-txt { min-width: 0; display: grid; gap: 4px; }
.crumbs { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; text-transform: uppercase; font-weight: 600; }
.season-form select { height: 30px; border: 1px solid var(--border); border-radius: 6px; padding: 0 8px; background: var(--bg-card); font-weight: 600; font-size: 13px; width: max-content; }
.tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 11px 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); border-bottom: 3px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- match header ---------- */
.mh { background: linear-gradient(180deg, var(--bg-header), var(--bg-surface)); color: #fff; padding: 12px 16px 16px; }
.mh-top { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.mh-top .muted { color: var(--muted-on-dark); }
.mh-top .star { margin-left: auto; color: rgba(255,255,255,.3); }
.mh-top .star.on { color: var(--star); }
.mh-league { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.mh-league:hover { color: var(--accent-2); }
.mh-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 12px; }
.mh-team { display: grid; justify-items: center; gap: 6px; text-align: center; }
.mh-team .logo-xl { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 50%; padding: 8px; }
.mh-tname { font-weight: 800; font-size: 16px; }
.mh-tname:hover { color: var(--accent-2); }
.mh-team .star { color: rgba(255,255,255,.3); }
.mh-team .star.on { color: var(--star); }
.mh-center { text-align: center; display: grid; gap: 4px; min-width: 120px; }
.mh-date { font-size: 12px; color: var(--muted-on-dark); }
.mh-score { font-size: 44px; font-weight: 800; line-height: 1.05; display: flex; justify-content: center; gap: 10px; font-variant-numeric: tabular-nums; }
.mh-score i { font-style: normal; color: var(--muted-on-dark); }
.mh-score.s-live { color: var(--accent-2); }
.mh-ko { font-size: 34px; }
.mh-status { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted-on-dark); }
.mh-status.s-live { color: var(--accent-2); }
.mh-center .muted { color: var(--muted-on-dark); }
.mh-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--muted-on-dark); margin-top: 12px; }

/* events */
.ev-h { margin: 16px 0 4px; font-size: 12px; text-transform: uppercase; color: var(--text-muted); background: var(--bg-group); padding: 6px 10px; border-radius: 4px; }
.events { list-style: none; margin: 0; padding: 0; }
.ev { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--border); }
.ev:last-child { border-bottom: 0; }
.ev-away { flex-direction: row-reverse; text-align: right; }
.ev-min { width: 42px; font-weight: 700; color: var(--text-muted); font-size: 12px; text-align: center; flex-shrink: 0; }
.ev-txt { min-width: 0; }
.ev-txt .in { color: var(--win); }
.ev-txt .out { color: var(--text-muted); text-decoration: line-through; text-decoration-color: rgba(127,127,127,.5); }
.ev-ico { flex-shrink: 0; width: 20px; height: 20px; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.ev-goal, .ev-og, .ev-miss { border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 30%, #1b2a33 31% 40%, #fff 41%); border: 2px solid #1b2a33; }
.ev-og { border-color: var(--loss); }
.ev-miss { opacity: .45; }
.ev-yellow, .ev-red, .ev-red2 { width: 12px; height: 16px; border-radius: 2px; background: #f7c600; margin: 0 4px; }
.ev-red { background: var(--loss); }
.ev-red2 { background: linear-gradient(135deg, #f7c600 50%, var(--loss) 50%); }
.ev-sub { color: var(--win); }
.ev-var { font-size: 9px; background: var(--bg-header); color: #fff; border-radius: 3px; width: 28px; }

/* stats */
.stats { display: grid; gap: 14px; max-width: 640px; margin: 14px auto 0; }
.stat-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 5px; }
.stat-top span { color: var(--text-muted); font-size: 12px; text-transform: uppercase; font-weight: 600; text-align: center; }
.stat-top b { min-width: 40px; }
.stat-top b:last-child { text-align: right; }
.stat-top b.lead { color: var(--accent); }
.stat-bar { display: flex; gap: 4px; height: 8px; }
.stat-bar i { display: block; border-radius: 4px; background: var(--border); }
.stat-bar i.h { margin-left: 0; }
.stat-bar i.lead { background: var(--accent); }
.stat-bar i.a.lead { background: var(--bg-surface); }
:root[data-theme="dark"] .stat-bar i.a.lead { background: #4fa3c7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stat-bar i.a.lead { background: #4fa3c7; } }

/* lineups */
.formations { display: flex; justify-content: space-between; font-weight: 700; margin: 14px 0 8px; }
.formations span { display: flex; align-items: center; gap: 6px; }
.pitch { position: relative; aspect-ratio: 68 / 100; max-width: 460px; margin: 0 auto; border-radius: 8px; overflow: hidden;
  background: repeating-linear-gradient(180deg, #2f8a4a 0 10%, #2a7f44 10% 20%); }
.pitch-lines i { position: absolute; border: 2px solid rgba(255,255,255,.55); }
.pitch-lines .mid { left: 0; right: 0; top: 50%; border-width: 2px 0 0; }
.pitch-lines .circle { left: 50%; top: 50%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; }
.pitch-lines .box { left: 22%; right: 22%; height: 15%; }
.pitch-lines .b-top { top: -2px; border-top: 0; }
.pitch-lines .b-bot { bottom: -2px; border-bottom: 0; }
.pl { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; width: 70px; color: #fff; text-align: center; }
.pl:hover { color: #fff; }
.pl:hover .pl-num { transform: scale(1.1); }
.pl-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .15s; position: relative; }
.pl-home .pl-num { background: var(--accent); }
.pl-away .pl-num { background: var(--bg-header); border: 2px solid #fff; }
.pl-name { font-size: 11px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.7); line-height: 1.1; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-rt { position: absolute; margin: -6px 0 0 30px; background: #f2a516; color: #fff; font-size: 9px; font-weight: 800; border-radius: 3px; padding: 0 3px; z-index: 1; }
.pl-rt.good { background: var(--win); }
.pl-rt.bad { background: var(--loss); }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; align-items: center; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--border); }
.plist .num { width: 24px; text-align: center; color: var(--text-muted); font-weight: 700; font-size: 12px; }

/* h2h & prediction */
.h2h-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; text-align: center; }
.h2h-sum div { background: var(--bg-group); border-radius: 6px; padding: 12px 6px; display: grid; gap: 2px; }
.h2h-sum b { font-size: 26px; }
.h2h-sum span { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pred { max-width: 640px; margin: 14px auto 0; }
.pred-bars { display: grid; gap: 10px; }
.pred-row { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.pred-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pred-row b { text-align: right; }
.bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 4px; }
.bar i.low { background: var(--loss); }
.pred-advice { background: var(--bg-group); padding: 10px 12px; border-radius: 6px; margin: 16px 0; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; margin-bottom: 8px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { font-size: 11px; text-transform: uppercase; color: var(--text-muted); font-weight: 700; padding: 8px 6px; border-bottom: 1px solid var(--border); background: var(--bg-group); }
.tbl td { padding: 7px 6px; border-bottom: 1px solid var(--border); text-align: center; font-variant-numeric: tabular-nums; }
.tbl .l { text-align: left; }
.tbl .c { text-align: center; width: 34px; }
.tbl tr.hl td { background: var(--accent-soft); font-weight: 600; }
.tbl tbody tr:hover td { background: var(--bg-hover); }
.tbl-plain td { border-bottom: 1px solid var(--border); }
.tbl-group { font-size: 13px; margin: 14px 0 6px; }
.team-cell { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.team-cell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank { display: inline-grid; place-items: center; width: 24px; height: 22px; border-radius: 4px; font-weight: 700; font-size: 12px; }
.z-ucl { background: #1a5fd0; color: #fff; }
.z-uel { background: #e8761b; color: #fff; }
.z-uecl { background: #18a38c; color: #fff; }
.z-pro { background: #6b4fd3; color: #fff; }
.z-rel { background: var(--loss); color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11px; color: var(--text-muted); margin: 8px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.form { gap: 14px; }
.standings .form, span.form { display: inline-flex; gap: 3px; }
span.form i { width: 18px; height: 18px; border-radius: 3px; display: inline-grid; place-items: center; font-style: normal; font-size: 10px; font-weight: 800; color: #fff; }
.f-W { background: var(--win); } .f-D { background: var(--draw); } .f-L { background: var(--loss); }
.bar-cell { width: 50%; }
.row-err td { background: rgba(232, 23, 58, .06); }
.row-dim td { opacity: .6; }

/* ---------- misc components ---------- */
.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; font-size: 13px; border-left: 4px solid; }
.panel .alert { margin: 0 16px 12px; }
.alert a { text-decoration: underline; }
.alert-success { background: rgba(31, 164, 99, .1); border-color: var(--win); }
.alert-error { background: rgba(232, 23, 58, .08); border-color: var(--loss); }
.alert-info { background: rgba(26, 95, 208, .08); border-color: #1a5fd0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.tab-body .chips, .split .chips { padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 16px; padding: 4px 12px 4px 6px; font-size: 13px; font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.kpis > div { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; display: grid; gap: 4px; }
.kpis b { font-size: 24px; font-weight: 800; }
.kpis b small { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.kpis span { font-size: 12px; color: var(--text-muted); }
.squad { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.squad-card { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; }
.squad-card span { display: grid; min-width: 0; }
.squad-card b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.squad-card:hover { border-color: var(--accent); color: var(--text); }
.result-list { list-style: none; margin: 0; padding: 0 0 8px; }
.result-list a { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--border); }
.result-list span { display: grid; }
.search-big { display: flex; gap: 8px; padding: 0 16px 8px; }
.search-big input { flex: 1; }
.panel > .h2, .panel > .result-list { margin-left: 16px; margin-right: 16px; }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; padding: 4px 16px 18px; }
.country-card { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.country-card h2 { font-size: 14px; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.country-card ul { list-style: none; margin: 0; padding: 0; }
.country-card a { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.auth { max-width: 460px; margin: 0 auto; padding: 24px 24px 18px; }
.auth .h1 { margin-bottom: 6px; }
.auth .form { margin-top: 16px; }
.auth-links { text-align: center; font-size: 13px; color: var(--text-muted); margin: 16px 0 0; }
.auth-links a { color: var(--accent); font-weight: 600; }
.resend { text-align: center; margin-top: 12px; }
.danger { margin-top: 22px; border: 1px solid rgba(232, 23, 58, .35); border-radius: 8px; padding: 10px 14px; }
.danger summary { cursor: pointer; font-weight: 700; color: var(--loss); }
.prose { padding: 22px 24px; max-width: 820px; }
.prose h2 { font-size: 16px; margin: 22px 0 6px; }
.prose p, .prose li { line-height: 1.65; }
.prose a { color: var(--accent); }
.error-page { text-align: center; padding: 48px 20px; display: grid; gap: 12px; justify-items: center; }
.err-code { font-size: 72px; font-weight: 900; font-style: italic; background: linear-gradient(135deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--bg-group); color: var(--text-muted); }
.pill-accent { background: var(--accent-soft); color: var(--accent); }
.pill-red { background: rgba(232, 23, 58, .12); color: var(--loss); }
.pill-green { background: rgba(31, 164, 99, .12); color: var(--win); }

/* footer, cookie, toast */
.ftr { background: var(--bg-header); color: var(--muted-on-dark); padding: 28px 0; margin-top: 8px; }
.ftr-in { display: grid; grid-template-columns: 1fr auto; gap: 12px 24px; align-items: start; }
.ftr .muted { color: var(--muted-on-dark); }
.ftr-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.ftr-links a:hover, .ftr-links button:hover { color: #fff; }
.ftr-in > p { grid-column: 1 / -1; margin: 0; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--bg-card); color: var(--text); border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.3); padding: 14px 16px; z-index: 80; display: grid; gap: 10px; font-size: 13px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: var(--accent); }
.cookie-btns { display: flex; justify-content: flex-end; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--bg-header); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; z-index: 90; box-shadow: 0 6px 24px rgba(0,0,0,.3); }

/* admin */
.admin-main { padding-top: 18px; padding-bottom: 40px; }
.admin-main > .h1 { margin-bottom: 10px; }
.admin-main .card { padding: 14px 16px; }
.admin-main .card .h2:first-child { margin-top: 0; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.toolbar input { min-width: 260px; flex: 1; max-width: 420px; }
.row-form, .inline-form { display: inline-flex; align-items: center; gap: 8px; }
.row-form select, .row-form input, .inline-form input { height: 32px; }
.num-input { width: 74px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--border); border-radius: 11px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--win); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .page { grid-template-columns: 220px minmax(0, 1fr); }
  .rightcol { display: none; }
}
@media (max-width: 860px) {
  .page { grid-template-columns: minmax(0, 1fr); padding-top: 10px; }
  .menu-btn { display: inline-grid; }
  .sidebar { position: fixed; top: 102px; left: 0; bottom: 0; width: 290px; max-height: none; z-index: 45; background: var(--bg-page); padding: 12px; box-shadow: 4px 0 24px rgba(0,0,0,.25); transform: translateX(-105%); transition: transform .22s ease; }
  body.menu-open .sidebar { transform: none; }
  body.menu-open::after { content: ""; position: fixed; inset: 102px 0 0; background: rgba(0,0,0,.35); z-index: 44; }
  .search { display: none; }
  .split { grid-template-columns: 1fr; gap: 0; }
  .ftr-in { grid-template-columns: 1fr; }
  .hdr-in { gap: 8px; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 10px; padding-right: 10px; }
  .brand img { height: 30px; }
  .hide-sm { display: none !important; }
  .uname { display: none; }
  .m-link { grid-template-columns: 50px minmax(0, 1fr) 24px 30px; gap: 6px; padding-right: 8px; }
  .mh-score { font-size: 36px; }
  .mh-team .logo-xl { width: 56px; height: 56px; }
  .mh-tname { font-size: 14px; }
  .hero { padding: 14px 12px 10px; }
  .h1 { font-size: 18px; }
  .panel-top { padding: 12px 12px 8px; }
  .filters, .tab-body { padding-left: 12px; padding-right: 12px; }
  .auth { padding: 18px 16px; }
}
@media (max-width: 420px) {
  .hide-xs { display: none !important; }
  .m-ht { display: none; }
  .m-link { grid-template-columns: 46px minmax(0, 1fr) 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* logo sizing (keeps the full wordmark visible) */
.brand img { height: 36px; width: auto; max-width: none; }
.ftr-in img { height: 32px; width: auto; max-width: none; display: block; }
@media (max-width: 560px) { .brand img { height: 30px; } }
@media (max-width: 360px) { .brand img { height: 26px; } }

/* ===================== v3 features ===================== */
/* bell */
.bell.on { color: var(--star); }
.bell.on:hover { color: var(--star); }

/* pills (sub-tabs) */
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.pills a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid var(--border); font-size: 12px; font-weight: 700; }
.pills a.on { background: var(--bg-header); border-color: var(--bg-header); color: #fff; }
.more-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* Croatian strip */
.strip { margin-bottom: 14px; }
.strip-in { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.sc { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 12px; display: grid; gap: 6px; align-content: start; border-top: 3px solid var(--bg-surface); min-width: 0; }
.sc-live { border-top-color: var(--accent); }
.sc-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sc-team b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.sc-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 12px; color: var(--text-muted); }
.sc-line:hover { color: var(--accent); }
.sc-lbl { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.sc-when { font-weight: 700; color: var(--text); }
.sc-opp { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-badge { background: var(--accent); color: #fff; font-weight: 800; font-size: 10px; border-radius: 3px; padding: 1px 5px; }
.sc-score { font-weight: 800; color: var(--accent); font-size: 14px; }
.sc-last { border-top: 1px dashed var(--border); padding-top: 6px; flex-wrap: nowrap; }
.sc-last span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-res { width: 18px; height: 18px; border-radius: 3px; display: inline-grid; place-items: center; color: #fff; font-weight: 800; font-size: 10px; flex-shrink: 0; }
.r-W { background: var(--win); } .r-D { background: var(--draw); } .r-L { background: var(--loss); }

/* match extras */
.extras { display: grid; gap: 12px; margin-top: 14px; }
.xbox { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.xbox-h { margin: 0 0 10px; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.xbox-h a { color: var(--accent); }
.pred-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pred-form input, .pr-inputs input { width: 48px; height: 38px; text-align: center; font-weight: 800; font-size: 16px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-card); -moz-appearance: textfield; }
.pred-form input::-webkit-inner-spin-button, .pr-inputs input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pred-form input:focus, .pr-inputs input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-soft); }
.pf-team { font-weight: 600; font-size: 13px; }
.pts { display: inline-block; font-weight: 800; font-size: 12px; padding: 1px 7px; border-radius: 10px; background: var(--bg-group); color: var(--text-muted); }
.pts-3 { background: rgba(31, 164, 99, .15); color: var(--win); }
.pts-1 { background: rgba(242, 165, 22, .15); color: #b97a00; }
.motm-results { display: grid; gap: 7px; margin-bottom: 12px; }
.mr { display: grid; grid-template-columns: minmax(110px, 1fr) 2fr 42px; gap: 10px; align-items: center; font-size: 13px; }
.mr-top .mr-name { font-weight: 800; }
.mr b { text-align: right; }
.motm-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.motm-teams fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.motm-teams legend { font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.motm-opt { display: flex; align-items: center; gap: 7px; padding: 4px 6px; border-radius: 5px; font-size: 13px; cursor: pointer; }
.motm-opt:hover { background: var(--bg-hover); }
.motm-opt input { accent-color: var(--accent); }
.ref-kpis { display: flex; gap: 22px; flex-wrap: wrap; }
.ref-kpis div { display: grid; }
.ref-kpis b { font-size: 20px; }
.ref-kpis span { font-size: 12px; color: var(--text-muted); }
.mh-meta .ref-link { text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); }
.mh-meta .ref-link:hover { color: #fff; }
.ref-row { display: flex; align-items: center; border-top: 1px solid var(--border); }
.ref-row:first-child { border-top: 0; }
.ref-row .m-row { flex: 1; border-top: 0; min-width: 0; }
.ref-cards { display: flex; align-items: center; gap: 3px; padding-right: 12px; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.ref-cards .ev-ico { width: 10px; height: 14px; margin: 0 1px 0 6px; }

/* comments */
.comments { margin-top: 14px; }
.c-form { display: grid; gap: 6px; margin-bottom: 14px; }
.c-form textarea { width: 100%; resize: vertical; min-height: 64px; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: var(--bg-card); }
.c-form textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-soft); }
.c-form-row { display: flex; justify-content: space-between; align-items: center; }
.c-error { color: var(--loss); font-size: 13px; margin: 0; }
.c-list { list-style: none; margin: 0; padding: 0; }
.c-item { padding: 10px 2px; border-bottom: 1px solid var(--border); }
.c-item.c-mine { background: var(--accent-soft); padding-left: 8px; padding-right: 8px; border-radius: 6px; }
.c-item.c-hidden { opacity: .45; }
.c-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.c-actions { margin-left: auto; display: flex; gap: 10px; }
.c-body { margin: 4px 0 0 34px; white-space: pre-wrap; word-break: break-word; }
.avatar-sm { width: 24px; height: 24px; font-size: 11px; }
.c-rules { margin-top: 14px; }

/* predictions */
.rules { background: var(--bg-group); border-radius: 8px; padding: 10px 14px; font-size: 13px; line-height: 1.7; margin-top: 12px; }
.pred-row-g { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--border); }
.pred-row-g:first-child { border-top: 0; }
.pr-time { display: grid; justify-items: center; font-size: 12px; color: var(--text-muted); font-weight: 700; }
.pr-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; font-size: 13px; }
.pr-team.r { justify-content: flex-end; text-align: right; }
.pr-inputs { display: flex; align-items: center; gap: 6px; font-weight: 800; }
.pr-inputs input:disabled { opacity: .5; }
.pred-save { position: sticky; bottom: 0; background: var(--bg-card); padding: 12px 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--border); margin-top: 10px; }
.mini-board { list-style: none; margin: 0; padding: 0; }
.mini-board li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.mini-board li:last-child { border-bottom: 0; }
.mb-rank { width: 20px; height: 20px; border-radius: 50%; background: var(--bg-group); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.mini-board li:first-child .mb-rank { background: var(--star); color: #fff; }
.mb-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .avatar-sm { vertical-align: middle; }

/* compare */
.cmp-form { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 10px; align-items: center; margin: 14px 0; }
.cmp-vs { font-weight: 800; color: var(--text-muted); }
.ac { position: relative; }
.ac input[type=search] { width: 100%; height: 40px; border: 1px solid var(--border); border-radius: 6px; padding: 0 12px; background: var(--bg-card); }
.ac input[type=search]:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-soft); }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; list-style: none; margin: 0; padding: 4px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.18); max-height: 320px; overflow-y: auto; }
.ac-list li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.ac-list li small { margin-left: auto; color: var(--text-muted); font-size: 11px; }
.ac-list li img { border-radius: 50%; object-fit: contain; }
.ac-list li:hover, .ac-list li.on { background: var(--bg-hover); }
.ac-list .ac-none { color: var(--text-muted); cursor: default; }
.cmp-head { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 8px; }
.cmp-side { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 12px; border-radius: 8px; background: var(--bg-group); }
.cmp-side .logo-lg { width: 64px; height: 64px; object-fit: contain; }
.cmp-side .photo-lg { width: 64px; height: 64px; }
.cmp-side b { font-size: 16px; }
.cmp-table { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.cmp-row { display: grid; grid-template-columns: 1fr 1.3fr 1fr; align-items: center; padding: 9px 14px; border-top: 1px solid var(--border); font-size: 14px; }
.cmp-row:first-child { border-top: 0; }
.cmp-l { text-align: center; color: var(--text-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.cmp-v { font-weight: 600; }
.cmp-v.r { text-align: right; }
.cmp-v.best { color: var(--win); font-weight: 800; }
.cmp-v.best::after { content: " ▲"; font-size: 10px; }
.cmp-v.r.best::after { content: ""; }
.cmp-v.r.best::before { content: "▲ "; font-size: 10px; }
.tbl-kv { max-width: 520px; }
.tbl-kv td:first-child { color: var(--text-muted); width: 55%; }

/* team extras */
.tr-dir { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 3px; letter-spacing: .03em; }
.tr-in { background: rgba(31, 164, 99, .15); color: var(--win); }
.tr-out { background: rgba(232, 23, 58, .12); color: var(--loss); }
.injuries li { align-items: flex-start; }

/* other sports */
.m-link-sport { grid-template-columns: 60px minmax(0, 1fr) 36px; }
.periods td, .periods th { min-width: 42px; }
.periods .lead-cell { font-weight: 800; color: var(--accent); }

@media (max-width: 860px) {
  .motm-teams { grid-template-columns: 1fr; }
  .cmp-form { grid-template-columns: 1fr; }
  .cmp-vs { text-align: center; }
}
@media (max-width: 560px) {
  .pred-row-g { grid-template-columns: 40px minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; padding: 8px 6px; }
  .pr-team img { display: none; }
  .pred-form input, .pr-inputs input { width: 40px; height: 36px; }
  .mr { grid-template-columns: minmax(90px, 1fr) 1.2fr 38px; }
  .cmp-row { padding: 8px 10px; font-size: 13px; }
  .strip-in { grid-auto-columns: 160px; }
  .m-link-sport { grid-template-columns: 50px minmax(0, 1fr) 32px; }
}
@media (max-width: 560px) {
  .hdr-actions { gap: 2px; }
  .hdr-actions [data-theme-toggle], .hdr-actions > a.icon-btn { display: none; }
  .s-live .m-status::before { display: none; }
  .m-time { font-size: 11px; }
}
@media (max-width: 380px) {
  .hdr-actions .btn-sm { padding: 0 9px; font-size: 12px; }
}

/* ===================== v4 statistics ===================== */
.rt { display: inline-block; min-width: 34px; padding: 1px 6px; border-radius: 4px; background: #f2a516; color: #fff; font-weight: 800; font-size: 12px; text-align: center; }
.rt-hi { background: var(--win); }
.rt-lo { background: var(--loss); }
.card-mini { display: inline-block; width: 9px !important; height: 12px !important; margin: 0 2px !important; vertical-align: -1px; }
.ps td, .ps th { white-space: nowrap; }
.ps td.l { min-width: 150px; }
.ps-gk td { background: var(--bg-group); border-bottom: 1px solid var(--border); padding-top: 3px; padding-bottom: 3px; }
.ps-legend { margin: 12px 0 0; }

.outcome-bar { display: flex; height: 28px; border-radius: 6px; overflow: hidden; font-size: 12px; font-weight: 800; color: #fff; }
.outcome-bar i { display: grid; place-items: center; font-style: normal; min-width: 0; overflow: hidden; }
.ob-h { background: var(--win); } .ob-d { background: var(--draw); } .ob-a { background: #1a5fd0; }
.legend i.ob-h, .legend i.ob-d, .legend i.ob-a, .legend i.mc-for, .legend i.mc-ag { width: 10px; height: 10px; }
.stats-left { margin-left: 0; }
.stats-left .stat-top span { text-transform: none; font-size: 13px; color: var(--text); text-align: left; }
.chip-score { padding: 5px 12px; font-size: 14px; }

.coach { display: flex; gap: 14px; align-items: flex-start; }
.coach .photo { width: 56px; height: 56px; }
.career { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; }
.career li { display: flex; align-items: center; gap: 6px; }

.minute-chart { display: flex; gap: 8px; align-items: flex-end; height: 170px; padding: 8px 4px 0; border-bottom: 1px solid var(--border); }
.mc-col { flex: 1; display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 4px; text-align: center; }
.mc-col small { color: var(--text-muted); font-size: 10px; }
.mc-bars { display: flex; gap: 3px; align-items: flex-end; justify-content: center; height: 100%; }
.mc-bars i { position: relative; width: 42%; max-width: 26px; border-radius: 3px 3px 0 0; min-height: 2px; }
.mc-bars i span { position: absolute; top: -16px; left: 0; right: 0; font-size: 10px; font-style: normal; font-weight: 700; color: var(--text-muted); }
.mc-for { background: var(--win); }
.mc-ag { background: var(--loss); }
.card-mins { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.card-mins div { border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; display: grid; gap: 2px; font-size: 13px; font-weight: 700; }
.card-mins small { color: var(--text-muted); font-weight: 600; }

.pstat { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.pstat-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 8px 12px; background: var(--bg-group); }
.pstat-h .rt { margin-left: auto; }
.pstat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.pstat-grid div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 12px; border-top: 1px solid var(--border); font-size: 13px; }
.pstat-grid span { color: var(--text-muted); }

.timeline { list-style: none; margin: 14px 0 0; padding: 0 0 0 4px; border-left: 2px solid var(--border); }
.timeline li { position: relative; display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 8px 0 8px 14px; align-items: center; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: translateY(-50%); }
.tl-date { font-size: 12px; color: var(--text-muted); font-weight: 700; }
.tl-body { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
a.mh-team { color: #fff; }
a.mh-team:hover .mh-tname { color: var(--accent-2); }
@media (max-width: 560px) {
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .minute-chart { gap: 4px; }
  .pstat-grid { grid-template-columns: 1fr; }
}
