:root { --bg:#0c1220; --bg2:#111827; --card:#141c2e; --card2:#1a2438; --border:#2a3650; --text:#eef2f7; --muted:#94a3b8; --ok:#34d399; --warn:#fbbf24; --err:#f87171; --accent:#3b82f6; --accent2:#60a5fa; --font:'Plus Jakarta Sans', system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin:0; font-family:var(--font); background: radial-gradient(ellipse 100% 70% at 50% -30%, #1a2744 0%, transparent 55%), var(--bg); color:var(--text); line-height:1.45; -webkit-font-smoothing:antialiased; min-height:100vh; }
a { color: var(--accent2); text-decoration: none; }
.lg-body { padding-bottom: 80px; }
.lg-wrap { max-width: 980px; margin: 0 auto; padding: 14px 14px 60px; }
.lg-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lg-top h1 { flex: 1; font-size: 1.25rem; margin: 0; letter-spacing: -0.02em; }
.lg-back { color: var(--muted); font-size: .9rem; }
.lg-muted { color: var(--muted); font-size: .88rem; }
.lg-ghost, .lg-btn { font: inherit; cursor: pointer; border-radius: 10px; padding: 9px 14px; font-weight: 600; font-size: .88rem; border: 1px solid var(--border); background: var(--card); color: var(--text); }
.lg-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.lg-btn.danger { color: var(--err); border-color: rgba(248,113,113,.4); }
.lg-btn.ok { background: var(--ok); border-color: var(--ok); color: #05261a; }
.lg-btn.sm { padding: 6px 10px; font-size: .8rem; }
.lg-btn:disabled { opacity: .5; cursor: default; }
.lg-ghost:hover, .lg-btn:hover:not(:disabled) { border-color: var(--accent2); }

.lg-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.lg-card h3 { margin: 0 0 10px; font-size: 1rem; }
.lg-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.lg-field { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: var(--muted); }
.lg-field input, .lg-field select, .lg-field textarea, .lg-in {
  font: inherit; color: var(--text); background: var(--bg2); border: 1px solid var(--border); border-radius: 9px; padding: 9px 10px; font-size: .92rem; width: 100%;
}
.lg-field textarea { min-height: 70px; resize: vertical; }
.lg-field input[type=color] { padding: 2px; height: 38px; }
.lg-check { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--text); }
.lg-check input { width: 18px; height: 18px; }
.lg-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lg-row.end { justify-content: flex-end; }
.lg-sp { flex: 1; }

.lg-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.lg-league { cursor: pointer; display: flex; gap: 12px; align-items: center; }
.lg-league:hover { border-color: var(--accent2); }
.lg-logo { width: 52px; height: 52px; border-radius: 12px; background: var(--bg2); object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); }
.lg-chip { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: var(--card2); color: var(--muted); text-transform: uppercase; }
.lg-chip.live { background: rgba(248,113,113,.15); color: var(--err); }
.lg-chip.ok { background: rgba(52,211,153,.15); color: var(--ok); }

.lg-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 4px 0 14px; padding-bottom: 4px; }
.lg-tab { font: inherit; white-space: nowrap; cursor: pointer; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted); font-weight: 600; font-size: .86rem; }
.lg-tab.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.lg-up { display: flex; align-items: center; gap: 10px; }
.lg-up img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--bg2); border: 1px solid var(--border); }
.lg-up.round img { border-radius: 50%; }
.lg-up.wide img { width: 120px; height: 56px; }
.lg-up .ph { width: 56px; height: 56px; border-radius: 12px; border: 1px dashed var(--border); display: grid; place-items: center; color: var(--muted); font-size: .7rem; }

.lg-team { border-left: 4px solid var(--accent); }
.lg-player { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; padding: 10px 0; border-top: 1px solid var(--border); align-items: center; }
.lg-player .fields { display: grid; gap: 6px; grid-template-columns: 1fr 1fr; }
.lg-player .fields .full { grid-column: 1 / -1; }

.lg-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.lg-table th, .lg-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.lg-table th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.lg-table td.n, .lg-table th.n { text-align: center; }

.lg-fx { display: grid; gap: 8px; }
.lg-fxhead { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lg-fxhead select, .lg-fxhead input { width: auto; min-width: 0; }

.lg-board { display: flex; align-items: center; gap: 14px; justify-content: space-between; text-align: center; }
.lg-board .t { flex: 1; font-weight: 700; }
.lg-board .big { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; }
.lg-board .pts { color: var(--ok); font-size: 1.4rem; font-weight: 700; }
.lg-pbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.lg-pcol { display: grid; gap: 12px; }
.lg-pbtn { font: inherit; cursor: pointer; border: 0; border-radius: 18px; min-height: 120px; padding: 12px; text-align: left; font-weight: 700; font-size: 1.15rem; color: #0b0b0d; display: flex; flex-direction: column; justify-content: space-between; }
.lg-pbtn small { opacity: .65; font-size: .8rem; }
.lg-pbtn:active { transform: scale(.98); }
.lg-log { max-height: 260px; overflow: auto; font-size: .84rem; }
.lg-log div { display: flex; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--border); }
.lg-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.lg-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.lg-thumbs .th { position: relative; }
.lg-thumbs img { width: 84px; height: 110px; object-fit: cover; border-radius: 10px; }
.lg-x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; line-height: 1; }
.lg-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--card2); border: 1px solid var(--border); padding: 10px 16px; border-radius: 12px; z-index: 50; font-size: .9rem; max-width: 90vw; }
.lg-toast.err { border-color: var(--err); color: #fecaca; }
.lg-toast.ok { border-color: var(--ok); }
.lg-hint { color: var(--muted); font-size: .8rem; margin: 6px 0 0; }
@media (max-width: 560px) { .lg-pbtn { min-height: 100px; font-size: 1rem; } .lg-player .fields { grid-template-columns: 1fr; } }

.lg-pwrap { position: relative; }
.lg-pwrap .lg-pbtn { width: 100%; }
.lg-pcam { position: absolute; right: 10px; top: 10px; font: inherit; border: 0; cursor: pointer; border-radius: 999px; background: rgba(0,0,0,.35); color: #fff; padding: 6px 10px; font-size: 1rem; }
.lg-pcam b { margin-left: 5px; font-size: .8rem; }

/* highlights */
.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.hl-card { background: #15171b; border: 1px solid #262a31; border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.hl-card.mine { border-color: #b0d235; }
.hl-thumb { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #0b0b0d; aspect-ratio: 16 / 9; cursor: pointer; display: block; width: 100%; }
.hl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; background: rgba(0,0,0,.28); opacity: .9; transition: background .15s; }
.hl-thumb:hover .hl-play { background: rgba(0,0,0,.5); }
.hl-dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; padding: 2px 7px; border-radius: 999px; }
.hl-in { position: absolute; left: 6px; top: 6px; background: #b0d235; color: #0b0b0d; font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.hl-meta { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.hl-meta small, .hl-boxbar small { color: #9aa0aa; font-size: 12px; display: block; }
.hl-tag { font-size: 12px; color: #ffb703; }
.hl-modal { position: fixed; inset: 0; background: rgba(0,0,0,.82); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.hl-box { background: #15171b; border-radius: 16px; max-width: 980px; width: 100%; overflow: hidden; }
.hl-box video { display: block; width: 100%; max-height: 70vh; background: #000; }
.hl-boxbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
