/* ============================================================
   Punto — pelle "bookmaker" per la home
   pagina chiara, barra nera, rosso, tabelle fitte. Solo su body.book.
   ============================================================ */

body.book {
  background: #f1f3f5;
  color: #1b1f24;
  font-family: 'Inter Tight', Arial, system-ui, sans-serif;
  font-size: 14px;
}
body.book::before { display: none; }

/* ---------------- barra in alto ---------------- */

body.book .app-header {
  background: #1c1c1c;
  border-bottom: 0;
  height: 54px;
  gap: 22px;
}
body.book .brand { gap: 8px; }
body.book .brand-mark {
  width: 24px; height: 24px; transform: none;
  background: #e2001a; box-shadow: none;
}
body.book .brand-name {
  font-family: 'Inter Tight', Arial, sans-serif;
  font-weight: 800; text-transform: uppercase; letter-spacing: -.02em;
  font-size: 1.35rem;
  background: none !important; -webkit-text-fill-color: #fff; color: #fff;
  filter: none; text-shadow: none;
}
body.book .nav-links { gap: 18px; }
body.book .nav-links a {
  font-family: Arial, sans-serif; font-size: .76rem; letter-spacing: .06em;
  text-transform: uppercase; color: #c3c7cd; border-bottom: 2px solid transparent; padding: 6px 0;
}
body.book .nav-links a:hover { color: #fff; }
body.book .nav-links a.on { color: #fff; border-color: #e2001a; }
body.book .nav-casino {
  background: #e2001a !important; color: #fff !important;
  font-family: Arial, sans-serif; font-size: .74rem; letter-spacing: .08em;
  padding: 5px 12px; box-shadow: none; border-bottom: 0 !important;
}
body.book .balance-chip { background: #2a2a2a; border: 1px solid #3a3a3a; }
body.book .balance-label { color: #9aa0a8; font-size: .58rem; }
body.book .balance-value { color: #fff; font-family: Arial, sans-serif; font-size: .95rem; }
body.book .user-btn { background: #2a2a2a; border: 1px solid #3a3a3a; color: #fff; font-family: Arial, sans-serif; }
body.book .user-pop { background: #fff; border: 1px solid #d6d9de; color: #1b1f24; }

/* ---------------- bottoni ---------------- */
body.book .btn,
body.book .btn-primary,
body.book .btn-ghost,
body.book .spin-btn {
  font-family: Arial, sans-serif; text-transform: uppercase; letter-spacing: .04em;
  border-radius: 2px; box-shadow: none;
}
body.book .btn-primary {
  background: #e2001a; border: 1px solid #c00017; color: #fff;
}
body.book .btn-primary:hover { background: #c90017; }
body.book .btn-ghost { background: #fff; border: 1px solid #c9ced4; color: #1b1f24; }
body.book .btn-ghost:hover { border-color: #e2001a; color: #e2001a; }

/* ---------------- colonna sinistra ---------------- */
body.book .side-search .input {
  background: #fff; border: 1px solid #d6d9de; color: #1b1f24; border-radius: 2px;
  font-size: .82rem;
}
body.book .side-search .input::placeholder { color: #9aa0a8; }
body.book .side-block { background: #fff; border: 1px solid #d6d9de; }
body.book .side-title {
  background: #f6f7f8; color: #4a5158; border-bottom: 1px solid #e2e5e8;
  font-family: Arial, sans-serif; font-weight: 700; font-size: .68rem; letter-spacing: .08em;
  padding: 8px 12px;
}
body.book .side-item {
  color: #1b1f24; border-bottom: 1px solid #eef0f2; font-size: .82rem; padding: 7px 12px;
}
body.book .side-item:hover { background: #f1f5fb; color: #14509e; }
body.book .side-item em { color: #8a919b; font-family: Arial, sans-serif; font-size: .72rem; }
body.book .side-item.strong { color: #e2001a; font-family: Arial, sans-serif; font-weight: 700; text-transform: uppercase; font-size: .76rem; }
body.book .side-item.on { color: #e2001a; font-weight: 700; box-shadow: inset 3px 0 0 #e2001a; }
body.book .side-dot { display: none; }

/* ---------------- vetrina ---------------- */
body.book .banner { border: 1px solid #d6d9de; background: #fff; }
body.book .banner::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, 0) 100%);
}
body.book .banner-title { color: #fff; -webkit-text-fill-color: #fff; background: none; filter: none; font-family: 'Inter Tight', Arial, sans-serif; font-weight: 800; text-transform: uppercase; }
body.book .banner-kicker { color: #ffd200; font-family: Arial, sans-serif; }
body.book .banner-meta { color: #e6e8ea; font-family: Arial, sans-serif; }
body.book .banner-cta { background: #e2001a; border-color: #c00017; color: #fff; font-family: Arial, sans-serif; }

body.book .block-head h2 {
  font-family: 'Inter Tight', Arial, sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: 1rem; letter-spacing: .02em; color: #1b1f24;
  border-left: 3px solid #e2001a; padding-left: 8px;
}
body.book .block-head a { color: #14509e; font-family: Arial, sans-serif; font-size: .72rem; text-transform: none; }
body.book .block-head .label { color: #8a919b; }

/* ---------------- partite ---------------- */
body.book .matches { background: #fff; border: 1px solid #d6d9de; }
body.book .match { border-top: 1px solid #eceef0; padding: 8px 12px; grid-template-columns: 92px minmax(0, 1fr) 270px; }
body.book .match:first-child { border-top: 0; }
body.book .match:hover { background: #f7f9fb; }
body.book .match-time { color: #1b1f24; font-family: Arial, sans-serif; font-weight: 700; font-size: .82rem; }
body.book .match-when em { color: #8a919b; font-family: Arial, sans-serif; text-transform: none; font-size: .68rem; }
body.book .live-badge { background: #e2001a; color: #fff; font-family: Arial, sans-serif; font-size: .58rem; }
body.book .match-teams strong { color: #1b1f24; font-weight: 600; font-size: .84rem; }
body.book .dash { color: #b6bbc2; }

body.book .odd {
  background: #f3f4f6; border: 1px solid #d6d9de; border-radius: 2px; color: #1b1f24;
  font-family: Arial, sans-serif; padding: 7px 6px;
}
body.book .odd em { color: #6b727a; font-size: .64rem; }
body.book .odd b { color: #1b1f24; font-family: Arial, sans-serif; font-weight: 700; font-size: .86rem; }
body.book .odd:hover { background: #e9edf1; border-color: #9aa0a8; }
body.book .odd.on { background: #e2001a; border-color: #c00017; }
body.book .odd.on em, body.book .odd.on b { color: #fff; }

/* ---------------- colonna destra ---------------- */
body.book .rail-card { background: #fff; border: 1px solid #d6d9de; }
body.book .rail-title { color: #4a5158; font-family: Arial, sans-serif; font-weight: 700; font-size: .68rem; letter-spacing: .06em; }
body.book .rail-balance { color: #1b1f24; font-family: 'Inter Tight', Arial, sans-serif; font-weight: 800; font-size: 1.7rem; }
body.book .rail-links a { color: #14509e; }
body.book .rail-stat { color: #4a5158; font-size: .78rem; }
body.book .rail-stat strong { color: #1b1f24; font-family: Arial, sans-serif; font-size: .95rem; }
body.book .rail-free { color: #e2001a; font-family: 'Inter Tight', Arial, sans-serif; }
body.book .rail-card.free { border-color: #e2001a; }
body.book .rail-game { border-color: #d6d9de; }
body.book .rail-game span { background: linear-gradient(0deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0)); color: #fff; font-family: Arial, sans-serif; text-transform: none; }

/* ---------------- schedina ---------------- */
body.book .slip { border: 1px solid #d6d9de; }
body.book .slip-head { background: #e2001a; margin: -14px -14px 0; padding: 9px 14px; }
body.book .slip-head .rail-title { color: #fff; }
body.book .slip-total { color: #fff; font-family: Arial, sans-serif; }
body.book .slip-toggle { color: #fff; }
body.book .slip-empty { color: #6b727a; font-size: .76rem; }
body.book .slip-item { background: #f6f7f8; border-left: 3px solid #e2001a; color: #1b1f24; font-size: .78rem; }
body.book .slip-item b { color: #e2001a; font-family: Arial, sans-serif; }
body.book .slip-stake .input { background: #fff; border: 1px solid #d6d9de; color: #1b1f24; }
body.book .slip-potential strong { color: #1b1f24; font-family: 'Inter Tight', Arial, sans-serif; font-weight: 800; }
body.book .slip-hint { color: #8a919b; }
body.book .slip-hint.ko { color: #c00017; }
body.book .slip-hint.ok { color: #128a3a; }

/* ---------------- casinò in vetrina ---------------- */
body.book .tile-grid .game-card { border-color: #d6d9de; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
body.book .card-info { background: #fff; border-top: 1px solid #d6d9de; }
body.book .card-info strong { color: #1b1f24; font-family: 'Inter Tight', Arial, sans-serif; font-weight: 700; }
body.book .card-info em { color: #8a919b; font-family: Arial, sans-serif; }
body.book .card-flag { background: #e2001a; color: #fff; border: 0; }
body.book .card-rtp { background: #fff; color: #4a5158; border: 1px solid #d6d9de; font-family: Arial, sans-serif; }
body.book .game-card:hover { border-color: #9aa0a8; box-shadow: 0 3px 10px rgba(0, 0, 0, .15); }
body.book .game-card::after { display: none; }

/* ---------------- mobile ---------------- */
@media (max-width: 900px) {
  body.book .app-header { height: 52px; }
  body.book .bottom-nav { background: #fff; border-top: 1px solid #d6d9de; }
  body.book .bottom-nav a { color: #6b727a; font-family: Arial, sans-serif; }
  body.book .bottom-nav a.on { color: #e2001a; }
  body.book .bottom-nav a.on .bn-ico svg { stroke: #e2001a; }
  body.book .bn-ico svg { stroke: #6b727a; }
  body.book .match { grid-template-columns: 74px minmax(0, 1fr); }
  body.book .block-head h2 { font-size: .92rem; }
  body.book .banner { aspect-ratio: 16 / 9; }
  body.book .slip.has-items { border-color: #e2001a; box-shadow: 0 -8px 30px rgba(0, 0, 0, .25); }
}

/* ---------------- menu sport ---------------- */
.side-filter { padding: 9px 12px 5px; font-family: Arial, sans-serif; font-size: .64rem; color: #8a919b; text-transform: uppercase; letter-spacing: .06em; }
.side-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px 10px; }
.chip { padding: 3px 8px; background: #f3f4f6; border: 1px solid #d6d9de; color: #4a5158; font-family: Arial, sans-serif; font-size: .7rem; border-radius: 2px; }
.chip.on { background: #e2001a; border-color: #c00017; color: #fff; }
.sport-ico { width: 9px; height: 9px; display: inline-block; border-radius: 1px; margin-right: 7px; }

/* ---------------- barra campionato ---------------- */
.league-bar {
  display: flex; justify-content: space-between; align-items: center;
  background: #e2001a; color: #fff; padding: 7px 12px; margin-top: 18px;
  font-family: Arial, sans-serif; font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .04em; border-radius: 2px 2px 0 0;
}
.block:first-child .league-bar { margin-top: 0; }
.league-count { font-weight: 400; font-size: .68rem; opacity: .85; }

/* ---------------- tabella mercati ---------------- */
.mt-wrap { overflow-x: auto; background: #fff; border: 1px solid #d6d9de; border-top: 0; }
.mt { min-width: 780px; }
.mt.simple { min-width: 400px; }
.mt-head, .mt-row {
  display: grid; align-items: center; gap: 2px; padding: 0 6px;
  grid-template-columns: 46px 50px minmax(140px, 1fr) repeat(12, 40px);
}
.mt.simple .mt-head, .mt.simple .mt-row { grid-template-columns: 46px 50px minmax(140px, 1fr) repeat(2, 40px); }
.mt-head {
  background: #f6f7f8; border-bottom: 1px solid #e2e5e8; padding: 6px 8px;
  font-family: Arial, sans-serif; font-size: .6rem; color: #6b727a;
  text-transform: uppercase; letter-spacing: .06em;
}
.mt-head .num { text-align: center; }
.mt-row { border-bottom: 1px solid #f0f2f4; padding: 6px 8px; }
.mt-row:hover { background: #f7f9fb; }
.mt-row .mono { font-size: .68rem; color: #6b727a; font-family: Arial, sans-serif; }
.mt-row .ev { font-size: .78rem; color: #1b1f24; padding-right: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-row .live-badge { font-size: .56rem; padding: 1px 4px; }

.ob {
  background: #f3f4f6; border: 1px solid #d6d9de; color: #1b1f24;
  font-family: Arial, sans-serif; font-size: .72rem; font-weight: 700;
  padding: 5px 1px; border-radius: 2px; text-align: center;
}
.ob:hover { background: #e9edf1; border-color: #9aa0a8; }
.ob.on { background: #e2001a; border-color: #c00017; color: #fff; }

/* ---------------- login in testata ---------------- */
.head-login { display: flex; gap: 6px; align-items: center; }
.head-input {
  background: #2a2a2a; border: 1px solid #3a3a3a; color: #fff;
  padding: 6px 8px; font-size: .78rem; width: 128px; border-radius: 2px;
}
.head-input::placeholder { color: #8a919b; }
.head-btn { background: #e2001a; color: #fff; padding: 7px 14px; font-size: .74rem; text-transform: uppercase; border-radius: 2px; font-weight: 700; }
.head-register { color: #c3c7cd; font-size: .74rem; margin-left: 8px; text-decoration: underline; }
.head-accedi { display: none; color: #fff; background: #e2001a; padding: 7px 12px; border-radius: 2px; font-size: .76rem; text-transform: uppercase; }

/* ---------------- card login ---------------- */
.login-form { display: grid; gap: 8px; }
.login-form .input { background: #fff; border: 1px solid #d6d9de; color: #1b1f24; }
.rail-note { font-size: .72rem; color: #6b727a; line-height: 1.45; margin: 0; }
.rail-list { margin: 0; padding-left: 16px; font-size: .76rem; color: #4a5158; display: grid; gap: 4px; }

@media (max-width: 900px) {
  .head-login { display: none; }
  .head-accedi { display: inline-block; }
  .mt { min-width: 820px; }
  .league-bar { margin-top: 14px; }
}

/* ============================================================
   HOME SCOMMESSE SU TELEFONO
   La tabella da 780 px diventa una lista di partite: orario e squadre sopra,
   il mercato principale sotto in tre pulsanti alti (pollice), il resto nascosto.
   ============================================================ */
.ob-l { display: none; }

@media (max-width: 700px) {
  .mt-wrap { overflow-x: visible; }
  .mt, .mt.simple { min-width: 0; }
  .mt-head { display: none; }

  .mt-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; padding: 12px 12px 14px; border-bottom: 1px solid #e6e9ec;
    align-items: stretch;
  }
  .mt-row > .mono:first-child { display: none; }                       /* ID interno */
  .mt-row > .mono:nth-of-type(2) { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px;
    font-size: .68rem; color: #6b727a; }
  .mt-row .ev { grid-column: 1 / -1; font-size: .95rem; font-weight: 700; color: #12161a;
    white-space: normal; overflow: visible; padding: 0; line-height: 1.25; }

  .mt-row .ob {
    min-height: 48px; font-size: .95rem; border-radius: 6px;
    background: #f4f6f8; border: 1px solid #d3d8de;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  }
  .mt-row .ob-l { display: block; font-size: .52rem; letter-spacing: .08em; color: #6b727a;
    text-transform: uppercase; font-weight: 600; }
  /* su telefono si gioca il mercato principale: il resto resta sul desktop */
  .mt-row > .ob:nth-of-type(n+4) { display: none; }
  .mt.simple .mt-row { grid-template-columns: repeat(2, 1fr); }

  .league-bar { position: sticky; top: 0; z-index: 3; }
  .block { margin-top: 14px; }
}
