  :root {
      --bg: #f3f5f7;
      --panel: #ffffff;
      --panel-2: #f6f7f9;
      --ink: #17212b;
      --muted: #6b7280;
      --line: #dde3ea;
      --line-2: #edf1f5;
      --brand: #1f6feb;
      --brand-dark: #1756b8;
      --accent: #ffb400;
      --danger: #c62828;
      --success: #138a5e;
      --shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
      --radius: 14px;
  }

  * {
      box-sizing: border-box;
  }

  body {
      margin: 0;
      font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
      color: var(--ink);
      background: var(--bg);
  }

  body.embed-mode {
      background: transparent;
  }

  body.embed-mode .page-odds-table {
      max-width: none;
      padding: 0;
  }

  body.embed-mode .hero,
  body.embed-mode .panel {
      border-radius: 0;
      box-shadow: none;
  }

  body.embed-mode .hero {
      margin-bottom: 6px;
  }

  body.embed-mode .panel {
      margin-bottom: 6px;
  }

  div#header-betmgm img,
  div#header-betway img {
      height: 60px;
      position: absolute;
  }

  .page-odds-table {
      max-width: 1440px;
      margin: 0 auto;
      padding: 16px 14px 24px;
  }

  .hero {
      background: var(--panel);
      color: var(--ink);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 16px 18px;
      margin-bottom: 12px;
  }

  .hero h1 {
      margin: 0 0 4px;
      font-size: clamp(1.45rem, 3vw, 2rem);
      letter-spacing: -0.02em;
  }

  .hero p {
      margin: 0;
      max-width: 920px;
      color: var(--muted);
      font-size: 0.9rem;
  }

  .panel {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 14px;
      margin-bottom: 12px;
  }

  .controls {
      display: grid;
      grid-template-columns: 120px 150px;
      gap: 8px;
      align-items: end;
      justify-content: end;
  }

  label {
      display: block;
      margin-bottom: 6px;
      font-size: 0.76rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      color: var(--muted);
      text-transform: uppercase;
  }

  input,
  button {
      width: 100%;
      border-radius: 10px;
      font: inherit;
      padding: 10px 12px;
  }

  input {
      border: 1px solid var(--line);
      background: white;
      color: var(--ink);
  }

  button {
      border: 1px solid transparent;
      cursor: pointer;
      background: var(--brand);
      color: white;
      font-weight: 700;
      transition:
          transform 140ms ease,
          opacity 140ms ease;
  }

  button:hover {
      transform: translateY(-1px);
  }

  button:disabled {
      opacity: 0.75;
      cursor: wait;
      transform: none;
  }

  .warning {
      margin-top: 8px;
      color: #9a6700;
      font-size: 0.82rem;
  }

  .status {
      min-height: 24px;
      margin-top: 8px;
      font-size: 0.86rem;
      color: var(--muted);
  }

  .status.error {
      color: var(--danger);
  }

  .toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
  }

  .toolbar-group {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      align-items: center;
  }

  .toolbar-label {
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      margin-right: 2px;
  }

  .tab {
      border: 1px solid var(--line);
      background: var(--panel-2);
      color: var(--ink);
      border-radius: 8px;
      padding: 8px 12px;
      width: auto;
      min-width: 0;
      font-size: 0.86rem;
      font-weight: 700;
  }

  .tab.active {
      background: #eef5ff;
      border-color: #bdd3f9;
      box-shadow: inset 0 0 0 1px #bdd3f9;
      color: var(--brand-dark);
  }

  .legend {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      padding: 4px 4px 0;
      color: var(--muted);
      font-size: 0.76rem;
  }

  .legend strong {
      color: var(--ink);
  }

  .hidden {
      display: none !important;
  }

  .board {
      overflow: auto;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: white;
  }

  table {
      width: 100%;
      border-collapse: separate;
      border-spacing: 0;
      table-layout: fixed;
  }

  thead th {
      position: sticky;
      top: 0;
      z-index: 2;
      background: #f8fafc;
      color: #4b5563;
      padding: 10px 8px;
      text-align: center;
      font-size: 0.72rem;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      border-bottom: 1px solid var(--line);
  }

  tbody td {
      padding: 0;
      border-bottom: 1px solid var(--ink);
      vertical-align: bottom !important;
      background: white;
  }

  tbody tr:hover td {
      background: #fbfdff;
  }

  .game-cell {
      padding: 10px 10px 10px 14px;
      width: 22%;
  }

  .game-time {
      font-size: 0.7rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--brand);
      margin-bottom: 6px;
  }

  .team-row {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      align-items: center;
      padding: 6px 0;
      border-top: 1px dashed var(--line-2);
  }

  .team-info {
      flex: 1;
      min-width: 0;
  }

  .team-row:first-of-type {
      border-top: 0;
  }

  .team-name {
      font-weight: 800;
      line-height: 1.2;
      word-break: break-word;
      font-size: 0.9rem;
  }

  .team-side {
      color: var(--muted);
      font-size: 0.82rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
  }

  .record {
      color: var(--muted);
      font-size: 0.76rem;
      white-space: nowrap;
      flex-shrink: 0;
      text-align: right;
  }

  .book-col {
      width: 15.2%;
      border-left: 1px solid var(--line-2);
  }

  .book-col-head {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
  }

  .book-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 92px;
      min-height: 34px;
      padding: 4px 8px;
      border-radius: 10px;
      font-size: 0.76rem;
      font-weight: 800;
      letter-spacing: 0.06em;
      color: var(--ink);
      text-align: center;
      background: transparent;
  }

  .book-logo {
      display: block;
      width: 100%;
      height: 24px;
  }

  .book-logo-img {
      display: block;
      max-width: 100%;
      width: auto;
      height: 35px;
      object-fit: contain;
  }

  .book-badge.has-image {
      width: 100%;
      min-width: 0;
      min-height: 40px;
      padding: 0;
  }

  .book-badge.text-logo {
      background: white;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 6px 16px;
      color: var(--ink);
      box-shadow: none;
  }

  .market-stack {
      display: grid;
      grid-template-rows: 1fr 1fr;
      height: 100%;
  }

  .mobile-book-header {
      display: none;
  }

  .market-box {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 12px 10px;
      min-height: 40px;
  }

  td.book-col .market-box:nth-child(2) {
      padding: 15px 10px 0px 10px;
  }

  td.book-col .market-box:nth-child(1) {
      padding: 13px 10px 0px 10px;
  }

  .market-box+.market-box {
      border-top: 1px solid var(--line-2);
  }

  .market-line {
      font-size: 0.98rem;
      font-weight: 800;
      color: var(--ink);
      line-height: 1.15;
  }

  .market-line.muted {
      color: var(--muted);
      font-weight: 700;
  }

  .market-odds {
      font-size: 0.92rem;
      font-weight: 800;
      color: var(--brand);
      white-space: nowrap;
  }

  .market-line-link,
  .market-odds-link,
  .mobile-odds-link {
      color: var(--brand);
      text-decoration: none;
  }

  .market-line-link {
      color: inherit;
  }

  .market-line-link:hover,
  .market-odds-link:hover,
  .mobile-odds-link:hover {
      text-decoration: underline;
  }

  .market-value-link {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      color: inherit;
      text-decoration: none;
      width: 100%;
  }

  .market-value-link:hover .market-line-link,
  .market-value-link:hover .market-odds-link {
      text-decoration: underline;
  }

  .market-label {
      display: block;
      font-size: 0.68rem;
      font-weight: 800;
      color: var(--muted);
      letter-spacing: 0.04em;
      text-transform: uppercase;
      margin-bottom: 4px;
  }

  .empty {
      padding: 20px;
      color: var(--muted);
      text-align: center;
      font-size: 0.9rem;
  }

  .mobile-date-band,
  .mobile-game-card {
      display: none;
  }

  .mobile-odds-scroll-wrap {
      position: relative;
      padding: 0 22px;
  }

  .mobile-odds-scroll {
      position: relative;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      border: 1px solid var(--line);
      background: white;
      scroll-snap-type: x mandatory;
      scroll-padding-left: 0;
      scroll-padding-right: 0;
      padding: 0;
  }

  .mobile-odds-scroll::-webkit-scrollbar {
      display: none;
  }

  .mobile-odds-table {
      width: max-content;
      min-width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
  }

  .mobile-odds-table thead {
      display: table-header-group;
  }

  .mobile-odds-table thead tr {
      display: table-row;
  }

  .mobile-odds-table thead th {
      display: table-cell;
  }

  .mobile-odds-table th,
  .mobile-odds-table td {
      border-right: 1px solid var(--line);
      border-top: 1px solid var(--line);
      vertical-align: top;
      background: white;
  }

  .mobile-odds-table thead th {
      background: #f4f7fa;
      min-width: 132px;
      padding: 10px 8px;
      scroll-snap-align: start;
  }

  .mobile-odds-table thead th:first-child {
      min-width: 112px;
      width: 112px;
      position: sticky;
      left: 0;
      z-index: 4;
      background: #edf2f7;
  }

  .mobile-odds-table tbody td:first-child {
      min-width: 112px;
      width: 112px;
      position: sticky;
      left: 0;
      z-index: 3;
      background: white;
  }

  .mobile-matchup-head {
      font-size: 0.78rem;
      font-weight: 800;
      color: #2563eb;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      text-align: center;
  }

  .mobile-matchup-cell {
      padding: 10px 8px;
      text-align: center;
  }

  .mobile-team-row+.mobile-team-row {
      margin-top: 14px;
  }

  .mobile-team-code {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: 0.9rem;
      font-weight: 800;
  }

  .mobile-team-meta {
      font-size: 0.78rem;
      color: var(--muted);
      font-weight: 700;
  }

  .mobile-book-head {
      min-height: 72px;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .mobile-book-cell {
      min-width: 132px;
      padding: 8px 6px 10px;
      scroll-snap-align: start;
  }

  .mobile-book-cell .market-stack {
      gap: 10px;
  }

  .mobile-book-cell .market-box {
      min-height: 50px;
      padding: 6px 2px;
  }

  .mobile-book-cell .market-line {
      font-size: 0.86rem;
  }

  .mobile-book-cell .market-odds {
      font-size: 0.84rem;
  }

  .mobile-scroll-btn {
      position: absolute;
      top: 58%;
      transform: translateY(-50%);
      width: 24px;
      height: 42px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(243, 246, 249, 0.95);
      color: #6b7280;
      z-index: 10;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.55rem;
      line-height: 1;
      cursor: pointer;
      padding: 0;
      box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  }

  .mobile-scroll-btn[data-mobile-scroll="prev"] {
      left: 4px;
  }

  .mobile-scroll-btn[data-mobile-scroll="next"] {
      right: 4px;
  }

  .mobile-scroll-btn:disabled {
      opacity: 0.45;
      cursor: default;
  }

  @media (max-width: 980px) {
      .controls {
          grid-template-columns: 1fr;
      }

      .toolbar {
          align-items: flex-start;
      }

      table {
          table-layout: auto;
      }
  }

  @media (max-width: 760px) {
      .bet99 img {
          height: 50px !important;
      }

      .betway img {
          height: 50px !important;
      }

      .betvictor img {
          height: 50px !important;
      }

      .page-odds-table {
          padding: 10px 8px 18px;
      }

      .hero,
      .panel {
          border-radius: 12px;
          padding: 12px;
      }

      .legend {
          gap: 8px;
          padding: 4px 2px 0;
          font-size: 0.76rem;
      }

      .board {
          border: 0;
          background: transparent;
          overflow: visible;
      }

      thead {
          display: none;
      }

      .mobile-odds-table thead {
          display: table-header-group !important;
      }

      .mobile-odds-table thead tr {
          display: table-row !important;
      }

      .mobile-odds-table thead th {
          display: table-cell !important;
      }

      table,
      tbody {
          width: 100%;
          table-layout: fixed;
      }

      tbody tr.mobile-event-row>td {
          display: block;
          width: 100%;
          padding: 0;
          border: 0;
          background: transparent;
      }

      .mobile-date-band {
          display: block;
          background: #242a33;
          color: white;
          padding: 12px 16px;
          margin: 0 0 8px;
          font-size: 0.96rem;
          font-weight: 800;
      }

      .mobile-game-card {
          display: block;
          background: white;
          margin-bottom: 14px;
      }

      .mobile-game-header {
          display: grid;
          grid-template-columns: 40px 1fr;
          gap: 12px;
          align-items: start;
          padding: 0 0 8px;
      }

      .mobile-favorite {
          width: 40px;
          height: 40px;
          border-radius: 10px;
          border: 2px solid #2f6df6;
          color: #2f6df6;
          display: inline-flex;
          align-items: center;
          justify-content: center;
          font-size: 1.25rem;
          font-weight: 700;
      }

      .mobile-game-meta {
          color: #374151;
          font-size: 0.84rem;
          margin-bottom: 0;
      }

      .mobile-game-title {
          font-size: 1rem;
          line-height: 1.18;
          font-weight: 800;
          color: #1f2937;
      }

      .mobile-odds-scroll-wrap {
          margin-top: 0;
      }

      .mobile-odds-table thead th,
      .mobile-book-cell {
          min-width: 124px;
      }

      .mobile-odds-table thead th:first-child,
      .mobile-odds-table tbody td:first-child {
          min-width: 104px;
          width: 104px;
      }

      .mobile-scroll-btn {
          width: 22px;
          height: 40px;
          font-size: 1.45rem;
      }

      .mobile-team-code,
      .mobile-team-meta {
          font-size: 0.82rem;
      }

      .mobile-book-head {
          min-height: 46px;
      }

      .mobile-book-head .book-logo-img {
          height: 24px;
      }
  }

  /* WordPress conflict guard for mobile odds board */
  @media (max-width: 760px) {
      .page-odds-table .board {
          border: 0 !important;
          background: transparent !important;
          overflow: visible !important;
      }

      .page-odds-table .mobile-game-card {
          display: block !important;
          background: #fff !important;
          margin-bottom: 14px !important;
      }

      .page-odds-table .mobile-odds-scroll-wrap {
          position: relative !important;
          margin-top: 0 !important;
          padding: 0 !important;
      }

      .page-odds-table .mobile-odds-scroll {
          display: block !important;
          overflow-x: auto !important;
          overflow-y: hidden !important;
          -webkit-overflow-scrolling: touch !important;
          scroll-behavior: smooth !important;
          scrollbar-width: none !important;
          border: 1px solid var(--line) !important;
          background: #fff !important;
          padding: 0 !important;
      }

      .page-odds-table .mobile-odds-table {
          width: max-content !important;
          min-width: 100% !important;
          table-layout: fixed !important;
          border-collapse: collapse !important;
      }

      .page-odds-table .mobile-odds-table thead {
          display: table-header-group !important;
      }

      .page-odds-table .mobile-odds-table thead th,
      .page-odds-table .mobile-odds-table tbody td {
          display: table-cell !important;
      }

      .page-odds-table .mobile-odds-table thead th:first-child,
      .page-odds-table .mobile-odds-table tbody td:first-child {
          position: sticky !important;
          left: 0 !important;
          z-index: 4 !important;
      }

      .page-odds-table .mobile-matchup-head,
      .page-odds-table .mobile-matchup-cell {
          background: #edf2f7 !important;
      }

      .page-odds-table .mobile-book-cell {
          min-width: 124px !important;
      }

      .page-odds-table .mobile-book-head {
          min-height: 46px !important;
      }

      .page-odds-table .mobile-book-head .book-logo-img {
          height: 24px !important;
      }

      .page-odds-table .mobile-scroll-btn {
          z-index: 10 !important;
      }

      .page-odds-table .mobile-game-header {
          padding-bottom: 8px !important;
      }

      .page-odds-table .mobile-game-meta {
          margin-bottom: 0 !important;
      }

      span.mobile-odds-combo {
          display: flex;
          gap: 12px;
          color: black;
          font-weight: bold;
      }

      a.mobile-odds-link.mobile-odds-value {
          text-decoration: none;
      }

      td.mobile-matchup-cell {
          vertical-align: middle !important;
      }

      tbody tr.mobile-event-row>td {
          padding: 0 !important;
      }
  }