      :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 {
          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: 8px;
      }

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

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

      .page {
          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.95rem;
      }

      .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.8rem;
      }

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

      .hidden {
          display: none !important;
      }

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

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

      .panel .board 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: stretch;
          background: white;
      }

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

      .game-cell {
          padding: 12px;
          width: 24%;
      }

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

      .team-row {
          display: flex;
          justify-content: space-between;
          gap: 10px;
          align-items: center;
          padding: 8px 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.95rem;
      }

      .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.8rem;
          white-space: nowrap;
          flex-shrink: 0;
          text-align: right;
      }

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

      .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;
      }

      .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 !important;
          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 {
          position: relative !important;
          overflow-x: auto !important;
          overflow-y: hidden !important;
          scroll-behavior: smooth !important;
          -webkit-overflow-scrolling: touch !important;
          scrollbar-width: none !important;
          border: 1px solid var(--line) !important;
          background: #fff !important;
          padding: 0 !important;
      }

      .mobile-odds-panel {
          width: 100%;
          border: 1px solid var(--line);
          background: white;
      }

      .mobile-odds-header {
          display: grid;
          grid-template-columns: minmax(110px, 1fr) 56px minmax(120px, 1fr) 56px;
          background: #f4f7fa;
          border-bottom: 1px solid var(--line);
      }

      .mobile-odds-matchup-head,
      .mobile-odds-logo-wrap,
      .mobile-odds-nav {
          min-height: 74px;
          display: flex;
          align-items: center;
          justify-content: center;
          padding: 10px;
          border-right: 1px solid var(--line);
      }

      .mobile-odds-header> :last-child {
          border-right: 0;
      }

      .mobile-odds-matchup-head {
          justify-content: flex-start;
          font-size: 0.78rem;
          font-weight: 700;
          color: #2563eb;
          text-transform: uppercase;
          letter-spacing: 0.04em;
      }

      .mobile-odds-logo-wrap {
          background: white;
      }

      .mobile-nav-btn {
          width: 40px;
          height: 40px;
          border-radius: 10px;
          border: 1px solid var(--line);
          background: #eef2f6;
          color: #6b7280;
          display: inline-flex;
          align-items: center;
          justify-content: center;
          font-size: 1.4rem;
          line-height: 1;
          cursor: pointer;
          padding: 0;
      }

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

      .mobile-bookmaker-title .book-badge {
          min-width: 0;
          width: 100%;
          max-width: 150px;
      }

      .mobile-odds-body {
          background: white;
      }

      .mobile-odds-row {
          display: flex;
          justify-content: space-between;
          align-items: center;
          gap: 10px;
          padding: 14px 12px;
          border-top: 1px solid var(--line-2);
      }

      .mobile-odds-row:first-child {
          border-top: 0;
      }

      .mobile-team-code {
          display: flex;
          align-items: center;
          gap: 10px;
          font-size: 0.95rem;
          font-weight: 800;
      }

      .mobile-team-meta {
          font-size: 0.95rem;
          font-weight: 800;
          color: var(--ink);
      }

      .mobile-odds-value {
          font-size: 0.95rem;
          font-weight: 700;
          color: var(--ink);
          white-space: nowrap;
      }

      .mobile-odds-value.muted {
          color: var(--muted);
      }

      .mobile-odds-combo {
          display: inline-flex;
          align-items: baseline;
          gap: 6px;
      }

      .mobile-odds-line {
          color: var(--ink);
          font-weight: 800;
      }

      .mobile-odds-price {
          color: var(--brand);
          font-weight: 700;
          padding-left: 20px;
      }

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

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

          table {
              table-layout: auto;
          }
      }

      @media (max-width: 760px) {
          .mobile-odds-matchup-head {
              justify-content: center;
          }

          .mobile-odds-row {
              justify-content: space-around;
          }

          .page {
              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;
          }

          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: 16px 18px;
              margin: 0 0 12px;
              font-size: 1rem;
              font-weight: 800;
          }

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

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

          .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.88rem;
              margin-bottom: 2px;
          }

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

          .mobile-odds-scroll {
              overflow: hidden;
              padding-bottom: 0;
          }

          .mobile-odds-header {
              grid-template-columns: minmax(96px, 1fr) 54px minmax(118px, 1fr) 54px;
          }

          .mobile-odds-matchup-head,
          .mobile-odds-logo-wrap,
          .mobile-odds-nav {
              min-height: 70px;
              padding: 8px;
          }

          .mobile-bookmaker-title .book-logo-img {
              height: 34px;
              max-width: 138px;
          }

          .mobile-odds-row {
              padding: 12px 10px;
          }

          .mobile-team-code,
          .mobile-team-meta,
          .mobile-odds-value {
              font-size: 0.9rem;
          }
      }


      /* Mobile scroll-strip refresh for player-props */
      .mobile-odds-scroll-wrap {
          position: relative !important;
          padding: 0 0 0 0 !important;
      }

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

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

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

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

      .mobile-odds-table thead th {
          min-width: 124px !important;
          padding: 10px 8px !important;
      }

      .mobile-odds-table thead th:first-child,
      .mobile-odds-table tbody td:first-child {
          min-width: 104px !important;
          width: 104px !important;
          position: sticky !important;
          left: 0 !important;
          z-index: 4 !important;
          background: #edf2f7 !important;
      }

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

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

      .mobile-team-row+.mobile-team-row {
          margin-top: 8px !important;
      }

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

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

      .mobile-book-cell .market-stack {
          gap: 3px !important;
      }

      .mobile-book-cell .market-box {
          min-height: 38px !important;
          padding: 3px 2px !important;
      }

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

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

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

      .mobile-scroll-btn[data-mobile-scroll="prev"]::after,
      .mobile-scroll-btn[data-mobile-scroll="next"]::after {
          content: "";
      }