/*
Theme Name: MMA Bez Masky
Theme URI: https://novinky.mma-bezmasky.cz
Description: Vlastní šablona pro MMA Bez Masky – novinky a rozhovory ze světa bojových sportů. Světlý i tmavý režim, Fight week s anketou, kalendář akcí, přehled bojovníků.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Author: MMA Bez Masky
Text Domain: mbm
License: GPL-2.0-or-later
*/

:root{
  --bg:#F5F5F2;--surface:#FFFFFF;--surface2:#ECECE7;--text:#121210;--muted:#5E5E57;--line:#E2E2DC;
  --red:#D3221A;--on-red:#FFFFFF;--red-inv:#FF453A;--red-txt:#C41E17;--inv:#121210;--on-inv:#F5F5F2;--inv-muted:#A3A39A;--inv-line:#2A2A26;
  --ph:#E6E6E0;--ph-txt:#7A7A72;--r:22px;--shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.04)
}
:root[data-theme=dark]{
  --bg:#0D0D0B;--surface:#171715;--surface2:#21211E;--text:#F2F2EE;--muted:#A3A39A;--line:#2A2A26;
  --inv:#F2F2EE;--on-inv:#121210;--inv-muted:#55554F;--inv-line:#D8D8D2;
  --ph:#22221F;--ph-txt:#8A8A82;--shadow:none;--red-inv:#C41E17;--red-txt:#FF5A4F
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:'Geist',system-ui,sans-serif;font-size:16px;-webkit-font-smoothing:antialiased;transition:background .2s,color .2s}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
button{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--red);outline-offset:2px;border-radius:8px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.skip-link:focus{position:fixed!important;top:8px;left:8px;width:auto;height:auto;clip:auto;z-index:100;background:var(--surface);padding:10px 16px;border-radius:99px}
.wrap{max-width:1320px;margin:0 auto;padding:0 20px}
.d{font-family:'Bricolage Grotesque',sans-serif;letter-spacing:-.03em;margin:0}
.mono{font-family:'Geist Mono',monospace;font-size:12.5px;letter-spacing:.02em;text-transform:uppercase}
.muted{color:var(--muted)}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow)}
.ph{background:var(--ph);border-radius:16px;position:relative;display:flex;align-items:center;justify-content:center;color:var(--ph-txt);overflow:hidden}
.ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ph .ph-badge{position:static;width:72px;height:72px;opacity:.35;object-fit:contain}
.pill{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px;border-radius:99px;font-size:13px;font-weight:500;white-space:nowrap}
.pill.red{background:var(--red);color:var(--on-red)}
.pill.ghost{background:var(--surface2)}
a.pill.ghost:hover{background:var(--line)}
.dot{width:7px;height:7px;border-radius:50%;background:currentColor}
.live .dot{animation:pulse 1.6s infinite}
@keyframes pulse{50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}html{scroll-behavior:auto}}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 20px;border-radius:99px;font-weight:600;font-size:15px;border:0;cursor:pointer;transition:transform .15s}
.btn:active{transform:scale(.97)}
.btn.red{background:var(--red);color:var(--on-red)}
.btn.inv{background:var(--inv);color:var(--on-inv)}
.btn.line{background:transparent;border:1px solid var(--line)}
.icon-btn{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--surface);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.sec{padding:72px 0 0}
section,form{scroll-margin-top:84px}
.sec-h{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:28px}
.sec-h h2{font-size:clamp(32px,4vw,48px);font-weight:700;line-height:1}
.sec-h p{margin:0;max-width:380px;line-height:1.5}
.hover-lift{transition:transform .2s,box-shadow .2s}
.hover-lift:hover{transform:translateY(-3px)}
.hover-lift:hover .tt,.hover-lift:hover h3,.hover-lift:hover h1,nav.main a:hover,footer nav a:hover{color:var(--red-txt)}

/* header */
header.top{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 82%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.admin-bar header.top{top:32px}
@media (max-width:782px){.admin-bar header.top{top:0}}
header.top .wrap{display:flex;align-items:center;gap:16px;height:72px}
.logo{display:flex;align-items:center;gap:10px;font-family:'Bricolage Grotesque';font-weight:800;font-size:21px;letter-spacing:-.03em;white-space:nowrap}
.logo img,.badge{width:44px;height:44px;border-radius:50%;flex:none;object-fit:cover;box-shadow:0 0 0 1px var(--line)}
nav.main ul{display:flex;gap:2px;margin:0;padding:4px;border-radius:99px;background:var(--surface2);list-style:none}
nav.main{margin:0 auto}
nav.main a{display:block;padding:8px 14px;border-radius:99px;font-size:14px;font-weight:500;white-space:nowrap}
nav.main a:hover{background:var(--surface)}
nav.main .current-menu-item>a,nav.main .current-menu-parent>a,nav.main .current-post-ancestor>a{background:var(--surface);box-shadow:var(--shadow)}
nav.main .sub-menu{display:none}
.hdr-r{display:flex;gap:8px;align-items:center;margin-left:auto}
.menu-btn{display:none}
@media (max-width:1080px){nav.main{display:none}.menu-btn{display:inline-flex}}
@media (max-width:560px){.hdr-r .btn.inv,.hdr-r .search-btn{display:none}.logo{font-size:18px}}
.mobnav{display:none;padding:8px 20px 16px}
.mobnav.open{display:block}
.mobnav ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.mobnav a{display:block;padding:10px 16px;border-radius:99px;background:var(--surface2);font-size:15px}
.mobnav form{margin-top:12px}
.searchbar{display:none;border-top:1px solid var(--line);padding:14px 0}
.searchbar.open{display:block}
.search-form{display:flex;gap:8px}
.search-form input[type=search]{flex:1;min-height:46px;border-radius:99px;border:1px solid var(--line);background:var(--surface);color:var(--text);padding:0 20px;font:inherit}
.search-form button{min-height:46px;padding:0 20px;border-radius:99px;border:0;background:var(--inv);color:var(--on-inv);font-weight:600;cursor:pointer}

/* bento hero */
.bento{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;padding-top:24px}
.lead{grid-column:span 8;padding:12px;display:flex;flex-direction:column}
.lead.full{grid-column:span 12}
.lead .ph{aspect-ratio:16/8.5}
.lead-body{padding:20px 12px 12px;display:flex;flex-direction:column;gap:14px}
.lead h1,.lead h2{font-size:clamp(32px,4.2vw,58px);font-weight:700;line-height:1.02}
.lead p{margin:0;font-size:18px;line-height:1.55;max-width:720px}
.fw{grid-column:span 4;background:var(--inv);color:var(--on-inv);border-radius:var(--r);padding:24px;display:flex;flex-direction:column;gap:20px}
.fw .muted{color:var(--inv-muted)}
.count{display:flex;align-items:baseline;gap:10px}
.count b{font-family:'Bricolage Grotesque';font-size:88px;line-height:.85;letter-spacing:-.05em;font-weight:800;color:var(--red-inv)}
.vs{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center}
.vs .f{display:flex;flex-direction:column;gap:8px}
.vs .f:last-child{text-align:right;align-items:flex-end}
.av{width:56px;height:56px;border-radius:50%;background:var(--surface2);flex:none;overflow:hidden;position:relative}
.av img{width:100%;height:100%;object-fit:cover}
.fw .av{background:#2A2A26}
:root[data-theme=dark] .fw .av{background:#D8D8D2}
.vs .name{font-family:'Bricolage Grotesque';font-weight:700;font-size:20px;line-height:1.05;letter-spacing:-.02em}
.poll{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.poll button{position:relative;overflow:hidden;min-height:48px;border-radius:14px;border:1px solid var(--inv-line);background:transparent;color:var(--on-inv);font-weight:600;cursor:pointer;transition:background .15s}
.poll button:hover{border-color:var(--red-inv)}
.poll button.sel{background:var(--red);color:var(--on-red);border-color:var(--red)}
.poll button[disabled]{cursor:default}
.poll .pct{display:block;font-family:'Geist Mono';font-size:12px;font-weight:500;opacity:.85}
.now{grid-column:span 12;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.mini{padding:20px;display:flex;flex-direction:column;gap:12px;min-height:170px}
.mini .tt{font-weight:600;font-size:17px;line-height:1.35}
@media (max-width:980px){.lead,.fw{grid-column:span 12}.now{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.now{grid-template-columns:1fr}.count b{font-size:72px}}

/* news */
.seg{display:flex;flex-wrap:wrap;gap:6px}
.seg button{min-height:40px;padding:0 16px;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-size:14px;font-weight:500;cursor:pointer}
.seg button[aria-selected=true]{background:var(--inv);color:var(--on-inv);border-color:var(--inv)}
.news{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:16px;transition:opacity .2s}
.news.loading{opacity:.4}
.ncard{padding:10px;display:flex;flex-direction:column}
.ncard .ph{aspect-ratio:16/10}
.ncard .b{padding:16px 10px 10px;display:flex;flex-direction:column;gap:10px}
.ncard .meta{display:flex;justify-content:space-between;gap:8px;align-items:center}
.ncard .tt{font-weight:600;font-size:18px;line-height:1.35}
.empty{padding:48px;text-align:center;border:1px dashed var(--line);border-radius:var(--r)}
.more{display:flex;justify-content:center;margin-top:28px}

/* interviews carousel */
.rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(300px,1fr);gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px;scrollbar-width:thin}
.rail>*{scroll-snap-align:start}
.q{padding:28px;display:flex;flex-direction:column;justify-content:space-between;gap:28px;min-height:320px}
.q p{margin:0;font-family:'Bricolage Grotesque';font-weight:500;font-size:24px;line-height:1.25;letter-spacing:-.02em}
.q .who{display:flex;gap:12px;align-items:center}
.q .who .av{width:44px;height:44px}

/* fighters + calendar */
.split{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}
.fighters{grid-column:span 7;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-content:start}
.fighters.full{grid-column:span 12;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.fighter{padding:20px;display:flex;flex-direction:column;gap:16px}
.fighter .top{display:flex;gap:14px;align-items:center}
.fighter .name{font-family:'Bricolage Grotesque';font-weight:700;font-size:21px;letter-spacing:-.02em}
.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.stat{background:var(--surface2);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}
.stat b{font-weight:600;font-size:15px}
.cal{grid-column:span 5;padding:24px;display:flex;flex-direction:column}
.cal.full{grid-column:span 12}
.ev{display:flex;gap:16px;align-items:center;padding:16px 0;border-top:1px solid var(--line)}
.ev-list>.ev:first-child{border-top:0}
.date{width:58px;height:62px;border-radius:14px;background:var(--surface2);display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none}
.date b{font-family:'Bricolage Grotesque';font-size:24px;line-height:1;font-weight:700}
.date.on{background:var(--red);color:var(--on-red)}
.cal .btn{margin-top:auto}
.ev-main{font-size:15px;font-weight:600;color:var(--red-txt);margin-top:2px}
@media (max-width:980px){.fighters,.cal{grid-column:span 12}}
@media (max-width:560px){.fighters{grid-template-columns:1fr}}

/* opinion + newsletter */
.op{grid-column:span 7;padding:36px;display:flex;flex-direction:column;gap:18px;justify-content:space-between;min-height:340px}
.op h3{font-size:clamp(28px,3.2vw,42px);font-weight:700;line-height:1.05}
.nl{grid-column:span 5;background:var(--red);color:var(--on-red);border-radius:var(--r);padding:32px;display:flex;flex-direction:column;gap:14px}
.nl h3{font-size:36px;font-weight:800;line-height:1}
.nl p{margin:0;font-size:16px;line-height:1.5}
.nl .f{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}
.nl input{flex:1 1 200px;min-height:50px;border-radius:99px;border:0;padding:0 20px;font:inherit;background:#fff;color:#121210}
.nl .btn{background:#121210;color:#F5F5F2;min-height:50px}
@media (max-width:980px){.op,.nl{grid-column:span 12}}

/* archive / list pages */
.arch-h{padding:48px 0 32px;display:flex;flex-direction:column;gap:12px}
.arch-h h1{font-size:clamp(36px,5vw,64px);font-weight:700;line-height:1}
.arch-h p{margin:0;max-width:640px;line-height:1.6}
.pagination{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:40px}
.pagination .page-numbers{min-width:44px;height:44px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;border-radius:99px;border:1px solid var(--line);background:var(--surface);font-weight:500}
.pagination .current{background:var(--inv);color:var(--on-inv);border-color:var(--inv)}
.pagination .dots{border:0;background:none}

/* footer */
.site-foot{margin-top:88px;border-top:1px solid var(--line)}
.site-foot .cols{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px;padding-top:48px;padding-bottom:40px}
.site-foot nav{display:flex;flex-direction:column;gap:10px;font-size:15px}
.site-foot nav ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.site-foot nav a:hover{text-decoration:underline;color:var(--red-txt)}
.site-foot .copy{padding-top:20px;padding-bottom:32px;border-top:1px solid var(--line)}
@media (max-width:760px){.site-foot .cols{grid-template-columns:1fr 1fr}}

/* article */
#progress{position:fixed;top:0;left:0;height:3px;background:var(--red);width:0;z-index:30}
.a-head{max-width:880px;margin:0 auto;padding:56px 20px 0;display:flex;flex-direction:column;gap:20px;text-align:center;align-items:center}
.a-head h1{font-size:clamp(34px,5.4vw,68px);font-weight:700;line-height:1.02}
.a-meta{display:flex;gap:8px 12px;flex-wrap:wrap;justify-content:center;align-items:center}
.a-meta .by{display:inline-flex;align-items:center;gap:8px}
.a-meta .by .badge{width:28px;height:28px}
.a-hero{max-width:1200px;margin:40px auto 0;padding:0 20px}
.a-hero .ph{aspect-ratio:16/8;border-radius:var(--r)}
.a-hero figcaption{font-size:14px;margin:12px 4px 0;color:var(--muted)}
.a-grid{max-width:1200px;margin:0 auto;padding:48px 20px 0;display:grid;grid-template-columns:64px minmax(0,680px) minmax(0,1fr);gap:48px}
.a-grid.no-share{grid-template-columns:minmax(0,760px);justify-content:center}
.share{display:flex;flex-direction:column;gap:8px;position:sticky;top:96px;align-self:start}
.share a,.share button{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;background:var(--surface);cursor:pointer}
.share a:hover,.share button:hover{border-color:var(--red);color:var(--red-txt)}
.aside{display:flex;flex-direction:column;gap:16px;position:sticky;top:96px;align-self:start}
.aside .fw{gap:18px}
.rel a{display:block;padding:14px 0;border-top:1px solid var(--line)}
.rel a:first-of-type{border-top:0}
.rel a:hover .tt{color:var(--red-txt)}
@media (max-width:1000px){.a-grid{grid-template-columns:1fr}.share{flex-direction:row;position:static}.aside{position:static}}

/* entry content (obsah článků z editoru) */
.entry{font-size:19px;line-height:1.75;overflow-wrap:break-word}
.entry>*{margin:0 0 24px}
.entry>*:last-child{margin-bottom:0}
.entry>p:first-child{font-size:23px;line-height:1.5;font-weight:500}
.entry a{color:var(--red-txt);text-decoration:underline;text-underline-offset:3px}
.entry h2,.entry h3,.entry h4{font-family:'Bricolage Grotesque';letter-spacing:-.02em;line-height:1.15;margin-top:40px}
.entry h2{font-size:32px}.entry h3{font-size:25px}.entry h4{font-size:20px}
.entry img{border-radius:16px;height:auto}
.entry figure{margin-left:0;margin-right:0}
.entry figcaption,.entry .wp-caption-text{font-size:14px;color:var(--muted);margin-top:8px;line-height:1.5}
.entry .wp-caption{max-width:100%}
.entry blockquote,.entry .wp-block-quote,.entry .wp-block-pullquote{margin:32px 0;padding:28px;border:0;border-radius:var(--r);background:var(--surface2);font-family:'Bricolage Grotesque';font-weight:600;font-size:26px;line-height:1.25;letter-spacing:-.02em}
.entry blockquote p{margin:0 0 12px}.entry blockquote p:last-child{margin:0}
.entry blockquote cite{display:block;margin-top:12px;font-family:'Geist Mono';font-size:12.5px;font-style:normal;text-transform:uppercase;color:var(--muted)}
.entry ul,.entry ol{padding-left:1.3em}
.entry li{margin-bottom:6px}
.entry hr{border:0;border-top:1px solid var(--line);margin:40px 0}
.entry table{width:100%;border-collapse:collapse;font-size:16px;display:block;overflow-x:auto}
.entry th,.entry td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left}
.entry iframe,.entry video,.entry embed{max-width:100%}
.entry .wp-block-embed__wrapper,.entry .embed-wrap{position:relative}
.entry .wp-has-aspect-ratio .wp-block-embed__wrapper{padding-top:56.25%}
.entry .wp-has-aspect-ratio .wp-block-embed__wrapper iframe{position:absolute;inset:0;width:100%;height:100%}
.entry .twitter-tweet,.entry .instagram-media{margin-left:auto!important;margin-right:auto!important}
.alignleft{float:left;margin:6px 24px 16px 0}
.alignright{float:right;margin:6px 0 16px 24px}
.aligncenter{display:block;margin-left:auto;margin-right:auto}
.entry::after{content:"";display:table;clear:both}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:36px}
.page-body{max-width:760px;margin:0 auto;padding:0 20px}
.not-found{text-align:center;padding:80px 20px;display:flex;flex-direction:column;align-items:center;gap:20px}
.not-found .badge{width:120px;height:120px}

/* YouTube */
.yt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.yt{padding:10px;display:flex;flex-direction:column}
.yt-thumb{aspect-ratio:16/9;border-radius:14px}
.yt-play{position:relative;width:56px;height:56px;border-radius:50%;background:var(--red);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 20px rgba(0,0,0,.3);transition:transform .2s}
.yt:hover .yt-play{transform:scale(1.1)}
.yt .b{padding:14px 8px 8px;display:flex;flex-direction:column;gap:8px}
.yt .tt{font-weight:600;font-size:16px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.yt-modal{width:min(1100px,94vw);padding:0;border:0;border-radius:var(--r);background:#000;overflow:visible}
.yt-modal::backdrop{background:rgba(0,0,0,.8);backdrop-filter:blur(4px)}
.yt-frame{aspect-ratio:16/9;border-radius:var(--r);overflow:hidden}
.yt-frame iframe{width:100%;height:100%;border:0;display:block}
.yt-close{position:absolute;top:-56px;right:0;background:var(--surface);color:var(--text)}
.yt-rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(180px,200px);gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:8px;scrollbar-width:thin}
.yt-rail>*{scroll-snap-align:start}
.yt-short{padding:8px}
.yt-short .yt-thumb{aspect-ratio:9/16}
.yt-short .yt-play{width:44px;height:44px}
.yt-short .b{padding:12px 6px 6px}
.yt-short .tt{font-size:14px;-webkit-line-clamp:3}
.yt-modal.is-short{width:min(420px,92vw)}
.yt-modal.is-short .yt-frame{aspect-ratio:9/16;max-height:86vh}

/* Instagram (plugin Smash Balloon) – sladění se vzhledem webu */
.mbm-ig #sb_instagram{padding:0!important}
.mbm-ig #sb_instagram #sbi_images{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px!important;padding:0!important;width:100%!important}
.mbm-ig #sb_instagram .sbi_item{width:100%!important;padding:0!important;margin:0!important;border-radius:16px;overflow:hidden;aspect-ratio:1/1}
.mbm-ig #sb_instagram .sbi_photo_wrap,.mbm-ig #sb_instagram .sbi_photo{height:100%!important}
.mbm-ig #sb_instagram .sbi_photo img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.mbm-ig #sb_instagram .sbi_item:hover img{transform:scale(1.04)}
.mbm-ig #sb_instagram #sbi_load,.mbm-ig #sb_instagram .sb_instagram_header{display:none!important}
@media (max-width:760px){.mbm-ig #sb_instagram #sbi_images{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}}
.fighter-ev{font-size:13px;line-height:1.4;color:var(--red-txt);font-weight:500}

/* Náhledy: výřez a fotky na výšku */
.ph img.ph-main{object-position:var(--ph-pos,50% 30%)}
.ph-contain{background:#111}
.ph-contain .ph-bg{position:absolute;inset:-24px;width:calc(100% + 48px);height:calc(100% + 48px);object-fit:cover;filter:blur(22px) brightness(.55) saturate(1.2);transform:scale(1.05)}
.ph-contain img.ph-main{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:1}
.a-hero .ph[style*=aspect-ratio]{max-height:82vh}
