/* BYDBET Togel v32 – scoped to market home slider + /togel. */
.by-market-section{min-width:0;overflow:hidden}
.by-market-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 2px 0}
.by-market-controls p{margin:0;color:#e9d6b7;font-size:12px;display:flex;align-items:center;gap:9px;letter-spacing:.2px}
.by-market-controls p b{color:#ffe17d;font-size:12px;letter-spacing:.5px}
.by-market-sep{width:3px;height:3px;border-radius:50%;background:#a98451}
.by-market-control-buttons{display:flex;align-items:center;gap:7px}
.by-market-control-buttons button{appearance:none;width:32px;height:32px;display:grid;place-items:center;border:1px solid #9e6e41;border-radius:9px;background:linear-gradient(180deg,#421b17,#1f0c0a);color:#ffe0a0;cursor:pointer;transition:background .2s,border-color .2s}
.by-market-control-buttons button:hover,.by-market-control-buttons button:focus-visible{background:#711a16;border-color:#ecc06c;outline-offset:2px}
.by-market-control-buttons svg{width:17px;height:17px}
.by-market-control-buttons .by-icon-play{display:none}
.by-market-control-buttons [aria-pressed="true"] .by-icon-play{display:block}
.by-market-control-buttons [aria-pressed="true"] .by-icon-pause{display:none}
.by-market-track{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;touch-action:pan-x pan-y;-webkit-overflow-scrolling:touch;user-select:none;cursor:grab;max-width:100%;min-width:0;padding:13px 3px 12px!important}
.by-market-track.is-dragging{cursor:grabbing;scroll-behavior:auto;scroll-snap-type:none}
.by-market-track>.by-market-card{flex:0 0 154px!important;min-width:154px!important;max-width:154px;box-sizing:border-box;scroll-snap-align:start;min-height:170px}
.by-market-card .market-status{background:#5b120e!important;color:#ffe5a1!important;letter-spacing:.8px;align-self:flex-end}
.by-market-card .market-dot{background:#f1c65f!important;box-shadow:0 0 0 2px rgba(255,226,126,.15)}
.by-market-track>.by-market-card b{min-height:28px;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.18;font-weight:850;white-space:normal!important}
.by-market-track>.by-market-card strong{font-variant-numeric:tabular-nums}
.by-market-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;color:#c1a188;font-size:11px;margin:3px 4px 0;line-height:1.5}
.by-market-foot>span:last-child{color:#e3b868}
/* Dedicated catalog page */
.by-togel-page{box-sizing:border-box;width:calc(100% - 30px);max-width:1400px;margin:24px auto 42px;padding:0 0 15px;min-width:0;color:#fff}
.by-togel-page *{box-sizing:border-box}
.by-togel-heading{min-height:155px;background:radial-gradient(ellipse at 91% 0,rgba(235,45,29,.13),transparent 45%),linear-gradient(135deg,rgba(56,12,12,.95),rgba(12,9,9,.97));border:1px solid #813f36;border-radius:15px;display:flex;align-items:center;justify-content:space-between;padding:24px 28px;gap:16px;box-shadow:0 14px 33px rgba(0,0,0,.22)}
.by-togel-eyebrow{display:block;font-size:11px;letter-spacing:1.8px;color:#ffce78;font-weight:800}
.by-togel-heading h1{font-size:32px;line-height:1.15;margin:9px 0 10px;color:#fff;font-weight:850}
.by-togel-heading p{font-size:13px;line-height:1.65;color:#cdbbbb;max-width:675px;margin:0}
.by-togel-count{width:104px;min-width:104px;height:100px;border-radius:14px;border:1px solid #986343;background:linear-gradient(135deg,#4d1816,#1e0f0e);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.by-togel-count strong{font-size:35px;font-weight:850;color:#ffdb89;line-height:1}
.by-togel-count span{font-size:10px;font-weight:800;letter-spacing:1.2px;color:#e2b68d}
.by-togel-filters{display:flex;gap:12px;align-items:stretch;margin:20px 0 14px}
.by-togel-search{position:relative;flex:1;min-width:0;display:flex;align-items:center;background:#140d0d;border:1px solid #7b3b37;border-radius:11px;overflow:hidden;height:48px;color:#d1b79c}
.by-togel-search svg{width:19px;height:19px;flex:0 0 auto;margin-left:14px}
.by-togel-search input{border:0!important;outline:none!important;box-shadow:none!important;background:transparent!important;color:#fff!important;font-size:13px;flex:1;width:100%;height:100%;min-width:0;padding:0 11px;font-family:inherit}
.by-togel-search input::placeholder{color:#b29e94}
.by-togel-search kbd{margin-right:12px;border:1px solid #6a3e36;padding:1px 7px;border-radius:5px;font-size:11px;opacity:.65}
.by-togel-sort-label{width:194px;min-width:150px;height:48px;display:flex;align-items:center;gap:8px;border:1px solid #7b3b37;border-radius:11px;padding:0 10px 0 15px;background:#140d0d;color:#d1a989;font-size:12px}
.by-togel-sort-label select{flex:1;background:#140d0d;color:#fff;border:0;outline:none;max-width:110px;font:inherit;cursor:pointer}
.by-togel-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;padding:0 0 8px}
.by-togel-tabs button{appearance:none;white-space:nowrap;border:1px solid #78332e;border-radius:8px;background:#230e0d;color:#ecd2c0;font-size:12px;font-weight:700;min-height:36px;padding:0 17px;cursor:pointer}
.by-togel-tabs button.is-active{background:linear-gradient(180deg,#c3291c,#86140e);border-color:#e65b40;color:#fff;box-shadow:0 3px 11px #4e070736}
.by-togel-tabs button:focus-visible{outline:2px solid #f5d69c;outline-offset:3px}
.by-togel-listhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:13px 1px 15px;border-bottom:1px solid #683029;padding:0 0 12px}
.by-togel-listhead h2{font-size:17px;font-weight:800;margin:0;color:#fff}
.by-togel-listhead span{font-size:12px;color:#e4ba7c}
.by-togel-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:13px}
.by-togel-results>.by-market-card{flex:none!important;width:100%!important;min-width:0!important;max-width:none!important;min-height:174px!important;padding:8px 6px 9px!important;box-sizing:border-box}
.by-togel-results>.by-market-card b{font-size:12px;line-height:1.3;white-space:normal!important;text-align:center;min-height:25px;display:flex;align-items:center;justify-content:center}
.by-togel-results>.by-market-card strong{width:100%;font-size:41px;line-height:1.4}
.by-togel-results>.by-market-card small{font-size:10px}
.by-togel-results>.by-market-card[hidden]{display:none!important}
.by-togel-no-results{border:1px dashed #985d4d;background:#170e0c;border-radius:12px;margin:15px 0;padding:45px 18px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:9px;color:#f4d3c1}
.by-togel-no-results[hidden]{display:none}
.by-togel-no-results span{font-size:12px;color:#bcb0aa}
.by-togel-no-results button{margin-top:12px;border:1px solid #b85642;background:#a32317;color:#fff;padding:10px 20px;border-radius:8px;cursor:pointer}
.by-togel-disclaimer{margin:24px 0 0;background:linear-gradient(115deg,#201511,#180e0c);border:1px solid #654535;padding:14px 17px;display:flex;align-items:flex-start;gap:11px;border-radius:10px;color:#d5bda8}
.by-togel-disclaimer svg{width:18px;height:18px;flex:0 0 auto;margin-top:1px;color:#e8b77b}
.by-togel-disclaimer p{margin:0;font-size:12px;line-height:1.65}
.by-togel-disclaimer strong{color:#f4d49b}
@media(max-width:767px){
  .by-market-controls{gap:8px;margin:7px 0 0}
  .by-market-controls p{gap:5px;font-size:10px}
  .by-market-controls p b{font-size:10px}
  .by-market-control-buttons button{height:29px;width:29px;border-radius:8px}
  .by-market-control-buttons{gap:5px}
  .by-market-track>.by-market-card{flex:0 0 116px!important;min-width:116px!important;width:116px!important;max-width:116px;min-height:165px!important}
  .by-market-foot{font-size:9px;flex-wrap:wrap;gap:1px 12px;margin-top:0}
  .by-togel-page{width:calc(100% - 18px);margin:12px auto 30px}
  .by-togel-heading{padding:17px 15px;min-height:132px;border-radius:11px}
  .by-togel-heading h1{font-size:24px;margin:7px 0}
  .by-togel-heading p{font-size:11px}
  .by-togel-eyebrow{font-size:9px;letter-spacing:1.3px}
  .by-togel-count{min-width:75px;width:75px;height:75px;gap:4px}
  .by-togel-count strong{font-size:27px}
  .by-togel-count span{font-size:9px}
  .by-togel-filters{gap:8px;margin:13px 0 12px}
  .by-togel-search{height:43px}
  .by-togel-search kbd{display:none}
  .by-togel-sort-label{width:117px;min-width:117px;height:43px;padding:0 6px;font-size:0}
  .by-togel-sort-label select{font-size:11px;width:100%;max-width:100%}
  .by-togel-tabs button{font-size:11px;padding:0 13px;min-height:33px}
  .by-togel-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .by-togel-results>.by-market-card{width:100%!important;min-height:164px!important}
  .by-togel-results>.by-market-card strong{font-size:36px!important}
  .by-togel-listhead{margin:10px 1px}
  .by-togel-disclaimer{padding:12px}
}
@media(min-width:768px) and (max-width:1024px){.by-togel-results{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.by-market-track{scroll-behavior:auto}}
