@font-face { font-family: "Manrope"; font-weight: 700; src: url("/casino/virt-tkick/assets/fonts/manrope700.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "TwRoboto"; font-weight: 400; src: url("/casino/virt-tkick/assets/fonts/roboto400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "TwRoboto"; font-weight: 700; src: url("/casino/virt-tkick/assets/fonts/roboto700.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #0b1631;
  --bg2: #101f44;
  --panel: #13265a;
  --panel2: #1a3170;
  --line: #24407f;
  --btn: #22396f;
  --btn-h: #2b4a8f;
  --accent: #3366ff;
  --blue: #2f8fff;
  --yellow: #f5c518;
  --text: #e8eefc;
  --muted: #8ea3cf;
  --green: #22c55e;
  --red: #ef4444;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: "TwRoboto", Roboto, Arial, sans-serif; font-size: 14px; }
button { font-family: inherit; cursor: pointer; }
.hide { display: none !important; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 16px; background: linear-gradient(180deg, #0f1e45, #0b1631); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { height: 26px; filter: brightness(1.15); }
.brand .title { font-family: "Manrope", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: .5px; text-transform: uppercase; }
.top-right { display: flex; align-items: center; gap: 10px; }
.clock { color: var(--muted); font-weight: 700; }
.balance { background: var(--panel); border: 1px solid var(--line); padding: 5px 12px; border-radius: 8px; font-weight: 700; color: var(--yellow); }
.lang-switch { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 4px 8px; font-weight: 700; }
.lang-btn img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }
.lang-menu { position: absolute; right: 0; top: 36px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; max-height: 360px; overflow: auto; min-width: 180px; z-index: 40; }
.lang-item { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; color: var(--text); padding: 7px 10px; text-align: left; }
.lang-item img { width: 20px; height: 14px; object-fit: cover; }
.lang-item:hover, .lang-item.on { background: var(--panel2); }
.help-btn { background: var(--panel); border: 1px solid var(--line); border-radius: 50%; width: 32px; height: 32px; padding: 6px; display: flex; align-items: center; justify-content: center; }
.help-btn img { width: 18px; height: 18px; filter: invert(1); }
.exit-btn { background: #c81e3a; color: #fff; border: 0; border-radius: 6px; padding: 7px 14px; font-weight: 700; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; padding: 16px; max-width: 1360px; margin: 0 auto; }
.main-col { min-width: 0; }
.match-bar { display: flex; align-items: center; gap: 10px; background: var(--bg2); border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; padding: 9px 14px; font-weight: 700; }
.match-bar #match-title { font-family: "Manrope", sans-serif; text-transform: uppercase; letter-spacing: .3px; }
.phase-hint { margin-left: auto; color: var(--yellow); font-size: 12px; text-transform: uppercase; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #3b4a6e; }
.live-dot.on { background: #ff3b3b; box-shadow: 0 0 0 4px rgba(255, 59, 59, .25); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 59, 59, .05); } }

/* ---------- stage ---------- */
.stage { position: relative; aspect-ratio: 16 / 9; background: #050b1c; overflow: hidden; border: 1px solid var(--line); border-top: 0; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; background: #000; }
.stage.live video { opacity: 1; }
.preview { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, #2a3b63 0%, #121c38 60%, #0b1430 100%); transition: opacity .3s; }
.stage.live .preview { opacity: 0; pointer-events: none; }
.preview .poster { position: absolute; right: 0; bottom: 0; height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: right bottom; }
.pv-title { position: absolute; left: 5%; top: 10%; font-family: "Manrope", sans-serif; font-size: clamp(22px, 4.2vw, 46px); font-weight: 700; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.pv-title::before { content: ""; display: inline-block; width: .7em; height: .7em; border-radius: 50%; border: 3px solid #fff; margin-right: .35em; vertical-align: 0; opacity: .85; }
.pv-timer { position: absolute; left: 5%; top: 30%; display: flex; flex-direction: column; gap: 4px; }
.pv-timer span { color: var(--muted); font-weight: 700; font-size: 13px; letter-spacing: 1px; }
.pv-timer b { font-family: "Manrope", sans-serif; font-size: clamp(30px, 5vw, 56px); color: #fff; }
.pv-timer b.urgent { color: #ff5b5b; }
.last5 { position: absolute; left: 5%; bottom: 8%; background: rgba(16, 22, 40, .82); border-radius: 12px; padding: 12px 16px; backdrop-filter: blur(4px); min-width: 300px; }
.last5:empty { display: none; }
.l5-head { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.l5-legend { display: flex; flex-direction: column; font-size: 11px; color: var(--muted); float: left; margin-right: 14px; gap: 2px; }
.l5-legend .up::first-letter { color: var(--green); }
.l5-legend .down::first-letter { color: var(--red); }
.l5-row { display: flex; gap: 10px; }
.l5 { position: relative; font-family: "Manrope", sans-serif; font-size: 20px; padding: 6px 2px 4px; border-bottom: 3px solid var(--green); }
.l5.down { border-bottom-color: var(--red); }
.l5 i { position: absolute; top: 0; width: 5px; height: 5px; border-radius: 50%; }
.l5 i.b { left: 3px; background: var(--blue); }
.l5 i.y { right: 3px; background: var(--yellow); }
.sound-btn { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(10, 20, 45, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3z'/%3E%3Cpath d='M16 8l6 8M22 8l-6 8' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center / 20px no-repeat; z-index: 6; }
.sound-btn.on { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 7.97v8.05A4.5 4.5 0 0 0 16.5 12zM14 3.23v2.06a7 7 0 0 1 0 13.42v2.06A9 9 0 0 0 14 3.23z'/%3E%3C/svg%3E"); }

/* ---------- result overlay ---------- */
.fulltime { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(5, 12, 30, .72); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 5; }
.fulltime.show { opacity: 1; pointer-events: auto; }
.ft-body { background: linear-gradient(180deg, #17306b, #0f1f48); border: 1px solid var(--line); border-radius: 16px; padding: 18px 26px; min-width: min(460px, 90%); text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.ft-head { color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: 1px; }
.ft-score { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 12px 0 6px; }
.fs-side { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; opacity: .75; }
.fs-side.win { opacity: 1; }
.fs-side i { width: 42px; height: 42px; border-radius: 50%; border: 3px solid #fff; }
.fs-side.b i { background: var(--blue); }
.fs-side.y i { background: var(--yellow); }
.fs-num { font-family: "Manrope", sans-serif; font-size: 52px; display: flex; gap: 10px; align-items: center; }
.fs-num em { font-style: normal; color: var(--muted); }
.ft-winner { font-family: "Manrope", sans-serif; font-size: 20px; text-transform: uppercase; margin-bottom: 10px; }
.ft-winner.wb { color: var(--blue); }
.ft-winner.wy { color: var(--yellow); }
.ft-bets { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 10px; }
.tag { font-size: 12px; padding: 4px 8px; border-radius: 6px; background: rgba(239, 68, 68, .18); color: #ffb4b4; }
.tag.won { background: rgba(34, 197, 94, .18); color: #9ff0bd; }
.ft-total { font-family: "Manrope", sans-serif; font-size: 22px; color: #ff8a8a; }
.ft-total.won { color: var(--green); }

/* ---------- schedule ---------- */
.schedule { display: flex; background: #0d1a3d; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; overflow: hidden; }
.sch { flex: 1; text-align: center; padding: 10px 0 8px; color: var(--muted); font-weight: 700; position: relative; }
.sch.on { color: #fff; font-size: 16px; }
.sch.on::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: 0; height: 2px; background: var(--accent); }
.sch .dot { display: block; width: 6px; height: 6px; background: var(--green); border-radius: 50%; margin: 3px auto 0; }

/* ---------- filters + markets ---------- */
.filters { display: flex; gap: 8px; padding: 14px 0 10px; flex-wrap: wrap; }
.filter { background: transparent; border: 1px solid #3a5592; color: var(--text); border-radius: 20px; padding: 7px 18px; font-size: 15px; }
.filter.on { background: var(--accent); border-color: var(--accent); }
.markets { display: flex; flex-direction: column; gap: 4px; }
.market-block { background: var(--bg2); border-radius: 10px; padding: 6px 8px 8px; }
.market-title { text-align: center; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .6px; padding: 4px 0 6px; text-transform: uppercase; }
.market-block.side-b .market-title { color: #7fb7ff; }
.market-block.side-y .market-title { color: #f3d35e; }
.odds { display: grid; gap: 4px; margin-bottom: 4px; }
.odds.c2 { grid-template-columns: 1fr 1fr; }
.odds.c3 { grid-template-columns: 1fr 1fr 1fr; }
.odd-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--btn); border: 0; border-radius: 6px; color: var(--text); padding: 11px 14px; font-size: 14px; transition: background .12s; min-height: 42px; }
.odd-btn b { font-weight: 700; }
.odd-btn .lbl { color: #c9d6f5; text-align: left; }
.odd-btn:hover:not(:disabled) { background: var(--btn-h); }
.odd-btn.selected { background: var(--accent); }
.odd-btn.selected .lbl { color: #fff; }
.odd-btn:disabled { cursor: default; opacity: .65; }
.cs-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
.cs-col { display: flex; flex-direction: column; gap: 4px; }
.cs-col:first-child .odd-btn { box-shadow: inset 3px 0 0 var(--blue); }
.cs-col:last-child .odd-btn { box-shadow: inset -3px 0 0 var(--yellow); }

/* ---------- betslip ---------- */
.ticket { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; align-self: start; position: sticky; top: 68px; overflow: hidden; }
.slip-tabs { display: grid; grid-template-columns: 1fr 1fr; }
.slip-tab { background: #0c1838; color: var(--muted); border: 0; padding: 15px 0; font-weight: 700; font-size: 15px; border-top: 2px solid transparent; }
.slip-tab.on { background: var(--bg2); color: #fff; border-top-color: var(--accent); }
.slip-tab em { font-style: normal; background: var(--accent); color: #fff; border-radius: 10px; padding: 1px 7px; font-size: 12px; }
.slip-pane { padding: 12px 14px 14px; }
.ticket-tools { text-align: right; }
.linkish { background: none; border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; }
.stake-row { display: flex; align-items: center; gap: 6px; margin: 8px 0; font-weight: 700; font-size: 12px; color: var(--muted); }
.stake-row span { flex: 1; }
.stake-row button { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); color: #fff; font-size: 16px; }
.stake-row input { width: 80px; height: 30px; text-align: center; background: #0a1430; border: 1px solid var(--line); color: #fff; border-radius: 6px; font-weight: 700; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chips button { flex: 1; min-width: 44px; padding: 7px 0; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: #fff; font-weight: 700; }
.chips button.active { background: var(--yellow); border-color: var(--yellow); color: #111; }
.slip-body { max-height: 330px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.slip-empty { text-align: center; color: #fff; font-weight: 700; padding: 22px 0; }
.slip-item { position: relative; background: var(--panel); border-radius: 8px; padding: 9px 10px 8px; }
.slip-item .remove { position: absolute; right: 6px; top: 4px; background: none; border: 0; color: var(--muted); font-size: 18px; }
.slip-item .meta { font-size: 11px; color: var(--muted); }
.slip-item .mk { font-size: 12px; color: #c9d6f5; }
.slip-item .sel { display: flex; justify-content: space-between; font-weight: 700; margin: 3px 0 6px; padding-right: 18px; }
.stake-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stake-line input { width: 90px; height: 28px; text-align: center; background: #0a1430; border: 1px solid var(--line); color: #fff; border-radius: 6px; }
.stake-line .est { font-size: 12px; color: var(--muted); }
.ticket-totals { margin: 12px 0 10px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.ticket-totals div { display: flex; justify-content: space-between; }
.ticket-totals strong { color: #fff; }
.submit-btn { width: 100%; padding: 14px 0; border-radius: 10px; border: 0; background: var(--accent); color: #fff; font-weight: 700; letter-spacing: 1px; font-size: 14px; box-shadow: 0 8px 24px rgba(51, 102, 255, .35); }
.submit-btn:disabled { background: #555c6b; color: #aab; box-shadow: none; cursor: default; }
.md-list { display: flex; flex-direction: column; gap: 6px; max-height: 460px; overflow: auto; }
.md-item { display: flex; justify-content: space-between; gap: 8px; background: var(--panel); border-radius: 8px; padding: 8px 10px; font-size: 12px; border-left: 3px solid var(--accent); }
.md-item.won { border-left-color: var(--green); }
.md-item.lost { border-left-color: var(--red); }
.md-item .right { text-align: right; white-space: nowrap; color: var(--muted); }
.last-results { border-top: 1px solid var(--line); padding: 10px 14px 14px; }
.lr-head { font-weight: 700; font-size: 12px; color: var(--muted); letter-spacing: .6px; margin-bottom: 8px; }
.lr-empty { color: var(--muted); font-size: 12px; }
.lr-row { display: grid; grid-template-columns: 70px 1fr 60px; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 13px; }
.lr-no { color: var(--muted); }
.lr-score { display: flex; gap: 4px; align-items: center; justify-content: center; font-family: "Manrope", sans-serif; }
.lr-score i { font-style: normal; min-width: 26px; text-align: center; padding: 2px 4px; border-radius: 4px; background: #0a1430; }
.lr-score i.sb.win { background: var(--blue); }
.lr-score i.sy.win { background: var(--yellow); color: #111; }
.lr-score em { font-style: normal; color: var(--muted); }
.lr-tot { text-align: right; font-weight: 700; }
.lr-tot.up { color: var(--green); }
.lr-tot.down { color: var(--red); }

/* ---------- toast / modals ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: #1d3a7a; color: #fff; padding: 10px 18px; border-radius: 8px; opacity: 0; transition: all .25s; z-index: 50; font-weight: 700; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.help-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; z-index: 60; }
.help-modal-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; width: min(560px, 92vw); max-height: 84vh; display: flex; flex-direction: column; }
.help-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.help-modal-head h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: 16px; }
.help-close { background: none; border: 0; color: #fff; font-size: 24px; }
.help-modal-body { padding: 8px 16px 14px; overflow: auto; line-height: 1.5; color: #d5def5; }
.stats-row { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.stats-row .sub { color: var(--muted); font-size: 12px; }
.stats-footer { padding: 10px 16px; border-top: 1px solid var(--line); text-align: right; }
.stats-clear { background: var(--panel); border: 1px solid var(--line); color: #fff; border-radius: 6px; padding: 6px 12px; }

@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding: 8px; }
  .ticket { position: static; }
  .last5 { min-width: 0; left: 3%; right: 3%; bottom: 4%; padding: 8px 10px; }
  .l5-legend { display: none; }
  .l5 { font-size: 15px; }
  .pv-timer { top: 26%; }
}
@media (max-width: 560px) {
  .topbar { padding: 0 8px; }
  .top-right { gap: 6px; }
  .brand .logo, .clock, #lang-code { display: none; }
  .brand .title { font-size: 15px; }
  .exit-btn { padding: 6px 9px; }
  .help-btn { width: 30px; height: 30px; }
  .filter { padding: 6px 12px; font-size: 14px; }
  .match-bar { font-size: 12px; }
  .odds.c3 .odd-btn { flex-direction: column; gap: 2px; padding: 8px 6px; }
  .cs-grid .odd-btn { padding: 8px 8px; }
  .fs-num { font-size: 38px; }
}
