/* Filmy a Seriály – šablona */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--fs-bg, #0b0b0e); color: var(--fs-text, #f4f4f5); font: 400 16px/1.6 "Inter", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { max-width: 100%; height: auto; }
a { color: var(--fs-text); }
a:hover { color: var(--fs-brand); }
h1, h2, h3, h4 { font-family: var(--fs-font-display); line-height: 1.2; font-weight: 600; }
::selection { background: var(--fs-brand); color: #fff; }
:focus-visible { outline: 2px solid var(--fs-brand); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fst-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--fs-brand); color: #fff; padding: 10px 14px; border-radius: 8px; }
.fst-skip:focus { top: 12px; }

/* ---------- Hlavička ---------- */
.fst-header { position: fixed; inset: 0 0 auto; z-index: 1000; height: 72px; background: color-mix(in oklab, var(--fs-bg) 94%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in oklab, white 6%, transparent); transition: background .3s, border-color .3s; }
.admin-bar .fst-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .fst-header { top: 46px; } }
.fst-transparent-header .fst-header:not(.is-scrolled):not(.is-open) { background: linear-gradient(rgb(0 0 0 / .72), transparent); backdrop-filter: none; border-color: transparent; background-origin: border-box; }
.fst-header__inner { height: 100%; display: flex; align-items: center; gap: 28px; padding-inline: var(--fs-pad); }
.fst-logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.fst-logo__img { max-height: 40px; width: auto; }
.fst-logo__text { display: inline-flex; flex-direction: column; font: 700 20px/1 var(--fs-font-display); letter-spacing: .08em; color: var(--fs-brand); }
.fst-logo__text small { font-size: 10px; letter-spacing: .32em; color: var(--fs-text); margin-top: 3px; }
.fst-nav { flex: 1; min-width: 0; }
.fst-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.fst-menu::-webkit-scrollbar { display: none; }
.fst-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: color-mix(in oklab, var(--fs-text) 75%, transparent); text-decoration: none; font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: color .2s, background .2s; }
.fst-menu a:hover { color: var(--fs-text); }
.fst-menu .current-menu-item > a, .fst-menu .current_page_item > a, .fst-menu .current-menu-ancestor > a { color: var(--fs-text); background: color-mix(in oklab, white 9%, transparent); }
.fst-menu .sub-menu { display: none; }
.fst-header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.fst-search input { width: 180px; transition: width .25s; }
.fst-search input:focus { width: 240px; }
.fst-burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; padding: 10px 8px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.fst-burger span { display: block; height: 2px; border-radius: 2px; background: var(--fs-text); transition: transform .25s, opacity .25s; }
.fst-header.is-open .fst-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fst-header.is-open .fst-burger span:nth-child(2) { opacity: 0; }
.fst-header.is-open .fst-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
	.fst-header__inner { gap: 12px; }
	.fst-burger { display: flex; }
	.fst-nav { position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--fs-bg); padding: 16px var(--fs-pad) 40px; overflow-y: auto; transform: translateX(-100%); transition: transform .3s ease; }
	.admin-bar .fst-nav { top: 104px; }
	.fst-header.is-open .fst-nav { transform: none; }
	.fst-menu { flex-direction: column; overflow: visible; }
	.fst-menu a { font-size: 18px; padding: 14px 12px; border-bottom: 1px solid var(--fs-border); border-radius: 0; }
	.fst-menu .sub-menu { display: block; list-style: none; padding-left: 16px; }
}
@media (max-width: 640px) {
	.fst-search input { width: 0; padding: 9px 0; }
	.fst-search { padding-left: 4px; background: transparent; }
	.fst-search.is-open { position: absolute; left: 12px; right: 12px; top: 14px; background: var(--fs-surface); z-index: 3; }
	.fst-search.is-open input { width: 100%; padding: 9px 4px; }
	.fst-logo__text { font-size: 17px; }
}

/* ---------- Obsah ---------- */
.fst-site { min-height: 70vh; }
.fst-main { padding-top: 96px; }
.fst-main--flush { padding-top: 0; }
.fst-container { padding-inline: var(--fs-pad); max-width: 1440px; margin-inline: auto; }
.fst-page { max-width: 900px; padding-bottom: 64px; }
.fst-content { color: color-mix(in oklab, var(--fs-text) 86%, transparent); line-height: 1.75; font-size: 17px; }
.fst-content a { color: var(--fs-brand); }
.fst-content h2 { margin-top: 2em; }
.fst-content table { width: 100%; border-collapse: collapse; }
.fst-content th, .fst-content td { border-bottom: 1px solid var(--fs-border); padding: 8px; text-align: left; }
.fst-home { padding-bottom: 32px; }
.fst-home .fs-hero { margin-bottom: 0; }
.fst-home .fs-hero__content { bottom: clamp(110px, 16vh, 170px); }
.fst-home .fs-hero__dots { bottom: 92px; }
.fst-home__rows { position: relative; z-index: 2; margin-top: -72px; }
.fst-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; padding-bottom: 48px; }
.fst-post-card { background: var(--fs-surface); border-radius: 14px; padding: 16px; }
.fst-post-card h2 { font-size: 20px; margin: 12px 0 4px; }
.fst-post-card h2 a { text-decoration: none; }
.fst-post-card__img img { border-radius: 10px; display: block; }
.fst-404 { text-align: left; padding-bottom: 64px; }
.fst-404__code { font: 800 clamp(80px, 16vw, 180px)/1 var(--fs-font-display); color: transparent; -webkit-text-stroke: 2px var(--fs-brand); margin: 0; }

/* ---------- Komentáře ---------- */
.fst-comments-wrap { padding-block: 24px 56px; max-width: 900px; }
.fst-comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.fst-comment-list .comment-body { background: var(--fs-surface); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.fst-comment-list .children { list-style: none; padding-left: 24px; }
.fst-comment-list .comment-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--fs-muted); }
.fst-comment-list .comment-meta a { color: var(--fs-muted); text-decoration: none; }
.fst-comment-list .avatar { border-radius: 50%; }
.fst-comment-list .fn { color: var(--fs-text); font-style: normal; font-weight: 600; }
.fst-comment-list .says { display: none; }
.fst-comment-list .comment-content p { margin: 8px 0 0; }
.fst-comment-list .reply a { font-size: 13px; color: var(--fs-brand); }
.comment-form textarea { width: 100%; background: var(--fs-bg); color: var(--fs-text); border: 1px solid var(--fs-border); border-radius: 10px; padding: 12px; font: inherit; }
.comment-reply-title { font-size: 1.05rem; }

/* ---------- Patička ---------- */
.fst-footer { margin-top: 48px; border-top: 1px solid var(--fs-border); background: color-mix(in oklab, var(--fs-surface) 50%, var(--fs-bg)); color: var(--fs-muted); font-size: 14px; }
.fst-footer__inner { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 32px; padding: 40px var(--fs-pad) 24px; }
.fst-footer__brand p { margin: 12px 0 0; max-width: 40ch; }
.fst-footer__menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 24px; }
.fst-footer__menu a, .fst-footer__bottom a { color: var(--fs-muted); text-decoration: none; }
.fst-footer__menu a:hover, .fst-footer__bottom a:hover { color: var(--fs-text); }
.fst-footer__widgets { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.fst-footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 16px var(--fs-pad) 28px; border-top: 1px solid var(--fs-border); font-size: 12.5px; }
@media (max-width: 720px) { .fst-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Elementor ---------- */
.elementor-page .fst-main--flush > .elementor { min-height: 1px; }
.elementor-widget-container .fs-wrap { padding-inline: var(--fs-pad); }
.e-con .fs-hero, .elementor-section .fs-hero { margin-bottom: 0; }

/* Video.js načítání a mobilní menu bez skoku */
html.fst-menu-open { overflow: hidden; }
