/* One responsive stylesheet for all sites; dark mode via variables.
   Look ported from the legacy stylesheets: www /css/style.css (desktop, >= 1000px) and m. /mobile/css/style.css (phones, < 640px).
   Sizes and colours below are the legacy values unless a comment says otherwise. */
@font-face { font-family: ubuntu; font-weight: 300; font-display: swap; src: url(/assets/fonts/ubuntu-light.woff) format("woff"); }
@font-face { font-family: ubuntu; font-weight: 400; font-display: swap; src: url(/assets/fonts/ubuntu.woff) format("woff"); }
@font-face { font-family: ubuntu; font-weight: 500; font-display: swap; src: url(/assets/fonts/ubuntu-medium.woff) format("woff"); }
@font-face { font-family: ubuntu; font-weight: 700; font-display: swap; src: url(/assets/fonts/ubuntu-bold.woff) format("woff"); }
/* legacy "betblog" icon font: sport icons (icon-basketball, icon-soccer, ...) */
@font-face { font-family: betblog; font-display: block; src: url(/assets/fonts/betblog.woff) format("woff"); }

:root {
  --navy: #173960;      /* header, shop bar, footer */
  --blue: #129fdd;      /* menu bar, buttons, active tabs */
  --blue-dark: #0f8bc2;
  --sky: #27bdff;       /* header buttons */
  --link-hover: #12aaeb;
  --green: #87b629;     /* bookmaker buttons, "Plačiau" */
  --red: #ff3333;
  --orange: #ff9800;
  --footer-link: #6c97c6;

  --bg: #ecf0f1;
  --bg-m: #d0dadc;      /* phone page background (m. section.content) */
  --surface: #ffffff;
  --surface-2: #f5f7f8;
  --surface-green: #f8ffe9; /* bookmakers block */
  --text: #395b77;
  --muted: #95acbc;
  --border: #dadfe4;
  --line: #ecf0f1;      /* row separators */
  --accent: var(--blue);
  --won: #87b629;
  --lost: #ff3333;
  --void: #95acbc;

  --radius: 3px;
  --gap: 10px;
  --wrap: 1100px;
  --shadow: 1px 1px 7px 0 rgba(0,0,0,.05); /* legacy .tiny-shadow */
  font-family: ubuntu, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0f1b29;
  --bg-m: #0b1520;
  --surface: #16263a;
  --surface-2: #1c2f46;
  --surface-green: #1a2d22;
  --text: #dbe6ee;
  --muted: #8aa1b4;
  --border: #253a53;
  --line: #22364d;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.4; min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body > .page { flex: 1 0 auto; width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--link-hover); }
h1 > a, h2 > a, h3 > a { color: inherit; }
h1 > a:hover, h2 > a:hover, h3 > a:hover { color: var(--blue); }
img { max-width: 100%; height: auto; }
.container, .wrap { max-width: var(--wrap); margin: 0 auto; }
[x-cloak] { display: none !important; }
.i { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; flex: none; }

/* sport icons (legacy betblog.css) */
.sport-icon, [class^="icon-"]:not(.i) { font-family: betblog; font-style: normal; font-weight: normal; line-height: 1; speak: never; }
.icon-more::before { content: "\e90e"; } .icon-baseball::before { content: "\e902"; } .icon-basketball::before { content: "\e903"; }
.icon-cars::before { content: "\e904"; } .icon-comments::before { content: "\e905"; } .icon-football::before { content: "\e906"; }
.icon-headphones::before { content: "\e907"; } .icon-horse::before { content: "\e908"; } .icon-icehockey::before { content: "\e909"; }
.icon-others::before { content: "\e90a"; } .icon-soccer::before { content: "\e90b"; } .icon-tennis::before { content: "\e90c"; }
.icon-valleyball::before { content: "\e90d"; } .icon-tabletennis::before { content: "\e900"; } .icon-handball::before { content: "\e901"; }

/* ── header (legacy header#header) ───────────── */
.site-header { background: var(--navy); border-bottom: 5px solid var(--blue); color: #fff; }
.header-inner { display: flex; align-items: flex-start; height: 80px; }
.toggle-menu { background: none; border: 0; padding: 22px 10px 0 0; color: var(--link-hover); font-size: 30px; line-height: 1; cursor: pointer; }
.logo { display: flex; align-items: flex-start; line-height: 0; color: #fff; }
.logo-full { height: 65px; width: auto; padding-top: 15px; }
.logo-m { display: none; }
.logo-text { font-size: 26px; font-weight: 700; line-height: 80px; }
.login-area { margin: 10px 0 0 auto; display: flex; align-items: flex-start; }
.login-area form.login { display: flex; margin: 0; }
.login-area form.login > div { width: 170px; }
.login-area form.login > div + div { margin-left: 10px; }
.login-area input[type=text], .login-area input[type=password] { display: block; width: 100%; height: 40px; padding: 10px 0 10px 15px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; color: var(--text); background: #fff; box-shadow: inset 0 0 15px -5px rgba(0,0,0,.2); }
.login-area .remember, .login-area .forgot-password { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; text-transform: uppercase; color: var(--muted); cursor: pointer; }
/* legacy div[data-custom="custom-checkbox"]: 20px box with a blue border on the navy header, blue tick when checked */
.login-area .remember input { appearance: none; display: inline-grid; place-content: center; width: 20px; height: 20px; margin: 0 4px -5px 0; border: 1px solid #129fe0; border-radius: 3px; background: none; cursor: pointer; }
.login-area .remember input::before { content: ""; width: 13px; height: 10px; background: var(--blue); clip-path: polygon(0 55%, 14% 40%, 38% 64%, 86% 0, 100% 14%, 38% 92%); visibility: hidden; }
.login-area .remember input:checked::before { visibility: visible; }
.login-area .remember input:focus-visible { outline: 2px solid var(--sky); outline-offset: 1px; }
.login-area .forgot-password:hover { color: var(--sky); text-decoration: underline; }
.login-area form.login button { width: 125px; height: 40px; margin-left: 10px; border: 2px solid var(--sky); border-radius: var(--radius); background: none; color: var(--sky); font: inherit; font-size: 13px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.login-area form.login button:hover { background: var(--sky); color: #fff; }
.fb-login, .login-area .register, .login-icon { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: var(--radius); background: var(--sky); color: #fff; }
.fb-login { width: 50px; margin-left: 20px; font-size: 18px; }
.login-area .register { width: 125px; margin-left: 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.fb-login:hover, .login-area .register:hover, .login-icon:hover { color: #fff; background: var(--blue); }
.login-icon { display: none; }
/* member header (legacy www div.user-area) */
.user-area { margin: 0 0 0 auto; display: flex; align-items: flex-start; }
.ua-button { display: flex; align-items: center; gap: 6px; margin: 20px 0 0 10px; padding: 10px 20px; border-radius: 3px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.ua-button:hover { color: #fff; background: var(--blue-dark); }
.ua-icons { display: flex; list-style: none; margin: 20px 0 0 20px; padding: 0; border-radius: 3px; background: #102b48; }
.ua-icons > li { position: relative; }
.ua-icons > li > a, .ua-icons summary { display: flex; align-items: center; gap: 2px; height: 36px; padding: 0 10px; color: #506b88; font-size: 16px; cursor: pointer; list-style: none; }
.ua-icons summary::-webkit-details-marker { display: none; }
.ua-icons .caret { font-size: 12px; }
.ua-icons > li.active > a, .ua-icons > li.active summary { color: #fff; }
.ua-icons > li > a:hover, .ua-icons summary:hover { color: var(--blue); }
.ua-icons .count { position: absolute; top: -10px; right: 5px; padding: 3px; border-radius: 3px; background: #cc0000; color: #fff; font-size: 10px; font-weight: 700; line-height: 1; pointer-events: none; }
.ua-icons .count.green { background: var(--green); }
.ua-icons .bell[open] summary { background: #fff; color: var(--blue); border-radius: 3px 3px 0 0; }
.bell-panel { position: absolute; left: 0; top: 36px; z-index: 999; width: 500px; max-height: 70vh; overflow-y: auto; padding: 0; border-radius: 0 3px 3px 3px; background: var(--surface); color: var(--text); box-shadow: -1px 3px 11px 0 rgba(0,0,0,.1); }
.bell-panel > b { display: block; padding: 20px; border-bottom: 1px solid var(--border); text-align: center; font-size: 15px; text-transform: uppercase; }
.ua-user { position: relative; width: 100px; margin: 10px 0 0 25px; border-radius: 3px 3px 0 0; }
.ua-user-button { display: block; width: 100%; padding: 5px 5px 7px; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; text-align: center; }
.ua-user .avatar { display: inline-block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; vertical-align: top; }
.ua-user .avatar img { display: block; width: 40px; height: 40px; object-fit: cover; }
.ua-user .caret { margin: 15px -17px 0 5px; color: #506b88; font-size: 12px; vertical-align: top; }
.ua-user .username { display: block; margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; line-height: 15px; }
/* legacy avatar menu: icon + label rows (Profilis, Nakties režimas, Balansas, Parduotuvė (N), Atsijungti); legacy
   div.user > ul: 200px box, 20px padding, 15px text at line-height 1, rows 20px apart, FontAwesome icon 15px + 5px padding.
   The SVG glyphs fill 20 of their 24 units, so the icon is drawn 18px and pulled into a 15px slot. */
.ua-user > ul { display: none; position: absolute; right: 0; top: 70px; z-index: 999; width: 200px; margin: 0; padding: 20px; list-style: none; border-radius: 3px 0 3px 3px; background: var(--surface); box-shadow: -1px 3px 11px 0 rgba(0,0,0,.1); }
.ua-user > ul > li + li { margin-top: 20px; }
.ua-user > ul a, .ua-user > ul button { display: flex; align-items: center; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 400; line-height: 1; text-align: left; cursor: pointer; }
.ua-user > ul .i { flex: none; width: 18px; height: 18px; margin: -1.5px 3.5px -1.5px -1.5px; }
.ua-user > ul a:hover, .ua-user > ul button:hover { color: var(--blue); }
.ua-user:hover, .ua-user:focus-within { background: var(--surface); }
.ua-user:hover .username, .ua-user:focus-within .username { color: #506b88; }
.ua-user:hover > ul, .ua-user:focus-within > ul { display: block; }
.ua-user .ua-narrow { display: none; }
.btn-outline { display: inline-block; padding: 7px 16px; border: 2px solid var(--sky); border-radius: var(--radius); color: var(--sky); font-weight: 700; text-transform: uppercase; font-size: 13px; }
.btn-outline:hover { background: var(--sky); color: #fff; }
.logout-form { display: inline; margin: 0; }
button.btn-outline { background: none; cursor: pointer; font-family: inherit; line-height: inherit; }

/* ── menu bar (legacy nav#nav.top) ───────────── */
nav.top { background: var(--blue); }
/* www: the bar is hidden unless open (home page, or ≡ clicked); legacy blind effect 0.2s */
@media (min-width: 1000px) {
  nav.top:not(.bar-open) { display: none; }
  nav.top.bar-anim { animation: bar-in .2s ease-out; }
}
@keyframes bar-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.containermenu { list-style: none; margin: 0 auto; padding: 0; max-width: var(--wrap); display: flex; height: 40px; }
.containermenu > li { position: relative; flex: none; display: flex; align-items: center; margin-right: 20px; }
.containermenu > li > a { color: #fff; font-size: 15px; font-weight: 700; text-transform: uppercase; padding: 5px 10px 5px 0; white-space: nowrap; }
.containermenu > li > a:hover { color: #89cfee; }
.containermenu > li > .caret { color: #89cfee; font-size: 15px; margin-left: -4px; }
.containermenu > li:hover > .caret { color: #fff; }
/* legacy: the badge link kept its 10px right padding plus a &nbsp; after the picture (14px before the first item) */
.containermenu > li.nr1 > a { padding: 0 14px 0 0; display: block; }
.containermenu > li.nr1 img { display: block; height: 35px; width: auto; margin: 0 -10px -2px 0; }
.containermenu > li.nav-icon > a { font-size: 19px; display: flex; }
/* www (body min-width 1180px): div.containermenu { width: max-content; min-width: 1100px; max-width: 1180px; margin: 0 auto }
   with the items floated left inside, so the first item sits at (window - 1100) / 2, or 40px on windows narrower than 1180
   (the old page kept its 1180px width there). Items are top-aligned (li padding 5px, a padding 5px, line-height 1);
   the caret is FontAwesome 15px + 5px right padding (14.4px). */
@media (min-width: 1000px) {
  .containermenu { width: max-content; min-width: var(--wrap); max-width: 1180px; }
  .containermenu > li { align-items: flex-start; padding-top: 5px; }
  .containermenu > li > a { line-height: 1; }
  .containermenu > li > .caret { margin: 5px 2.4px 0 -3px; }
  .containermenu > li.nr1 { padding-top: 0; }
  .containermenu > li.nr1 > a { padding-right: 13.6px; } /* the &nbsp; after the picture */
  .containermenu > li.nr1 img { max-width: none; }
  .containermenu > li.nav-icon > a { padding-right: 11px; }
}
@media (min-width: 1000px) and (max-width: 1179px) {
  .containermenu { min-width: 0; margin-left: 40px; }
}
.submenu { list-style: none; margin: 0; padding: 10px 0; position: absolute; left: 0; top: 40px; min-width: 100%; background: #fff; box-shadow: -1px 3px 11px 0 rgba(0,0,0,.1); z-index: 999; display: none; }
.submenu a { display: block; padding: 10px 20px; color: var(--navy); white-space: nowrap; }
.submenu a:hover { color: #fff; background: var(--blue); }
.expand:hover > .submenu, .expand:focus-within > .submenu { display: block; }
.nav-backdrop { display: none; }

/* drawer (burger below 1000px): the same menu as a column */
.nav-open { overflow: hidden; }
.nav-open nav.top { position: fixed; top: 0; bottom: 0; left: 0; width: min(85vw, 320px); z-index: 1000; overflow-y: auto; }
.nav-open .containermenu { flex-direction: column; height: auto; padding: 8px 0; }
.nav-open .containermenu > li { flex-wrap: wrap; margin: 0; }
.nav-open .containermenu > li > a { flex: 1; line-height: 44px; padding: 0 16px; }
.nav-open .containermenu > li > .caret { margin-right: 16px; }
.nav-open .containermenu > li.nr1 { display: none; }
.nav-open .submenu, .nav-open .expand:hover > .submenu { position: static; flex-basis: 100%; display: none; box-shadow: none; background: rgba(0,0,0,.12); }
.nav-open .submenu.open { display: block; }
.nav-open .submenu a { color: #fff; padding-left: 32px; }
.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 999; }

/* ── content ────────────────────────────────── */
.page { padding-top: 10px; padding-bottom: 20px; }
/* .card = legacy div.block: white, square, tiny shadow */
.card { background: var(--surface); border-radius: 0; padding: 15px 20px 20px; margin-bottom: 10px; box-shadow: var(--shadow); }
.card h1, .card h2 { margin-top: 0; color: var(--text); font-weight: 700; text-transform: uppercase; font-size: 24px; line-height: 1.2; }
.muted { color: var(--muted); }
pre { white-space: pre-wrap; word-break: break-word; }
.button-outline { display: inline-block; text-transform: uppercase; color: var(--blue); font-size: 11px; line-height: 1.4; padding: 5px 15px; background: var(--surface); border: 1px solid var(--blue); border-radius: var(--radius); white-space: nowrap; }
.button-outline:hover { color: #fff; background: var(--blue); }

/* ── forms ──────────────────────────────────── */
.narrow { max-width: 420px; margin-left: 0; margin-right: auto; }
/* sign-in / sign-up / reset pages: the legacy login dialog (div.dialog.login: 380px body, 50px padding, full-width
   blue Facebook and green submit buttons 12px bold caps, placeholder-height inputs with an inset shadow) */
.card.narrow { max-width: 480px; margin: 0 auto 10px; padding: 50px 50px 25px; }
.card.narrow > h1 { margin-bottom: 25px; }
.narrow .form label { font-size: 13px; color: var(--muted); }
.narrow .form input:not([type=hidden]):not([type=checkbox]) { padding: 10px 0 10px 15px; box-shadow: inset 0 0 15px -5px rgba(0, 0, 0, .2); }
.narrow .form button[type=submit], .facebook-login a { display: block; width: 100%; padding: 15px 0; border: 0; border-radius: var(--radius); background: var(--green); color: #fff; font-size: 12px; font-weight: 700; text-align: center; text-transform: uppercase; }
.facebook-login { margin: 0 0 25px; }
.facebook-login a { background: var(--blue); }
.facebook-login a:hover { color: #fff; }
.auth-links { margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.auth-links a { color: var(--blue); text-decoration: underline; }
@media (max-width: 639px) { .card.narrow { padding: 20px 15px; } }
.form label { display: block; margin-bottom: 12px; font-weight: 500; }
.form input:not([type=hidden]) { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; box-shadow: inset 0 0 15px -5px rgba(0,0,0,.2); }
.form input:focus { outline: 2px solid var(--sky); outline-offset: 0; }
.form button[type=submit] { padding: 10px 15px; border: 0; border-radius: var(--radius); background: var(--blue); color: #fff; font: inherit; font-size: 13px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.form button[type=submit]:disabled { opacity: .7; cursor: progress; }
.input-with-button { display: flex; gap: 6px; margin-top: 4px; }
.input-with-button input { margin-top: 0 !important; }
.form button.ghost { background: none; border: 1px solid var(--border); color: var(--text); padding: 0 10px; border-radius: var(--radius); cursor: pointer; }
.form [aria-invalid="true"] { border-color: var(--lost); }
.field-error { color: var(--lost); margin: -6px 0 10px; font-size: 14px; }
.spinner { display: none; width: 12px; height: 12px; margin-left: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -1px; animation: spin .7s linear infinite; }
.htmx-request .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── footer (legacy footer) ─────────────────── */
.site-footer { margin-top: 70px; border-top: 10px solid var(--blue); background: var(--navy); color: var(--footer-link); padding: 5px 0 20px; }
.footer-menu { display: flex; flex-wrap: wrap; }
.footer-menu ul { list-style: none; margin: 0; padding: 0; width: 240px; }
.footer-menu li + li { margin-top: 20px; }
.footer-menu a { color: var(--footer-link); font-size: 15px; font-weight: 700; text-transform: uppercase; }
.footer-menu a:hover { color: #fff; }
.footer-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 20px; }
.footer-settings > p { flex-basis: 100%; margin: 0; color: #4f6e93; }
/* legacy custom-select: 120 / 200 / 150px, 35px tall (13px label, 10px padding), radius 5, caret right */
.footer-settings select { width: 150px; height: 35px; padding: 0 28px 0 10px; border: 0; border-radius: 5px; background: #8b9cb0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23395b77'/%3E%3C/svg%3E") no-repeat right 10px center; color: #395b77; font: inherit; font-size: 13px; cursor: pointer; appearance: none; }
.tz-switch select[data-tz-region] { width: 120px; } .tz-switch select[data-tz-city] { width: 200px; }
.tz-switch { display: inline-flex; gap: 20px; }
.footer-settings .odds-switch > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gamble-aware img { display: block; height: 24px; width: auto; }
.adults-only { display: block; }
.footer-button { width: 32px; height: 35px; border: 0; border-radius: var(--radius); background: #8b9cb0; color: #395b77; font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.footer-button:hover { color: #fff; }
.odds-note { color: grey; margin: 12px 0 0; }
.copyright { margin: 5px 0 0; padding-top: 20px; border-top: 1px solid #2f4d70; font-size: 13px; }
.odds-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.odds-switch select { font: inherit; }
.footer-settings .odds-switch select { width: auto; min-width: 150px; }

/* DMCA badge (legacy picture dmca_protected_13_120.png at the top right of the footer) */
.site-footer > .container { position: relative; }
.dmca-badge { position: absolute; right: 60px; top: 5px; line-height: 0; }
.dmca-badge img { display: block; }
.containermenu > li.drawer-only, .containermenu.menu-m { display: none; }
.nav-open .containermenu > li.drawer-only { display: flex; }
.drawer-only button { flex: 1; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border: 0; background: none; color: #fff; font: inherit; font-weight: 700; text-transform: uppercase; cursor: pointer; text-align: left; }

/* ── left sidebar (legacy www div.left-sidebar: 70px column left of the content) ── */
.page > .container { position: relative; }
.left-sidebar { display: none; }
@media (min-width: 1270px) {
  .left-sidebar { display: block; position: absolute; left: -80px; top: 0; width: 70px; height: 100%; }
  .left-sidebar .fix-wrapper { position: sticky; top: 10px; width: 70px; }
  .sport-list { list-style: none; margin: 0; padding: 0; box-shadow: var(--shadow); }
  .sport-list li { position: relative; height: 50px; border-bottom: 1px solid var(--border); background: var(--surface); }
  .sport-list li:nth-child(n+8):not(:last-child) { display: none; }
  .left-sidebar.open .sport-list li { display: block; }
  .sport-list a { display: block; height: 100%; padding: 20px 0 0 44px; font-size: 11px; line-height: 1; color: var(--muted); }
  .sport-list a:hover { color: var(--link-hover); }
  .sport-list li span[class^="icon-"] { position: absolute; top: 0; bottom: 0; left: 5px; margin: auto; height: 35px; font-size: 35px; }
  .sport-list li.sport-list-toggle { height: 30px; }
  .sport-list-toggle button { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; height: 100%; border: 0; background: none; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; }
  .sport-list-toggle button:hover { color: var(--blue); }
  .sport-list-toggle .caret-u, .left-sidebar.open .sport-list-toggle .caret-d { display: none; }
  .left-sidebar.open .sport-list-toggle .caret-u { display: inline; }
  .left-sidebar .facebook { margin-top: 10px; text-align: center; }
  .left-sidebar .facebook a { display: inline-flex; align-items: center; gap: 2px; min-height: 24px; color: var(--blue); font-size: 18px; line-height: 20px; }
  .left-sidebar .facebook .red { color: #e52d27; }
  .facebook-group-img { display: inline-block; width: 20px; height: 20px; background: url(/assets/img/group.png) no-repeat center top / contain; }
}

/* ── between phone and desktop: compact header, menu bar scrolls sideways ── */
@media (max-width: 999px) {
  .container, .wrap { padding: 0 10px; }
  .site-header { position: sticky; top: 0; z-index: 99; border-bottom: 0; }
  .header-inner { height: 58px; align-items: center; }
  .toggle-menu { padding: 0 6px 0 0; font-size: 28px; min-width: 40px; min-height: 40px; }
  .logo-full { height: 28px; padding: 0; }
  .logo:has(.logo-m) .logo-full { display: none; }
  .logo-m { display: block; height: 28px; width: auto; }
  .login-area { margin: 0 0 0 auto; gap: 8px; }
  .login-area form.login, .login-area .register { display: none; }
  .fb-login, .login-icon { display: flex; width: 40px; height: 40px; margin: 0; font-size: 20px; border-radius: var(--radius); background: var(--blue); }
  /* m. header .buttons: 40px blue icon buttons with red count badges; rarer links move into the avatar menu */
  .user-area { align-self: center; align-items: center; gap: 6px; }
  .ua-button { margin: 0; padding: 0; width: 40px; height: 40px; justify-content: center; font-size: 18px; }
  .ua-button > span, .ua-stats, .ua-icons .ua-wide, .ua-icons .caret, .ua-user .caret, .ua-user .username { display: none; }
  .ua-icons { margin: 0; gap: 6px; background: none; }
  .ua-icons > li > a, .ua-icons summary { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 3px; background: var(--blue); color: #fff; font-size: 18px; }
  .ua-icons .count { top: -7px; right: -5px; padding: 2px 5px; background: var(--red); font-size: 11px; font-weight: 400; }
  .bell-panel { position: fixed; left: 8px; right: 8px; top: 58px; width: auto; }
  .ua-user { width: auto; margin: 0; }
  .ua-user-button { padding: 0; width: 40px; height: 40px; }
  .ua-user:hover, .ua-user:focus-within { background: none; }
  .ua-user > ul { top: 48px; border-radius: 3px; }
  .ua-user .ua-narrow { display: list-item; }
  nav.top { overflow-x: auto; scrollbar-width: none; }
  body:not(.nav-open) .submenu { display: none !important; }
  .containermenu { height: 36px; padding: 0; }
  .containermenu > li { margin-right: 4px; }
  .containermenu > li > a { text-transform: none; font-size: 16px; padding: 6px; }
  .containermenu > li.nr1 img { height: 36px; margin: 0; }
  .containermenu > li > .caret, .containermenu > li.nav-icon { display: none; }
  .nav-open .containermenu > li > .caret { display: inline; }
  .nav-open .containermenu > li.nav-icon { display: flex; }
  .footer-menu ul { width: 50%; }
  .dmca-badge { position: static; margin: 15px 0 0; }
}
@media (max-width: 639px) {
  body { background: var(--bg-m); }
  .page { padding-top: 10px; }
  .card { padding: 10px; }
  .card h1, .card h2 { font-size: 18px; }
  .site-footer { margin-top: 0; border-top-width: 5px; }
  body:not(.nav-open) nav.top:has(.menu-m) > .containermenu:not(.menu-m) { display: none; }
  /* legacy m. nav.main: 32px blue bar, items 0 4px apart, links 16px bold with 6px padding, #1 picture 32px high */
  body:not(.nav-open) .containermenu.menu-m { display: flex; height: 32px; }
  .containermenu.menu-m > li { margin: 0; padding: 0 4px; }
  .containermenu.menu-m > li > a { font-size: 16px; line-height: 20px; padding: 6px; }
  .containermenu.menu-m > li.nr1 { padding: 0 8px 0 0; }
  .containermenu.menu-m > li.nr1 > a { padding: 0; }
  .containermenu.menu-m > li.nr1 img { height: 32px; }
  .footer-menu ul { width: 100%; }
  .footer-menu li + li, .footer-menu ul + ul { margin-top: 14px; }
  .tz-switch { gap: 10px; flex-wrap: wrap; }
  .footer-settings select { max-width: 100%; }
}

/* ── bet lists (legacy ul.bet-list on www, div.bet cards on m.) ── */
.block-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; padding: 15px 20px 10px; }
.card > .block-head { margin: -15px -20px 0; }
.block-head h1, .block-head h2, .block-head h3 { margin: 0; font-size: 24px; line-height: 1.2; text-transform: uppercase; color: var(--text); }
.block-head .button-outline { margin-left: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 15px; margin: 0 0 0 auto; font-size: 11px; line-height: 14px; color: var(--muted); }
.dot { display: inline-block; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; margin-right: 4px; vertical-align: -2px; color: var(--muted); }
.dot-blue { color: var(--blue); } .dot-green { color: var(--green); } .dot-orange { color: var(--orange); } .dot-red { color: var(--red); } .dot-gray { color: var(--muted); }
.bet-list { list-style: none; margin: 0; padding: 0; }
.card > .bet-list { margin: 0 -20px; }
.bet-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 80px 35px 105px; align-items: center; column-gap: 15px; height: 60px; margin: 0 20px; border-bottom: 1px solid var(--line); position: relative; }
/* hover band reaches the card edges (legacy li padding 0 20px) without clipping the hover box above the row */
.bet-row:hover { background: var(--line); box-shadow: -20px 0 0 var(--line), 20px 0 0 var(--line); }
.sport-icon { font-size: 44px; color: var(--muted); text-align: center; }
.bet-row:hover .sport-icon { color: var(--link-hover); }
.bet-info { position: relative; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; }
.bet-info > .time-ago { flex-basis: 100%; }
.bet-title { flex: 0 1 auto; min-width: 0; max-width: 360px; font-size: 18px; line-height: 21px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
.bet-title:hover { color: var(--link-hover); }
.time-ago { display: block; font-size: 13px; color: var(--muted); font-weight: 300; }
.comment-bubble { flex: none; font-size: 13px; line-height: 20px; margin-left: 15px; color: var(--muted); font-weight: 700; vertical-align: top; }
/* legacy div.hover: #265789 box 35px above the title line's bottom, down arrow, no animation; only on devices that can hover */
.bet-tip { display: none; position: absolute; left: 0; bottom: calc(100% + 14px); z-index: 15; width: 300px; padding: 10px 15px; border-radius: 3px; background: #265789; color: #fff; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; pointer-events: none; }
.bet-tip::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; width: 0; margin: auto; border-style: solid; border-width: 10px 7.5px 0; border-color: #265789 transparent transparent; }
@media (hover: hover) { .bet-title:hover ~ .bet-tip, .bet-title:focus-visible ~ .bet-tip { display: block; } }
.verified { color: var(--green); }
.bookmaker-logo { display: block; max-height: 18px; width: auto; }
.bet-site img { max-width: 80px; filter: grayscale(1); }
.bet-site a:hover img { filter: none; }
.bet-pick { display: none; }
.bet-units { font-size: 13px; }
.bet-tipster a { color: var(--text); font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.bet-tipster a:hover { color: var(--link-hover); }
/* tipster / seller page rows (legacy ul.bet-list .units 13px + .date 13px): open stake grey, settled result coloured, posting date in the last column */
.bet-units .gray { color: var(--muted); } .bet-units .green { color: var(--green); } .bet-units .red { color: var(--red); } .bet-units .orange { color: var(--orange); }
.bet-date { font-size: 13px; white-space: nowrap; }
.bet-row > .bet-date + .bet-tipster { display: none; }
@media (min-width: 640px) and (max-width: 999px) { .bet-row:has(> .bet-date) { grid-template-columns: 44px minmax(0, 1fr) 80px 35px 108px; } }
.more { margin: 0; padding: 10px 0 0; text-align: center; }
.more a, .more .link-button { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.more a:hover, .more .link-button:hover { color: var(--link-hover); }
.more .i { margin-left: 8px; }

/* feed cards (legacy ul.latest-list) */
.bet-cards { list-style: none; margin: 0 -20px -20px; padding: 0; background: var(--line); border-top: 1px solid var(--border); }
.bet-card { position: relative; display: flex; gap: 20px; padding: 20px; background: var(--surface); }
.bet-card + .bet-card { margin-top: 10px; }
.bet-card-thumb { flex: none; width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
.bet-card-thumb img { width: 100%; height: 100%; object-fit: contain; }
.bet-card-thumb .sport-icon { font-size: 56px; }
/* legacy li > .info: normal line height (Ubuntu ~1.15), so title + time + pick end level with the 82px picture box */
.bet-card-info { min-width: 0; display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; line-height: 1.15; }
.bet-card-title { flex-basis: 100%; padding-right: 110px; font-size: 18px; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.bet-card-title:hover { color: var(--link-hover); }
.bet-card .time-ago { flex-basis: 100%; padding-top: 5px; font-weight: 400; }
.bet-card-pick { flex: 0 1 auto; display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; margin-top: 8px; padding: 8px; background: var(--line); border: 1px solid var(--border); border-radius: var(--radius); }
.bet-card-pick img { display: block; height: 18px; width: auto; filter: grayscale(1); }
.bet-card-pick a:hover img { filter: none; }
.bet-card-pick span { max-width: 400px; font-size: 13px; font-weight: 700; color: var(--blue); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bet-card-more { flex: none; margin: 8px 0 0 9px; padding: 9px; border: 2px solid var(--blue); border-radius: var(--radius); font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--blue); }
.bet-card-more:hover { color: #fff; background: var(--blue); }
.bet-card-user { position: absolute; right: 15px; top: 20px; display: flex; align-items: center; font-size: 13px; font-weight: 700; color: var(--text); }
.bet-card-user:hover { color: var(--blue); }
.bet-card-user .dot { width: 15px; height: 15px; }

/* legacy ul.pagination: 30px squares, 13px bold muted digits, the current one blue */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 15px auto; }
.pager a, .pager span { min-width: 30px; height: 30px; padding: 0 4px; line-height: 28px; text-align: center; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 700; }
.pager a:hover, .pager .current { background: var(--blue); color: #fff; border-color: var(--blue); }
@media (max-width: 639px) { .pager a, .pager span { min-width: 40px; height: 40px; line-height: 38px; } }
.pager .gap { border: 0; background: none; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.result-won { color: var(--won); } .result-lost { color: var(--lost); } .result-tied { color: var(--void); }
.notice { background: var(--surface-2); border-left: 4px solid var(--orange); padding: 8px 12px; }

/* tablets: the row wraps (pick under the match) */
@media (max-width: 999px) {
  .bet-row { grid-template-columns: 44px minmax(0, 1fr) 80px 35px 90px; column-gap: 10px; margin: 0 10px; }
  .card > .bet-list { margin: 0 -10px; }
}
/* phones: every tip is a card like m. div.bet (picture, match, time, tipster; grey band with bookmaker and pick) */
@media (max-width: 639px) {
  .block-head { padding: 10px; min-height: 50px; }
  .card > .block-head { margin: -10px -10px 0; }
  .block-head h1, .block-head h2, .block-head h3 { font-size: 18px; line-height: 30px; }
  .block-head .legend { display: none; }
  .button-outline { font-size: 12px; padding: 8px 6px; }
  .card > .bet-list, .card > .bet-cards { margin: 0 -10px -10px; background: var(--bg-m); border-top: 0; }
  .bet-row { display: grid; align-items: start; grid-template-columns: 60px minmax(0, 1fr); grid-template-areas: "icon info" "icon tipster" "band band"; column-gap: 10px; height: auto; margin: 10px 0 0; padding: 10px 10px 0; border: 0; background: var(--surface); box-shadow: var(--shadow); }
  .bet-row:hover { box-shadow: var(--shadow); clip-path: none; background: var(--surface); }
  .bet-row .sport-icon { grid-area: icon; align-self: start; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; font-size: 40px; }
  .bet-info { grid-area: info; }
  .bet-title { max-width: none; white-space: normal; font-size: 18px; line-height: 20px; font-weight: 400; }
  .time-ago { font-size: 14px; font-weight: 400; margin-top: 4px; }
  .comment-bubble { margin-left: 6px; }
  .bet-tipster { grid-area: tipster; padding: 4px 0 10px; }
  .bet-tipster a { font-size: 14px; font-weight: 400; }
  .bet-site { grid-area: band; align-self: stretch; display: flex; align-items: center; gap: 10px; margin: 0 -10px; padding: 10px; background: var(--line); border-top: 1px solid var(--border); min-height: 42px; }
  .bet-site img { max-width: 114px; filter: none; }
  .bet-units { display: none; }
  .bet-date { display: none; }
  .bet-row > .bet-date + .bet-tipster { display: block; }
  .bet-pick { display: block; grid-area: band; overflow-wrap: anywhere; align-self: center; margin-left: 124px; padding: 10px 0; color: var(--blue); font-size: 14px; font-weight: 700; line-height: 16px; position: relative; }
  .bet-tip { display: none !important; }
  .bet-cards { margin: 0 -10px -10px; }
  .bet-card { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 0 10px; padding: 10px 10px 0; box-shadow: var(--shadow); }
  .bet-card-thumb { width: 60px; height: 60px; grid-row: 1 / span 3; }
  .bet-card-thumb .sport-icon { font-size: 40px; }
  .bet-card-info { display: contents; }
  .bet-card-title { grid-column: 2; grid-row: 1; padding-right: 0; font-size: 18px; line-height: 20px; font-weight: 400; }
  .bet-card .time-ago { grid-column: 2; grid-row: 2; padding-top: 4px; font-size: 14px; }
  .bet-card-user { position: static; grid-column: 2; grid-row: 3; align-self: start; padding: 4px 0 10px; font-size: 14px; font-weight: 400; }
  .bet-card-pick { grid-column: 1 / -1; grid-row: 4; max-width: none; margin: 0 -10px; padding: 10px; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
  .bet-card-pick img { filter: none; max-height: 22px; }
  .pick-label { display: none; }
  .bet-card-pick span { max-width: none; white-space: normal; overflow-wrap: anywhere; text-transform: none; font-size: 14px; line-height: 16px; }
  .bet-card-more { display: none; } /* m. feed cards have no description button */
}


/* tipster profile */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 0; }
.stats div { background: var(--surface-2); border-radius: var(--radius); padding: 8px 10px; }
.stats dt { font-size: 12px; color: var(--muted); text-transform: uppercase; }
.stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 7px 8px; border-bottom: 1px solid var(--border); text-align: right; }
.table th:first-child, .table td:first-child { text-align: left; }
.table th { color: var(--muted); font-weight: 500; }

/* ── forum ─────────────────────────────────── */
.badge { font-size: 11px; font-weight: 700; background: var(--blue); color: #fff; border-radius: 3px; padding: 1px 5px; }
.player { position: relative; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; background: #000 center / 64px no-repeat; border-radius: var(--radius); cursor: pointer; }
.player::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 42px; opacity: .85; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
@media (max-width: 599px) {
  .post-time { margin-left: 0; }
}
.inline-form { display: inline; }

/* ── post-a-tip form (legacy www bets/new: steps in a 2×2 grid, sport tiles, inline calendar, stake buttons) ── */
.post-tip { padding: 0; }
.post-tip-head { padding: 15px 20px 0; border-bottom: 1px solid var(--line); }
.post-tip-head h1 { margin: 0 0 10px; font-size: 28px; }
.post-tabs.tabs { flex-wrap: nowrap; gap: 0; margin: 0 0 -1px; border: 0; }
.post-tabs.tabs a { position: relative; padding: 0 0 12px; border-bottom: 3px solid transparent; color: var(--muted); font-size: 15px; font-weight: 700; text-transform: uppercase; }
/* legacy ul.tabs triple-dots.png: a dotted 2×15 px line between the tabs */
.post-tabs.tabs a + a { margin-left: 22px; padding-left: 22px; }
.post-tabs a + a::before { content: ""; position: absolute; left: 0; top: 1px; width: 2px; height: 15px; background: radial-gradient(circle, var(--muted) 0.9px, transparent 1.3px) 0 0 / 2px 5px repeat-y; }
.post-tabs a:hover { color: var(--link-hover); }
.post-tabs a.active { color: var(--blue); border-bottom-color: var(--blue); }
.post-tip > h1, .post-tip > p { margin: 0; padding: 15px 20px 0; }
.bet-form { margin: 0; }
.bet-form .form-errors { margin: 15px 20px 0; }
.bet-form-grid { display: grid; grid-template-columns: 1fr 1fr; }
.bet-step { min-width: 0; margin: 0; padding: 0 25px 25px; border: 0; border-bottom: 1px solid var(--border); }
.bet-form-grid > .bet-step:nth-child(odd) { border-right: 1px solid var(--border); }
.bet-step legend { display: block; width: 100%; margin: 0; padding: 25px 0 18px; font-size: 22px; font-weight: 500; color: var(--text); }
/* fields as legacy: grey inset text boxes, white-to-grey selects with a chevron (Choices look) */
.bet-form select, .bet-form textarea, .bet-form input[type=text], .bet-form input:not([type]), .bet-form input[type=datetime-local] { display: block; width: 100%; min-height: 42px; padding: 8px 18px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface-2); box-shadow: inset 0 0 15px -5px rgba(0,0,0,.2); color: var(--text); font: inherit; font-size: 17px; }
.bet-form select, .bookie-button { padding-right: 46px; appearance: none; box-shadow: none; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'%3E%3Cpath d='M1 1l9 9 9-9' fill='none' stroke='%23395b77' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center, linear-gradient(var(--surface), var(--surface-2)); }
[data-theme="dark"] .bet-form select, [data-theme="dark"] .bookie-button { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='12' viewBox='0 0 20 12'%3E%3Cpath d='M1 1l9 9 9-9' fill='none' stroke='%23dbe6ee' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center, linear-gradient(var(--surface), var(--surface-2)); }
.bet-form textarea { resize: vertical; min-height: 158px; }
.bet-form .bet-step > * + * { margin-top: 18px; }
.bet-form .bet-step > legend + *, .bet-form .bet-step > legend + input[type=hidden] + * { margin-top: 0; }
.bet-hint { margin: 0; font-size: 15px; line-height: 1.35; color: var(--muted); }
.bet-form .bet-step > select + .bet-hint { margin-top: 26px; }
.sport-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bet-form .sport-tile { position: relative; display: flex; margin: 0; align-items: center; justify-content: center; height: 76px; border: 1px solid var(--border); border-radius: 3px; color: var(--muted); font-size: 44px; cursor: pointer; }
.sport-tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sport-tile span[class^="icon-"] { float: none; padding: 0; font-family: betblog; line-height: 1; }
.sport-tile:hover { border-color: var(--blue); color: var(--blue); }
/* legacy .sport-type.selected: the tile filled blue, white icon */
.sport-tile:has(:checked) { border-color: var(--blue); background: var(--blue); color: #fff; }
.sport-tile:has(:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
/* "Bendrovė": button + list with logos over the native select (the select stays posted, hidden once Alpine runs) */
.bookie-pick { position: relative; }
.bookie-pick.js > select { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.bookie-button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 6px 46px 6px 18px; border: 1px solid var(--border); border-radius: 3px; color: var(--text); font: inherit; font-size: 17px; text-align: left; }
.bookie-button span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bookie-logo { flex: none; height: 24px; width: auto; max-width: 90px; border-radius: 2px; }
.bookie-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; max-height: 300px; margin: -1px 0 0; padding: 0; overflow-y: auto; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 0 0 3px 3px; box-shadow: 3px 3px 7px rgba(0,0,0,.1); outline: 0; }
.bookie-list li { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 7px 10px; font-size: 14px; line-height: 24px; color: var(--text); cursor: pointer; }
.bookie-list li.active { background: var(--surface-2); }
.bookie-list li.selected { font-weight: 700; }
/* team names under "Komanda 1/2" (legacy .suggest-list) */
.team-suggest { position: relative; min-width: 0; }
.suggest-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; max-height: 300px; margin: 2px 0 0; padding: 0; overflow-y: auto; list-style: none; background: var(--surface); border: 1px solid var(--border); box-shadow: 3px 3px 7px rgba(0,0,0,.1); }
.suggest-list li { padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; overflow-wrap: anywhere; }
.suggest-list li:last-child { border-bottom: 0; }
.suggest-list li:hover, .suggest-list li.active { color: var(--blue); background: var(--surface-2); }
/* inline calendar (legacy .calendar-widget.as-block) */
.calendar { border: 1px solid var(--border); border-radius: 3px; padding: 10px 10px 8px; }
.calendar-head { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 17px; }
.calendar-head b { flex: 1; text-align: center; font-weight: 700; }
.calendar-nav { width: 40px; height: 32px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.calendar-nav .i { transform: rotate(90deg); }
.calendar-nav.next .i { transform: rotate(-90deg); }
.calendar-nav:disabled { visibility: hidden; }
.calendar table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; font-size: 15px; }
.calendar thead tr { border-bottom: 1px solid var(--line); }
.calendar th { padding: 8px 0; font-weight: 700; color: var(--text); }
.calendar tbody tr:first-child td { padding-top: 6px; }
.calendar td { padding: 1px 0; }
.calendar td button { width: 37px; height: 37px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.calendar td button:hover { color: var(--blue); }
.calendar td button.selected { background: var(--blue); color: #fff; }
.bet-time { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.bet-form .bet-time select { width: 92px; min-height: 42px; padding: 6px 30px 6px 12px; background-position: right 8px center, 0 0; background-size: 14px auto, auto; font-weight: 700; }
.bet-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.bet-teams > span { font-weight: 700; }
.bet-form label.float { position: relative; display: block; margin-bottom: 0; font-weight: 400; }
.bet-form input { margin: 0; }
.bet-form label.float > span { position: absolute; z-index: 1; left: 18px; top: 6px; font-size: 12px; line-height: 1; color: var(--muted); pointer-events: none; }
.bet-form label.float > input, .bet-form label.float > select { min-height: 50px; padding-top: 20px; padding-bottom: 4px; }
.bet-units-label { margin: 18px 0 0; font-size: 17px; }
/* legacy .unitsBox: fixed boxes in two rows of five */
.stake-buttons { display: grid; grid-template-columns: repeat(5, minmax(0, 72px)); gap: 12px 14px; }
.bet-form .stake { position: relative; display: block; margin: 0; }
.stake input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.stake span { display: flex; align-items: center; justify-content: center; height: 46px; border: 1px solid var(--border); border-radius: 3px; font-size: 17px; color: var(--text); }
.stake:hover span { background: var(--surface-2); }
.stake input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.stake input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.bet-form .bet-step > .bet-win { margin-top: 26px; }
.bet-win b { color: var(--blue); }
.bet-step-comment { display: block; border-bottom: 0; }
.bet-step-comment legend { text-align: center; }
.bet-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 0 25px 25px; }
.bet-rules { margin: 0; font-size: 17px; }
.bet-rules a { color: var(--blue); text-decoration: underline; }
.bet-rules .rules-date { color: var(--red); }
.bet-form-foot button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 3px; background: var(--blue); color: #fff; font: inherit; font-size: 14px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.bet-form-foot button:hover { background: var(--blue-dark); }
@media (max-width: 767px) {
  .bet-form-grid { grid-template-columns: minmax(0, 1fr); }
  .bet-form-grid > .bet-step:nth-child(odd) { border-right: 0; }
}
@media (max-width: 639px) {
  .post-tip-head, .bet-step { padding-left: 10px; padding-right: 10px; }
  .post-tabs.tabs a { font-size: 13px; }
  .post-tip-head h1 { font-size: 24px; }
  .post-tabs.tabs a + a { margin-left: 14px; padding-left: 14px; }
  .bet-form-foot { padding: 0 10px 10px; }
  .bet-rules { font-size: 15px; }
  .sport-tiles { gap: 8px; }
  .bet-form .sport-tile { height: 60px; font-size: 34px; }
  .stake-buttons { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px 6px; }
  .calendar td button, .calendar-nav { width: 40px; height: 40px; }
  .bet-step legend { padding-top: 18px; font-size: 19px; }
}
.form-errors { margin: 0 0 12px; padding: 10px 12px 10px 28px; border-left: 4px solid var(--lost); background: var(--surface-2); color: var(--lost); }

/* ── CMS pages, news ───────────────────────── */
.cms h1 { text-transform: uppercase; font-size: 24px; line-height: 1.0; }
.cms-text { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.cms-text p { line-height: 1.7; }
.cms-text a { color: var(--link-hover); }
.cms-text img { max-width: 100%; height: auto; border-radius: var(--radius); }
.cms-text iframe, .cms-text video { max-width: 100%; }
/* Embeds anywhere in the page text (stored CMS HTML with raw <iframe>, [youtube] players, posts, tip texts, comments) never get
   wider than their column; on phones video players fill the column at 16:9 whatever width/height the editor gave them
   (inline style sizes too). Players that a wrapper already sizes (position: absolute inside a padded box) are left alone. */
.page :is(iframe, video, embed, object) { max-width: 100%; }
@media (max-width: 639px) {
  .page :is(iframe[src*="youtube.com/"], iframe[src*="youtube-nocookie.com/"], iframe[src*="youtu.be/"], iframe[src*="player.vimeo.com/"], iframe[src*="twitch.tv"], iframe[src*="streamable.com/"], iframe[src*="rutube.ru/"], iframe[src*="facebook.com/plugins/video"], iframe[src*="dailymotion.com/"]):not([style*="absolute"]) { display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; }
  .page video { height: auto; }
}
.cms-text table { width: 100%; border-collapse: collapse; margin: 12px 0; display: block; overflow-x: auto; }
.cms-text th, .cms-text td { border: 1px solid var(--border); padding: 6px 8px; }
/* Vertical rhythm of the legacy `div.text` (global margin reset, one 22.5px line between text blocks;
   headings 24/18/15/13px; lists indented 20px and followed directly by the next block). */
.cms-text p, .cms-text h1, .cms-text h2, .cms-text h3, .cms-text h4, .cms-text h5, .cms-text h6, .cms-text blockquote { margin: 0 0 22.5px; }
.cms-text h1, .cms-text h2 { font-size: 24px; }
.cms-text h3 { font-size: 18px; }
.cms-text h4 { font-size: 15px; }
.cms-text h5, .cms-text h6 { font-size: 13px; }
.cms-text ul, .cms-text ol { margin: 0; padding-left: 20px; }
.cms-text ol { padding-left: 26px; }
.cms-text li > ul, .cms-text li > ol { margin: 0; }
.cms-text > :last-child { margin-bottom: 0; }
/* bookmaker comparison rows inside CMS text (legacy style.css .table-container / .table-row, admin-written markup) */
.cms-text .table-container { max-width: 800px; margin: 0 auto; line-height: 1.4; }
.cms-text .table-row { position: relative; display: flex; align-items: center; gap: 0; margin-bottom: 15px; padding: 20px; border-radius: 8px; color: #fff; background: #292929; text-align: left; }
.cms-text .table-row > br, .cms-text .table-row .content br { display: none; }
.cms-text .table-row .logo { flex: 0 0 60px; margin-right: 15px; }
.cms-text .table-row .logo img { width: 100%; height: auto; border-radius: 5px; }
.cms-text .table-row .content { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.cms-text .table-row .content h2 { margin: 0; font-size: 22px; font-weight: 700; color: #fff; text-transform: none; }
.cms-text .table-row .content p { margin: 0; font-size: 16px; color: #f0f0f0; }
.cms-text .table-row .pros { margin: 5px 0 0; padding: 0; list-style: none; color: #d0d0d0; font-size: 13px; }
.cms-text .table-row .pros li { display: flex; align-items: center; margin-bottom: 5px; }
.cms-text .table-row .pros li::before { content: "✓"; display: flex; align-items: center; justify-content: center; flex: 0 0 16px; height: 16px; margin-right: 8px; border-radius: 50%; background: #ffc107; color: #000; font-size: 9px; }
.cms-text .table-row .cta { flex: 0 0 120px; text-align: center; }
.cms-text .table-row .cta a { display: inline-block; padding: 10px 15px; border-radius: 5px; background: #ffc107; color: #000; font-size: 14px; font-weight: 700; }
.cms-text .table-row .cta a:hover { background: #e0a800; color: #000; }
.cms-text .top-badge { position: absolute; top: 10px; left: 10px; padding: 5px 10px; border-radius: 20px; background: #ff5722; color: #fff; font-size: 10px; font-weight: 700; line-height: 1; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.cms-text .table-row.betsafe { background: #000; } .cms-text .table-row.bet { background: #1b1e25; } .cms-text .table-row.casinoadmiral { background: #292929; }
.cms-text .table-row.bet365 { background: #14805e; } .cms-text .table-row.pinnacle { background: #0b1423; } .cms-text .table-row.asianconnect { background: #4c4d4f; }
.cms-text .table-row.sport888 { background: #db661c; } .cms-text .table-row.optibet { background: #101b36; }
@media (max-width: 1023px) { .cms-text .table-row { padding: 15px; } .cms-text .table-row .content h2 { font-size: 18px; } .cms-text .table-row .content p { font-size: 14px; } }
@media (max-width: 768px) {
  .cms-text .table-row { flex-direction: column; gap: 10px; text-align: center; }
  .cms-text .table-row .logo { margin: 0 auto; }
  .cms-text .table-row .content { align-items: center; }
  .cms-text .table-row .cta { width: 100%; }
}
@media (max-width: 600px) { .cms-text .table-row .content p { display: none; } }
/* news section list (legacy ul.news-archive-list: 90px picture, 20px bold title, 14px muted date, rows 10px apart) */
.news-list { list-style: none; margin: 0 -20px; padding: 0; }
.news-list li { display: flex; align-items: flex-start; gap: 15px; margin: 0 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.news-photo img { display: block; width: 90px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.news-info { margin-top: 5px; min-width: 0; }
.news-title { display: block; margin-bottom: 5px; font-size: 20px; line-height: 20px; font-weight: 700; color: var(--text); }
.news-info .muted { font-size: 14px; }
.news-more-link { font-weight: 500; }
@media (max-width: 599px) { .cms h1 { font-size: 22px; } }
/* phones: CMS pictures floated by inline styles would squeeze the text */
@media (max-width: 639px) { .cms-text img { float: none !important; display: block; margin: 0 auto 10px; } }

/* ── guess game ────────────────────────────── */
.guess-header { display: block; width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 10px; }
.guess-links { font-size: 14px; }
.table-scroll { overflow-x: auto; }
.guess-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.guess-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px; border-bottom: 2px solid var(--border); }
.guess-event { border-top: 2px solid var(--border); }
.guess-table td { padding: 4px 6px; border-bottom: 1px solid var(--border); }
.guess-table .time { color: var(--muted); white-space: nowrap; vertical-align: top; }
.guess-table .team { font-weight: 500; }
.guess-table .win, .guess-table .total, .guess-table .handicap { text-align: center; }
.guess-table td form { margin: 0; }
.guess-table td button { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 6px; color: var(--text); font: inherit; cursor: pointer; }
.guess-table td button:hover { border-color: var(--blue); }
.guess-table .line { display: block; font-size: 12px; color: var(--muted); }
.guess-table .odd { font-weight: 700; }
.guess-table .selected, .guess-table .selected button { background: var(--blue); color: #fff; border-color: var(--blue); }
.guess-table .selected .line { color: #e8f4fb; }
.guess-table .won { outline: 2px solid var(--won); outline-offset: -2px; }
.guess-table .canceled { opacity: .55; }

/* tabs + rankings */
.tabs { display: flex; flex-wrap: wrap; gap: 0 30px; margin: 0 0 10px; border-bottom: 1px solid var(--border); }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 0 0 11px; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.tabs button:hover { color: var(--link-hover); }
.tabs button.active { color: var(--blue); border-bottom-color: var(--blue); }

/* Calculators */
.calc { margin-top: 30px; }
/* legacy calculator form: labels above 150px inputs, one field per row */
.calc-grid { display: block; }
.calc-grid label { display: block; margin-bottom: 8px; font-size: 13px; }
.calc-grid input:not([type=hidden]) { width: 150px; }
/* legacy div.content.no-content > div.info (404, empty results) */
.no-content { padding: 40px 100px; text-align: center; }
.no-content .info { margin: 0; padding: 40px 0; border: 1px solid #c7d2dc; background: var(--bg); font-size: 24px; }
@media (max-width: 639px) { .no-content { padding: 20px 10px; } .no-content .info { padding: 25px 10px; font-size: 18px; } }
.calc h2 { font-size: 1.05rem; margin: 8px 0; }
.calc-result { margin: 8px 0 14px; padding: 10px 12px; border-left: 4px solid var(--green); background: var(--surface-2); }
.calc-result p { margin: 4px 0; }

/* Bookmaker pages block of the right column (legacy div.block.bookmakers-info: grey list with a blue bar, › links) */
.side-block.bookmaker-info { padding: 0; }
.side-block.bookmaker-info > .block-head { margin: 0; border-left-color: transparent; }
.bookmaker-info ul { list-style: none; margin: 0; padding: 20px; background: var(--surface-2); box-shadow: inset 3px 0 0 var(--blue); }
.bookmaker-info li a { display: flex; align-items: center; gap: 6px; padding: 5px 0; color: var(--text); }
.bookmaker-info li a::before { content: "›"; font-size: 15px; }
.bookmaker-info li a:hover, .bookmaker-info li a[aria-current] { color: var(--blue); }

/* Paid tips market */
.btn { display: inline-block; padding: 8px 18px; border-radius: var(--radius); background: var(--green); color: #fff; font-weight: 700; text-transform: uppercase; font-size: 14px; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.small { padding: 4px 10px; font-size: .8rem; }
.market-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.market-box ul { padding-left: 0; list-style: none; }
.reviews blockquote { margin: 0 0 12px; padding-left: 12px; border-left: 3px solid var(--border); }
.reviews footer { margin-top: 4px; font-weight: 700; }
.bet-row.locked .bet-title { color: var(--muted); }
.center { text-align: center; }

/* Search */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.search-form .input-with-button input { flex: 1; }
.search-form button, .search noscript button { padding: 9px 18px; border: 0; border-radius: var(--radius); background: var(--green); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.search .gsc-control-cse { padding: 0; background: transparent; border: 0; }

/* Profile stats block (tipster and seller) */
.small { font-size: .85rem; }
.units-chart text { font-size: 11px; fill: var(--sky); }
.units-chart .area { fill: var(--sky); fill-opacity: .18; stroke: none; }
.units-chart .line { fill: none; stroke: var(--sky); stroke-width: 3; }
.units-chart .grid { stroke: var(--border); stroke-width: 1; }
.units-chart .frame { fill: none; stroke: var(--muted); stroke-width: 1; }
.units-chart circle { fill: var(--sky); stroke: var(--surface); stroke-width: 1; }
.link-button { background: none; border: 0; padding: 6px 0; color: var(--sky); font: inherit; cursor: pointer; text-decoration: underline; }
.seller-info { margin: 8px 0; }
.seller-info summary { cursor: pointer; font-weight: 700; }

/* Follow button + header messages link */
.follow-form { display: inline; margin: 0; }
.btn-outline.is-following { background: var(--sky); color: var(--navy); }
.btn-outline.gray { border-color: var(--border); color: var(--text); }
.messages-link { position: relative; font-size: 20px; text-decoration: none; color: inherit; }
.messages-link .badge { position: absolute; top: -6px; right: -10px; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--lost); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }

/* Private messages (legacy div.block.messages: 810px two-pane block, each half with its own scroll) */
.card.messages { padding: 0; }
.messages-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 20px; }
.messages-head h1 { margin: 0; }
.messages-new { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 20px; border: 0; border-radius: 3px; background: var(--blue); color: #fff; font: inherit; font-size: 13px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.messages-new:hover { background: var(--blue-dark); }
.messages > .form-errors { margin: 0 20px 20px; }
.messages-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: 810px; border-top: 1px solid var(--border); }
.inbox { display: flex; flex-direction: column; min-height: 0; margin: 0; }
.inbox-controls { flex: none; display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 10px 0 20px; border-bottom: 1px solid var(--border); }
.tick { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); cursor: pointer; }
.tick input { appearance: none; flex: none; display: grid; place-content: center; width: 20px; height: 20px; margin: 0; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); box-shadow: inset 0 0 15px -5px rgba(0,0,0,.1); cursor: pointer; }
.tick input:checked { border-color: #129fe0; }
.tick input:checked::before { content: ""; width: 12px; height: 9px; background: var(--blue); clip-path: polygon(0 55%, 14% 40%, 38% 64%, 86% 0, 100% 14%, 38% 92%); }
.inbox-delete { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 2px solid var(--lost); border-radius: 3px; background: none; color: var(--lost); font-size: 15px; cursor: pointer; }
.inbox-delete:hover { background: var(--lost); color: #fff; }
.inbox-empty { margin: 0; padding: 65px 20px 0; text-align: center; font-size: 24px; color: var(--muted); }
.inbox-list { flex: 1; min-height: 0; margin: 0; padding: 0; list-style: none; overflow-y: auto; }
.inbox-list li { position: relative; display: flex; align-items: center; height: 56px; border-bottom: 1px solid var(--line); }
.inbox-list li:hover { background: var(--line); }
.inbox-list li.unread { background: #fff9e6; }
.inbox-list li.active { background: #e7f5fc; }
[data-theme="dark"] .inbox-list li.unread, [data-theme="dark"] .inbox-list li.active { background: var(--surface-2); }
.inbox-list .tick { flex: none; align-self: stretch; padding: 0 10px 0 20px; }
.inbox-list a { flex: 1; min-width: 0; align-self: stretch; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; align-content: center; padding-right: 15px; color: var(--text); }
.inbox-list .avatar { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.inbox-list .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.inbox-list .when { font-size: 11px; color: var(--muted); white-space: nowrap; }
.inbox-list .last { grid-column: 2 / 4; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 1.2; }
.conversation-pane { position: relative; display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--border); }
.choose-conversation { margin: 100px 20px 0; text-align: center; font-size: 24px; color: var(--muted); }
.inbox-new { padding: 10px 20px; border-bottom: 1px solid var(--border); }
.inbox-new .form-errors { margin: 0 0 8px; }
.conversation { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.conversation-head { flex: none; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px; border-bottom: 1px solid var(--border); font-size: 18px; }
.conversation-head a { color: var(--text); }
.conversation-head .back { display: none; }
.thread { flex: 1; min-height: 0; margin: 0; padding: 0 0 20px; list-style: none; overflow-y: auto; }
.thread li { position: relative; display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; padding: 0 10px 0 20px; }
.thread li.sent + li.sent, .thread li.received + li.received { margin-top: 4px; }
.thread .bubble { position: relative; width: 265px; max-width: calc(100% - 60px); padding: 10px 15px; border-radius: 5px; background: var(--line); line-height: 1.2; overflow-wrap: anywhere; }
.thread .bubble p { margin: 0 0 6px; }
.thread .bubble p:last-child { margin: 0; }
.thread li.sent .bubble { margin-left: auto; background: #e7f5fc; }
.thread li.received .bubble::before, .thread li.sent .bubble::before { content: ""; position: absolute; top: 10px; border: 8px solid transparent; }
.thread li.received .bubble::before { left: -16px; border-right-color: var(--line); }
.thread li.sent .bubble::before { right: -16px; border-left-color: #e7f5fc; }
.thread li.received + li.received .bubble::before, .thread li.sent + li.sent .bubble::before { display: none; }
[data-theme="dark"] .thread li.sent .bubble { background: var(--surface-2); }
[data-theme="dark"] .thread li.sent .bubble::before { border-left-color: var(--surface-2); }
.thread .when { flex: none; width: 40px; padding-top: 10px; text-align: right; font-size: 11px; font-weight: 700; color: var(--muted); }
.thread li.received .when { margin-left: auto; }
.thread .seen-line { display: block; margin: 0 0 14px; padding: 0 10px 0 0; border-bottom: 1px dotted var(--line); text-align: right; }
.thread .seen-line span { position: relative; bottom: -6px; padding: 3px 0 3px 6px; background: var(--surface); font-size: 10px; font-style: italic; color: rgba(149,172,188,.75); }
.send-form { flex: none; position: relative; height: 200px; margin: 0; border-top: 1px solid var(--border); }
.send-form label { display: block; height: 100%; }
.send-form textarea { display: block; width: 100%; height: 75%; padding: 20px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; resize: none; outline: none; }
.send-form .form-errors { position: absolute; left: 20px; bottom: 10px; margin: 0; }
.send-form button { position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border: 3px solid #88cfee; border-radius: 3px; background: none; color: #88cfee; font: inherit; font-size: 13px; cursor: pointer; }
.send-form button:hover { border-color: var(--blue); color: var(--blue); }
/* phones (m.): the list, then the open thread with a back link */
@media (max-width: 767px) {
  .messages-grid { grid-template-columns: minmax(0, 1fr); height: auto; }
  .messages.has-open .inbox { display: none; }
  .conversation-pane { border-left: 0; }
  .conversation { height: 75vh; }
  .conversation-head .back { display: inline-flex; align-items: center; min-width: 40px; min-height: 40px; }
  .choose-conversation { display: none; }
  .inbox-list .tick { padding: 0 6px 0 10px; }
  .tick input { width: 24px; height: 24px; }
  .inbox-delete { width: 40px; height: 40px; }
  .inbox-list a { column-gap: 10px; }
  .thread .bubble { width: auto; }
  .send-form button { min-height: 40px; }
}

/* Account page (legacy pages/profile.twig: section headings with a rule, label column 270px, 350px fields, grey inputs) */
.profile-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.profile-head p { margin: 0; font-size: 13px; }
.profile-heading { margin: 20px 0 15px; padding-bottom: 15px; border-bottom: 1px solid var(--border); font-size: 18px; text-transform: uppercase; }
.profile-form .form-row { display: grid; grid-template-columns: 270px minmax(0, 350px); align-items: center; gap: 4px 0; margin: 0 0 15px; font-weight: 400; }
.profile-form .form-row[role=radiogroup] { grid-template-columns: 270px minmax(0, 1fr); }
.profile-form .row-label { font-size: 18px; line-height: 1.2; }
.profile-form .row-label small { display: block; font-size: 15px; color: var(--muted); line-height: 1.2; }
.profile-form .form-row input:not([type=radio]):not([type=file]) { margin: 0; height: 40px; padding: 0 20px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 18px; }
.profile-form .form-row input.short { max-width: 200px; }
.form input[readonly] { opacity: .7; }
.profile-form input[readonly] { opacity: 1; color: var(--muted); }
.phone-ok { color: var(--won); }
.profile-form .radios { display: flex; flex-wrap: wrap; gap: 10px 30px; }
.profile-form .radios label { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 400; cursor: pointer; }
.profile-form .radios input { appearance: none; flex: none; width: 30px; height: 30px; margin: 0; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 6px rgba(0,0,0,.08); display: grid; place-content: center; cursor: pointer; }
.profile-form .radios input:checked::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); }
.profile-form .row-note { grid-column: 1 / -1; margin: 10px 0 0; font-size: 13px; font-style: italic; color: var(--text); }
.profile-signature { display: block; margin: 0 0 15px; }
.profile-signature textarea { display: block; width: 100%; padding: 15px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 18px; resize: vertical; }
.form-row-buttons { margin: 10px 0 0; }
.form-ok { margin: 0 0 12px; padding: 10px 12px; border-left: 4px solid var(--won); background: var(--surface-2); }
.avatar-row .row-label { align-self: start; }
.avatar-pick { display: flex; align-items: center; gap: 0; }
.avatar-pick .avatar { width: 96px; height: 96px; border: 3px solid var(--navy); border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.avatar-change { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 30px; border: 3px solid var(--blue); border-radius: 3px; color: var(--blue); font-size: 15px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.avatar-change:hover, .avatar-change:focus-within { background: var(--blue); color: #fff; }
.avatar-change input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
@media (max-width: 639px) {
  .profile-form .form-row, .profile-form .form-row[role=radiogroup] { grid-template-columns: minmax(0, 1fr); }
  .profile-form .radios label { min-height: 40px; }
  .profile-form .row-label, .profile-form .radios label, .profile-form .form-row input:not([type=radio]):not([type=file]) { font-size: 15px; }
}
/* right column "Paskyros balansas" (legacy #available-balance) */
.balance-card { text-align: center; padding-bottom: 30px; }
.balance-card h2 { margin: 0 -20px 20px; padding: 10px 20px 20px; border-bottom: 1px solid var(--border); font-size: 18px; text-transform: uppercase; }
.balance-total { margin: 10px 0 0; font-size: 42px; font-weight: 700; line-height: 1.1; color: var(--won); }
.balance-total .i { font-size: 38px; vertical-align: -4px; }
.balance-link { display: block; margin: 5px 0 15px; font-size: 18px; font-weight: 700; }
.balance-button { display: flex; align-items: center; justify-content: center; min-height: 40px; margin: 10px 0; border-radius: 3px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.balance-button:hover { color: #fff; background: var(--blue-dark); }

/* Forum write side */
.topic-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.topic-tools form { margin: 0; }
.btn-outline.small { padding: 4px 10px; font-size: 12px; }
.votes { display: inline-flex; align-items: center; gap: 4px; }
.votes form { display: inline; }
.vote { padding: 2px 6px; border: 1px solid var(--border); border-radius: var(--radius); background: none; cursor: pointer; line-height: 1.2; }
.vote.active { border-color: var(--sky); background: var(--surface-2); }
.link-button.danger { color: var(--lost); }
.report summary { list-style: none; display: inline; }
.report summary::-webkit-details-marker { display: none; }
.report[open] form { display: flex; gap: 6px; margin-top: 6px; }
.post-edit textarea, .reply-form textarea, .new-topic textarea { display: block; width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; resize: vertical; }

/* bell list (header dropdown "Naujausi pranešimai" and the notifications page): icon + text rows, two grey footer buttons */
.notifications ul { margin: 0; padding: 0; list-style: none; }
.notifications li a { display: flex; align-items: flex-start; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 18px; line-height: 1.2; }
.notifications li a:hover { background: var(--surface-2); }
.notifications li.unseen a { color: var(--text); }
.notifications .n-icon { margin-top: 2px; font-size: 18px; }
.notifications-empty { margin: 0; padding: 15px 20px; color: var(--muted); }
.notifications-foot { display: flex; background: var(--surface-2); }
.notifications-foot > a, .notifications-foot button { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 10px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.notifications-foot form { flex: 1; display: flex; margin: 0; border-left: 1px solid var(--border); }
.notifications-foot > a:hover, .notifications-foot button:hover { color: var(--blue); }
.notifications-page .notifications { margin: 0 -20px -20px; border-top: 1px solid var(--border); }
.notifications-page .n-expand { display: none; }
.notifications-page .notifications-foot form { border-left: 0; }
/* legacy forum/unread: title block with the big "Pažymėti visus skaitytais", grey info box, links, breadcrumb again */
/* legacy forum/unread: h1 top-left, the blue button lower right (88px card) */
.forum-unread-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 20px; padding: 20px; }
.forum-unread-head h1 { margin: 0; font-size: 24px; line-height: 1; text-transform: none; }
.forum-unread-head form { margin: 14px 0 0; }
.forum-mark-read { padding: 10px 15px; border: 0; border-radius: 3px; background: var(--blue); color: #fff; font: inherit; font-size: 13px; font-weight: 700; line-height: 14px; text-transform: uppercase; cursor: pointer; }
.forum-mark-read:hover { background: var(--blue-dark); }
.info-box { max-width: 600px; margin: 40px auto 30px; padding: 30px 20px; border: 1px solid var(--border); background: var(--line); text-align: center; font-size: 24px; color: var(--text); }
.info-links { display: flex; justify-content: center; gap: 30px; margin: 0 0 40px; font-size: 20px; }
.info-links a { color: var(--text); text-decoration: underline; }
.crumbs-bottom { padding-top: 15px; padding-bottom: 15px; font-size: 15px; }
.crumbs-bottom a, .crumbs-bottom span { color: var(--text); }
.crumbs-bottom .sep { padding: 0 10px; }
@media (max-width: 639px) { .info-box { font-size: 18px; } .info-links a, .crumbs-bottom a { display: inline-flex; align-items: center; min-height: 40px; } }
.topic-list .unread-count { margin-left: 6px; padding: 0 6px; border-radius: 9px; background: var(--won); color: #fff; font-size: 11px; }


.btn-outline.danger { border-color: var(--lost); color: var(--lost); }
.moderation-list { list-style: none; padding: 0; } .moderation-list > li { padding: 10px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; } .moderation-list form { margin: 6px 0 0; }

/* ── admin area ── */
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-bottom: 12px; padding: 8px 12px; background: var(--surface); border-radius: var(--radius); }
.admin-nav a { color: var(--text); font-weight: 500; }
.admin-nav a[aria-current] { color: var(--sky); border-bottom: 2px solid var(--sky); }
.admin-logout { margin-left: auto; }
.admin-flash { padding: 8px 12px; border-left: 4px solid var(--won); background: var(--surface-2); margin: 0 0 12px; }
.admin-flash.is-error { border-left-color: var(--lost); color: var(--lost); }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.admin-filter input, .admin-filter select { min-width: 0; max-width: 100%; }
.admin-filter { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 12px; }
.admin-filter input:not([type=checkbox]):not([type=hidden]), .admin-filter select,
.admin-form select, .admin-form textarea, .admin-event input:not([type=hidden]) { padding: 6px 9px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); color: var(--text); font: inherit; }
.admin-form select, .admin-form textarea { display: block; width: 100%; margin-top: 4px; }
.admin-form textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 12px; }
.admin-fieldset { border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 14px; padding: 8px 12px; }
.admin-fieldset legend { font-weight: 700; padding: 0 4px; }
.form label.check, .admin-filter label.check, .admin-checks label { display: inline-flex; align-items: center; gap: 6px; margin: 0 14px 8px 0; font-weight: 400; }
.form label.check input, .admin-checks input { display: inline; width: auto; margin: 0; }
.admin-ban { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; }
.admin-ban > span { min-width: 180px; }
.admin-ban input, .admin-ban select { width: auto !important; display: inline-block !important; margin: 0 !important; }
.admin-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 14px; font-size: 14px; }
.admin-facts dt { color: var(--muted); }
.admin-facts dd { margin: 0; overflow-wrap: anywhere; }
.admin-table td, .admin-table th { text-align: left; }
.admin-tiles .is-waiting { outline: 2px solid var(--lost); }
.admin-tiles dt a { color: inherit; }
.admin-tabs a { padding: 8px 12px; color: var(--muted); border-bottom: 3px solid transparent; }
.admin-tabs a[aria-current] { color: var(--text); border-bottom-color: var(--blue); }
.admin-event { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; margin-bottom: 12px; }
.admin-event.is-inactive { opacity: .6; }
.admin-event header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.admin-event .inline-edit { display: inline-flex; gap: 4px; margin: 0 0 4px; }
.admin-event header .inline-edit:first-of-type input { min-width: 240px; }
.admin-odds input { width: 100%; min-width: 70px; }
.admin-odds tr.is-won td { background: color-mix(in srgb, var(--won) 14%, transparent); }
.badge.danger { background: var(--lost); }
.admin-delete { margin-top: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
@media (max-width: 560px) {
  .admin-facts { grid-template-columns: 1fr; }
  .admin-facts dd { margin-bottom: 6px; }
  .admin-event header .inline-edit:first-of-type input { min-width: 0; width: 100%; }
}

/* ── shop (phase 5) ── */
.shop-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 12px; margin-bottom: 12px; }
.shop-balance { margin-right: auto; }
.shop-flash { padding: 8px 12px; border-left: 4px solid var(--won); background: var(--surface-2); margin: 0 0 12px; }
.shop-active { padding: 8px 12px; border-left: 4px solid var(--won); background: var(--surface-2); }
.shop-offers { border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; margin: 0 0 12px; }
.shop-offers legend { font-weight: 700; padding: 0 4px; }
.form label.shop-offer { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-weight: 400; cursor: pointer; }
.form label.shop-offer input { display: inline; width: auto; margin: 0; }
.shop-offer span { min-width: 120px; }
.shop-code { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.shop-code label { flex: 1 1 200px; margin-bottom: 0; }
.shop-quote { margin: 10px 0; }
.shop-list { padding-left: 18px; }
.shop-list li { margin: 4px 0; }
/* legacy purchases/history table: muted 13px heads, 18px rows */
.shop-table th, .shop-table td { padding: 8px 10px 8px 0; text-align: left; border-bottom: 1px solid var(--line); }
.shop-table th { font-size: 13px; font-weight: 400; border: 0; }
.shop-table td { font-size: 17px; color: var(--text); }
.shop-table .nowrap, .shop-table .i { white-space: nowrap; }
/* legacy purchases/sms: package select, "1. Informacija", total, terms + confirm, collapsible "Kaip veikia" */
.sms-form { margin: 0; }
.sms-select select { height: 48px; min-width: 280px; padding: 0 40px 0 15px; border: 0; border-radius: 3px; background: #95acbc; color: #fff; font: inherit; font-size: 16px; }
.sms-summary { margin-top: 30px; padding: 20px 0; border-top: 1px solid var(--border); }
.sms-step, .sms-line { margin: 0 0 15px; font-size: 18px; }
.sms-line { display: flex; justify-content: space-between; gap: 10px; }
.sms-text { margin: 0; font-size: 18px; line-height: 1.2; }
.sms-text .plus { color: var(--won); font-size: 22px; }
.sms-total { margin: 0; padding: 25px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sms-confirm { display: flex; align-items: center; justify-content: space-between; gap: 15px 30px; padding-top: 25px; }
.sms-confirm p { margin: 0; font-size: 18px; line-height: 1.2; }
.sms-confirm button { flex: none; min-height: 48px; padding: 0 20px; border: 0; border-radius: 3px; background: var(--blue); color: #fff; font: inherit; font-size: 16px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.sms-confirm button:hover { background: var(--blue-dark); }
.sms-how > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.sms-how > summary::-webkit-details-marker { display: none; }
.sms-how > summary h2 { margin: 0; font-size: 28px; }
.sms-how .toggle-button { display: flex; align-items: center; justify-content: center; width: 44px; height: 40px; margin-left: auto; border: 1px solid var(--border); border-radius: 3px; color: var(--muted); }
.sms-how[open] .toggle-button .i { transform: rotate(180deg); }
@media (max-width: 639px) { .sms-confirm { flex-direction: column; align-items: stretch; } .sms-select select { width: 100%; min-width: 0; } .sms-how > summary h2 { font-size: 20px; } }

/* banner slots (filled by app.js): legacy div[data-banner-block] (line-height 0, no margin; top-header on navy).
   Slots inside the columns were div.block.center: an empty one still kept its 10px block gap, so the blocks around it
   sit where they will stay when the banner arrives. */
.banner-slot { line-height: 0; text-align: center; overflow: hidden; }
.banner-slot:empty { display: none; }
/* m. top ad place (pid 435) sat on #173960 above the header */
.ad-top { background: #173960; text-align: center; line-height: 0; }
.banner-slot[data-banner-block="top-header"] { background: var(--navy); }
.banner-slot[data-banner-block="bottom"].has-banner { margin-bottom: 10px; }
.banner-slot img { max-width: 100%; height: auto; }
@media (min-width: 640px) {
  .home-main > .banner-slot[data-banner-media="(min-width: 640px)"]:empty, .home-side > .banner-slot:empty, .side-common > .banner-slot:empty { display: block; }
}
.admin-files { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.admin-files li { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.admin-files img { max-width: 100%; max-height: 120px; border-radius: var(--radius); background: var(--surface-2); }
.admin-files input { width: 100%; font-size: 12px; padding: 3px 5px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
.admin-logo { max-height: 22px; max-width: 88px; }
.admin-banner-img { max-width: 100%; max-height: 200px; }
details.admin-fieldset > summary { cursor: pointer; padding: 4px 0; }

/* ── home page (legacy #content 780px + div.right-sidebar 300px; m. section.content) ── */
.home { display: grid; grid-template-columns: minmax(0, 780px) 300px; justify-content: space-between; gap: 20px; align-items: start; }
.home-main, .home-side { min-width: 0; display: flex; flex-direction: column; }
.home-main > *, .home-side > * { margin-bottom: 10px; }
/* the ad-server place and the first (side-small) banner slot are empty most of the time: they must not push the first sidebar block below the top of the main column (legacy right-sidebar started level with #content) */
.home-side > .ad-place:empty, .side-common > .ad-place:empty { display: none; }
.home-side > .banner-slot[data-banner-block="side-small"]:empty, .side-common > .banner-slot[data-banner-block="side-small"]:empty { display: none; }

/* news cards (legacy div.news-list > div.new-block) */
.news-cards { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.news-card { position: relative; display: flex; height: 80px; background: var(--surface); box-shadow: var(--shadow); }
.news-card-img { position: relative; flex: 0 0 33.333%; min-width: 0; overflow: hidden; background: var(--surface-2); }
.news-card-img a { display: block; height: 100%; }
.news-card-img img { display: block; width: 100%; height: 80px; object-fit: cover; }
.news-card-img::after { content: ""; position: absolute; right: 0; top: 32%; border: 14px solid transparent; border-right-color: var(--surface); border-left: 0; }
.news-card-text { flex: 1; min-width: 0; display: flex; align-items: center; padding: 16px 10px 0; }
.news-card h3 { margin: 0; min-width: 0; overflow-wrap: break-word; font-size: 14px; line-height: 1.1; font-weight: 500; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.news-card h3 a { color: var(--text); }
.news-card h3 a:hover { color: var(--link-hover); }
.news-card-type { position: absolute; right: 0; top: 0; padding: 2px 4px; font-size: 12px; line-height: 14px; font-weight: 300; text-transform: uppercase; color: #fff; background: var(--blue); }
.news-card-type:hover { color: #fff; }

/* "Statymai" block */
.home-latest { padding-bottom: 10px; }
.home-latest .block-head h2 { font-size: 24px; }
.home-latest .legend { position: absolute; right: 20px; top: 15px; }
.more-m { display: none; }

/* shop bar (legacy #market-banner) */
.market-banner { display: flex; align-items: flex-start; height: 50px; background: var(--navy); color: #fff; line-height: normal; }
.market-banner-icon { width: 35px; height: auto; margin: 8px 20px 0 10px; }
/* owner's sample (image 31): both lines inside the 50px bar, the subtitle ending ~5px above its bottom */
.market-banner-text b { display: block; padding-top: 7px; font-size: 20px; line-height: 22px; font-weight: 700; text-transform: uppercase; }
.market-banner-text span { display: block; padding-top: 1px; font-size: 13px; line-height: 15px; }
.market-banner-more { margin: 8px 0 8px 40px; padding: 7px 20px; background: var(--green); color: #fff; border-radius: var(--radius); text-transform: uppercase; font-weight: 500; font-size: 18px; }
.market-banner-count { margin: 8px 15px 8px auto; padding: 7px 20px; background: var(--blue); color: #fff; border-radius: var(--radius); font-weight: 500; font-size: 18px; }
.market-banner-more:hover, .market-banner-count:hover { color: #fff; filter: brightness(1.08); }
.market-banner-count b { color: #b9ec53; font-weight: 500; }

/* forum + slider pair (legacy div.block.small, 385 x 380 each) */
.home-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home-pair > .card { margin: 0; }
/* statymai "lt/" page: heading block, "Apie Statymai" in two columns (legacy #bets-text col-md-6), admin links box */
.lt-heading { padding-top: 15px; padding-bottom: 15px; }
.lt-heading h1 { margin: 0; font-size: 24px; line-height: 28px; text-transform: uppercase; }
.cols-main > .home-pair { margin-bottom: 10px; }
.lt-about-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
.lt-about h3 { margin: 10px 0; font-size: 18px; line-height: 22px; }
.lt-about p { margin: 0 0 10px; font-size: 15px; line-height: 22px; }
.mod-links { padding-top: 10px; }
.mod-links ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; }
.mod-links a { display: flex; align-items: center; gap: 5px; min-height: 30px; font-size: 15px; font-weight: 700; line-height: 1.2; color: var(--text); }
.mod-links a:hover { color: var(--link-hover); }
.mod-links .i { flex: none; width: 18px; height: 18px; }
.mod-links .red { color: var(--red); }
.mod-links-top { display: none; }
@media (max-width: 899px) { .mod-links-side { display: none; } .mod-links-top { display: block; order: -1; } }
@media (max-width: 639px) { .lt-about-cols, .cols-main > .home-pair { grid-template-columns: minmax(0, 1fr); } .mod-links a { min-height: 40px; } }
.card.small { height: 380px; overflow: hidden; }
.home-forum .block-head h2 { font-size: 24px; }
.home-topics { list-style: none; margin: 0 -20px; padding: 0; }
.home-topics li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: start; height: 40px; padding: 0 20px; color: var(--text); }
.home-topics li + li a { border-top: 1px solid var(--line); }
.home-topics li a:hover { background: var(--line); }
.home-topic-title { grid-row: 1 / span 2; align-self: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 500; }
.home-topics li a:hover .home-topic-title { color: var(--link-hover); }
.home-topic-user { padding-top: 5px; max-width: 95px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; font-size: 13px; font-weight: 700; line-height: 1.1; }
.home-topic-time { grid-column: 2; text-align: right; font-size: 10px; color: var(--muted); }
.home-topic-title .i { color: var(--text); }
.home-forum .home-topics li a { height: 32px; }
.home-slider { padding: 0; position: relative; }
/* legacy div.slider div.controlls: white 16px circles with a grey ring, bottom-left */
.slider-dots { position: absolute; left: 10px; bottom: 5px; display: flex; gap: 4px; }
.slider-dots button { position: relative; width: 16px; height: 16px; padding: 0; border: 1px solid #666; border-radius: 50%; background: #fff; cursor: pointer; }
.slider-dots button::after { content: ""; position: absolute; inset: -12px -2px; }
.home-slider ul { list-style: none; margin: 0; padding: 0; height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.home-slider li { flex: 0 0 100%; scroll-snap-align: start; }
.home-slider a, .home-slider img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* www: one topic list of 10 (the m. tabs and the extra rows are for phones) */
.forum-tabs, .sport-chips, .home-mobile-banner { display: none; }
.home-forum .topics-latest li:nth-child(n+11) { display: none; }
/* tip rows: league picture and tip text only on phones (legacy m.) */
.bet-thumb, .bet-desc { display: none; }

/* feed block header like the other blocks; its cards sit on the grey page colour */
.home-feed { padding-bottom: 20px; }
.home-articles { margin-top: 10px; }
/* legacy .latest-more-container: centred blue button after the feed */
.latest-more { margin: 0; padding: 20px; text-align: center; }
.latest-more-button { display: inline-block; margin-top: 10px; padding: 15px 50px; border-radius: 3px; background: var(--blue); color: #fff; font-size: 18px; font-weight: 700; text-transform: uppercase; }
.latest-more-button:hover { color: #89cfee; }

/* right column blocks: thin header with a coloured bar on the left */
.side-block { position: relative; padding: 0 20px 10px; }
.side-block::before { content: ""; display: none; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--bar, var(--green)); z-index: 1; pointer-events: none; }
.side-block > .block-head { position: relative; margin: 0 -20px; padding: 10px 20px; border-left: 3px solid var(--link-hover); }
.side-block h3 { font-size: 18px; line-height: 22px; }
.home-top { padding-bottom: 0; }
.home-top.is-open > .block-head { border-left-color: transparent; }
.toggle-button { margin-left: auto; width: 30px; height: 25px; padding: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); background: none; color: #8a9caf; font-size: 18px; cursor: pointer; }
.toggle-button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.is-open .toggle-button .i { transform: rotate(180deg); }
/* legacy div.toggle-button: absolutely placed, it does not make the header taller (header = 10 + 22 + 10) */
.side-block .toggle-button { position: absolute; right: 20px; top: 0; bottom: 0; margin: auto; }
/* month top rows (legacy right-sidebar ul.list: legend 11px, rows 13px with 10px padding, columns 135 / 60 / 65; tabs 11px apart) */
.home-top .tabs { gap: 0 22px; }
.home-top-table { table-layout: fixed; font-size: 13px; line-height: 1.2; }
.home-top-table th, .home-top-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.home-top-table th { padding-top: 0; border: 0; font-size: 11px; font-weight: 400; }
.home-top-table th:first-child { width: 135px; } .home-top-table th:nth-child(2) { width: 60px; }
.home-top-table td { color: var(--text); }
.home-top-table td.result-won { color: var(--won); } .home-top-table td.result-lost { color: var(--lost); }
.home-top-table td a { color: inherit; }
.home-top-table tr:hover td:first-child a { color: var(--blue); }
.home-top-table tr:last-child td { border: 0; }
.home-top-table td:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* legacy div.summary div.links: two grey footer buttons under the table */
.home-top.is-open { padding-bottom: 0; }
.home-top-links { display: flex; height: 50px; margin: 0 -20px; background: var(--surface-2); border-top: 1px solid var(--border); }
.home-top-links a { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.home-top-links a + a { border-left: 1px solid var(--border); }
.home-top-links a:hover { color: var(--blue); }
.home-bookmakers { background: var(--surface-green); padding-bottom: 20px; }
.home-bookmakers > .block-head { border-left-color: transparent; padding-top: 15px; }
.home-bookmakers::before { display: block; } /* green bar over the whole block, not just under the title */
.home-bookmakers-list { list-style: none; margin: 0 -20px; padding: 0; }
.home-bookmakers-list li { display: flex; align-items: center; gap: 10px; height: 31px; margin: 0 20px; border-bottom: 1px solid var(--line); }
.home-bookmakers-list li:hover { background: #cae496; box-shadow: 0 0 0 20px #cae496; clip-path: inset(0 -20px); }
.home-bookmakers-list li:nth-child(n+9) { display: none; }
.home-bookmakers-list.is-open li { display: flex; }
.home-bm-logo img { max-height: 22px; max-width: 106px; }
.home-bm-count { font-size: 13px; color: var(--text); }
.btn-open { margin-left: auto; padding: 2px 8px; background: var(--green); color: #fff; border-radius: var(--radius); font-size: 15px; font-weight: 700; text-transform: uppercase; line-height: 1.3; }
.btn-open:hover, .btn-open:focus { color: #fff; background: var(--navy); }
.home-bookmakers .more .link-button { text-transform: uppercase; }
.home-bookmakers .more .link-button:hover { color: #558000; }
.bookers-note { margin: 10px -5px 0; padding-top: 15px; border-top: 1px solid var(--line); font-size: 10.8px; text-align: center; color: var(--text); }
.home-guess .home-topics li a { height: 36px; }

/* narrower desktops / tablets: content column shrinks, then the sidebar drops under it */
@media (max-width: 1099px) {
  .home { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 899px) {
  .home { grid-template-columns: minmax(0, 1fr); }
  .news-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* phones: block order and look of the m. home page */
@media (max-width: 639px) {
  .home-main > .home-news { order: 1; } .home-latest { order: 2; } .home-pair { display: contents; } .home-slider { order: 3; }
  .home-before-feed { order: 4; } .market-banner { order: 5; } .home-forum { order: 6; } .home-feed { order: 7; } .latest-more { order: 7; } .home-articles, .home-newsblock { order: 8; }
  .news-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  /* legacy m. div.news-list .block: 80px bar, picture 1/3 (cover), title 14px/20px uppercase (3 lines) centred under the label, label 12px */
  .news-card { height: 80px; box-shadow: none; }
  .news-card-img { flex-basis: 33.333%; }
  .news-card-img img { height: 80px; }
  .news-card-text { padding: 18px 15px 0; } /* legacy 0 15px; the 18px keep a long first line clear of the label */
  .news-card h3 { font-size: 14px; line-height: 20px; font-weight: 500; text-transform: uppercase; -webkit-line-clamp: 3; }
  .home-latest .legend { display: none; }
  .more-m { display: inline-block; }
  .home-latest > .more { display: none; }
  .home-latest, .home-feed, .bets-page { padding-bottom: 10px; background: transparent; box-shadow: none; padding-left: 0; padding-right: 0; }
  .home-latest > .block-head, .home-feed > .block-head, .bets-page > .block-head { margin: -10px 0 0; background: var(--surface); box-shadow: var(--shadow); }
  .card > .bet-list, .home-feed .bet-cards { margin: 0; background: transparent; }
  .market-banner { height: auto; min-height: 68px; align-items: center; flex-wrap: nowrap; position: relative; }
  .market-banner-more { position: absolute; inset: 0; margin: 0; opacity: 0; }
  .market-banner-text b { font-size: 22px; }
  .market-banner-text { min-width: 0; }
  .market-banner-count { margin: 10px 10px 10px auto; font-size: 20px; padding: 8px 16px; position: relative; white-space: nowrap; }
  .card.small { height: auto; }
  .home-slider { background: transparent; box-shadow: none; }
  .home-slider img { height: auto; }
  .home-topics { margin: 0 -10px; }
  .home-topics li a { padding: 0 10px; }
  .home-forum .home-topics li a { height: 55px; }
  .home-forum .home-topic-title { font-size: 18px; font-weight: 700; }
  .home-topic-user { padding-top: 12px; font-size: 13px; max-width: 90px; }
  .home-topic-time { font-size: 12px; }
  .side-block { padding: 0 10px 10px; }
  .side-block > .block-head { margin: 0 -10px; padding: 10px; }
  .home-bookmakers-list { margin: 0 -10px; }
  .home-bookmakers-list li { height: 40px; margin: 0 10px; }
  .home-news .news-card:nth-child(n+3) { display: none; } /* m. shows two articles */
  .home-slider { width: 100%; max-width: 300px; margin: 0 auto 10px; }
  .home-mobile-banner { display: block; order: 4; }
  /* sport chips (legacy m. section.mobile-menu-block): full-width navy band right under the menu bar; legacy padding .75em,
     grid of 6 with .5em gaps, items 1px rgb(255 255 255/.2) border, radius 5px, margin-bottom 1em, icon 2em (32px, ~37px high) */
  .sport-chips { display: block; margin: -10px -10px 10px; padding: 12px 12px 0; background: var(--navy); }
  .sport-chips-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 8px; }
  .sport-chip { position: relative; display: flex; align-items: center; justify-content: center; height: 37px; margin-bottom: 16px; border: 1px solid rgb(255 255 255 / .2); border-radius: 5px; background: none; color: var(--blue); cursor: pointer; transition: .2s all; }
  .sport-chip:hover { color: var(--sky); }
  .sport-chip span[class^="icon-"] { font-size: 32px; padding-right: 5px; }
  .sport-chip b { position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; padding: 2px 0; border-radius: 50%; background: rgba(255,255,255,.4); color: #fff; font-size: 13px; line-height: 16px; font-weight: 700; text-align: center; }
  .chips-toggle .i { font-size: 24px; }
  /* forum block: three tabs (legacy m. ul.tabs) */
  .forum-tabs { display: flex; gap: 0 30px; margin: 0 0 10px; }
  .forum-tabs button { font-size: 18px; padding-bottom: 8px; }
  .home-forum .topics-latest li:nth-child(n+11) { display: list-item; }
  /* tip rows: league picture instead of the sport icon; "Aprašymas" toggle with the tip text */
  .bet-row.has-picture > .sport-icon { display: none; }
  .bet-thumb { display: block; grid-area: icon; width: 60px; height: 60px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; }
  .bet-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .bet-row { grid-template-areas: "icon info" "icon tipster" "band band" "desc desc"; }
  .bet-desc { display: block; grid-area: desc; margin: 0 -10px; border-top: 1px solid var(--border); }
  .bet-desc-text { padding: 10px 10px 20px; font-size: 14px; line-height: 16px; color: var(--text); overflow-wrap: anywhere; }
  .bet-desc-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 50px; border: 0; background: var(--surface); color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; text-transform: uppercase; cursor: pointer; }
  .bet-desc.open .bet-desc-toggle { border-top: 1px solid var(--border); }
  .bet-desc.open .bet-desc-toggle .i { transform: rotate(180deg); }
}
.admin-rows { list-style: none; margin: 0; padding: 0; }
.admin-rows li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border-bottom: 1px solid var(--border); padding: 4px 0; }
.admin-rows li .admin-filter { margin: 0; min-width: 0; max-width: 100%; }
@media (max-width: 639px) { .admin-rows li .admin-filter input:not([type=checkbox]):not([type=hidden]) { flex: 1 1 120px; width: auto; } }
.admin-filter input.code, .admin-form .code { font-family: ui-monospace, Consolas, monospace; }

/* My subscriptions (visitors/subscriptions, visitors/premiumSubscriptions) */
.page-tabs a { padding: 8px 12px; color: var(--muted); border-bottom: 3px solid transparent; }
.page-tabs a[aria-current] { color: var(--text); border-bottom-color: var(--blue); }
.list-heading { font-size: 1rem; margin: 16px 0 4px; color: var(--muted); text-transform: uppercase; }
.new-badge { margin-left: 6px; background: var(--won); }
.sub-list { list-style: none; margin: 0; padding: 0; }
.sub-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.sub-list li:last-child { border-bottom: 0; }
.sub-list .sub-name { flex: 1 1 140px; font-weight: 500; }
.sub-list .follow-form { margin: 0; }
/* in the 300px right column (legacy div.block.subscriptions): name + units on one line, the two small buttons under them */
.cols-side .sub-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 10px; }
.cols-side .sub-list .sub-profit { text-align: right; }
.cols-side .sub-list .follow-form .btn-outline { width: 100%; padding: 5px 6px; font-size: 11px; }
.cols-side .subscriptions h2 { font-size: 18px; text-transform: uppercase; }
.cols-side .sub-table th, .cols-side .sub-table td { padding: 8px 4px; font-size: 13px; }

/* ── inner pages: breadcrumb bar + content column with right sidebar (legacy div.block.breadcrumbs, #content 780px + div.right-sidebar 300px) ── */
/* owner: `.header { background: #395b77; padding: 7px 0 7px 10px; }` */
.crumb-bar, nav.crumbs { display: block; margin-bottom: 10px; padding: 7px 0 7px 10px; background: #395b77; box-shadow: var(--shadow); font-size: 14px; line-height: 18px; color: #fff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.crumb-bar a, .crumb-bar .here, nav.crumbs a, nav.crumbs span { color: #fff; font-size: 14px; }
.crumb-bar a:first-child { text-transform: uppercase; }
.crumb-bar a:hover { color: #fff; text-decoration: underline; }
.crumb-bar .sep { padding: 0 5px; }
.card > h1:only-child { margin: 0; }
.card:has(> h1:only-child) { padding-bottom: 10px; }
.cols { display: grid; grid-template-columns: minmax(0, 780px) 300px; grid-template-areas: "crumbs side" "main side"; grid-template-rows: auto 1fr; justify-content: space-between; column-gap: 20px; align-items: start; }
.cols-crumbs { grid-area: crumbs; min-width: 0; }
.cols-main { grid-area: main; min-width: 0; }
.cols-side { grid-area: side; min-width: 0; }
@media (max-width: 1099px) { .cols { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 899px) { .cols { grid-template-columns: minmax(0, 1fr); grid-template-areas: "crumbs" "side" "main"; grid-template-rows: none; } }
/* shared right column (partials/side): blocks 10px apart; under the content on narrower screens; m. inner pages had
   none of them except the forum's "Naujausi įrašai" at the bottom */
.side-common > * { margin-bottom: 10px; }
@media (max-width: 899px) { .cols:has(> .side-common) { grid-template-areas: "crumbs" "main" "side"; } }
/* forum lists (legacy div.block.summary.open + div.highlighter.green; ul.topic-list rows 32px, normal weight in the sidebar) */
.side-forum { padding-bottom: 0; }
.side-forum > .block-head { border-left-color: transparent; }
/* legacy div.highlighter.green: a 3px bar the full height of the block, above the rows (z-index 1) so a hovered row's grey
   background never covers it; "Naujausios temos" keeps the blue one */
.side-forum::before { content: ""; display: block; }
.side-forum-topics { --bar: var(--link-hover); }
.side-forum .home-topics li a { height: 32px; }
.side-forum .home-topic-title, .side-forum .home-topic-user { font-weight: 400; }
.side-forum .home-topic-user { max-width: 69px; padding-top: 2px; }
/* m. div.block.forum: plain header, the rows of the m. home forum block */
@media (max-width: 639px) {
  .side-forum::before { display: none; }
  .side-forum .toggle-button { display: none; }
  .side-forum .home-topics li a { height: 55px; }
  .side-forum .home-topic-title { font-size: 18px; font-weight: 700; }
  .side-forum .home-topic-user { max-width: 90px; padding-top: 12px; font-weight: 700; }
}
@media (max-width: 639px) { .side-common > .home-top, .side-common > .home-bookmakers, .side-common > .side-forum ~ .side-forum { display: none; } }

/* tabs made of links / spans (legacy ul.tabs: bold 13px caps, blue underline on the active one) */
.tabs span, .tabs a { margin-bottom: -2px; padding: 0 0 14px; border-bottom: 3px solid transparent; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.tabs a:hover { color: var(--link-hover); }
.tabs span.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ── tipster / seller profile (legacy div.right-sidebar > div.block.user; m. div.block.profile) ── */
.user-block { padding: 20px; }
.user-block > * + * { margin: 0; padding-top: 15px; border-top: 1px solid var(--line); }
.user-block > .user-main + * { margin-top: 10px; }
.user-main { display: flex; align-items: flex-start; gap: 15px; padding-bottom: 10px; }
.user-main .avatar img { display: block; width: 70px; height: 70px; border: 4px solid var(--blue); border-radius: 35px; object-fit: cover; background: var(--surface); }
.profile-name { margin: 5px 0 0; font-size: 13px; line-height: 1.2; text-transform: none; font-weight: 700; }
.card h2.profile-name { font-size: 13px; text-transform: none; }
.user-counts { display: flex; margin: 8px 0 0; font-size: 11px; line-height: 1.2; color: var(--text); }
.user-counts span { padding-right: 10px; }
.user-counts span + span { padding: 0 0 0 10px; border-left: 1px solid var(--muted); }
.verified-check { margin-right: 5px; color: var(--won); font-size: 16px; }
.verified-check .i { vertical-align: -3px; }
.places { margin: 0; padding-top: 10px; font-size: 13px; line-height: 20px; }
.places a { display: flex; align-items: flex-start; padding: 0 5px 5px 0; color: var(--text); }
.places a:hover { color: var(--link-hover); }
.places b { flex: none; width: 20px; height: 20px; margin-right: 10px; background: url(/assets/img/place.png) no-repeat; color: #fff; text-align: center; font-size: 12px; font-weight: 700; }
.user-block .main-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 0; padding-bottom: 10px; text-align: center; }
.user-block .main-stats div { padding: 0; background: none; border-radius: 0; }
.user-block .main-stats dt { font-size: 11px; line-height: 1.2; color: var(--muted); text-transform: none; }
.user-block .main-stats dd { margin-top: 10px; font-size: 18px; line-height: 1.2; font-weight: 700; color: var(--text); }
.user-block .main-stats dd.result-won { color: var(--won); } .user-block .main-stats dd.result-lost { color: var(--lost); }
.last-ten { display: block; margin: 0; padding-bottom: 20px; font-size: 13px; color: var(--text); }
.bet-history { display: flex; gap: 2px; margin: 10px 0 0; padding: 0; list-style: none; }
.bet-history li { width: 24px; height: 5px; background: var(--muted); }
.bet-history li a { display: block; width: 100%; height: 100%; border-radius: 0; background: none; }
.bet-history li.green { background: var(--won); }
.bet-history li.red { background: var(--lost); }
.bet-history li.orange { background: #f0a030; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding-bottom: 15px; }
.profile-actions form { display: contents; }
.user-block .btn-outline { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 123px; padding: 6px 0; border-width: 3px; text-align: center; font-size: 13px; line-height: 1.4; }
.user-block .btn-outline .i { font-size: 15px; }
.user-block .btn-outline.wide { width: 100%; }
.user-block .btn-outline.gray { border-color: var(--muted); color: var(--muted); }
.user-block .btn-outline.gray:hover { background: var(--muted); color: #fff; }
.more-toggle { display: block; width: 100%; padding: 15px 0 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--muted); font: inherit; font-size: 15px; font-weight: 700; text-transform: uppercase; text-align: center; cursor: pointer; }
.more-toggle:hover { color: var(--blue); }
.more-toggle .i { margin-left: 10px; font-size: 12px; }
.more-toggle .i.is-up { transform: rotate(180deg); }
.user-block.open .more-toggle { color: var(--text); }
.profile-more { padding-top: 10px; border-top: 1px solid var(--line); }
.stats-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 0; margin: 0; padding: 0; list-style: none; font-size: 11px; line-height: 11px; }
.stats-grid h3 { margin: 20px 0 5px; font-size: 13px; text-align: center; text-transform: uppercase; }
.units-chart { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.plist { list-style: none; margin: 0 -20px; padding: 0; }
.plist li { position: relative; padding: 0 20px; }
.plist li:hover { background: var(--line); }
.plist li > a { display: flex; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.2; color: #415161; }
.plist li > a:hover { background: none; }
.plist li > a span { flex: 0 0 60px; }
.plist li > a span:first-child { flex: 1 1 auto; min-width: 0; }
.plist li > a span:last-child { flex-basis: 65px; }
.plist.expand > li > a { padding-left: 20px; }
.plist.expand > li > a span:first-child { flex: 0 0 110px; }
.plist.expand ul { margin: 0 -20px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.plist.expand ul li > a { padding-left: 20px; }
.plist.expand ul li > a span:first-child { flex: 0 0 110px; }
.plist li .fold { position: absolute; left: 20px; top: 9px; width: 16px; height: 16px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 16px; line-height: 16px; cursor: pointer; }
.plist li .fold:hover { color: var(--blue); }
@media (max-width: 639px) {
  .user-block { padding: 10px 10px 0; }
  .user-block .main-stats dd { font-size: 24px; line-height: 30px; font-weight: 400; }
  .user-block .main-stats dt { font-size: 14px; color: var(--text); }
  .last-ten { padding-bottom: 10px; font-size: 14px; font-weight: 700; text-transform: uppercase; }
  .bet-history { gap: 4px; }
  .bet-history li { flex: 1 1 0; width: auto; height: 8px; }
  .profile-actions { flex-wrap: nowrap; padding-bottom: 10px; }
  .user-block .btn-outline { flex: 1 1 0; width: auto; min-height: 40px; padding: 8px 0; }
  .more-toggle { margin: 0 -10px; width: calc(100% + 20px); padding: 15px 0; background: var(--surface-2); }
  .stats-list { font-size: 14px; line-height: 20px; }
  .plist { margin: 0 -10px; }
  .plist li { padding: 0 10px; }
  .plist li > a, .plist.expand > li > a { font-size: 14px; }
  .plist li > a span, .plist.expand > li > a span:first-child, .plist.expand ul li > a span:first-child { flex: 1 1 25%; }
  .plist li > a span:first-child, .plist.expand > li > a span:first-child { flex: 2 1 50%; }
  .plist li .fold { left: 10px; width: 24px; height: 24px; top: 5px; }
  .plist.expand > li > a { padding-left: 24px; }
  .plist li > a { min-height: 40px; align-items: center; }
}

/* ── forum (legacy div.block.discussion-info / discussion / div.post; values from the live style.css and m. style.css) ── */
.forum-title { padding: 15px 20px 10px; }
.discussion-info { padding: 20px; }
.discussion-info h1 { margin: 0; font-size: 24px; line-height: 1; text-transform: none; }
.discussion-info h1 .i-lock { font-size: 20px; }
.discussion-info.is-member { padding-bottom: 35px; }   /* legacy: the hidden new-topic form kept 15px under the bar */
.discussion-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 15px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border); }
.discussion-bar .pager { margin: 0; justify-content: flex-start; }
.discussion-bar:empty { display: none; }
.discussion-buttons { display: flex; gap: 15px; margin-left: auto; }
.discussion-buttons .follow-form { display: block; }
/* legacy .anchor-button: 10px 15px, 13px bold uppercase, line-height 1 (34px high); icons as [class^=icon-] with 5px after */
.anchor-button, .discussion-buttons .btn-outline.small { display: inline-flex; align-items: center; padding: 10px 15px; border: 0; border-radius: var(--radius); background: var(--muted); color: #fff; font-size: 13px; font-weight: 700; line-height: 14px; text-transform: uppercase; cursor: pointer; }
.anchor-button.blue { background: var(--blue); }
.anchor-button:hover, .discussion-buttons .btn-outline.small:hover { background: var(--muted); color: #fff; filter: brightness(1.08); }
.anchor-button.blue:hover { background: var(--blue); }
.discussion-buttons .btn-outline.is-following { background: var(--muted); color: #fff; }
.anchor-button .i, .action-button .i, .discussion-buttons .btn-outline .i { margin-right: 5px; }
/* legacy .small-action-button (+ .gray/.blue/.red/.orange-solid-bg): 11px uppercase, 5px 10px */
.action-button { display: inline-flex; align-items: center; padding: 5px 10px; border: 0; border-radius: var(--radius); background: var(--muted); color: #fff; font: inherit; font-size: 11px; font-weight: 400; line-height: 11px; text-transform: uppercase; cursor: pointer; list-style: none; white-space: nowrap; }
.action-button::-webkit-details-marker { display: none; }
.action-button:hover { color: #fff; filter: brightness(1.08); }
.action-button.blue { background: var(--blue); }
.action-button.red { background: var(--red); }
.action-button.orange { background: var(--orange); }
.action-button.gray { background: var(--muted); }
/* moderators' row under a second divider (legacy: grey Perkelti, red Ištrinti, orange lock / pin / pin to sidebar) */
.topic-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 1px; margin-top: 30px; padding-top: 15px; border-top: 1px solid var(--border); }
.topic-tools form { margin: 0; }
.topic-tools .action-button { padding-top: 6px; padding-bottom: 6px; }
.forum-page details { position: relative; }
.forum-page details > summary { list-style: none; }
.forum-page details > summary::-webkit-details-marker { display: none; }
.forum-page details > form { position: absolute; z-index: 20; top: 100%; left: 0; display: flex; flex-wrap: wrap; gap: 8px; width: 300px; max-width: 80vw; margin-top: 4px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 3px 3px 7px 0 rgba(0,0,0,.1); }
.forum-page details > form select, .forum-page details > form input { flex: 1 1 100%; min-width: 0; }

/* topic / category rows (legacy li: 75px, 55px in the forum index; icon at 20px, title at 70px, count at 555px, last reply right) */
.discussion { padding: 0; }
.discussion .band { margin: 0; padding: 16px 20px; background: var(--muted); color: #fff; font-size: 18px; line-height: 1.2; font-weight: 700; text-transform: uppercase; }
.discussion .band a { color: #fff; }
.forum-desc { display: none; }
.discussion .forum-cats, .discussion .topic-list { margin: 0; padding: 0; list-style: none; }
.discussion .forum-cats li, .discussion .topic-list li { position: relative; display: flex; align-items: center; min-height: 55px; padding: 0 20px; border: 0; line-height: 1; }
.discussion .topic-list li { min-height: 75px; }
.discussion .forum-cats li + li, .discussion .topic-list li + li { border-top: 1px solid #e1e6e8; }
.discussion .forum-cats li:hover, .discussion .topic-list li:hover { background: var(--line); }
.discussion .forum-cats li:hover::before, .discussion .topic-list li:hover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--link-hover); pointer-events: none; }  /* legacy div.highlighter */
.topic-icon { flex: 0 0 50px; color: var(--text); font-size: 24px; line-height: 1; }
.topic-icon .i { display: block; }
.i-newspaper-o { width: 1.125em; }
.topic-icon .i-lock, .topic-icon .i-fa-thumbtack { position: absolute; top: 5px; left: 5px; font-size: 16px; }
.i-lock, .i-unlock, .i-fa-trash { width: .875em; }
.i-fa-thumbtack { width: .75em; }
.i-caret-right, .i-caret-left { width: .375em; }
.i-exclamation { width: .375em; }
.i-edit { width: 1.125em; }
.discussion .forum-cat-main, .discussion .topic-main { display: flex; align-items: center; flex: 0 1 485px; min-width: 0; padding: 4px 0; }
.discussion .forum-cat-title, .discussion .topic-title { max-width: 400px; font-size: 18px; font-weight: 700; line-height: 1.2; color: var(--text); overflow-wrap: anywhere; }
.discussion .forum-cat-title:hover, .discussion .topic-title:hover { color: var(--link-hover); }
.discussion .forum-cat-main .muted { display: none; }
.discussion .topic-main .topic-cat { display: none; }
.discussion .unread-count { display: inline-flex; align-items: center; margin: 0 15px 0 auto; padding: 5px 10px; border-radius: var(--radius); background: var(--won); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; }
.discussion .unread-count .i { margin-right: 5px; }
.discussion li.is-unread .topic-icon { color: var(--won); }  /* legacy icon-newspaper-o.green */
.discussion .forum-cat-stats, .discussion .topic-stats { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }
.discussion .total { display: block; font-size: 13px; font-weight: 300; line-height: 1; color: var(--muted); white-space: nowrap; }
.discussion .total > span { display: block; }
.discussion .total .i { margin-right: 5px; vertical-align: -2px; }
.discussion .last-reply { display: block; max-width: 160px; margin-left: auto; padding-left: 10px; text-align: right; font-size: 13px; line-height: 1; color: var(--muted); font-weight: 300; }
.discussion .last-reply b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 700; }
.discussion .last-reply span { display: block; }
.discussion .last-reply .rel { display: none; }
.discussion .topic-list .is-sticky { background: none; }
.discussion > .muted { padding: 20px; margin: 0; }
.discussion-info.bottom { padding: 20px; }
.discussion-info.bottom .discussion-bar { margin: 0 0 15px; padding: 0 0 15px; border-top: 0; border-bottom: 1px solid var(--border); }
.discussion-crumbs { font-size: 14px; font-weight: 300; line-height: 1.4; }
.discussion-crumbs a { color: var(--text); }
.discussion-crumbs a:hover { color: var(--link-hover); }
.discussion-crumbs .i { margin: 0 5px; font-size: 12px; vertical-align: -1px; }

/* posts (legacy div.block > div.post: avatar 70px left, content column; line-height 1 like the legacy body) */
.forum-page .post { position: relative; display: flex; align-items: flex-start; gap: 20px; padding: 15px 20px; border: 0; }
.post-avatar { flex: 0 0 70px; width: 70px; height: 70px; overflow: hidden; background: var(--surface-2); }
.post-avatar img { display: block; width: 70px; height: 70px; object-fit: cover; }
.post-content { flex: 1 1 auto; min-width: 0; }
.post .user-info { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 0; font-size: 13px; line-height: 1.4; }
.post-author { color: var(--text); font-size: 13px; font-weight: 700; }
.post-count { color: var(--muted); font-weight: 700; }
.post-time { margin-left: auto; color: var(--muted); font-weight: 400; }
.post-no { margin-left: 2px; }
.post .badge { font-size: 11px; }
.post .comment, .post-body { margin-top: 15px; color: var(--text); font-size: 15px; line-height: 20px; overflow: hidden; overflow-wrap: anywhere; }
.post .comment a { color: var(--blue); }
.post .quote { margin: 15px 0 0; padding: 10px; background: var(--line); border: 1px solid #c7d2dc; color: var(--text); font-size: 15px; line-height: 20px; }
.post .quote span { display: block; padding-bottom: 5px; font-size: 13px; font-weight: 700; color: var(--text); }
.post .quote p { margin: 0; }
.post .signature { margin: 10px 0 0; padding: 5px 0 0; border-top: 1px solid #e1e6e8; line-height: 1.5; color: var(--text); font-size: 13px; overflow-wrap: anywhere; }
.forum-page .user-info { gap: 0; line-height: 15px; min-height: 15px; }
.forum-page .post-author { display: inline-flex; align-items: center; }
.forum-page .post-author .i { margin-right: 5px; font-size: 16px; vertical-align: 0; }
.forum-page .user-info .verified { margin-left: 5px; font-size: 15px; line-height: 1; }
.forum-page .user-info .verified .i { display: block; }
.forum-page .post-count { margin-left: 10px; font-size: 13px; }
.forum-page .post-count .i { margin-right: 5px; vertical-align: -2px; }
.forum-page .post-time { color: var(--muted); font-size: 13px; }
.forum-page .post-no { margin-left: 4px; color: var(--muted); }
.forum-page .post-no:hover { color: var(--link-hover); }
.forum-page .post-edited { margin-left: 4px; cursor: help; }
.forum-page .post-quote { margin-top: 0; }
.forum-page .quote span { padding-bottom: 0; line-height: 20px; }
.forum-page .post .post-facts { margin: 10px 0 0; padding-top: 5px; border-top: 1px solid #e1e6e8; font-size: 12px; color: #808080; }
.forum-page .post .post-facts b { color: #808080; }
[data-theme="dark"] .forum-page .post .post-facts, [data-theme="dark"] .forum-page .post .post-facts b { color: var(--muted); }
.forum-page .post .ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 15px; font-size: 11px; }
.forum-page .post .ctrl form { margin: 0; }
/* "!" report mark in the card's bottom-left corner (legacy members' report link) */
.forum-page .post .report { position: absolute; left: 5px; bottom: 5px; }
.forum-page .post .report > summary { display: block; padding: 2px 4px; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; }
.forum-page .post .report > summary:hover { color: var(--red); }
.forum-page .post .report > form { top: auto; bottom: 100%; margin: 0 0 4px; }
/* legacy div.voting-block: thumb 18px #d5d8d9 (green when liked), score 16px bold */
.forum-page .post .ctrl .votes { display: inline-flex; align-items: center; margin-left: auto; gap: 0; }
.forum-page .post .ctrl .votes form { display: block; }
.forum-page .post .ctrl .vote { display: block; margin-top: 3px; padding: 0 5px; border: 0; background: none; color: #d5d8d9; font-size: 18px; line-height: 1; cursor: pointer; filter: none; }
.forum-page .post .ctrl .vote .i { display: block; }
.forum-page .post .ctrl .vote.active, .forum-page .post .ctrl button.vote:hover, .forum-page .post .ctrl a.vote:hover { color: var(--won); }
.forum-page .post .ctrl .vote.is-disabled { cursor: default; }
.forum-page .post .ctrl .votes b { padding: 0 7px; font-size: 16px; line-height: 1; color: var(--text); }
.forum-page .post .ctrl .votes b.result-won { color: var(--won); }
.forum-page .post .ctrl .votes b.result-lost { color: var(--lost); }
.pager .i { vertical-align: -.125em; }
#reply { margin-top: 0; padding: 20px; }
.forum-page .post.is-new { background: var(--surface-green); }  /* legacy .new (#f8ffe9): posts unread until this visit */
#reply .discussion-bar { margin-top: 15px; }
#reply.discussion-info.bottom .discussion-bar { padding-bottom: 30px; }
.reply-note { margin: 0; }
/* post editor toolbar (legacy .bbeditor-button: 30px boxes, 2px #95acbc border, green when open) */
.bbeditor { position: relative; }
.bb-bar, .bb-panel { display: flex; flex-wrap: wrap; gap: 0 3px; }
.bb-panel { padding-top: 5px; border-top: 1px solid var(--muted); }
.bb-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; margin: 0 0 5px; padding: 3px 1px; border: 2px solid var(--muted); border-radius: 3px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; line-height: 22px; cursor: pointer; user-select: none; }
.bb-btn.active { border-color: var(--won); }
.bb-btn .i { font-size: 16px; }
.i-text-height { width: 1.125em; }
.i-bold { width: .75em; }
.i-italic { width: .625em; }
.i-underline, .i-paperclip { width: .875em; }
.bb-color { width: 30px; }
.bb-size .i { font-size: inherit; }
.bb-media { align-items: center; gap: 6px; padding-bottom: 5px; }
.bb-media input { flex: 1 1 220px; min-width: 0; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; }
.bbeditor textarea { display: block; width: 100%; min-height: 58px; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; resize: vertical; }
.form .label { display: block; margin-bottom: 12px; font-weight: 500; }

/* m.statymai.com: 40px topic rows (title, author and relative time on the right, no count), 50px round avatar */
@media (max-width: 639px) {
  .discussion-info { padding: 10px; }
  .discussion-info.is-member { padding-bottom: 10px; }
  .discussion-info h1 { font-size: 18px; line-height: 1.3; text-transform: uppercase; }
  .discussion-info.bottom { padding: 10px; }
  .discussion-buttons { flex: 1 1 100%; margin-left: 0; gap: 10px; }
  .discussion-buttons > * { flex: 1 1 0; }
  .discussion-buttons .follow-form { display: contents; }
  .discussion-buttons .anchor-button.blue { order: -1; }
  .anchor-button, .discussion-buttons .btn-outline.small { justify-content: center; min-height: 40px; padding: 10px; font-size: 14px; text-align: center; }
  .topic-tools { margin-top: 10px; padding-top: 10px; }
  .discussion .forum-cats li, .discussion .topic-list li { min-height: 40px; padding: 0 10px; }
  .discussion .topic-list li { min-height: 40px; }
  .topic-icon { flex: 0 0 auto; margin-right: 5px; font-size: 16px; }
  .topic-icon .i-lock, .topic-icon .i-fa-thumbtack { position: static; display: inline-block; margin-left: 5px; font-size: 16px; }
  .topic-icon { display: flex; align-items: center; }
  .discussion .forum-cat-main, .discussion .topic-main { flex: 1 1 auto; margin-right: 80px; padding: 0; }
  .discussion .forum-cat-title, .discussion .topic-title { max-width: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; line-height: 40px; }
  .discussion .unread-count { margin: 0 0 0 auto; padding: 3px 5px; font-size: 10px; }
  .discussion .unread-count .i { margin-right: 3px; }
  .forum-unread-head { padding: 10px; }
  .forum-unread-head h1 { font-size: 18px; line-height: 1.3; }
  .forum-unread-head form { margin: 0; }
  .discussion .forum-cat-stats, .discussion .topic-stats { position: absolute; top: 0; right: 10px; bottom: 0; display: block; flex: none; }
  .discussion .total { display: none; }
  .discussion .last-reply { max-width: 70px; margin: 0; padding: 6px 0 0; }
  .discussion .last-reply b { font-size: 12px; line-height: 14px; }
  .discussion .last-reply span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-top: 2px; font-size: 10px; line-height: 12px; font-weight: 400; }
  .discussion .last-reply .full { display: none; }
  .discussion .last-reply .rel { display: block; }
  .forum-page .post { display: block; padding: 10px; }
  .forum-page .post-avatar { position: absolute; top: 10px; left: 10px; width: 50px; height: 50px; border-radius: 25px; }
  .forum-page .post-avatar img { width: 50px; height: 50px; }
  .forum-page .user-info { min-height: 60px; padding-left: 60px; align-content: flex-start; }
  .forum-page .post-time { flex: 1 1 100%; margin-left: 0; padding-top: 4px; text-align: right; }
  .forum-page .post-quote { margin: 0 0 10px; border: 0; }
  .forum-page .post .comment, .forum-page .post-body, .forum-page .post .quote { font-size: 14px; line-height: 16px; }
  .forum-page .post-quote + .comment { margin-top: 0; }
  .forum-page .post .ctrl { padding-top: 10px; margin-top: 0; }
  .forum-page .post .ctrl .action-button { min-height: 40px; padding: 6px 10px; font-size: 14px; font-weight: 700; }
  .forum-page .post .report { position: static; }
  .forum-page .post .report > summary { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; border-radius: var(--radius); background: var(--red); color: #fff; font-size: 14px; }
  /* the report / move popovers sit in the flow on a phone: absolute + 300px from the button's left edge pushed the page wider than the screen */
  .forum-page details > form, .forum-page .post .report > form { position: static; width: auto; max-width: none; margin: 6px 0 0; }
  .forum-page .post .ctrl details[open], .topic-tools details[open] { flex-basis: 100%; min-width: 0; }
  .forum-page details > form select { max-width: 100%; }
  .forum-page .post .ctrl .vote { min-width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: center; margin: 0; }
}

/* ── seller / expert cards (legacy div.content.sellers > div.seller: 380px navy cards, two per row) ── */
.sellers { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; margin-bottom: 20px; }
.sellers .seller { margin: 0; padding: 0; background: linear-gradient(to bottom, #102b48, #153960); box-shadow: none; color: #fff; }
.seller-head { display: grid; grid-template-columns: 70px minmax(0, 1fr); column-gap: 15px; row-gap: 8px; align-content: center; margin: 0; padding: 20px; border-bottom: 1px solid #0d243d; }
.seller-head .avatar { grid-row: 1 / 3; width: 70px; height: 70px; border: 4px solid var(--blue); border-radius: 35px; object-fit: cover; background: transparent; }
.seller-head .username { align-self: end; min-width: 0; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.seller-head .username:hover { color: #fff; }
.seller-head .follow-form { display: block; margin: 0; align-self: start; justify-self: start; }
.seller-head > .btn, .seller-head > .btn-outline { align-self: start; justify-self: start; }
.seller-head .btn, .seller-head .btn-outline { display: inline-block; padding: 5px 15px; border: 1px solid #fff; border-radius: var(--radius); background: none; color: #fff; font-size: 11px; font-weight: 400; line-height: 1.4; text-transform: uppercase; }
.seller-head .btn:hover, .seller-head .btn-outline:hover, .seller-head .btn-outline.is-following { background: #fff; color: #173960; }
.seller .stats { display: flex; gap: 0; margin: 0; border-top: 1px solid #2d4d70; }
.seller .stats > div { flex: 1 1 25%; min-width: 0; height: 60px; padding: 12px 0 0; border-radius: 0; text-align: center; color: #8299ac; background: linear-gradient(to bottom, #153960, #102b48); }
.seller .stats > div:not(:last-child) { border-right: 1px solid #0d243d; }
.seller .stats > div:not(:first-child) { border-left: 1px solid #2d4d70; }
.seller .stats dd { display: block; margin: 0 0 3px; font-size: 22px; font-weight: 700; line-height: 1.1; color: var(--blue); }
.seller .stats dd.result-won { color: var(--won); }
.seller .stats dd.result-lost { color: var(--lost); }
.seller .stats dt { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.1; text-transform: uppercase; color: #8299ac; }
/* live "premium/naujausios/": cards 30px under the list, outlined "Pardavėjų TOP" (legacy .button.border); "market/pardavejai/":
   the cards on the grey ground inside the title block (legacy div.content.sellers, 2 × 380px = the 780px column) */
.market-sellers { margin-top: 30px; }
.market-sellers-more { margin: 10px 0 30px; }
.button-border { display: inline-block; padding: 9px 15px; border: 3px solid var(--blue); border-radius: 3px; color: var(--blue); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.button-border:hover { background: var(--blue); color: #fff; }
.market-sellers-page { padding-bottom: 0; }
.market-sellers-ground { margin: 0 -20px; padding-top: 20px; background: var(--bg); }
.market-sellers-ground .sellers { margin-bottom: 0; }
@media (max-width: 799px) { .sellers { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
@media (max-width: 639px) { .market-sellers-ground { margin: 0 -10px; padding-top: 10px; } .button-border { min-height: 44px; } }
@media (max-width: 639px) { .seller-head { padding: 10px; } .seller .stats dd { font-size: 18px; } .seller .stats dt { font-size: 10px; } }

/* ── rankings (legacy ul.visitors-list: 360px tables with a slate header row) ── */
/* align-items: start: a short table (5 experts) keeps its own height instead of stretching its rows to the long one's (legacy floats) */
.ranking-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); align-items: start; gap: 20px; margin-top: 20px; }
.ranking { width: 100%; border-collapse: collapse; font-size: 13px; }
/* legacy rows: 10px padding, 13px text at line-height 1 → 33px head, 34px rows with their 1px line */
.ranking th { padding: 10px 15px; background: #395b77; color: #fff; font-weight: 700; line-height: 1; text-align: left; }
.ranking td { padding: 10px 15px; border-bottom: 1px solid var(--line); line-height: 1; text-align: left; color: var(--text); }
.ranking td.result-won { color: var(--won); }
.ranking td.result-lost { color: var(--lost); }
.ranking td a { color: var(--text); }
.ranking td a:hover { color: var(--link-hover); }
.ranking th:first-child, .ranking td:first-child { width: 58%; }
@media (max-width: 799px) { .ranking-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) { .ranking th { padding: 12px 10px; } .ranking th, .ranking td { line-height: 1.4; } .ranking td { padding: 0 10px; } .ranking td a { display: block; padding: 12px 0; } }
/* ── sport / league page (legacy groups/index: cover with text + FORUMAS, tabs Aktyvūs / Archyvas in place) ── */
.bet-cover.group-cover { padding-bottom: 20px; text-align: left; }
.bet-cover.group-cover .bet-crumbs { padding-right: 0; }
.bet-cover.group-cover h1 { margin: 15px 0 0; font-size: 28px; text-transform: none; text-align: left; }
.group-text { margin-top: 10px; font-size: 15px; line-height: 1.5; color: #fff; overflow-wrap: anywhere; }
.group-text p { margin: 0 0 10px; }
.group-text a { color: #fff; text-decoration: underline; }
.group-text img { max-width: 100%; height: auto; }
.group-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; }
.cover-button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 26px; border: 2px solid var(--sky); border-radius: 3px; color: #fff; font-size: 15px; text-transform: uppercase; }
.cover-button:hover { background: var(--sky); color: #fff; }
.group-tabs { gap: 0; margin: 20px 0 0; }
.group-tabs a { display: block; margin-bottom: -1px; padding: 0 0 15px; border-bottom: 3px solid transparent; color: var(--muted); font-size: 15px; font-weight: 700; text-transform: uppercase; }
.group-tabs a + a { margin-left: 25px; padding-left: 25px; background: linear-gradient(var(--border), var(--border)) 0 2px / 1px 14px no-repeat; }
.group-tabs a:hover { color: var(--link-hover); }
.group-tabs a.active { color: var(--blue); border-bottom-color: var(--blue); }
.group-page .tab-panel > .bet-list { margin: 0 -20px; }
.group-page .tab-panel > .muted { margin: 15px 0 0; }
.best-of-group .place { display: inline-block; width: 20px; height: 20px; margin-right: 8px; background: url(/assets/img/place.png) no-repeat; color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
@media (max-width: 639px) {
  .bet-cover.group-cover h1 { font-size: 20px; }
  .group-text { font-size: 14px; }
  .group-tabs a { padding: 10px 0; font-size: 14px; }
  .group-tabs a + a { margin-left: 15px; padding-left: 15px; }
  .group-page .tab-panel > .bet-list { margin: 0 -10px; }
}

/* ── tip page (legacy www div.block.bet + div.block.comments; right column = tipster card) ── */
.cols-tip { grid-template-areas: "main side"; grid-template-rows: auto; }
@media (max-width: 899px) { .cols.cols-tip { grid-template-areas: "main" "side"; } }
/* phones (legacy m.): the tipster card sits between the tip and the comments, in its short form (name, thanks, followers and
   the "detailed statistics" toggle; legacy .profile.minimal.closed hides the main stats, history and buttons) */
@media (max-width: 639px) {
  .cols-tip { display: flex; flex-direction: column; align-items: stretch; }
  .cols-tip > .cols-main { display: contents; }
  .cols-tip > .cols-main > .bet-page { order: 1; }
  .cols-tip > .tip-side { order: 2; }
  .cols-tip > .cols-main > :not(.bet-page) { order: 3; }
  .tip-side > :not(.profile-stats) { display: none; }
  .tip-side > .profile-stats:not(.open) :is(.main-stats, .last-ten, .profile-actions) { display: none; }
}
.bet-page { position: relative; min-height: 360px; }
/* cover: sport photo (group_files "background", 780×210 at the top left) on navy */
.bet-cover { position: relative; overflow: hidden; margin: -15px -20px 0; padding: 10px 20px 10px; background: #17395f; color: #fff; text-align: center; }
.bet-cover > :not(.bet-cover-bg, .bet-cover-user) { position: relative; }
.bet-cover-bg { position: absolute; left: 0; top: 0; width: 780px; max-width: none; height: 210px; object-fit: cover; object-position: left top; }
.bet-crumbs { margin: 0; padding-right: 160px; text-align: left; font-size: 14px; line-height: 20px; }
.bet-crumbs a { color: #fff; }
.bet-crumbs a:hover { color: var(--sky); }
.bet-crumbs .i { margin: 0 8px; font-size: 12px; vertical-align: -1px; }
.bet-cover-user { position: absolute; right: 20px; top: 10px; display: flex; align-items: center; color: #fff; font-size: 15px; }
.bet-cover-user .dot { width: 16px; height: 16px; margin-right: 6px; border-width: 2px; }
.bet-cover h1 { margin: 10px 0 0; color: #fff; font-size: 28px; line-height: 1.2; text-transform: uppercase; overflow-wrap: anywhere; }
.bet-cover-time { margin: 10px 0 0; font-size: 18px; font-weight: 700; }
.bet-button { display: inline-flex; align-items: center; gap: 10px; padding: 10px; border-radius: 3px; background: var(--green); color: #fff; }
.bet-button:hover { color: #fff; filter: brightness(1.08); }
.bet-button .bookmaker-logo { max-height: 22px; }
.bet-button .i { font-size: 16px; }
.bet-cover > .bet-button { margin-top: 10px; }
/* www tip cover rows at the legacy heights (line-height 1 everywhere, 16px crumbs, 18px bookmaker logo): 173px for a
   one-line title with a bookmaker button, so the poll box (hung from the cover's bottom) starts 67px down as in legacy */
@media (min-width: 640px) {
  .bet-page > .bet-cover .bet-crumbs { line-height: 16px; }
  .bet-page > .bet-cover h1 { line-height: 1; }
  .bet-page > .bet-cover .bet-cover-time { line-height: 19px; }
  .bet-page > .bet-cover .bookmaker-logo { max-height: 18px; }
  .bet-page > .bet-cover .bet-cover-details { line-height: 1; }
}
.bet-cover-details { margin: 10px 0 0; text-align: left; font-size: 12px; color: var(--muted); }
/* phone-only parts: league logo in the head, bookmaker logo + posting date around the pick (the wrapper is invisible on wide screens) */
.bet-cover-logo, .bet-pickline-logo, .bet-pickline-date { display: none; }
.bet-pickline { display: contents; }
/* league logo + poll (legacy div.vote: 100px white box in the cover's corner, "Balsų" under it) */
/* The box follows the cover in the markup and keeps that static top (top: auto), pulled up by the 1px box border + the 103px
   logo part (legacy div.logo: 10px padding, 80px picture + 2px line gap, 1px line), so the line between logo and poll always
   lies on the bottom edge of the navy cover, whatever the cover's height (legacy top: 67px only matched one-line covers). */
.bet-vote { position: absolute; right: 15px; top: auto; margin-top: -104px; z-index: 9; width: 100px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); box-shadow: 3px 3px 7px 0 rgba(0,0,0,.1); }
.bet-vote.no-logo { top: 67px; margin-top: 0; }
.bet-vote-logo { display: flex; align-items: flex-start; justify-content: center; height: 103px; padding: 10px 0; border-bottom: 1px solid var(--border); line-height: 0; }
.bet-vote-logo img { width: 80px; height: auto; max-height: 80px; object-fit: contain; }
.poll { list-style: none; margin: 0; padding: 10px; font-size: 12px; }
.poll-row { padding: 3px 0; }
.poll-row form { display: inline; margin: 0; }
/* legacy: plain coloured 12px words, not underlined */
.poll-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.poll-won { color: var(--won); } .poll-lost { color: var(--lost); } .poll-void { color: var(--muted); }
/* every row keeps its 4px line (empty track at 0%), so the three rows line up */
.poll-bar { display: block; width: 100%; height: 4px; margin-top: 5px; border: 0; background: var(--line); }
.poll-bar::-webkit-meter-bar { height: 4px; border: 0; border-radius: 0; background: var(--line); }
.poll-bar::-webkit-meter-optimum-value { border-radius: 0; }
.poll-won .poll-bar::-webkit-meter-optimum-value { background: var(--won); }
.poll-lost .poll-bar::-webkit-meter-optimum-value { background: var(--lost); }
.poll-void .poll-bar::-webkit-meter-optimum-value { background: var(--muted); }
.poll-won .poll-bar::-moz-meter-bar { background: var(--won); }
.poll-lost .poll-bar::-moz-meter-bar { background: var(--lost); }
.poll-void .poll-bar::-moz-meter-bar { background: var(--muted); }
.poll-total { position: absolute; left: 0; bottom: -30px; width: 100%; margin: 0; font-size: 14px; text-align: center; color: var(--text); }
/* "Statymas: …" + result badge, text, buttons */
.bet-page .bet-pick-title { margin: 0 -20px; padding: 10px 140px 10px 20px; font-size: 24px; line-height: 28px; text-transform: uppercase; color: var(--text); overflow-wrap: anywhere; }
.result-badge { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 10px; color: #fff; font-size: 16px; line-height: 18px; font-weight: 400; vertical-align: 3px; }
.result-badge.result-won { background: var(--won); } .result-badge.result-lost { background: var(--lost); } .result-badge.result-tied { background: var(--void); }
.bet-page .notice { margin-right: 120px; }
/* the poll box hangs below the cover: keep every row after the text clear of it (nothing runs under the box) */
.bet-page > .bet-buttons, .bet-page > .bet-responsible, .bet-page > .settle, .bet-page > .bet-manage { margin-right: 120px; }
.bet-content { padding-right: 120px; color: #173960; font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
[data-theme="dark"] .bet-content { color: var(--text); }
.bet-buttons { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 20px; }
.bet-buttons .bet-button { padding: 7px 10px; }
.bet-thanks { margin: 0; }
.bet-icon-btn { --c: var(--muted); color: var(--c); display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 50px; height: 40px; padding: 0 15px; border: 3px solid var(--c); border-radius: 3px; background: var(--surface); font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.bet-icon-btn::-webkit-details-marker { display: none; }
.bet-icon-btn .count { font-size: 13px; }
.bet-icon-btn.blue { --c: var(--blue); } .bet-icon-btn.gray { --c: var(--muted); }
button.bet-icon-btn:hover, a.bet-icon-btn:hover, summary.bet-icon-btn:hover { background: var(--c); color: #fff; }
.bet-buttons .report[open] { flex-basis: 100%; }
.bet-buttons .report > summary.bet-icon-btn { display: inline-flex; }
.bet-buttons .report form { display: flex; gap: 6px; margin-top: 6px; }
.bet-buttons .report input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface-2); color: var(--text); font: inherit; }
.bet-responsible { margin-top: 20px; font-size: 13px; color: var(--text); }
.bet-responsible p { margin: 0 0 10px; }
.bet-telegram a { color: inherit; }
/* settle buttons and the edit / comments / delete row (legacy div.actions: 3px outlined, filled on hover) */
.settle, .bet-manage { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin-top: 10px; padding-top: 5px; border-top: 1px solid var(--line); }
.settle form, .bet-manage form { margin: 0; }
.settle-btn, .bet-act { --c: var(--blue); color: var(--c); display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 9px 12px; border: 3px solid var(--c); border-radius: 3px; background: var(--surface); font: inherit; font-size: 13px; font-weight: 700; line-height: 16px; text-transform: uppercase; cursor: pointer; list-style: none; }
.bet-act::-webkit-details-marker { display: none; }
.settle-btn:hover, .bet-act:hover { background: var(--c); color: #fff; }
.settle-active, .bet-act.blue { --c: var(--blue); }
.settle-win, .settle-half-win, .bet-act.green { --c: var(--won); }
.settle-tied { --c: var(--muted); }
.settle-half-lost, .settle-lost, .bet-act.red { --c: var(--lost); }
.settle-btn.is-current { display: none; }
.settle-msg { flex-basis: 100%; margin: 8px 0 0; font-size: 14px; color: var(--won); }
.settle-msg.muted { color: var(--muted); }
.bet-manage .append[open], .bet-manage .report[open] { flex-basis: 100%; }
.bet-manage .append form textarea { display: block; width: 100%; margin: 8px 0; padding: 9px 11px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface-2); color: var(--text); font: inherit; }
/* "Statymo pasikeitimai (N)": collapsible card */
.bet-changes { padding-top: 10px; padding-bottom: 10px; }
.bet-changes > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.bet-changes > summary::-webkit-details-marker { display: none; }
.bet-changes > summary h2 { margin: 0; }
.bet-changes .toggle-button { display: flex; align-items: center; justify-content: center; width: 44px; height: 40px; margin-left: auto; border: 1px solid var(--border); border-radius: 3px; color: var(--muted); }
.bet-changes[open] .toggle-button .i { transform: rotate(180deg); }
.bet-changes ul { list-style: none; margin: 10px 0 0; padding: 0; }
.bet-changes li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.bet-changes time { color: var(--muted); font-size: 13px; }
.bet-changes p { margin: 4px 0 0; }
.bet-changes-text summary { color: var(--blue); cursor: pointer; }
/* comments (legacy div.block.comments) */
.community-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 15px; margin-bottom: 15px; }
.community-head h2 { margin: 0 auto 0 0; }
.comment-subscribe { margin: 0; }
.comment-subscribe button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.comment-subscribe .i { font-size: 20px; color: var(--won); }
.comment-subscribe .is-off .i { color: var(--lost); transform: scaleX(-1); }
.comment-sort { height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; }
.comment-form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 30px; margin: 0 0 15px; }
.comment-avatar { flex: 0 0 100px; width: 100px; height: 100px; overflow: hidden; border: 3px solid var(--navy); border-radius: 50%; }
.comment-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.comment-form textarea { flex: 1 1 300px; min-width: 0; min-height: 96px; padding: 20px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); color: var(--text); font: inherit; resize: vertical; }
.comment-form button { margin-left: auto; padding: 0 20px; height: 50px; border: 0; border-radius: 3px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; text-transform: uppercase; cursor: pointer; }
.comment-form button:hover { background: var(--blue-dark); }
.community .comment { display: flex; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); }
.community .post-content { flex: 1 1 auto; min-width: 0; }
.community .post-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; font-size: 13px; }
.community .post-body { margin-top: 10px; overflow-wrap: anywhere; }
.community .post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.community .post-actions form { margin: 0; }
@media (max-width: 639px) {
  /* legacy m. order: head, pick row, text, poll, bookmaker button + thanks/report, Telegram and 18+ lines, then the rest */
  .bet-page { min-height: 0; display: flex; flex-direction: column; }
  .bet-page > .bet-vote { order: 1; }
  .bet-page > :not(.bet-cover, .bet-pickline, .notice, .bet-content, .bet-vote) { order: 2; }
  /* head (legacy div.block.bet .header): #129fdd, crumbs 14px/18px with 10px under them, 60px logo (radius 5) with the
     details 70px in: title 18px/20px normal white, time 13px #c4e7f6, then the tipster */
  .bet-cover { display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 10px; align-content: start; margin: -10px -10px 0; padding: 10px; background: var(--blue); text-align: left; }
  .bet-cover:not(:has(> .bet-cover-logo)) { grid-template-columns: minmax(0, 1fr); }
  .bet-cover > * { grid-column: -2; }
  .bet-cover > .bet-crumbs { grid-column: 1 / -1; grid-row: 1; }
  .bet-cover > h1 { grid-row: 2; } .bet-cover > .bet-cover-time { grid-row: 3; } .bet-cover > .bet-cover-user { grid-row: 4; }
  .bet-cover-bg, .bet-cover > .bet-button, .bet-cover-details { display: none; }
  .bet-cover-logo { display: block; grid-column: 1; grid-row: 2 / span 3; align-self: start; width: 60px; height: auto; border-radius: 5px; background: #fff; }
  .bet-crumbs { padding: 0 0 10px; font-size: 14px; line-height: 18px; }
  .bet-cover h1 { margin: 0; font-size: 18px; line-height: 20px; font-weight: 400; }
  .bet-cover-time { margin: 0; font-size: 13px; line-height: 18px; font-weight: 400; color: #c4e7f6; }
  .bet-cover-user { position: static; justify-content: flex-start; font-size: 14px; font-weight: 700; }
  .bet-cover-user .dot { width: 13px; height: 13px; border-width: 1.5px; }
  /* pick row: bookmaker logo (max 18px), pick in blue bold, posting date grey at the right; 1px #d0dadc line under it */
  .bet-pickline { display: flex; align-items: center; gap: 10px; padding: 10px 0; margin-bottom: 10px; border-bottom: 1px solid var(--bg-m); }
  .bet-pickline-logo { display: block; flex: none; line-height: 0; }
  .bet-pickline-logo .bookmaker-logo { width: auto; max-height: 18px; }
  .bet-page .bet-pick-title { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; font-size: 15px; line-height: 18px; text-transform: none; color: var(--blue); }
  .bet-pick-label { display: none; }
  .bet-pickline-date { display: block; flex: none; margin-left: auto; font-size: 13px; color: var(--muted); }
  .bet-content { font-size: 14px; line-height: 1.45; color: var(--text); }
  .bet-content, .bet-page .notice { padding-right: 0; margin-right: 0; }
  .bet-page > .bet-buttons, .bet-page > .bet-responsible, .bet-page > .settle, .bet-page > .bet-manage { margin-right: 0; }
  /* poll (legacy ul.poll): three 28px outlined boxes in a row (33% each, 10px apart), the vote share filled from the left,
     14px text in the darker shade; "Balsų" centred 10px under them; line under the block */
  .bet-vote, .bet-vote.no-logo { position: static; width: auto; margin: 10px 0 0; padding-bottom: 10px; border: 0; border-bottom: 1px solid var(--bg-m); border-radius: 0; box-shadow: none; background: none; }
  .bet-vote-logo { display: none; }
  .bet-vote .poll { display: flex; gap: 10px; padding: 0; font-size: 14px; }
  .bet-vote .poll-row { position: relative; flex: 1 1 0; min-width: 0; height: 28px; padding: 0; border: 1px solid; border-radius: 3px; line-height: 26px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
  .bet-vote .poll-row { --fill: none; background: linear-gradient(to right, var(--fill) var(--share, 0%), transparent 0); }
  .bet-vote .poll-won { --fill: #96ca2d; color: #4b6517; border-color: #96ca2d; } .bet-vote .poll-lost { --fill: #ff3333; color: #872626; border-color: #ff3333; } .bet-vote .poll-void { --fill: #ff9800; color: #804c00; border-color: #ff9800; }
  .bet-vote .poll-btn { font-weight: 700; }
  .bet-vote .poll-btn::after { content: ""; position: absolute; inset: 0; } /* the whole box answers */
  .bet-vote .poll-bar { display: none; }
  .poll-total { position: static; width: 100%; padding: 10px 0 0; font-size: 14px; }
  /* buttons: the bookmaker button full width, thanks and report half width each under it */
  .bet-page > .bet-buttons { margin-top: 10px; }
  .bet-buttons .bet-button { flex: 1 1 100%; justify-content: center; }
  .bet-buttons > :not(.bet-button) { flex: 1 1 calc(50% - 5px); max-width: calc(50% - 5px); }
  .bet-buttons > .report[open] { max-width: none; }
  .bet-buttons > form.bet-thanks .bet-icon-btn, .bet-buttons > .report > summary.bet-icon-btn { width: 100%; }
  .settle-btn, .bet-act { min-height: 44px; }
  .comment-avatar { display: none; }
  /* 40px tap targets */
  .bet-telegram a, .community .post-author { display: inline-flex; align-items: center; min-height: 40px; }
  .bet-cover-user { display: inline-flex; align-items: center; min-height: 30px; }
  .community .votes .vote { min-width: 40px; min-height: 40px; }
  .community .comment .post-avatar { display: none; }
}
