/* Theme additions on top of the prototype CSS (app.css). */

/* language switch is made of real links (/ and /cs/…) instead of the prototype's buttons */
.seg-mini a{height:28px;min-width:34px;padding:0 8px;border-radius:var(--r-sm);display:grid;place-items:center;font:700 12px/1 var(--font-ui);letter-spacing:.06em;color:var(--hdr-muted);text-decoration:none;transition:background .15s,color .15s}
.seg-mini a:hover{color:var(--hdr-ink)}
.seg-mini a[aria-pressed="true"]{background:var(--hdr-ctl-on);color:var(--hdr-ctl-on-ink)}
.drawer-f .seg-mini a{color:var(--muted)}
.drawer-f .seg-mini a[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-sm)}
:root[data-theme="dark"] .seg-mini a[aria-pressed="true"]{border-color:var(--line-2)}

/* real team logos in place of the prototype's drawn crests (same box) */
img.crest{display:block;flex:none;object-fit:contain}

/* placeholder text under the empty-state title */
.empty p{margin:6px 0 0;color:var(--muted);font:400 14px/1.5 var(--font-ui)}

/* match protocol: real video / BigSports' player inside the prototype's player frame */
.player video,.player iframe{position:absolute;inset:0;width:100%;height:100%;border:0;background:#000;z-index:0}
.player.playing>svg{display:none}
.player .pl-top,.player .pl-bar{z-index:1}
.player.playing .pl-top{opacity:0;transition:opacity .2s;pointer-events:none}
.player.playing:hover .pl-top{opacity:1}
.player.pl-frame .pl-top,.player.pl-frame .pl-bar,.player.pl-frame .pl-play{display:none}
.pc-stream[hidden],.pc-stats[hidden],.pc-ev[hidden],.pl-top .hd[hidden]{display:none}

/* logo uploaded in the admin (Внешний вид → Настроить → Логотип): same box as the prototype's logo */
.logo-img{display:block;height:30px;width:auto;max-width:240px;flex:none;object-fit:contain}
.drawer-h .logo-img{height:24px}
.ftr .logo-img{height:50px;max-width:360px}
:root[data-theme="light"] .logo-d,:root[data-theme="dark"] .logo-l{display:none}
@media (max-width:480px){.logo-img{height:24px;max-width:180px}}
@media (max-width:760px){.ftr .logo-img{height:38px}}
/* real league logos of BigSports (as they are, in a square box) instead of the drawn badges */
.lg-box{display:grid;place-items:center;flex:none}
.lg-box img{width:100%;height:100%;object-fit:contain;display:block}

/* calendar on the narrowest phones: 312px do not fit next to the page gutters */
@media (max-width:359px){.cal{left:-15px;width:calc(100vw - 24px)}.cal-g{grid-template-columns:repeat(7,1fr);gap:4px 2px}.cal-g button,.cal-g .wd{width:100%}}
/* heading levels without gaps: the same look as the prototype's h4 / h3 */
.dcard h3{font:800 13.5px/1.2 var(--font-ui);margin-bottom:10px;color:var(--ink);letter-spacing:.01em}
.empty h1,.empty h2{font:800 17px/1.2 var(--font-d);color:var(--ink)}
/* ordinary pages (page.php) */
.pg{margin-bottom:56px}
.pg h3{font:800 17px/1.25 var(--font-d);margin:22px 0 8px}
.pg img,.pg video,.pg iframe{max-width:100%}
.pg img{height:auto}
.pg table{display:block;max-width:100%;overflow-x:auto}
.pg p,.pg li,.pg td{overflow-wrap:anywhere}
.pg ol{margin:6px 0 10px;padding-left:22px;color:var(--ink-2);font-size:15px;line-height:1.65}

/* Schedule / Results: the gap under the header the layout asks for (.lay) is reset by the container's own padding below 1280px */
@media (max-width:1079px){h1.sr + .container.lay{padding-top:12px}}
@media (min-width:1080px) and (max-width:1279px){h1.sr + .container.lay{padding-top:16px}}
/* breadcrumb links: a finger-sized target without moving anything */
@media (max-width:1079px){.crumbs a{position:relative}.crumbs a::after{content:"";position:absolute;inset:-9px -6px}}
/* league pages: the same gap above the breadcrumbs */
@media (max-width:1079px){.container.tp{padding-top:12px}}
@media (min-width:1080px) and (max-width:1279px){.container.tp{padding-top:16px}}

/* volleyball: points of each set under the score (the set in play green), set filter of the protocol */
.mh-sets{display:flex;justify-content:center;gap:18px;font:800 15px/1.2 var(--font-ui);font-variant-numeric:tabular-nums;color:var(--ink)}
.mh-sets b{font-weight:800;min-width:42px;text-align:center}
.mh-sets b.on{color:var(--live-text)}
.ev-sets{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 12px}

/* panel header: the line of period scores wraps inside the middle and never squeezes the team names to a few letters */
.pc .mh-sb{grid-template-columns:minmax(84px,1fr) minmax(0,auto) minmax(84px,1fr)}
.pc .mh-per{max-width:300px;row-gap:3px}
@media (max-width:400px){.pc .mh-sb{grid-template-columns:minmax(70px,1fr) minmax(0,auto) minmax(70px,1fr)}.pc .mh-sc{font-size:34px}.pc .mh-sc i{font-size:24px}}
