/* PLIXWIN – navigation v2 (teal): phone bar with Browse, solid Live / Sports icons, sidebar search. See /teal/nav-v2.js */

/* hidden until nav-v2.js has finished them (no flash of the old Menu / Search / Wallet icons);
   shown anyway after 3 s if the script could not run */
html[data-theme="teal"]:not(.tl-nav-ready) .tl-bbar,
html[data-theme="teal"]:not(.tl-nav-ready) #siteNavigation .navigation-scroll { visibility: hidden; animation: tl-nav-fallback 0s linear 3s forwards; }
@keyframes tl-nav-fallback { to { visibility: visible; } }

/* phone bar: 6 buttons */
html[data-theme="teal"] .tl-bbar.tl-bbar-v2 { grid-template-columns: repeat(6, minmax(0, 1fr)); padding-left: 2px; padding-right: 2px; }
html[data-theme="teal"] .tl-bbar.tl-bbar-v2 .tl-ic { width: 23px; height: 23px; }
html[data-theme="teal"] .tl-bbar .tl-cut-s { stroke: var(--tl-bg); }
html[data-theme="teal"] .tl-bbar button.is-on .tl-nv-browse { color: var(--tl-green); }
html[data-theme="teal"] .tl-bbar.tl-bbar-v2 button { gap: 6px; font-size: 11.5px; font-weight: 700; }
html[data-theme="teal"] .tl-bbar.tl-bbar-v2 button > span:last-child { line-height: 1; }
html[data-theme="teal"] .tl-bbar.tl-bbar-v2 button.is-on { position: relative; }
html[data-theme="teal"] .tl-bbar.tl-bbar-v2 button.is-on::before { content: ""; position: absolute; top: -1px; left: 26%; right: 26%; height: 3px; border-radius: 0 0 3px 3px; background: var(--tl-green); }

/* sidebar search */
html[data-theme="teal"] .tl-sb-search { flex: none; display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
html[data-theme="teal"] .tl-sb-find { flex: 1; min-width: 0; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid #12303D; border-radius: 10px;
  background: var(--tl-field, #03131B); color: var(--tl-muted); font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; transition: border-color .15s, background .15s; }
html[data-theme="teal"] .tl-sb-find:hover { border-color: #1C4558; background: var(--tl-sf); color: #FFFFFF; }
html[data-theme="teal"] .tl-sb-find .tl-ic { width: 19px; height: 19px; color: var(--tl-muted); flex: none; }
html[data-theme="teal"] .tl-sb-find span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-theme="teal"] .tl-sb-x { display: none; width: 44px; height: 44px; flex: none; border: 0; border-radius: 10px; background: none; color: #FFFFFF; place-items: center; cursor: pointer; }
html[data-theme="teal"] .tl-sb-x:hover { background: var(--tl-sf); }
html[data-theme="teal"] .tl-sb-x .tl-ic { width: 22px; height: 22px; }

/* phones: search + X above Casino / Sports */
@media (max-width: 900px) {
  html[data-theme="teal"] .tl-sb-search.is-phone { margin: 0; padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 0; background: var(--tl-bg); position: relative; z-index: 2; }
  html[data-theme="teal"] .tl-sb-search.is-phone .tl-sb-x { display: grid; }
  html[data-theme="teal"] .tl-sb-search.is-phone + .tl-sb-top { padding-top: 0; height: 64px; }
  html[data-theme="teal"] .tl-sb-search.is-phone + .tl-sb-top .tl-seg button { height: 46px; font-size: 15px; }
}
/* desktop, folded sidebar: just the magnifier */
@media (min-width: 901px) {
  html[data-theme="teal"] body.nav-compact .tl-sb-find { justify-content: center; padding: 0; }
  html[data-theme="teal"] body.nav-compact .tl-sb-find span { display: none; }
}

/* Casino and Live casino pages: tight, even spacing between a row, its "Load more" and the next row */
html.hv2[data-theme="teal"] .px-view .px-stack { gap: 26px !important; }
html.hv2[data-theme="teal"] .px-view .px-more { margin-top: 8px !important; gap: 14px !important; }
html.hv2[data-theme="teal"] .px-view .px-more .px-more-btn,
html.hv2[data-theme="teal"] .px-view .px-more .px-less-btn { height: 30px !important; }
@media (max-width: 900px) {
  html.hv2[data-theme="teal"] .px-view .px-stack { gap: 18px !important; }
  html.hv2[data-theme="teal"] .px-view .px-sec-head { margin-bottom: 10px !important; }
  html.hv2[data-theme="teal"] .px-view .px-more { margin-top: 2px !important; gap: 10px !important; }
  html.hv2[data-theme="teal"] .px-view .px-more .px-more-btn,
  html.hv2[data-theme="teal"] .px-view .px-more .px-less-btn { height: 28px !important; font-size: 13px !important; }
}
