/* ===== Alt dock gezinmesi (masaustu, 901 px+) — PROTOTIP =====
   Yan menu kalkar: ust ince cubukta marka, arama, ayarlar ve hesap; sayfalar ekranin altinda yuzen bir dock'ta.
   Uzerine gelince (ya da klavye odaginda) simge 6 px yukari cikar ve ustunde adi gorunur.
   Ayarlardaki "Dock'u otomatik gizle" secenegiyle (html.dock-auto) dock asagida saklanir, imlec alt kenara yaklasinca cikar.
   app.css'ten sonra yuklenir; mobil (900 px ve alti) duzene dokunmaz. */
@media (min-width: 901px) {
  :root { --nav-w: 0px; --bar-h: 52px; --dock-gap: 84px; }
  :root body { padding-left: 0; }
  :root :is(.view, #viewPp) { height: calc(100vh - var(--bar-h) - var(--note-h)); height: calc(100dvh - var(--bar-h) - var(--note-h)); }
  /* Icerik ekranin altina kadar uzanir, dock ustunde yuzer; bos serit kalmaz.
     Son satir dock'un altinda kalmasin diye bosluk yalniz kaydirilan listelerin icinde. */
  :root .view { padding-bottom: 0; }
  /* Kaymayan, ekrani dolduran sayfalar (Canli TV: alttaki kanal seridi) dock'un altinda kalmasin */
  :root #viewTv { padding-bottom: var(--dock-gap); }
  /* !important: sayfa CSS dosyalari (cmp2.css vb.) dock.css'ten sonra yukleniyor ve kendi alt boslugunu yaziyor */
  :root :is(.scroll, .side, .sb-detail, #viewPp, .dock-pad) { padding-bottom: var(--dock-gap) !important; scroll-padding-bottom: var(--dock-gap); }
  :root.dock-auto { --dock-gap: 14px; }

  /* Ust cubuk: yatay */
  :root .bar { position: relative; inset: auto; width: auto; height: var(--bar-h); flex-direction: row; align-items: center;
    gap: 6px; padding: 0 14px; border-right: 0; border-bottom: 1px solid var(--line); background: var(--bg); }
  :root .bar > .brand { order: 0; height: 100%; padding: 0; }
  :root .bar > .brand .brand-txt { display: flex !important; }
  :root .bar > .brand :is(.brand-title, .scan-pill) { display: inline-flex !important; }
  :root .bar > .brand .scan-pill { margin-left: 10px; }
  :root .bar > .spacer { order: 1; flex: 1 1 0; }
  :root .bar > .search { order: 2; width: 260px; height: 32px; margin: 0 4px 0 0; padding: 0 10px; gap: 8px; align-self: center; justify-content: flex-start; }
  :root .bar > .search input { width: auto; flex: 1 1 auto; }
  :root .bar > .search kbd { display: inline-block; }
  :root .bar > .bar-tools { order: 3; flex-direction: row; padding: 0; border: 0; }
  :root .bar > .set-wrap { order: 4; position: relative; inset: auto; padding: 0; border: 0; flex-direction: row; }
  :root .bar > :is(.btn-trial-start, .btn-pricing) { order: 5; }
  :root .bar > .user-container { order: 6; padding: 0; border: 0; justify-content: flex-end; }
  :root .user-container > :is(.btn-auth-open, .user-menu-trigger) { flex: none; width: auto; height: 32px; padding: 0 10px; font-size: inherit; }
  :root .user-menu-trigger :is(.uname-text, .tier-tag, .ic.sm) { display: inline-flex; }
  :root .btn-auth-open::before { display: none; }
  :root #navTg { display: none !important; }
  :root .set-pop { top: calc(100% + 8px); bottom: auto; right: 0; left: auto; }
  :root .user-dropdown { top: calc(100% + 6px); bottom: auto; right: 0; left: auto; }
  :root :is(.tg-inv, .ck-consent) { bottom: 76px; }   /* dock'la cakismasin */
  :root .tg-inv { left: 16px; }
  :root body .sc-box { left: 12px; bottom: calc(var(--dock-gap) + 4px); }

  /* Dock */
  :root .bar > .views { order: 9; position: fixed; z-index: 60; left: 50%; bottom: 14px; top: auto; width: auto; height: auto; max-width: calc(100vw - 32px);
    flex-direction: row; align-items: center; gap: 3px; padding: 6px; overflow: visible;
    background: color-mix(in srgb, var(--panel) 90%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    transform: translateX(-50%); transform-origin: 50% 100%; will-change: transform;
    transition: transform .55s cubic-bezier(.22, 1, .36, 1), opacity .4s ease, padding .24s var(--ease), bottom .24s var(--ease); }
  :root[data-theme="light"] .bar > .views { box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
  :root .views a { position: relative; flex: none; align-self: center; margin: 0; width: auto; height: 42px; padding: 0 13px; gap: 8px; justify-content: center;
    border-radius: var(--r-pill); font-size: 0; color: var(--ink-2); background: none;
    transition: transform .24s var(--ease-spring), background-color .15s, color .15s, height .24s var(--ease), padding .24s var(--ease); }
  :root .views a .ic { display: block; width: 21px; height: 21px; stroke-width: 1.8; transition: width .24s var(--ease), height .24s var(--ease), transform .26s var(--ease-spring); }
  :root .views a .tab-short { display: none; }
  :root .views a[aria-current="page"] { padding: 0 16px 0 13px; font-size: 14px; font-weight: 500; color: var(--ink); background: color-mix(in srgb, var(--page-acc) 16%, transparent); box-shadow: none; }
  :root .views a[aria-current="page"] .ic { color: var(--page-acc); }
  /* Uzerine gelince: vurgu zemini dock'un icinde yerinde kalir, yalniz simge hafifce kalkar ve buyur
     (zeminin de kalkmasi dock kenarindan tasip egri gorunuyordu) */
  :root .views a:is(:hover, :focus-visible) { color: var(--ink); background: var(--ghost-h); }
  :root .views a:is(:hover, :focus-visible) .ic { transform: scale(1.12); }
  :root .views a[aria-current="page"]:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--page-acc) 16%, transparent); }
  :root .views a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

  /* Sayac yalniz secili sayfada; renk anlama gore */
  :root body .views a b { display: none !important; }
  :root body .views a[aria-current="page"] b { display: inline-block !important; margin: 0; padding: 1px 7px; border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .07); color: var(--ink-2); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
  :root body .views a[aria-current="page"] b { background: color-mix(in srgb, var(--page-acc) 14%, transparent); color: var(--page-acc); }
  /* "Yeni" etiketi simge kosesinde nokta olur */
  :root .views a .tab-new { display: block !important; position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; margin: 0; padding: 0;
    border-radius: 50%; background: var(--action); font-size: 0; }
  :root .views a[aria-current="page"] .tab-new { display: none !important; }
  :root .views .views-live { position: absolute; top: 8px; right: 8px; margin: 0; }

  /* Ad etiketi (simgenin ustunde) */
  :root .views a::after { content: attr(data-tip); display: block; position: absolute; left: 50%; right: auto; top: auto; bottom: calc(100% + 12px);
    width: auto; height: auto; padding: 4px 9px; border: 1px solid var(--line); border-radius: var(--r-sm);
    background: var(--raised); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); color: var(--ink); font-size: 12px; font-weight: 500; line-height: 16px;
    white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .15s, transform .15s; }
  :root .views a:is(:hover, :focus-visible)::after { opacity: 1; transform: translate(-50%, 0); }
  :root .views a[aria-current="page"]::after, :root .views a:not([data-tip])::after { display: none; }
  /* Gruplar arasi ince ayrac */
  :root .views a:is([data-view="cmp"], [data-view="lg"], [data-view="dev"]) { margin-left: 9px; }
  :root .views a:is([data-view="cmp"], [data-view="lg"], [data-view="dev"])::before { content: ""; position: absolute; left: -6px; top: 9px; bottom: 9px;
    width: 1px; background: var(--line); transform: none; pointer-events: none; }

  /* Kucuk dock: liste asagi kaydirilinca (html.dock-mini) dock tek parca halinde yumusakca kuculur. Duzen degismez
     (yukseklik, genislik, yazi boyutu sabit), yalniz transform ve saydamlik gecer: ziplama olmaz, GPU ile akar.
     Yukari kaydirinca ya da imlec/klavye dock'a gelince ayni egriyle eski boyutuna doner. Otomatik gizlemede devre disi. */
  :root.dock-mini:not(.dock-auto) .bar > .views:not(:hover):not(:focus-within) { transform: translateX(-50%) scale(.84); opacity: .94; }

  /* Otomatik gizle: dock asagida, alt kenarda ince bir tutamac kalir */
  :root.dock-auto .bar > .views { transform: translate(-50%, calc(100% + 24px)); opacity: 0; }
  :root.dock-auto.dock-show .bar > .views, :root.dock-auto .bar > .views:focus-within { transform: translateX(-50%); opacity: 1; }
  :root.dock-auto body::after { content: ""; position: fixed; z-index: 59; left: 50%; bottom: 5px; width: 64px; height: 4px; margin-left: -32px;
    border-radius: 4px; background: color-mix(in srgb, var(--ink) 22%, transparent); transition: opacity .2s; pointer-events: none; }
  :root.dock-auto.dock-show body::after { opacity: 0; }
}
@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  :root .views a:is(:hover, :focus-visible) .ic { transform: none; }
  :root .bar > .views, :root .views a { transition: none; }
}

/* ===== Ust cubuk (masaustu, dock duzeni) — PROTOTIP =====
   Cubuk kartlarla ayni yuzeyde; sayfa adi ve canli tarama rozeti ortada, sol sutunu olan sayfalarda ana sutunla hizali
   (--bar-l, dock.js olcer). "Gelistirme suruyor" seridi kalkar, yerine cubukta Beta rozeti ve acilir not.
   Tek hareket: yeni tarama gelince alt kenar boyunca bir kez radar supurmesi. */
@media (min-width: 901px) {
  /* Daha az karanlik: serin grafit zemin, kartlar bir ton acik */
  :root:not([data-theme="light"]) { --bg: #111216; --panel: #18191d; --raised: #24262b; --hover: #1f2025; --sunk: #1c1d21;
    --line: rgba(255, 255, 255, .09); --line-soft: rgba(255, 255, 255, .055); --ghost-h: rgba(255, 255, 255, .06); }
  :root body { --note-h: 0px; }
  :root #devNote:not(.dn-pop) { display: none !important; }

  :root .bar { gap: 10px; background: var(--panel); border-bottom: 1px solid var(--line); overflow: visible; }
  :root .bar > .brand { flex: 0 0 auto; min-width: var(--bar-l, auto); justify-content: flex-start; padding: 0 0 0 2px; }
  :root .bar > .brand .beta-tag, :root:not(.bar-col) .bar > .brand .scan-pill { display: none !important; }
  :root.bar-col .bar > .brand { padding-right: 0; }
  :root.bar-col .bar > .brand .scan-pill { margin-left: auto; }
  :root .bar > .brand .brand-title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }

  /* Sayfa baglami: ad + canli rozet */
  :root .bar > .bar-ctx { order: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
  :root .bar-ctx .ctx-sep { width: 1px; height: 18px; background: var(--line); }
  :root .bar-ctx .ctx-title { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -.005em; white-space: nowrap; }
  :root :is(.bar-ctx, .bar > .brand) .scan-pill { display: inline-flex !important; height: 24px; margin: 0; padding: 0 10px 0 9px; gap: 7px; border-radius: var(--r-pill);
    background: var(--profit-tint); color: var(--profit); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
  :root :is(.bar-ctx, .bar > .brand) .scan-pill .scan-dot { width: 6px; height: 6px; background: var(--profit); }
  :root :is(.bar-ctx, .bar > .brand) .scan-pill:not(.paused) .scan-dot::after { border-color: var(--profit); }
  :root :is(.bar-ctx, .bar > .brand) .scan-pill:is(.warn, .paused) { background: var(--warm-tint); color: var(--warm); }
  :root :is(.bar-ctx, .bar > .brand) .scan-pill:is(.warn, .paused) .scan-dot { background: var(--warm); }
  :root .bar > .spacer { order: 2; }
  :root .bar > .search { order: 3; background: var(--sunk); }
  :root .bar > .bar-tools { order: 4; }
  :root .bar > .bar-beta { order: 5; }
  :root .bar > .set-wrap { order: 6; }
  :root .bar > :is(.btn-trial-start, .btn-pricing) { order: 7; }
  :root .bar > .user-container { order: 8; }

  /* Beta rozeti ve acilir gelistirme notu */
  :root .bar-beta { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--warm) 35%, transparent);
    border-radius: var(--r-pill); background: var(--warm-tint); color: var(--warm); font: inherit; font-size: 12px; font-weight: 500; cursor: pointer;
    transition: background-color .15s, border-color .15s; }
  :root .bar-beta:hover, :root .bar-beta[aria-expanded="true"] { background: color-mix(in srgb, var(--warm) 20%, transparent); border-color: color-mix(in srgb, var(--warm) 55%, transparent); }
  :root .bar-beta:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
  :root .bar-beta svg { width: 13px; height: 13px; }
  :root .bar-beta .bb-v { color: color-mix(in srgb, var(--warm) 70%, var(--ink-3)); font-variant-numeric: tabular-nums; }
  :root #devNote.dn-pop { position: fixed; z-index: 80; top: calc(var(--bar-h) + 8px); width: 340px; height: auto; display: grid !important;
    grid-template-columns: 22px 1fr 24px; align-items: start; gap: 4px 10px; padding: 14px 10px 14px 14px; border: 1px solid var(--line);
    border-radius: var(--r-lg); background: var(--raised); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); color: var(--ink-2); font-size: 13px; line-height: 1.5; }
  :root #devNote.dn-pop[hidden] { display: grid !important; }
  :root #devNote.dn-pop:not(.open) { display: none !important; }
  :root #devNote.dn-pop .dn-ic { grid-row: 1 / span 3; color: var(--warm); padding-top: 1px; }
  :root #devNote.dn-pop .dn-ic svg { width: 18px; height: 18px; }
  :root #devNote.dn-pop b { grid-column: 2; font-size: 14px; font-weight: 600; color: var(--ink); }
  :root #devNote.dn-pop .dn-long { grid-column: 2; display: block; white-space: normal; overflow: visible; }
  :root #devNote.dn-pop .dn-short { display: none; }
  :root #devNote.dn-pop .dn-link { grid-column: 2; justify-self: start; margin-top: 4px; color: var(--action); font-weight: 500; }
  :root #devNote.dn-pop .dn-x { grid-column: 3; grid-row: 1; position: static; }

  /* Radar supurmesi: yeni tarama gelince alt kenarda bir kez */
  :root .bar::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 28%; height: 1px; pointer-events: none; opacity: 0;
    background: linear-gradient(90deg, transparent, var(--page-acc) 70%, color-mix(in srgb, var(--page-acc) 30%, #fff)); }
  :root .bar.swept::after { animation: bar-sweep 1.4s var(--ease) 1; }
}
@keyframes bar-sweep { 0% { transform: translateX(-100%); opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(360%); opacity: 0; } }
@media (min-width: 901px) and (prefers-reduced-motion: reduce) { :root .bar.swept::after { animation: none; } }
@media (max-width: 900px) { .bar-ctx, .bar-beta, .set-dock { display: none !important; } }

/* 1440 px ve ustu: eski yan menunun genis ekran kurallari (app.css, "html:not(.nav-mini) ...") daha guclu secici
   kullaniyor ve ust cubuga alt bosluk, hesap menusune 86 px sag bosluk, 40 px'lik ayar dugmesi veriyordu.
   :root:not(.nav-mini) onlardan bir basamak guclu; olculer 901-1439 px ile ayni olur. */
@media (min-width: 1440px) {
  :root:not(.nav-mini) .bar { padding: 0 14px; }
  :root:not(.nav-mini) .bar > .brand { height: 100%; padding: 0 0 0 2px; }
  :root:not(.nav-mini) .bar > .search { height: 32px; margin: 0 4px 0 0; padding: 0 10px; gap: 8px; }
  :root:not(.nav-mini) .bar > .search .ic { width: 16px; height: 16px; }
  :root:not(.nav-mini) .bar > .views { gap: 2px; }
  :root:not(.nav-mini) .views a { height: 42px; padding: 0 13px; gap: 8px; }
  :root:not(.nav-mini) .views a[aria-current="page"] { padding: 0 16px 0 13px; }
  :root:not(.nav-mini) .views a .ic { width: 21px; height: 21px; }
  :root:not(.nav-mini) .bar :is(#navTg, #setBtn) { width: 32px; height: 32px; }
  :root:not(.nav-mini) .bar :is(#navTg, #setBtn) .ic { width: 18px; height: 18px; }
  :root:not(.nav-mini) .bar > .set-wrap { inset: auto; align-self: center; }
  :root:not(.nav-mini) .bar > .user-container { padding: 0; }
  :root:not(.nav-mini) .user-container > :is(.btn-auth-open, .user-menu-trigger) { height: 32px; }
  :root:not(.nav-mini) .bar .user-menu-trigger { padding-left: 6px; gap: 8px; }
}

/* ===== Sayfa vurgusu ve baglam (masaustu) =====
   --page-acc: sekmenin rengi (dock.js yazar: Surebet/Middle/Dusuk marj kar yesili, Valuebet/Keskin amber, Canli TV kirmizi,
   digerleri mavi; Karsilasmalar'da secili sporun, Oyuncu'da secili macin rengi). Cubugun alt cizgisi, radar supurmesi ve
   dock'taki secili sekme bu rengi alir. html.bar-hero: Oyuncu sayfasinda mac secili; takim renkleri (--page-a deplasman,
   --page-h ev sahibi) cubugun iki ucundan akar, alt cizgi birinden digerine gecer. */
:root { --page-acc: var(--action); --page-a: var(--page-acc); --page-h: var(--page-acc); }
@media (min-width: 901px) {
  :root .bar::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; opacity: .75;
    background: linear-gradient(90deg, transparent, var(--page-acc) 22%, var(--page-acc) 78%, transparent); transition: opacity .3s; }
  :root.bar-hero .bar { background: linear-gradient(90deg, color-mix(in srgb, var(--page-a) 30%, var(--panel)) 0%, var(--panel) 38%,
    var(--panel) 62%, color-mix(in srgb, var(--page-h) 30%, var(--panel)) 100%); }
  :root.bar-hero .bar::before { opacity: 1; background: linear-gradient(90deg, var(--page-a), color-mix(in srgb, var(--page-a) 40%, transparent) 45%,
    color-mix(in srgb, var(--page-h) 40%, transparent) 55%, var(--page-h)); }

  /* Baslik yaninda sayfanin sayisi ve yol bilgisi */
  :root .bar-ctx .ctx-count { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--page-acc) 14%, transparent); color: var(--page-acc); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
  :root .bar-ctx .ctx-count:empty { display: none; }
  :root .bar-ctx .ctx-crumb { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: var(--ink-3); font-size: 13px; white-space: nowrap; }
  :root .bar-ctx .ctx-crumb:empty { display: none; }
  :root .bar-ctx .ctx-crumb .cc-sep { width: 14px; height: 14px; opacity: .6; }
  :root .bar-ctx .ctx-crumb b { color: var(--ink); font-weight: 600; }
  :root .bar-ctx .ctx-crumb .cc-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 12%, transparent); }
  :root .bar-ctx .ctx-crumb .cc-at { color: var(--ink-3); }

  /* Karsilasmalar: spor sekmeleri cubukta (html.bar-sports); sayfa basligi gizlenir, sekmeler ana sutunla hizali baslar */
  :root.bar-sports .bar-ctx :is(.ctx-title, .ctx-count, .ctx-sep) { display: none; }
  :root .bar > #cmpSports { order: 1; flex: 0 1 auto; min-width: 0; height: 100%; min-height: 0; margin: 0; padding: 0; gap: 2px; align-items: center;
    border: 0; border-radius: 0; background: none; overflow-x: auto; scrollbar-width: none; }
  :root .bar > #cmpSports button, :root .bar > #cmpSports button:hover { height: 32px; padding: 0 11px; gap: 7px; border: 0 !important; border-radius: var(--r-pill);
    font-size: 13px; font-weight: 500; color: var(--ink-2); background: none; box-shadow: none; transform: none; }
  :root .bar > #cmpSports button:hover { color: var(--ink); background: var(--ghost-h); }
  :root .bar > #cmpSports button .sp { width: 16px; height: 16px; color: var(--spc, var(--ink-3)); background: none; }
  :root .bar > #cmpSports button .sp .ic { width: 15px; height: 15px; }
  :root .bar > #cmpSports button b { font-size: 11px; font-weight: 500; color: var(--ink-3); opacity: 1; padding: 0; background: none; }
  :root .bar > #cmpSports button[aria-pressed="true"] { color: var(--ink); background: color-mix(in srgb, var(--spc, var(--action)) 16%, transparent); }
  :root .bar > #cmpSports button[aria-pressed="true"] :is(.sp, b) { color: var(--spc, var(--action)); }
  :root .bar > #cmpSports button[aria-pressed="true"]::after { display: none; }
  :root .bar > #cmpSports .k2-allsp { order: -1; margin: 0 4px 0 0; border-left: 0 !important; }
  /* Cubukta yer dar: sayilar gizli, "Tum sporlar" basta, tasan kisim sagda solar (yatay kaydirilabilir) */
  :root .bar > #cmpSports button b { display: none; }
  :root .bar > #cmpSports { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); padding-right: 30px; }
  :root :is(.bar-ctx, .bar > .brand) .scan-pill { flex: none; white-space: nowrap; }
  :root .bar > #cmpSports .k2-allsp[aria-pressed="true"] { color: var(--action); background: var(--action-tint); }
}

/* Secili olmayan ogeler tam kare ve yuvarlak: vurgu zemini simgenin etrafinda tam daire olur (yana basik oval degil),
   simge kaydirilmaz, yalniz buyur; boylece her zaman tam ortada durur. */
@media (min-width: 901px) {
  /* gap 0: gizli ad metni sifir genislikli de olsa esnek oge; aradaki bosluk simgeyi 4 px sola itiyordu */
  :root .bar > .views a:not([aria-current="page"]) { width: 42px; padding: 0; gap: 0; border-radius: 50%; }
}
