/* Big screens, part 2 (loaded after wide.css):
   one sidebar on every page (js/dnav.js), Home with a right-hand column for the league and Today,
   and the same column on Feed and You. Phones are not affected. */
:root { --dnav-ok: 1; }
#dnav, .dk-rail { display: none; }
.h13-rail { display: contents; }

@media (min-width: 1100px) {
  /* ---------- the sidebar ---------- */
  #dnav { position: fixed; z-index: 5; left: 0; top: 0; bottom: 0; width: 248px; box-sizing: border-box; display: flex; flex-direction: column;
    padding: 22px 14px 14px; overflow-y: auto; scrollbar-width: none; background: linear-gradient(180deg, #0c0b14, #08080c 40%); border-right: 1px solid rgba(255,255,255,.07); }
  #dnav::-webkit-scrollbar { display: none; }
  body[data-view=au] #dnav, body[data-view=ob] #dnav, body[data-view=load] #dnav, body[data-view=agr] #dnav, body:not([data-view]) #dnav { display: none; }
  body[data-view]:not([data-view=au]):not([data-view=ob]):not([data-view=load]):not([data-view=agr]) #app { margin-left: 248px !important; width: calc(100% - 248px) !important; }
  #dnav a { color: inherit; text-decoration: none; }
  .dn-brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 22px; }
  .dn-brand img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
  .dn-brand b { font: 900 21px/1 ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif; letter-spacing: -.03em; color: #fff; }
  .dn-brand b span { color: rgba(255,255,255,.4); }
  .dn-sec { display: flex; flex-direction: column; gap: 2px; }
  .dn-i { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border-radius: 14px; font-size: 15.5px; font-weight: 650; color: rgba(235,235,245,.72) !important; transition: background .15s, color .15s; }
  .dn-i b { font: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dn-i:hover { background: rgba(255,255,255,.05); color: #fff !important; }
  .dn-i.on { background: color-mix(in srgb, var(--acc, #8f82ec) 16%, transparent); color: #fff !important; }
  .dn-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; }
  .dn-ic svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .dn-i.on .dn-ic { color: var(--acc, #8f82ec); }
  .dn-i.on .dn-ic svg { stroke-width: 2.3; }
  .dn-h { margin: 22px 12px 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(235,235,245,.35); }
  .dn-play .dn-ic { border-radius: 9px; color: color-mix(in srgb, var(--c) 80%, #fff); background: color-mix(in srgb, var(--c) 18%, transparent); }
  .dn-play .dn-ic svg { width: 18px; height: 18px; stroke-width: 2; }
  .dn-play .dn-i.on .dn-ic { color: #fff; background: var(--c); }
  .dn-play .dn-i.on { background: color-mix(in srgb, var(--c) 14%, transparent); }
  .dn-sp { flex: 1; min-height: 20px; }
  .dn-app { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 650; color: rgba(235,235,245,.55); text-align: left; }
  .dn-app:hover { background: rgba(255,255,255,.05); color: #fff; }
  .dn-app svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .dn-me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); transition: background .15s; }
  .dn-me:hover { background: rgba(255,255,255,.07); }
  .dn-av { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: var(--acc, #8f82ec); font-size: 16px; font-weight: 800; color: #fff; }
  .dn-av img { width: 100%; height: 100%; object-fit: cover; }
  .dn-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .dn-who b, .dn-who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dn-who b { font-size: 14px; font-weight: 750; color: #fff; }
  .dn-who small { font-size: 12px; color: rgba(235,235,245,.5); }
  .dn-mp { flex: none; display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px 0 6px; border-radius: 99px; background: rgba(255,255,255,.07); font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
  .dn-mp .mp-i { width: 15px; height: 15px; }

  /* the old in-page sidebar is replaced by the one above */
  body[data-view=hm] #hm { grid-template-columns: minmax(0, 1fr) !important; }
  #hm #nv { display: none !important; }
  #hm .body { grid-column: 1 !important; margin-left: 0 !important; }
  #hm .nb { left: 0 !important; }
}

/* ---------- a right-hand column on wide screens ---------- */
@media (min-width: 1280px) {
  #hm .body > .pg:has(> .h12), #hm .body > .pg.dk-2 { max-width: 1160px !important; }
  .h12 { display: grid; grid-template-columns: minmax(0, 1fr) 350px; column-gap: 28px; align-items: start; }
  .h12 > * { grid-column: 1; min-width: 0; }
  .h12 > .h13-rail { grid-column: 2; grid-row: 1 / span 40; }
  .h13-rail, .pg.dk-2 > .dk-rail { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 14px; }
  .h13-rail > *, .dk-rail > * { margin-top: 0 !important; }
  .h13-rail .h13-list, .dk-rail .h13-list { grid-template-columns: 1fr; }
  .h13-rail .h13-pz > span, .dk-rail .h13-pz > span { flex: 1; justify-content: center; padding-right: 8px; }
  .h13-rail .h13-go, .dk-rail .h13-go { width: 100%; justify-content: center; margin: 4px 0 0; }
  .h13-rail .h13-lg > b { font-size: 26px; }
  .pg.dk-2 { display: grid; grid-template-columns: minmax(0, 760px) 340px; column-gap: 28px; justify-content: center; align-items: start; }
  .pg.dk-2 > * { grid-column: 1; min-width: 0; margin-left: 0 !important; margin-right: 0 !important; }
  .pg.dk-2 > .dk-rail { grid-column: 2; grid-row: 1 / span 40; }
  /* compact versions in the Feed / You column */
  .dk-rail .h13-lg > b { font-size: 22px; }
  .dk-rail .h13-lg > p { font-size: 13px !important; }
  .dk-rail .fu6-wkm > div:first-child b { font-size: 40px; }
  .dk-rail .h13-f { padding: 14px; }
  .dk-rail .h13-t:nth-child(n+5) { display: none; }
  .dk-rail .h13-i { width: 38px; height: 38px; border-radius: 12px; }
  .dk-rail .h13-i svg { width: 19px; height: 19px; }
  .dk-rail .h13-tx b { font-size: 14px; }
}
