/* 72 Games på 72 Timer – PowerStats colours (from powerLigaStats theme.css) */
:root {
  --bg: #1a1a1a;
  --bg-row: #242424;
  --bg-row2: #1f1f1f;
  --card: #2d2d2d;
  --head: #333333;
  --border: #404040;
  --border-strong: #555555;
  --text: #e2e8f0;
  --text-2: #c4cbd8;
  --muted: #9aa4b8;
  --dim: #8a8f99;
  --orange: #f15c25;
  --orange-hi: #ff9933;
  --orange-soft: #ffb366;
  --won: #4caf50;
  --lost: #ef5350;
  --lost-text: #ff7b7b;
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: Consolas, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.5; }
a { color: var(--orange); }
a:hover { color: var(--orange-soft); }
button { font: inherit; }
img, svg { display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.display { font-family: var(--display); font-weight: 700; text-transform: uppercase; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-head { border-bottom: 1px solid var(--head); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.clock-badge { font-family: var(--mono); font-weight: 600; font-size: 15px; padding: 4px 8px; border-radius: 4px; background: var(--orange); color: var(--bg); }
.brand-name { font-weight: 700; font-size: 15px; }
.brand-sub { color: var(--muted); font-weight: 500; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--text-2); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--orange-soft); }

/* hero */
.hero { display: flex; flex-wrap: wrap; gap: 32px 40px; align-items: flex-end; padding-top: 48px; padding-bottom: 28px; }
.hero-main { flex: 999 1 480px; min-width: 0; }
.kicker { margin: 0 0 12px; font-family: var(--mono); font-size: 14px; color: var(--orange); }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(60px, 11vw, 150px); line-height: .9; text-transform: uppercase; }
.hero h1 span { color: var(--orange); }
.hero h1 span.h1a { color: inherit; }
.lang-btn { min-height: 34px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 6px; background: transparent; color: var(--text); font-weight: 700; font-size: 13px; letter-spacing: .06em; cursor: pointer; }
.lang-btn:hover { border-color: var(--orange); color: var(--orange-soft); }
.nav { align-items: center; }
.lead { margin: 18px 0 0; max-width: 560px; font-size: 18px; color: var(--text-2); }
.hero-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.player-card { padding: 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); text-decoration: none; color: var(--text); min-width: 0; }
.player-card:hover { border-color: var(--orange); color: var(--text); }
.player-card .k { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.player-card .n { display: block; font-weight: 700; font-size: 18px; }
.player-card .t { display: block; font-size: 13px; color: var(--orange-hi); overflow-wrap: anywhere; }

.signup-box { padding: 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--orange); display: flex; flex-direction: column; gap: 8px; }
.signup-box .title { font-size: 14px; font-weight: 600; }
.signup-box .hint { font-size: 13px; color: var(--muted); margin: 0; }
.signup-row { display: flex; flex-wrap: wrap; gap: 8px; }
.input { flex: 1 1 160px; min-width: 0; height: 46px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font: inherit; }
.input::placeholder { color: #8792a8; }
.input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--orange); color: var(--bg); font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: #ff7040; color: var(--bg); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--card); color: var(--text); }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 14px; }

/* progress */
.progress { padding: 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.progress-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; }
.progress-top .big { font-family: var(--display); font-weight: 600; font-size: 20px; }
.progress-top .sum { font-size: 14px; color: var(--text-2); }
.c-won { color: var(--won); font-weight: 700; }
.c-lost { color: var(--lost); font-weight: 700; }
.bar-row { display: flex; flex-direction: column; gap: 6px; }
.bar-line { display: flex; align-items: center; gap: 10px; }
.bar-label { flex: 0 0 54px; font-family: var(--display); font-weight: 600; font-size: 15px; }
.bar { flex: 1 1 auto; min-width: 0; display: flex; gap: 2px; height: 26px; }
.seg { flex: 0 0 calc((100% - 68px) / 35); border-radius: 2px; background: var(--border-strong); }
.seg.won { background: var(--won); }
.seg.lost { background: var(--lost); }
.seg.live { background: var(--orange-hi); }
.seg.pending { background: #7a6a55; }
.bar-pause { padding-left: 64px; font-size: 13px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-2); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }

/* stats + rules */
.two-col { display: flex; flex-wrap: wrap; gap: 32px 24px; padding-top: 40px; }
.two-col > div { flex: 1 1 420px; min-width: 0; }
.h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 700; font-size: 32px; text-transform: uppercase; line-height: 1.1; }
.note { margin: -4px 0 12px; font-size: 14px; color: var(--text-2); }
.team-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 10px; }
.team-stat { padding: 12px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); }
.team-stat b { display: block; font-family: var(--mono); font-weight: 700; font-size: 26px; }
.team-stat span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.team-stat.won b { color: var(--won); }
.team-stat.lost b { color: var(--lost); }
.team-stat.skins b { color: var(--orange-hi); }
.ptable { border-radius: 10px; border: 1px solid var(--border); overflow: hidden; }
.ptable .r { display: grid; grid-template-columns: 1.4fr 1fr 1fr; align-items: center; border-top: 1px solid var(--head); }
.ptable .r:first-child { border-top: 0; background: var(--card); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.ptable .r > span { padding: 10px 12px; }
.ptable .lbl { font-size: 15px; color: var(--text-2); }
.ptable .v { font-family: var(--mono); font-size: 18px; font-weight: 700; }
.rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rules li { display: flex; gap: 14px; padding: 12px 14px; border-radius: 10px; background: var(--card); }
.rules li > b { font-family: var(--mono); color: var(--orange); }

/* program */
.program { padding-top: 48px; }
.program .h2 { font-size: 44px; line-height: 1; margin-bottom: 14px; }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); margin-bottom: 14px; }
.tab { min-width: 0; min-height: 96px; padding: 12px 14px; border: 0; border-radius: 8px; text-align: left; cursor: pointer; background: transparent; color: var(--text); }
.tab:hover { background: #363636; }
.tab .l { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.05; }
.tab .d { display: block; margin-top: 4px; font-size: clamp(15px, 1.6vw, 19px); font-weight: 700; line-height: 1.3; }
.tab .r { display: block; font-size: clamp(14px, 1.4vw, 16px); font-weight: 500; line-height: 1.3; color: var(--text-2); }
.tab[aria-pressed="true"] { background: var(--orange); color: var(--bg); }
.tab[aria-pressed="true"] .r { color: var(--bg); }

.mtable { border-radius: 10px; border: 1px solid var(--border); overflow: hidden; }
.mhead, .mrow { display: grid; grid-template-columns: 56px 104px 112px 1fr 1fr 1.3fr 1.3fr 1.3fr; align-items: center; }
.mhead { background: var(--card); font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.mhead span { padding: 10px 12px; }
.mrow { border-top: 1px solid var(--head); background: var(--bg); }
.mrow.live { background: rgba(255, 102, 0, .12); }
.mrow > .c { padding: 8px 12px; }
.c-num { font-family: var(--display); font-weight: 700; font-size: 18px; }
.c-time { font-family: var(--mono); font-size: 15px; color: var(--text-2); white-space: nowrap; }
.pill { display: inline-block; min-width: 84px; text-align: center; padding: 3px 9px; border-radius: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.pill.won { background: var(--won); color: var(--bg); }
.pill.lost { background: var(--lost); color: var(--bg); }
.pill.live { background: var(--orange-hi); color: var(--bg); }
.pill.pending { border: 1px solid #a08a6a; color: #e6cfa8; }
.pill.upcoming { border: 1px solid var(--border-strong); color: var(--text-2); }
.kv { font-family: var(--mono); font-size: 18px; font-weight: 700; }
.kv.none { color: var(--dim); font-weight: 400; }
.kv.live { color: var(--orange-hi); }
.mlabel { display: none; }
.c-slots { display: contents; }
.c-slot { padding: 6px 8px; min-width: 0; }
.slot-name { display: flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 0 0 10px; border-radius: 6px; background: var(--head); }
.slot-name.mine { outline: 1px solid var(--orange); }
.slot-name.locked { background: transparent; border: 1px solid var(--border); color: var(--muted); padding-right: 10px; }
.slot-name .nm { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-x { flex: 0 0 36px; height: 36px; border: 0; background: transparent; color: var(--lost-text); font-size: 18px; cursor: pointer; }
.slot-free { width: 100%; min-height: 40px; padding: 6px 10px; border-radius: 6px; border: 1px dashed var(--border-strong); background: transparent; color: var(--text-2); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.slot-free:hover:not([disabled]) { border-color: var(--orange); color: var(--text); }
.slot-free[disabled] { cursor: default; opacity: .7; }
.slot-form { display: flex; gap: 4px; }
.slot-form input { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--orange); background: var(--bg); color: var(--text); font: inherit; font-size: 14px; }
.slot-form button { flex: 0 0 auto; height: 40px; padding: 0 10px; border: 0; border-radius: 6px; background: var(--orange); color: var(--bg); font-weight: 700; cursor: pointer; }
.brk { display: none; }
.pause-row { padding: 14px 16px; border-top: 1px solid var(--head); background: repeating-linear-gradient(135deg, var(--bg-row) 0 10px, var(--bg-row2) 10px 20px); font-size: 15px; }
.pause-row span { color: var(--text-2); }
.finale-row { padding: 16px; border-top: 1px solid var(--head); background: var(--orange); color: var(--bg); font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; }

/* sponsors */
.sponsors { padding-top: 48px; }
.sponsors .top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 12px; }
.sponsors .top .h2 { margin: 0; }
.sp-viewport { overflow: hidden; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-row); }
.sp-track { display: flex; width: max-content; animation: spmarquee 40s linear infinite; }
.sp-viewport:hover .sp-track, .sp-viewport:focus-within .sp-track { animation-play-state: paused; }
@keyframes spmarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* "Reduce motion" (e.g. Windows animation effects off): still move, just slower. Hover pauses it. */
@media (prefers-reduced-motion: reduce) { .sp-track { animation-duration: 90s; } }
.sp-item { flex: 0 0 260px; height: 100px; display: flex; align-items: center; justify-content: center; gap: 12px; border-right: 1px solid var(--border); text-decoration: none; color: var(--text); padding: 0 16px; }
.sp-item img.round { width: 42px; height: 42px; border-radius: 50%; }
.sp-item img.wide { max-width: 190px; max-height: 44px; width: auto; height: auto; }
.sp-item .nm { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .03em; text-transform: uppercase; }
.sp-item.cta { flex-direction: column; gap: 2px; color: var(--text-2); }
.sp-item.cta b { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--orange-hi); }
.sp-item.cta span { font-size: 13px; }
.sp-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-radius: 10px; border: 1px dashed var(--orange); background: rgba(255, 102, 0, .07); text-decoration: none; color: var(--text); }
.sp-empty b { display: block; font-family: var(--display); font-weight: 700; font-size: 28px; text-transform: uppercase; }
.sp-empty .btn { pointer-events: none; }

/* footer, toast */
.site-foot { margin-top: 56px; border-top: 1px solid var(--head); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; font-size: 14px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(calc(100% + 40px)); visibility: hidden; background: var(--card); border: 1px solid var(--orange); color: var(--text); padding: 12px 18px; border-radius: 8px; font-weight: 600; transition: transform .2s, visibility .2s; z-index: 50; max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); visibility: visible; }
.toast.err { border-color: var(--lost); }
.offline { display: none; position: fixed; top: 0; left: 0; right: 0; background: var(--lost); color: var(--bg); text-align: center; font-weight: 700; font-size: 14px; padding: 4px; z-index: 60; }
.offline.show { display: block; }

/* phones: match rows become cards */
@media (max-width: 900px) {
  .brand-sub { display: none; }
  .mhead { display: none; }
  .mrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px; }
  .mrow > .c { padding: 0; }
  .c-status { margin-left: auto; }
  .brk { display: block; flex: 1 1 100%; height: 0; }
  .c-kill { flex: 1 1 40%; display: flex; align-items: baseline; gap: 8px; }
  .mlabel { display: inline; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
  .c-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; flex: 1 1 100%; }
  .c-slot { padding: 0; }
}
