/* Sportsbook, Sport Explorer — TZ §13.3: 248px sport sidebar + fixture panel on
 * desktop, horizontal sport scroller on tablet, card rows + collapsible tools on mobile. */

/* branch cards */
.branch-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.branch a {
  position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 16px 16px; border-radius: var(--r16);
  background: #fff; border: 1px solid var(--color-line); box-shadow: var(--shadow); text-decoration: none; color: var(--color-text);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.branch a:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--color-brand) 40%, var(--color-line)); }
.branch-ic { align-self: flex-start; margin-bottom: 6px; }
.branch-ic .icon { width: 22px; height: 22px; }
.branch-name { font-weight: 700; color: var(--color-navy); font-size: 16px; line-height: 22px; }
.branch-count { font-size: 14px; color: var(--color-muted); }
.branch-count b { font-size: 22px; color: var(--color-navy); margin-right: 2px; }
.branch-go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--brand-ink); }
.branch-go .icon { transition: transform .2s var(--ease); }
.branch a:hover .branch-go .icon { transform: translateX(3px); }

/* explorer: sidebar + panel */
.book { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-width: 0; gap: 0; border: 1px solid var(--color-line); border-radius: var(--r16); background: #fff; box-shadow: var(--shadow); }
.book-side { min-width: 0; border-right: 2px solid var(--color-line); padding: 18px 12px; }
.book-side ul { position: sticky; top: calc(var(--head-h) + 16px); display: grid; gap: 2px; }
.book-side-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); margin: 0 10px 8px; }
.side-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 44px; padding: 0 8px 0 12px; border-radius: 12px; color: var(--color-text); text-decoration: none; font-weight: 600; font-size: 15px; transition: background-color .2s var(--ease), color .2s var(--ease); }
.side-link .icon { color: var(--color-muted); }
.side-link:hover { background: var(--color-canvas); }
.side-link.is-active { background: var(--color-brand); color: #fff; }
.side-link.is-active .icon { color: #fff; }
.side-link.is-active .chip-count { background: #fff; color: var(--brand-ink); }
.book-main { min-width: 0; padding: 20px 24px 24px; }
.book-tools { display: grid; grid-template-columns: minmax(0, 1fr) 224px 160px auto; gap: 10px; align-items: center; }
.book-tools .field select { min-height: 44px; }
.book-tools .field-search input { height: 44px; }
html.js .book-go { display: none; }
html.js .book-tools { grid-template-columns: minmax(0, 1fr) 224px 160px; }
.book .notice { margin-top: 14px; }

.book-bottom { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: start; }
.book-note-demo { margin-top: 20px; }
.lotto-link h3 { margin-top: 14px; }
.lotto-link p { color: var(--color-muted); margin-top: 8px; }
.lotto-link-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }

/* explorer page (/sports) */
.sport-tabs { margin-top: 22px; }
.sport-tabs .chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }
.sport-tabs .chip .chip-count { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
.sport-tabs .chip.is-active { background: #fff; color: var(--color-navy); border-color: #fff; }
.sport-tabs .chip.is-active .chip-count { background: var(--color-brand); color: #fff; }
.sport-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sport-head .seat--lg .icon { width: 30px; height: 30px; }
.sport-count-big { display: inline-flex; align-items: baseline; gap: 6px; margin-left: auto; color: var(--color-muted); font-weight: 600; }
.sport-count-big b { font-size: 34px; line-height: 1; color: var(--color-navy); font-weight: 800; }
.league { margin-top: 18px; border: 1px solid var(--color-line); border-radius: var(--r16); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.league-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 20px; border: 0; background: var(--color-canvas); cursor: pointer; font: 700 16px var(--font); color: var(--color-navy); text-align: left; }
.league-q .icon { transition: transform .3s var(--ease); color: var(--brand-ink); }
.league-q[aria-expanded="false"] .icon { transform: rotate(-90deg); }
.league-q .pill { margin-left: auto; }
.league-body > div { padding: 0 20px 8px; }
.league .mrow:last-child { border-bottom: 0; }
.data-note { margin-top: 28px; }
.sport-all-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

/* responsive */
@media (max-width: 1100px) {
  .branch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .book { grid-template-columns: minmax(0, 1fr); }
  .book-side { border-right: 0; border-bottom: 2px solid var(--color-line); padding: 14px 16px; }
  .book-side-title { display: none; }
  .book-side ul { position: static; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .book-side ul::-webkit-scrollbar { display: none; }
  .book-side li { flex: none; scroll-snap-align: start; }
  .side-link { border: 1px solid var(--color-line); border-radius: var(--pill); min-height: 40px; }
  .book-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .branch a { padding: 14px; }
  .book-main { padding: 16px; }
  .book-tools, html.js .book-tools { grid-template-columns: 1fr 1fr; }
  .book-q { grid-column: 1 / -1; }
  .book-go { grid-column: 1 / -1; }
  .book .mrow { padding: 14px 0; }
  .sport-count-big { margin-left: 0; width: 100%; }
  .league-q { padding: 0 16px; }
  .league-body > div { padding: 0 16px 8px; }
}
.book-more-wrap { display: flex; justify-content: center; margin-top: 18px; }
/* /event hub */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 32px; }
.hub-title { font-size: 20px; line-height: 28px; }
.hub .sport-head .pill { margin-left: auto; }
.hub-list { margin-top: 12px; display: grid; }
.hub-list a { position: relative; display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--color-line); color: var(--color-navy); text-decoration: none; font-weight: 600; font-size: 15px; }
.hub-list a:hover { color: var(--brand-ink); text-decoration: underline; }
.hub-list .num { flex: none; min-width: 78px; color: var(--color-muted); font-weight: 600; font-size: 13px; }
/* two selects side by side clip «Tüm branşlar» / «Gün ve saat» below ~420px: stack them */
@media (max-width: 420px) {
  .book-tools, html.js .book-tools { grid-template-columns: 1fr; }
}
