/* ŠMP / redakční studio. Prezentační vrstva, bez změn ukládání obsahu. */
:root {
  --modra: #245caa; --modra-tmava: #172338; --plocha-tmava: #11151c;
  --modra-svetla: #e4ebf7; --oranzova: #245caa; --text: #283448;
  --sedivo: #58677b; --pozadi: #f3f5f9; --bila: #ffffff; --ramik: #d4dce8;
  --akcent: #bed7ff; --ink: #15263f; --panel: #e9eef6; --coral: #ef9387;
  --paper: #cbdcf5; --paper-text: #15263f; --akcent-hover: #d6e6ff;
  --ambient-blue: #4289f32b; --ambient-green: #50cda51c; --ambient-line: #4d86ce24;
  --stin: 0 6px 24px #17233810; --stin-hover: 0 16px 40px #1723381c;
  --display: 'Archivo', 'Trebuchet MS', sans-serif;
}
[data-tema="tmavy"] {
  color-scheme: dark;
  --modra: #9bbfff; --modra-tmava: #f1f2f5; --plocha-tmava: #0c0d0f;
  --modra-svetla: #1b2d49; --oranzova: #9bbfff; --text: #e3e9f3;
  --sedivo: #a9b9ce; --pozadi: #0c1422; --bila: #142138;
  --ramik: #2d4262; --akcent: #a7c5f5; --ink: #15263f; --panel: #192b45;
  --ambient-blue: #327af654; --ambient-green: #65dcb627; --ambient-line: #7eafff26;
  --paper: #d7deeb; --paper-text: #1b2639; --akcent-hover: #c5d9fa;
  --stin: 0 6px 24px #00000014; --stin-hover: 0 16px 40px #00000026;
}
body { font-family: 'Manrope', 'Segoe UI', sans-serif; background: var(--pozadi); line-height: 1.7; }
body::before, [data-tema="tmavy"] body::before { display: none; }
button, input, select { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { opacity: .55; cursor: wait; }
::selection { background: var(--akcent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--modra); outline-offset: 5px; }
.container { max-width: 1280px; padding: 0 48px; }
.preskocit { position: fixed; left: 20px; top: 12px; z-index: 999; padding: 12px 20px; border-radius: 8px; color: var(--ink); background: var(--akcent); transform: translateY(-160%); }
.preskocit:focus { transform: none; }
main:focus { outline: none; }
.topbar, [data-tema="tmavy"] .topbar { background: var(--plocha-tmava); border-bottom: 1px solid #ffffff0c; color: #aeb4c0; padding: 8px 0; font-size: 10px; letter-spacing: .07em; }
.topbar .container { align-items: center; flex-wrap: nowrap; gap: 24px; }
.topbar .container > span::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 10px; border-radius: 50%; background: var(--akcent); vertical-align: middle; }
.topbar a { color: #dce2ec; font-weight: 600; white-space: nowrap; }
.topbar a:nth-child(2) { margin-left: auto; color: var(--akcent); }
.topbar a:last-child { color: #aeb4c0; }
header, [data-tema="tmavy"] header { background: color-mix(in srgb, var(--pozadi) 93%, transparent); backdrop-filter: blur(20px); border-bottom: 1px solid var(--ramik); }
.hlavicka { max-width: 1440px; min-height: 94px; padding: 16px 48px; gap: 24px; flex-wrap: nowrap; }
.logo { font-size: 15px; letter-spacing: -.04em; gap: 12px; flex-shrink: 0; }
.logo small { margin-top: 3px; font-size: 10px; letter-spacing: 0; }
.logo-znak, [data-tema="tmavy"] .logo-znak { height: 52px; width: 57px; padding: 5px; border: 1px solid #d6dce5; border-radius: 12px; box-shadow: none; background: #fff; }
.logo-znak img { max-width: 100%; }
.logo:hover .logo-znak { transform: rotate(-5deg); }
nav { margin-left: auto; }
nav ul { align-items: center; gap: 4px; }
nav a { padding: 10px 12px; font-size: 12px; font-weight: 700; white-space: nowrap; border-radius: 6px; }
nav a.aktivni, nav a:hover { background: var(--modra-svetla); color: var(--modra); }
nav a.aktivni::after { left: 12px; right: 12px; height: 2px; bottom: 4px; background: var(--modra); }
.uzivatel-box { flex-wrap: nowrap; gap: 8px; }
.uzivatel-jmeno { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.uzivatel-box a, .uzivatel-box .odznak { font-size: 10px; }
.prepinac-tema, [data-tema="tmavy"] .prepinac-tema { width: 38px; height: 38px; padding: 0; flex-shrink: 0; justify-content: center; background: transparent; color: var(--text); border: 1px solid var(--ramik); border-radius: 50%; }
.prepinac-tema::before { content: '☾'; font-size: 21px; line-height: 1; transition: transform .3s; }
[data-tema="tmavy"] .prepinac-tema::before { content: '☼'; }
.prepinac-tema:hover::before { transform: rotate(35deg); }
.prepinac-tema-text, .prepinac-tema-kolejko { display: none; }
.tlacitko-maly, [data-tema="tmavy"] .tlacitko-maly { border: 1px solid var(--ramik); border-radius: 7px; background: transparent; color: var(--text); padding: 10px 14px; font-size: 11px; cursor: pointer; white-space: nowrap; }
.tlacitko-maly:hover, [data-tema="tmavy"] .tlacitko-maly:hover { background: var(--panel); color: var(--modra); border-color: var(--modra); box-shadow: none; }
.tlacitko-google strong { color: var(--modra); margin-right: 5px; }
.hero, [data-tema="tmavy"] .hero { position: relative; padding: 75px 0 65px; background: transparent; color: var(--text); border-bottom: 1px solid var(--ramik); }
.hero::before, .hero::after { display: none; }
.hero .container, .hero h1, .hero p, .hero .tlacitka { animation: none; }
.hero h1 { max-width: 880px; font-family: var(--display); font-size: clamp(42px, 5.9vw, 76px); font-weight: 800; letter-spacing: -.065em; line-height: 1.04; color: var(--modra-tmava); margin: 20px 0 24px; }
.hero h1 em { color: var(--modra); font-style: normal; }
.hero p { max-width: 600px; font-size: 14px; color: var(--sedivo); margin-bottom: 0; line-height: 1.9; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--modra); font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.home-hero, [data-tema="tmavy"] .home-hero { padding: 66px 0 46px; overflow: hidden; }
.home-hero .hero-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 40px; align-items: center; }
.home-hero h1 { font-size: clamp(56px, 6.3vw, 86px); margin: 24px 0; }
.home-hero p { max-width: 440px; font-size: 14px; }
.hero-copy { position: relative; min-width: 0; padding-bottom: 20px; animation: studio-enter .8s .05s both; }
.home-hero .tlacitka { margin-top: 30px; gap: 10px; }
.tlacitko, [data-tema="tmavy"] .tlacitko-drugi, [data-tema="tmavy"] .tlacitko-ram { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: inherit; padding: 14px 22px; font-size: 11px; font-weight: 800; line-height: 1.5; border: 1px solid var(--ramik); border-radius: 8px; background: transparent; color: var(--text); box-shadow: none; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s, background .25s; }
.tlacitko:hover { transform: translateY(-4px); box-shadow: 0 8px 0 #00000018; border-color: var(--modra); }
.tlacitko:active { transform: translateY(0) scale(.98); box-shadow: none; }
.tlacitko::after { background: linear-gradient(110deg, transparent, #ffffff28, transparent); }
.tlacitko-hlavni, .tlacitko-zeleny, .hero .tlacitko-hlavni, .hero .tlacitko-zeleny { background: var(--akcent); border-color: var(--akcent); color: var(--ink); box-shadow: none; animation: none; }
.tlacitko-hlavni:hover, .tlacitko-zeleny:hover { background: var(--akcent-hover); color: var(--ink); }
.tlacitko-ram { border: 1px solid var(--ramik); color: var(--text); background: transparent; }
.tlacitko-ram:hover { background: var(--panel); }
.arrow { display: inline-block; transition: transform .25s; }
a:hover .arrow { transform: translate(3px,-3px); }
.play-small { width: 0; height: 0; border-left: 7px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.hero-credit { display: flex; align-items: center; gap: 12px; margin-top: 35px; color: var(--sedivo); font-size: 12px; }
.credit-mark { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--ramik); border-radius: 50%; font-size: 17px; color: var(--modra); }
.studio-art { position: relative; min-width: 0; height: 440px; isolation: isolate; animation: studio-enter 1s .18s both; }
.studio-grid { position: absolute; inset: 10px -18px 0; border-radius: 50%; background-image: linear-gradient(var(--ramik) 1px, transparent 1px), linear-gradient(90deg, var(--ramik) 1px, transparent 1px); background-size: 36px 36px; opacity: .35; mask-image: radial-gradient(ellipse, #000 35%, transparent 72%); }
.studio-orbit { position: absolute; width: 340px; height: 340px; top: 30px; left: 60px; border: 1px solid var(--ramik); border-radius: 50%; }
.studio-orbit::before, .studio-orbit::after { content: ''; position: absolute; border: 1px dashed var(--ramik); border-radius: 50%; inset: 34px; }
.studio-orbit::after { inset: -30px; border-style: solid; opacity: .35; }
.studio-label { position: absolute; top: 8px; right: 14px; color: var(--sedivo); font-size: 11px; letter-spacing: .16em; font-weight: 700; }
.studio-label span { color: var(--modra); margin-right: 5px; }
.poster { position: absolute; left: 28px; top: 32px; width: 247px; height: 326px; padding: 20px; background: var(--paper); color: var(--paper-text); transform: rotate(-10deg); border: 1px solid #e2e8f4; border-radius: 5px 16px 16px 5px; box-shadow: -4px 5px 0 #9aa7bd, -8px 10px 0 #566479, 0 28px 50px #00000030; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.studio-art:hover .poster { transform: rotate(-13deg) translate(-6px,-5px); }
.poster-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid #15263f40; font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.poster-title { display: block; font-family: var(--display); font-size: 77px; line-height: .88; font-weight: 900; letter-spacing: -.09em; margin-top: 22px; }
.poster-title span { -webkit-text-stroke: 1.5px var(--ink); color: transparent; }
.poster-star { position: absolute; top: 94px; right: 20px; font-size: 80px; line-height: 1; }
.poster-bottom { position: absolute; bottom: 19px; left: 20px; right: 20px; padding-top: 12px; border-top: 1px solid #15263f40; font-size: 8px; line-height: 1.6; font-weight: 700; }
.broadcast { position: absolute; top: 151px; right: 1px; width: 269px; height: 185px; padding: 14px; border: 1px solid #515966; border-radius: 13px; color: #e8edf5; background: #252830; box-shadow: 0 20px 45px #00000035; transform: rotate(7deg); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.studio-art:hover .broadcast { transform: rotate(3deg) translate(6px,-4px); }
.studio-art > a { display: block; cursor: pointer; text-decoration: none; }
.studio-art > a:focus-visible { outline: 3px solid var(--modra); outline-offset: 6px; }
.studio-art .poster:focus-visible { transform: rotate(-13deg) translate(-6px,-5px); }
.studio-art .broadcast:focus-visible { transform: rotate(3deg) translate(6px,-4px); }
.studio-grid, .studio-orbit, .studio-label, .studio-sticker, .studio-caption { pointer-events: none; }
.broadcast-top { display: flex; align-items: center; gap: 5px; font-size: 7px; letter-spacing: .15em; }
.record-dot { display: inline-block; width: 5px; height: 5px; margin-right: 3px; border-radius: 50%; background: var(--coral); }
.broadcast-top span:last-child { margin-left: auto; opacity: .6; }
.broadcast-screen { position: relative; display: flex; align-items: center; justify-content: center; height: 120px; margin-top: 10px; border: 1px solid #4b5362; border-radius: 5px; background: repeating-radial-gradient(ellipse at 50% 120%, transparent 0 12px, #adcaff15 13px 14px, transparent 15px 26px); overflow: hidden; }
.broadcast-screen::before { content: 'ŠKOLNÍ TV'; position: absolute; bottom: -3px; font-family: var(--display); font-size: 31px; font-weight: 900; letter-spacing: -.055em; color: #adcaff36; white-space: nowrap; }
.broadcast-play { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--akcent); color: var(--ink); box-shadow: 0 0 0 9px #adcaff10; }
.broadcast-play .play-small { border-left-width: 12px; border-top-width: 7px; border-bottom-width: 7px; margin-left: 3px; }
.broadcast-bottom { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.broadcast-bottom::before { content: ''; height: 2px; width: 28%; background: var(--akcent); }
.broadcast-bottom::after { content: ''; height: 2px; flex: 1; background: #ffffff22; }
.studio-sticker { position: absolute; left: 3px; bottom: 26px; display: flex; align-items: center; gap: 9px; transform: rotate(-5deg); color: #f1d8d1; background: #502f2a; border: 1px solid #91645a; padding: 11px 16px; border-radius: 7px; font-size: 10px; font-weight: 700; }
.studio-sticker span { color: #faa898; font-size: 20px; }
.studio-caption { position: absolute; bottom: 0; right: 0; font-size: 11px; letter-spacing: .13em; color: var(--sedivo); }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 33px; margin-top: 24px; border-top: 1px solid var(--ramik); color: var(--sedivo); font-size: 11px; letter-spacing: .12em; }
.hero-bottom a { color: var(--modra); white-space: nowrap; }
.hero-topics { display: flex; gap: 26px; align-items: center; font-weight: 700; }
.hero-topics i { width: 3px; height: 3px; border-radius: 50%; background: var(--modra); }
section { padding: 64px 0; }
section.svetle-modra { background: transparent; }
section[id] { scroll-margin-top: 115px; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.05em; line-height: 1.2; margin-bottom: 28px; }
h2::before { display: none; }
.section-heading { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.section-heading h2 { margin: 8px 0 0; }
.section-heading .eyebrow { font-size: 14px; color: var(--sedivo); }
.section-heading .eyebrow::before { display: none; }
.section-link { color: var(--modra); font-size: 12px; font-weight: 700; white-space: nowrap; padding-bottom: 4px; }
.section-link .arrow { margin-left: 12px; }
.mrizka { gap: 18px; }
.karta { padding: 26px; border: 1px solid var(--ramik); border-radius: 12px; background: var(--bila); box-shadow: none; }
.karta:hover, [data-tema="tmavy"] .karta:hover { border-color: color-mix(in srgb, var(--modra) 50%, var(--ramik)); transform: translateY(-4px); box-shadow: var(--stin-hover); }
.zprava { position: relative; min-height: 177px; }
.zprava::before { display: none; }
.zprava .datum, [data-tema="tmavy"] .zprava .datum { padding: 0; border-radius: 0; color: var(--sedivo); background: transparent; font-size: 10px; font-weight: 600; letter-spacing: .06em; margin-bottom: 17px; }
.zprava .datum::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin: 0 8px 1px 0; background: var(--modra); }
.zprava h3 { color: var(--modra-tmava); font-family: var(--display); font-weight: 650; font-size: 18px; line-height: 1.3; letter-spacing: -.03em; margin-bottom: 10px; }
.zprava p { font-size: 13px; line-height: 1.9; }
.featured-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; padding-top: 12px; padding-bottom: 64px; }
.featured-grid > section { padding: 0; min-width: 0; }
.featured-grid > section > .container { padding: 0; }
.featured-grid .section-heading { min-height: 62px; }
.featured-grid h2 { font-size: 27px; }
.video, [data-tema="tmavy"] .video { background: var(--panel); border: 1px solid var(--ramik); border-radius: 12px; box-shadow: none; margin-bottom: 0; }
.video-fallback { color: var(--sedivo); font-size: 11px; background-image: repeating-radial-gradient(ellipse at 50% 120%, transparent 0 24px, #a6bbdd0d 25px 26px, transparent 27px 49px); }
.video-fallback::before { border: 0; width: 55px; height: 55px; border-radius: 50%; background: var(--akcent); clip-path: polygon(0 0,100% 0,100% 100%,0 100%,0 0,40% 35%,40% 65%,65% 50%,40% 35%,0 0); opacity: .8; margin-bottom: 12px; }
.video-fallback small { font-size: 9px; margin-top: 8px; opacity: .7; }
.obalka-obal { max-width: none; }
.obalka, [data-tema="tmavy"] .obalka { background: var(--panel); color: var(--modra-tmava); border: 1px solid var(--ramik); border-radius: 12px; box-shadow: none; }
.obalka::before, [data-tema="tmavy"] .obalka::before { border: 1px solid var(--ramik); border-radius: 3px; inset: 13px; }
.obalka .cislo { font-family: var(--display); font-size: 25px; font-weight: 800; letter-spacing: -.05em; line-height: 1.2; }
.obalka .rok, [data-tema="tmavy"] .obalka .rok { color: var(--sedivo); font-size: 10px; }
.obalka-note, [data-tema="tmavy"] .obalka-note { color: var(--sedivo); font-size: 11px; }
.obalka-velka, [data-tema="tmavy"] .obalka-velka { aspect-ratio: auto; min-height: 290px; align-items: flex-start; justify-content: flex-start; text-align: left; padding: 32px; margin: 0; background: var(--paper); color: var(--paper-text); border-color: var(--paper); }
.obalka-velka::before, [data-tema="tmavy"] .obalka-velka::before { content: 'ŠM / P'; border: 0; inset: auto -5px 49px auto; font-family: var(--display); font-size: 94px; font-weight: 900; line-height: 1; letter-spacing: -.09em; transform: rotate(-10deg); opacity: .12; color: var(--ink); }
.obalka-velka .cislo { position: relative; z-index: 1; max-width: 250px; font-size: 33px; }
.obalka-velka .rok, [data-tema="tmavy"] .obalka-velka .rok, .obalka-velka .obalka-note, [data-tema="tmavy"] .obalka-velka .obalka-note { color: #46566f; }
.obalka .obalka-akce { left: 30px; right: 30px; bottom: 29px; flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.obalka .obalka-akce .tlacitko { padding: 9px 13px; font-size: 9px; }
.obalka .obalka-akce .tlacitko-zeleny { background: var(--ink); border-color: var(--ink); color: var(--akcent); }
.obalka .tlacitko-ram, [data-tema="tmavy"] .obalka .tlacitko-ram { background: transparent; border: 1px solid #15263f50; color: var(--ink); }
.obalka .tlacitko-drugi, [data-tema="tmavy"] .obalka .tlacitko-drugi { color: var(--ink); border: 1px solid #15263f50; background: transparent; }
#cisla-list .karta { padding: 14px; }
#cisla-list .obalka { padding: 32px; background: var(--paper); color: var(--ink); border-radius: 6px; }
#cisla-list .obalka::before { border-color: #15263f40; }
#cisla-list .obalka::after { content: 'ŠM / P'; position: absolute; bottom: 24px; left: 0; right: 0; color: #15263f16; font-family: var(--display); font-weight: 900; font-size: 78px; letter-spacing: -.08em; }
#cisla-list .obalka .rok { color: #46566f; }
#cisla-list .karta:nth-child(3n+2) .obalka { background: #adc9e4; }
#cisla-list .karta:nth-child(3n+3) .obalka { background: #e6b5a7; }
#cisla-list .tlacitka { gap: 8px; }
#cisla-list .tlacitko { flex: 1; padding: 11px; font-size: 10px; }
.explore-section { border-top: 1px solid var(--ramik); }
.dlazdice { gap: 16px; }
.dlazdice a { padding: 24px; border-radius: 12px; background: var(--bila); box-shadow: none; overflow: hidden; }
.dlazdice a::before { content: ''; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx,50%) var(--my,50%), #adcaff10, transparent); opacity: 0; transition: opacity .3s; pointer-events: none; }
.dlazdice a:hover::before { opacity: 1; }
.dlazdice a:hover { box-shadow: var(--stin-hover); }
.dlazdice a::after { content: '↗'; color: var(--modra); opacity: 1; transform: none; font-size: 17px; font-weight: 400; }
.dlazdice a:hover::after { transform: translate(3px,-3px); }
.ikona-polozka, .dlazdice a:nth-child(n) .ikona-polozka { width: 42px; height: 42px; border: 1px solid var(--ramik); border-radius: 10px; color: var(--modra); background: var(--panel); font-size: 12px; font-weight: 800; margin: 0 0 27px; }
.dlazdice .nazev { font-size: 16px; letter-spacing: -.02em; }
.dlazdice .popis { font-size: 12px; line-height: 1.8; }
.join-banner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 38px; margin-top: 36px; background: var(--panel); border: 1px solid var(--ramik); border-radius: 12px; }
.join-banner h3 { font-family: var(--display); font-size: 27px; line-height: 1.2; letter-spacing: -.05em; margin-bottom: 7px; }
.join-banner p { font-size: 11px; color: var(--sedivo); }
.join-banner .tlacitko { flex-shrink: 0; }
.clen { text-align: left; padding: 32px; }
.clen .avatar, [data-tema="tmavy"] .clen .avatar { width: 60px; height: 60px; margin: 0 0 28px; border: 1px solid var(--ramik); border-radius: 16px; background: var(--panel); color: var(--modra); font-size: 25px; box-shadow: none; }
.clen:nth-child(2n) .avatar { transform: rotate(-7deg); }
.clen h3 { font-family: var(--display); font-size: 23px; letter-spacing: -.04em; }
.clen .role, [data-tema="tmavy"] .clen .role { color: var(--modra); font-size: 9px; margin: 9px 0; }
.clen p { font-size: 12px; }
.banner-youtube { background: var(--bila); border-radius: 12px; box-shadow: none; padding: 30px; }
.banner-youtube h2 { font-size: 24px; }
.banner-youtube p { font-size: 12px; }
.tlacitko-cerveny { color: #ffd9d2; background: #6a302d; border-color: #9b5952; }
.upozorneni, [data-tema="tmavy"] .upozorneni { background: var(--panel); border: 1px solid var(--ramik); border-left: 3px solid var(--modra); border-radius: 8px; color: var(--sedivo); font-size: 12px; }
.upozorneni a, [data-tema="tmavy"] .upozorneni a { color: var(--modra); }
.pridat-panel-karta { padding: 20px; border-left: 3px solid var(--modra); }
.pridat-panel-karta:hover { transform: none; }
.pridat-prepinac { background: var(--panel); color: var(--modra); border: 1px solid var(--ramik); border-radius: 7px; font-size: 11px; padding: 10px 15px; }
.pridat-prepinac:hover { background: var(--modra-svetla); }
.pridat-telo { animation: studio-enter .3s both; }
.pridat-panel label, .upr-form label { font-size: 10px; letter-spacing: .05em; }
.pridat-panel input, .pridat-panel select, .upr-form input, .mrizka-form input, .mrizka-form select, .formular input, [data-tema="tmavy"] .formular input { background: var(--pozadi); border: 1px solid var(--ramik); border-radius: 7px; padding: 12px; color: var(--text); width: 100%; font-size: 13px; }
.pridat-panel input:focus, .pridat-panel select:focus, .mrizka-form input:focus, .mrizka-form select:focus { outline: 2px solid var(--modra); outline-offset: 2px; }
.pp-soubor-btn { background: var(--panel); border: 1px dashed var(--modra); border-radius: 7px; }
.pp-soubor-btn:hover { background: var(--modra-svetla); }
.pp-soubor-btn input[type="file"] { display: block !important; position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; }
.pp-soubor-btn:focus-within { outline: 2px solid var(--modra); outline-offset: 4px; }
.cp-soubor-nazev, .upr-hlaseni { font-size: 11px; }
.tlacitko-upravit { border-radius: 5px; font-size: 10px; }
.hlaseni-chyba, [data-tema="tmavy"] .hlaseni-chyba { background: #4b2424; color: #ffd2ca; border-color: #98635d; padding: 10px; border-radius: 6px; }
.hlaseni-ok, [data-tema="tmavy"] .hlaseni-ok { background: #1c2d49; color: #ccddff; border-color: #4a6690; padding: 10px; border-radius: 6px; }
.navod-sekce { box-shadow: none; border-radius: 12px; }
.navod-sekce code, .navod-sekce pre, [data-tema="tmavy"] .navod-sekce code, [data-tema="tmavy"] .navod-sekce pre { background: var(--panel); border-color: var(--ramik); }
.tabulka-wrap, .ctecka-ram { box-shadow: none; border-radius: 10px; }
.mrizka-form label { font-size: 11px; color: var(--sedivo); }
.odznak-admin { background: var(--akcent); color: var(--ink); }
footer { margin-top: 0; border-top: 1px solid var(--ramik); background: var(--plocha-tmava); color: #a9adb8; }
footer::before { display: none; }
.paticka { max-width: 1280px; padding: 54px 48px 38px; gap: 64px; grid-template-columns: 2fr 1fr 1fr; }
.paticka h3 { font-size: 10px; letter-spacing: .1em; margin-bottom: 20px; color: #c6ccd8; }
.paticka li, .paticka p[style] { font-size: 11px !important; line-height: 1.9; }
.paticka a { color: #c6ccd8; }
.paticka a:hover { color: var(--akcent); }
.footer-brand { display: flex; align-items: center; gap: 11px; color: #edf0f6; font-size: 13px; font-weight: 800; margin-bottom: 18px; }
.footer-brand img { width: 39px; height: 39px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; }
.footer-brand small { display: block; font-size: 9px; color: #a3adbf; font-weight: 400; margin-top: 3px; }
.autorska { display: block; font-size: 9px; padding: 20px 32px; line-height: 1.9; border-top: 1px solid #ffffff10; color: #99a3b4; }
.autorska a { color: #b9cbed; border: 0; }
.scroll-bar { position: fixed; left: 0; top: 0; height: 2px; background: var(--akcent); z-index: 200; pointer-events: none; }
.nahoru { position: fixed; right: 24px; bottom: 24px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ramik); border-radius: 50%; background: var(--bila); color: var(--modra); font-size: 20px; z-index: 80; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s; cursor: pointer; }
.nahoru.zobrazen { opacity: 1; visibility: visible; transform: none; }
.public-state { border: 1px dashed var(--ramik); border-radius: 10px; padding: 30px; color: var(--sedivo); font-size: 12px; grid-column: 1/-1; }
.public-state strong { display: block; font-family: var(--display); font-size: 20px; color: var(--modra-tmava); margin-bottom: 7px; letter-spacing: -.03em; }
.public-state button { background: transparent; border: 0; color: var(--modra); text-decoration: underline; margin-top: 12px; cursor: pointer; font-size: 11px; }
@keyframes studio-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1450px) { .hlavicka { max-width: 1280px; padding-left: 48px; padding-right: 48px; gap: 22px; } }
@media (max-width: 1200px) {
  .hlavicka { padding: 15px 32px; gap: 15px; }
  .logo { font-size: 13px; } .logo small { font-size: 9px; }
  .logo-znak { width: 48px; height: 46px; }
  nav a { font-size: 11px; padding: 9px 10px; }
  .container { padding-left: 32px; padding-right: 32px; }
  .uzivatel-jmeno { display: none; }
  .home-hero h1 { font-size: clamp(52px, 6.6vw, 78px); }
  .studio-art { transform-origin: center; } .hero-grid { gap: 20px; }
}
@media (max-width: 1000px) {
  .hlavicka { flex-wrap: wrap; gap: 16px; }
  .hlavicka .logo { margin-right: auto; }
  nav { order: 5; width: 100%; border-top: 1px solid var(--ramik); padding-top: 10px; }
  nav ul { justify-content: center; gap: 25px; }
  .home-hero .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 0; }
  .studio-art { height: 390px; transform: scale(.83); transform-origin: left center; margin-right: -50px; }
  .home-hero h1 { font-size: 61px; }
  .home-hero p { max-width: 330px; font-size: 13px; }
  .hero-topics { gap: 15px; }
  .featured-grid { gap: 24px; }
  .dlazdice { grid-template-columns: repeat(2,1fr); }
  .mrizka-3 { grid-template-columns: repeat(2,1fr); }
  .featured-grid h2 { font-size: 23px; }
  .obalka-velka, [data-tema="tmavy"] .obalka-velka { min-height: 250px; padding: 23px; }
  .obalka-velka .cislo { font-size: 28px; }
  .obalka .obalka-akce { left: 22px; right: 22px; bottom: 22px; }
}
@media (max-width: 820px) {
  .topbar { padding: 7px 0; }
  .topbar .container { justify-content: space-between; text-align: left; gap: 8px; }
  .topbar .container > span { font-size: 8px; letter-spacing: 0; }
  .topbar a:nth-child(2) { font-size: 9px; }
  .topbar a:last-child { display: none; }
  header { position: sticky; }
  .hlavicka { min-height: 78px; padding: 14px 24px; gap: 12px; }
  .logo { font-size: 12px; gap: 9px; } .logo small { font-size: 8px; }
  .logo-znak, [data-tema="tmavy"] .logo-znak { width: 42px; height: 42px; border-radius: 10px; }
  .hamburger { display: block; width: 35px; height: 35px; border: 1px solid var(--ramik); order: 3; border-radius: 7px; }
  .hamburger::before, .hamburger::after { left: 8px; right: 8px; background: var(--text); }
  .hamburger::before { top: 11px; box-shadow: 0 5px 0 var(--text); } .hamburger::after { top: 21px; }
  .hamburger[aria-expanded="true"]::before { top: 16px; transform: rotate(45deg); box-shadow: none; }
  .hamburger[aria-expanded="true"]::after { top: 16px; transform: rotate(-45deg); }
  .prepinac-tema { width: 34px; height: 34px; }
  nav { display: none; margin: 0; padding-top: 12px; order: 5; }
  nav.otevreno { display: block; }
  nav ul { flex-direction: column; gap: 3px; align-items: stretch; padding: 0; }
  nav a { font-size: 13px; padding: 12px; }
  nav a.aktivni::after { display: none; }
  .uzivatel-box { order: 6; display: none; width: 100%; margin: 0; padding: 0 0 4px; justify-content: flex-start; }
  .hlavicka.menu-open .uzivatel-box { display: flex; }
  .uzivatel-jmeno { display: inline; }
  .container { padding-left: 24px; padding-right: 24px; }
  .hero, [data-tema="tmavy"] .hero { padding: 44px 0; }
  .home-hero, [data-tema="tmavy"] .home-hero { padding: 44px 0 24px; }
  .home-hero .hero-grid { grid-template-columns: minmax(0,1fr); }
  .home-hero h1 { font-size: clamp(50px, 10vw, 76px); }
  .home-hero p { max-width: 450px; font-size: 13px; }
  .home-hero .tlacitka { flex-wrap: wrap; }
  .hero .tlacitka .tlacitko { flex: 0 1 auto; font-size: 10px; padding: 13px 18px; }
  .hero-credit { margin-top: 25px; }
  .studio-art { width: 440px; max-width: 100%; margin: 4px auto 0; height: 385px; transform: none; }
  .studio-art .poster { left: 30px; width: 220px; height: 294px; }
  .studio-art .poster-title { font-size: 67px; }
  .studio-art .broadcast { right: 10px; top: 140px; width: 240px; height: 177px; }
  .broadcast-screen { height: 110px; }
  .studio-orbit { left: 30px; width: 310px; height: 310px; }
  .studio-label { right: 10px; }
  .studio-sticker { left: 7px; bottom: 20px; }
  .hero-bottom { margin-top: 12px; padding-top: 22px; font-size: 10px; }
  .hero-topics { flex-wrap: wrap; gap: 12px; }
  .hero-topics i:nth-of-type(3), .hero-topics span:last-child { display: none; }
  section { padding: 44px 0; }
  h2 { font-size: 28px; }
  .section-heading { gap: 12px; }
  .section-link { font-size: 11px; }
  .section-link .arrow { margin-left: 4px; }
  .featured-grid { grid-template-columns: 1fr; gap: 38px; padding-top: 0; padding-bottom: 44px; }
  .featured-grid > section > .container { padding: 0; }
  .featured-grid h2 { font-size: 28px; }
  .featured-grid .section-heading { min-height: 0; }
  .mrizka-3, .mrizka-2 { grid-template-columns: 1fr; }
  .mrizka-form { grid-template-columns: 1fr; }
  .zprava { min-height: 0; padding: 24px; }
  .zprava p { font-size: 12px; }
  .obalka-velka, [data-tema="tmavy"] .obalka-velka { min-height: 275px; padding: 30px; }
  .obalka .obalka-akce { left: 29px; right: 29px; bottom: 26px; }
  .join-banner { align-items: flex-start; flex-direction: column; padding: 27px; gap: 22px; }
  .join-banner h3 { font-size: 25px; }
  .paticka { grid-template-columns: 1fr 1fr; padding: 40px 24px 30px; gap: 30px; }
  .paticka > div:first-child { grid-column: 1/-1; max-width: 370px; }
  .banner-youtube { width: calc(100% - 48px); padding: 25px; }
  .navod-sekce { padding: 22px; }
}
@media (max-width: 400px) {
  .hlavicka { padding-left: 16px; padding-right: 16px; gap: 8px; }
  .container { padding-left: 20px; padding-right: 20px; }
  .logo { font-size: 11px; } .logo small { font-size: 7px; }
  .home-hero h1 { font-size: 49px; }
  .studio-art { transform: scale(.88); transform-origin: top center; margin-bottom: 0; }
  .dlazdice { grid-template-columns: 1fr; }
  .hero-bottom > a { display: none; }
  .hero-topics { justify-content: space-between; width: 100%; }
  .hero .tlacitka .tlacitko { padding: 13px; font-size: 9px; }
  .section-link { white-space: normal; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.anim-ready section { transform: none; opacity: 1; }
}

/* Kompaktní úvod, čitelné štítky a drobné barvy ze školního loga. */
.home-hero h1.portal-title { font-size: clamp(34px, 4vw, 54px); line-height: 1.12; letter-spacing: -.045em; }
.poster-star { color: #a67b07; }
[data-tema="tmavy"] .poster-star { color: #a67b07; }
.poster-top span:last-child { color: #345d9d; }

/* Modré světlo a jemná mátová vrstva se při scrollování posouvají různou rychlostí. */
.ambient-scene {
  --ambient-shift: 0px;
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  pointer-events: none; contain: strict;
}
.ambient-scene > span { position: absolute; display: block; pointer-events: none; }
.ambient-blue {
  width: max(880px, 80vw); height: max(900px, 110vh); left: -22vw; top: -34vh;
  background: radial-gradient(ellipse, var(--ambient-blue), transparent 68%);
  transform: translate3d(0, calc(var(--ambient-shift) * -.65), 0);
}
.ambient-mint {
  width: max(660px, 65vw); height: max(760px, 95vh); right: -28vw; bottom: -42vh;
  background: radial-gradient(ellipse, var(--ambient-green), transparent 66%);
  transform: translate3d(0, calc(var(--ambient-shift) * -1.2), 0);
}
.ambient-orbit {
  width: min(80vw, 1050px); aspect-ratio: 1; right: -40vw; top: 16vh;
  border: 1px solid var(--ambient-line); border-radius: 50%;
  box-shadow: 0 0 0 50px color-mix(in srgb, var(--ambient-line) 38%, transparent), 0 0 0 105px color-mix(in srgb, var(--ambient-line) 20%, transparent);
  transform: translate3d(0, calc(var(--ambient-shift) * -.9), 0);
}
.ambient-grid {
  left: 0; right: 0; top: -180px; bottom: -180px;
  background-image: radial-gradient(var(--ambient-line) .8px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, #000, transparent 28%, transparent 72%, #000);
  transform: translate3d(0, calc(var(--ambient-shift) * -.3), 0);
  opacity: .65;
}
.home-hero, [data-tema="tmavy"] .home-hero {
  background: radial-gradient(ellipse at 78% 38%, #387cef16, transparent 60%);
}
.karta, .dlazdice a, .banner-youtube, .navod-sekce {
  background: color-mix(in srgb, var(--bila) 94%, transparent);
}
.hero-copy > .eyebrow::before, .topbar .container > span::before {
  background: #69cda9; box-shadow: 0 0 12px #69cda94d;
}
.studio-sticker {
  color: #ceeadd; background: #203d39; border-color: #426e63;
}
.studio-sticker span { color: #a9efcb; }
[data-tema="tmavy"] footer { background: #09111f; }
@media (max-width: 820px) {
  .ambient-orbit { right: -58vw; width: 100vw; opacity: .6; }
  .ambient-grid { opacity: .3; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-scene > span { transform: none; }
}

/* Dvě pozvánky k obsahu: nepřetržitý, střídavý puls a světelný přejezd. */
.home-hero .hero-copy .tlacitka > .tlacitko {
  --cta-delay: 0s;
  animation: cta-beacon 4.8s ease-in-out var(--cta-delay) infinite;
  will-change: transform;
}
.home-hero .hero-copy .tlacitka > .tlacitko:nth-child(2) { --cta-delay: 2.4s; }
.home-hero .hero-copy .tlacitka > .tlacitko::after {
  left: -80%; width: 45%;
  background: linear-gradient(110deg, transparent, #ffffff55, transparent);
  animation: cta-sheen 4.8s ease-in-out var(--cta-delay) infinite;
  transition: none;
}
.home-hero .hero-copy .tlacitka > .tlacitko:hover,
.home-hero .hero-copy .tlacitka > .tlacitko:focus-visible {
  animation-play-state: paused;
  transform: translateY(-4px);
  border-color: var(--modra);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--modra) 28%, transparent);
}
.home-hero .hero-copy .tlacitka > .tlacitko:active { transform: translateY(0) scale(.98); }
@keyframes cta-beacon {
  0%, 15%, 75%, 100% { transform: translateY(0); box-shadow: 0 0 0 0 transparent; }
  35% { transform: translateY(-3px); box-shadow: 0 0 0 4px color-mix(in srgb, var(--modra) 16%, transparent), 0 5px 25px color-mix(in srgb, var(--modra) 22%, transparent); border-color: var(--modra); }
  58% { transform: translateY(0); box-shadow: 0 0 0 11px transparent; }
}
@keyframes cta-sheen {
  0%, 18% { left: -80%; opacity: 0; }
  24% { opacity: 1; }
  48%, 100% { left: 140%; opacity: 0; }
}

/* Lehké redakční značky v okrajích, bez zásahu do obsahu a ovládání. */
body { isolation: isolate; }
body::before, body::after, [data-tema="tmavy"] body::before {
  content: ''; display: block; position: fixed; top: 128px; bottom: 28px;
  left: 0; right: auto; width: clamp(28px, calc((100vw - 1184px) / 2 - 18px), 150px);
  z-index: -1; pointer-events: none; opacity: .48;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='124' height='600' viewBox='0 0 124 600' fill='none' stroke='%23749bc8' stroke-width='1'%3E%3Cpath d='M18 0v100l24 24v130l-24 24v122l34 34v166' stroke-dasharray='3 7' opacity='.5'/%3E%3Cpath d='M13 55h10m-5-5v10M13 330h10m-5-5v10M47 520h10m-5-5v10'/%3E%3Ccircle cx='42' cy='190' r='5'/%3E%3Ccircle cx='18' cy='390' r='3'/%3E%3Cpath d='M8 460h5v-10h5v20h5v-30h5v40h5v-20h7' opacity='.6'/%3E%3Cpath d='M74 90h18m-9-9v18M81 290h10m-5-5v10' opacity='.35'/%3E%3C/svg%3E"), radial-gradient(ellipse at 0 30%, #79aaff14, transparent 70%);
  background-size: 124px 600px, 100% 100%; background-position: left top; background-repeat: repeat-y, no-repeat;
}
body::after { left: auto; right: 0; transform: scaleX(-1); }
@media (max-width: 820px) {
  body::before, body::after, [data-tema="tmavy"] body::before { opacity: .22; width: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero .hero-copy .tlacitka > .tlacitko { will-change: auto; }
  .home-hero .hero-copy .tlacitka > .tlacitko::after { display: none; }
}
@media (max-width: 820px) {
  .section-heading .eyebrow { font-size: 13px; letter-spacing: .08em; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; }
  .section-heading > div { min-width: 0; }
  .hero-topics { letter-spacing: .05em; gap: 10px; }
  .studio-label { font-size: 10px; letter-spacing: .08em; }
  .studio-caption { font-size: 10px; letter-spacing: .08em; }
}

/* Světlá varianta má vlastní sytější modro-mátovou paletu. Tmavá se nemění. */
:root:not([data-tema="tmavy"]) {
  --modra: #175bc2; --modra-tmava: #133969; --text: #203b60;
  --sedivo: #425f80; --pozadi: #edf4ff; --bila: #ffffff;
  --modra-svetla: #cfe2ff; --panel: #dceaff; --ramik: #afc8eb;
  --akcent: #a8caff; --paper: #9ecbff; --akcent-hover: #c5dcff;
  --ambient-blue: #247aff6b; --ambient-green: #25c9954d; --ambient-line: #3277ce39;
  --stin: 0 8px 28px #225bb51a; --stin-hover: 0 16px 40px #225bb526;
}
:root:not([data-tema="tmavy"]) .hero {
  background: linear-gradient(115deg, #b9d8ff55, #f2f8ff30 48%, #8be3c32e);
}
:root:not([data-tema="tmavy"]) .hero h1 {
  color: #174e9b;
}
:root:not([data-tema="tmavy"]) .poster {
  background: linear-gradient(145deg, #80b7ff, #a1d9fb 60%, #a0e6cc);
  border-color: #bde4ff;
  box-shadow: -4px 5px 0 #6a9ad0, -8px 10px 0 #3e6caa, 0 28px 50px #225bb530;
}
:root:not([data-tema="tmavy"]) .tlacitko-hlavni,
:root:not([data-tema="tmavy"]) .tlacitko-zeleny {
  background: #2463dc; color: #fff; border-color: #2463dc;
}
:root:not([data-tema="tmavy"]) .tlacitko-hlavni:hover,
:root:not([data-tema="tmavy"]) .tlacitko-zeleny:hover {
  background: #174eb9; color: #fff;
}
:root:not([data-tema="tmavy"]) .hero .tlacitko-ram {
  background: #ffffff80; color: #174e9b; border-color: #7ba8e4;
}
:root:not([data-tema="tmavy"]) .zprava {
  background: linear-gradient(145deg, #ffffffed, #d8eaffef);
  box-shadow: 0 5px 20px #225bb50c;
}
:root:not([data-tema="tmavy"]) .zprava:nth-child(3n+2) {
  background: linear-gradient(145deg, #ffffffed, #d8f2e9ef);
  border-color: #a8cfc4;
}
:root:not([data-tema="tmavy"]) .obalka-velka,
:root:not([data-tema="tmavy"]) #cisla-list .obalka {
  background: linear-gradient(145deg, #96c6ff, #bdddfd 55%, #b0e8d6);
  border-color: #87b6e9;
}
:root:not([data-tema="tmavy"]) .dlazdice a {
  background: linear-gradient(145deg, #fff, #e4efff);
}
:root:not([data-tema="tmavy"]) .dlazdice a:nth-child(2n) {
  background: linear-gradient(145deg, #fff, #dff3ec);
}
:root:not([data-tema="tmavy"]) .join-banner {
  background: linear-gradient(110deg, #c6e0ff, #d0efe3);
  border-color: #9cbde5;
}
:root:not([data-tema="tmavy"]) .video {
  background: linear-gradient(125deg, #c1d9fc, #d8e8ff 55%, #c5eadf);
  border-color: #9ebce5;
}
:root:not([data-tema="tmavy"]) .ambient-grid { opacity: .8; }

/* Průsvitné modro-mátové plochy přebírají barvu okolního světla i v tmavém motivu. */
[data-tema="tmavy"] .tlacitko-hlavni,
[data-tema="tmavy"] .tlacitko-zeleny,
[data-tema="tmavy"] .tlacitko-drugi {
  background: linear-gradient(115deg, #347ce0b3, #3b8eae80 55%, #39977d70) #102a4d66;
  color: #f4f8ff; border-color: #78afffa0;
}
[data-tema="tmavy"] .tlacitko-hlavni:hover,
[data-tema="tmavy"] .tlacitko-zeleny:hover,
[data-tema="tmavy"] .tlacitko-drugi:hover {
  background: linear-gradient(115deg, #4087edcc, #469db794 55%, #41aa8c80) #102a4d80;
  color: #fff; border-color: #a4ceff;
}
[data-tema="tmavy"] .tlacitko-ram,
[data-tema="tmavy"] .tlacitko-maly {
  background: linear-gradient(115deg, #347ce02b, #4cd3aa20);
  color: #dceaff; border-color: #78afff70;
}
[data-tema="tmavy"] .tlacitko-ram:hover,
[data-tema="tmavy"] .tlacitko-maly:hover {
  background: linear-gradient(115deg, #347ce04a, #4cd3aa33);
  color: #fff; border-color: #a4ceff;
}
[data-tema="tmavy"] .dlazdice a,
[data-tema="tmavy"] .zprava {
  background: linear-gradient(125deg, #1b3351db, #132947c4 58%, #1d4a4266);
}
[data-tema="tmavy"] .obalka .tlacitko-zeleny,
[data-tema="tmavy"] .obalka .tlacitko-drugi {
  background: linear-gradient(115deg, #2455a9, #1f5d58);
  color: #fff; border-color: #284d80;
}
[data-tema="tmavy"] .obalka .tlacitko-ram {
  background: linear-gradient(115deg, #347ce02b, #39977d30);
  color: #15263f; border-color: #496e9b;
}
