/* ============================================================
   home-shared.css — GENEROVÁNO scripts/build-home-shared.mjs
   Z novinky.css + tymy.css; jen pravidla potřebná pro homepage.
   NEEDITOVAT RUČNĚ — po úpravě zdrojů přegenerovat.
   ============================================================ */

/* ---- z novinky.css ---- */
#news-list:empty { min-height: 80vh; }
.news-empty-rich {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 64px 24px;
    color: #6b7889;
    text-align: center;
    background: linear-gradient(180deg, #fafcff 0%, #f6f9fd 100%);
    border: 1px dashed #d6e0ed;
    border-radius: 18px;
}
.news-empty-rich svg {
    color: #b8c7dc;
}
.news-empty-rich-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-color);
}
.news-empty-rich-sub {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7889;
    max-width: 380px;
    line-height: 1.55;
}
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
.hp-news-grid {
    display: grid;
    /* b.260: hero zmenšen (1.55fr → 1.25fr) — vizuálně vyváženější
       a 3 boční karty mají víc šířky. */
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 18px;
}
.hp-news-grid--single {
    grid-template-columns: 1fr;
}
.hp-news-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
@media (min-width: 901px) {
  .hp-news-side > .hp-art-side {
        flex: 1 1 0;
    }
}
.hp-art-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--border-light, #e6edf7);
    box-shadow: 0 6px 22px rgba(0, 36, 82, 0.06);
    isolation: isolate;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.hp-art-hero:hover {
    transform: translateY(-3px);
    border-color: #cfd9ec;
    box-shadow: 0 22px 44px rgba(0, 36, 82, 0.14);
}
.hp-art-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color, #0052c2) 0%, #2d77e0 100%);
    z-index: 3;
}
.hp-art-hero--lg {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
    border-radius: 22px;
}
.hp-art-hero-media {
    position: relative;
    /* b.264: 16/9 → 16/7 — ještě nižší fotka pro homepage hero, aby se
       side karty napravo neroztahovaly do nesmyslné výšky. Override v --lg
       (novinky.html, plná šířka) zachován — tam aspect: auto + min-height.
       b.706: zpět na 16/9 — od b.704 je img na object-fit: contain
       (neořezává), ale 16/7 byl tak plochý, že běžnou (ne panoramatickou)
       fotku smrsknul na tenký proužek — vypadalo to skoro jako beze změny.
       16/9 dá fotce rozumnou velikost; side karty budou o něco vyšší. */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5fb;
}
.hp-art-hero--lg .hp-art-hero-media {
    /* Ve split layoutu fotka vyplní celou výšku content panelu. */
    aspect-ratio: auto;
    min-height: 100%;
}
.hp-art-hero-media img {
    width: 100%;
    height: 100%;
    /* b.704: cover ořezával fotky mimo 16:7/16:9 (portréty, čtverce z
       mobilu) — contain fotku jen zmenší, zbytek rámečku vyplní pozadí. */
    object-fit: contain;
    display: block;
    transition: transform 0.7s ease;
}
.hp-art-hero-media .hp-art-img-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease;
}
.hp-art-img-default {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.7s ease;
}
.hp-art-hero:hover .hp-art-hero-media img {
    transform: scale(1.04);
}
.hp-art-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px 6px 10px;
    background: var(--primary-color, #0052c2);
    color: #fff;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(0, 36, 82, 0.28);
}
.hp-art-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}
.hp-art-cat-overlay {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}
.hp-art-cat-overlay .art-cat-badge {
    box-shadow: 0 6px 16px rgba(15, 31, 53, 0.28);
}
.hp-art-hero-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* b.264: tighter gap + padding — homepage hero kratší, aby side karty
       nebyly přerostlé. Padding přebije --lg override. */
    gap: 10px;
    padding: 18px 26px 20px;
}
.hp-art-hero--lg .hp-art-hero-body {
    padding: 38px 42px;
    gap: 14px;
}
.hp-art-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #6b7889;
    letter-spacing: 0.04em;
}
.hp-art-meta--small {
    color: #6b7889;
    font-size: 0.74rem;
}
.hp-art-date {
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.hp-art-author {
    opacity: 0.85;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}
.hp-art-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
    display: inline-block;
}
.hp-art-hero-title {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-color, #1a2535);
    letter-spacing: -0.018em;
    display: -webkit-box;
    /* b.264: 3 → 2 řádky (homepage hero). Novinky --lg má vlastní clamp:3. */
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.18s ease;
}
.hp-art-hero:hover .hp-art-hero-title {
    color: var(--primary-color, #0052c2);
}
.hp-art-hero--lg .hp-art-hero-title {
    font-size: 1.95rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}
.hp-art-hero-perex {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #4f5b6e;
    display: -webkit-box;
    /* b.263: 3 → 2 řádky (homepage hero). Novinky --lg má vlastní clamp:4. */
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-art-hero--lg .hp-art-hero-perex {
    font-size: 1.02rem;
    -webkit-line-clamp: 4;
    line-clamp: 4;
}
.hp-art-more {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--primary-color, #0052c2);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
.hp-art-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-light, #e6f0ff);
    color: var(--primary-color, #0052c2);
    font-size: 0.85rem;
    transition: transform 0.22s ease, background 0.22s ease;
}
.hp-art-hero:hover .hp-art-arrow {
    transform: translateX(4px);
    background: var(--primary-color, #0052c2);
    color: #fff;
}
.hp-art-side {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border-light, #e6edf7);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    min-height: 110px;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.hp-art-side:hover {
    transform: translateY(-2px);
    border-color: #cfd9ec;
    box-shadow: 0 12px 26px rgba(0, 36, 82, 0.11);
}
.hp-art-side--lg {
    gap: 18px;
    padding: 14px;
    min-height: 160px;
}
.hp-news-side > .hp-art-side .hp-art-side-media {
    flex-basis: 110px;
}
.hp-news-side > .hp-art-side .hp-art-side-title {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
@media (min-width: 901px) {
  .hp-news-side > .hp-art-side {
        min-height: 0;
    }
}
.hp-art-side-media {
    position: relative;
    flex: 0 0 130px;
    align-self: stretch;
    overflow: hidden;
    border-radius: 10px;
    background: #f3f6fb;
}
.hp-art-side--lg .hp-art-side-media {
    flex-basis: 200px;
}
.hp-art-side-media img,
.hp-art-side-media .hp-art-img-placeholder--small {
    width: 100%;
    height: 100%;
    /* b.705: zpět na cover (b.704 dočasně zkusil contain) — u malé chip
       miniatury (130–200px) je mírný ořez nepostřehnutelný, zato contain
       tu u čtvercových/graficky vypodložených obrázků (pozvánky, placeholder
       s logem) nechával obrázek malý a "plavající" uprostřed prázdné plochy,
       což vypadalo hůř než ořez. Contain zůstává jen u velkého hero snímku
       a fotky u článku, kde je ořez skutečně vidět. */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.hp-art-side:hover .hp-art-side-media img {
    transform: scale(1.06);
}
.hp-art-side-media .ncard-new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 3px 9px;
    font-size: 0.64rem;
}
.hp-art-side-media .hp-art-cat-overlay {
    top: 8px;
    right: 8px;
}
.hp-art-side-media .hp-art-cat-overlay .art-cat-badge {
    padding: 3px 9px;
    font-size: 0.64rem;
}
.hp-art-side-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 4px 8px 4px 0;
    min-width: 0;
}
.hp-art-side--lg .hp-art-side-body {
    gap: 8px;
    padding: 6px 8px 6px 0;
}
.hp-art-side-title {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.32;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.005em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.18s ease;
}
.hp-art-side:hover .hp-art-side-title {
    color: var(--primary-color);
}
.hp-art-side--lg .hp-art-side-title {
    font-size: 1.1rem;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
@media (max-width: 900px) {
  .hp-news-grid {
        grid-template-columns: 1fr;
    }
  .hp-news-side > *:nth-child(n+4) {
        display: none;
    }
  .hp-art-hero--lg {
        grid-template-columns: 1fr;
    }
  .hp-art-hero--lg .hp-art-hero-media {
        aspect-ratio: 16 / 10;
        min-height: 0;
    }
  .hp-art-hero--lg .hp-art-hero-body {
        padding: 26px 28px 28px;
    }
  .hp-art-hero-title {
        font-size: 1.32rem;
    }
  .hp-art-hero--lg .hp-art-hero-title {
        font-size: 1.55rem;
    }
  .hp-art-side--lg {
        gap: 14px;
        min-height: 140px;
    }
  .hp-art-side--lg .hp-art-side-media {
        flex-basis: 160px;
    }
}
@media (max-width: 540px) {
  .hp-art-hero {
        border-radius: 14px;
    }
  .hp-art-hero--lg {
        border-radius: 14px;
    }
  .hp-art-hero-title {
        font-size: 1.2rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
  .hp-art-hero--lg .hp-art-hero-title {
        font-size: 1.32rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
  .hp-art-hero-perex {
        font-size: 0.88rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
  .hp-art-hero--lg .hp-art-hero-perex {
        font-size: 0.92rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
  .hp-art-hero-body,
    .hp-art-hero--lg .hp-art-hero-body {
        padding: 20px 20px 22px;
        gap: 10px;
    }
  .hp-art-tag {
        top: 12px;
        left: 12px;
        font-size: 0.62rem;
        padding: 5px 11px 5px 9px;
    }
  .hp-art-more {
        font-size: 0.8rem;
    }
  .hp-art-side {
        gap: 12px;
        min-height: 96px;
    }
  .hp-art-side .hp-art-side-media {
        flex-basis: 100px;
    }
  .hp-art-side--lg {
        gap: 12px;
        padding: 10px;
        min-height: 110px;
    }
  .hp-art-side--lg .hp-art-side-media {
        flex-basis: 110px;
    }
  .hp-art-side-title {
        font-size: 0.92rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
  .hp-art-side--lg .hp-art-side-title {
        font-size: 0.96rem;
    }
}
.evt-cal-card {
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 22px rgba(0, 35, 80, 0.06);
    padding: 20px 22px 22px;
}
.evt-cal-months {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.evt-cal-month-col {
    min-width: 0;
}
.evt-cal-month-col + .evt-cal-month-col {
    border-left: 1px solid var(--border-light);
    padding-left: 20px;
}
.evt-cal-month-col--current .evt-cal-month {
    color: var(--primary-color);
}
.evt-cal-month {
    margin: 0 0 12px;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-color);
    text-transform: capitalize;
    text-align: center;
}
.evt-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 6px;
}
.evt-cal-weekdays span {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted-text);
    padding: 4px 0;
}
.evt-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.evt-cal-day {
    /* b.678: na tabletu (cca 768–1000px) se čísla dnů překrývala se
       sousedním měsícem — root cause byly dvě věci dohromady:
       1) min-height:38px + aspect-ratio:1 dával buňce efektivní
          min-width 38px (poměr stran přenese min-height i do šířky),
       2) buňky s akcí jsou <button> (ne <span>) a button má v Chromu
          vlastní odolnost vůči zúžení v grid/flexu, kterou nepřebije
          min-width:auto samo o sobě.
       Sedm sloupců × min. 38px se do jednoho měsíčního sloupce na
       tabletu nevešlo, .evt-cal-grid přetekl a čísla se vizuálně
       slila se sousedním měsícem. Řešení: min-height pryč (čtverec se
       odvozuje čistě od šířky 1fr sloupce) + explicitní min-width:0,
       které teď platí i pro <button> varianty. Mobil pod 640px má
       vlastní jednosloupcový carousel, kde je sloupec vždy dost
       široký, takže tam k tomuhle nedochází. */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    aspect-ratio: 1;
    min-width: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    font: inherit;
    color: var(--text-color);
}
button.evt-cal-day { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.evt-cal-day--out { visibility: hidden; }
.evt-cal-day-num {
    font-size: 0.85rem;
    font-weight: 600;
}
.evt-cal-day--today { border-color: var(--primary-color); }
.evt-cal-day--today .evt-cal-day-num { color: var(--primary-color); font-weight: 800; }
.evt-cal-day--has-events { background: var(--primary-light); }
.evt-cal-day--has-events .evt-cal-day-num { color: var(--primary-dark); font-weight: 700; }
@media (hover: hover) and (pointer: fine) {
  button.evt-cal-day--has-events:hover { background: #dde9fa; border-color: #b9d3f2; }
}
button.evt-cal-day:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
}
.evt-cal-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-color);
}
.evt-cal-day--today.evt-cal-day--has-events .evt-cal-dot { background: var(--primary-dark); }
.evt-cal-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 18px;
    margin-top: 10px;
    padding: 0 16px;
    font-size: 0.78rem;
    color: var(--muted-text);
}
.evt-cal-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.evt-cal-legend-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
}
.evt-cal-legend-today {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    border: 1px solid var(--primary-color);
}
.evt-cal-nav { display: none; }
@media (max-width: 760px) {
  .evt-cal-card { padding: 18px 0 20px; }
  .evt-cal-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        margin-bottom: 10px;
    }
  .evt-cal-nav-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 1px solid var(--border-light);
        background: #fff;
        color: var(--primary-color);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.15s ease, border-color 0.15s ease;
    }
  .evt-cal-nav-btn:active { background: var(--primary-light); border-color: #b9d3f2; }
  @media (hover: hover) and (pointer: fine) {
    .evt-cal-nav-btn:hover { background: var(--primary-light); border-color: #b9d3f2; }
  }
  .evt-cal-nav-btn:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 1px;
    }
  .evt-cal-months {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 20px;
        scrollbar-width: none;
    }
  .evt-cal-months::-webkit-scrollbar { display: none; }
  .evt-cal-month-col {
        flex: 0 0 100%;
        scroll-snap-align: center;
    }
  .evt-cal-month-col + .evt-cal-month-col {
        border-left: none;
        padding-left: 0;
        margin-left: 32px;
    }
}
@media (max-width: 640px) {
  .evt-cal-card { padding: 16px 0 18px; }
  .evt-cal-nav { padding: 0 14px; }
  .evt-cal-months { padding: 0 14px; }
  .evt-cal-month-col + .evt-cal-month-col { margin-left: 22px; }
  .evt-cal-month { font-size: 1.02rem; }
  .evt-cal-day { min-height: 34px; }
  .evt-cal-day-num { font-size: 0.78rem; }
}
.theme-clean #homepage-calendar-section { margin: 6px 0 0; }
@keyframes evtDotPulse {
    0%   { transform: scale(1); opacity: 0.5; }
    80%  { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(2.2); opacity: 0; }
}
@keyframes evtTodayDotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.35); opacity: 0.6; }
}
#past-section {
    margin-top: 44px;
}
@keyframes evtTrackIn {
    from { opacity: 0; transform: translateY(-50%) scaleX(0.92); }
    to   { opacity: 1; transform: translateY(-50%) scaleX(1); }
}
@keyframes evtDotIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes evtTickHalo {
    0%   { transform: scale(0.85); opacity: 0.55; }
    70%  { transform: scale(2.1);  opacity: 0; }
    100% { transform: scale(2.1);  opacity: 0; }
}
.theme-clean .page-hero {
    background: var(--primary-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.theme-clean .page-hero-deco { display: none; }
.theme-clean .page-hero-title {
    font-weight: 800;
    letter-spacing: -0.025em;
}
.theme-clean .page-hero-eyebrow {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.24);
}
.theme-clean .page-hero-fb {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}
.theme-clean .ncard {
    border: 1px solid var(--border-light);
    box-shadow: none;
    border-radius: 14px;
}
.theme-clean .ncard:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 36, 82, 0.08);
    border-color: #c9d8ec;
}
.theme-clean .ncard-new-badge { box-shadow: none; }
.theme-clean .news-search-input,
.theme-clean .news-filter-select {
    border-radius: 10px;
}
@media (max-width: 850px) {
  .theme-clean .page-hero {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}

/* ---- z tymy.css ---- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    transition-delay: var(--reveal-delay, 0ms);
    /* ZÁMĚRNĚ bez will-change. Trvalé will-change drželo každý ještě
       neodhalený .reveal prvek na vlastní GPU vrstvě, jejíž textura se
       necachovala ostře → rozmazaný text (HiDPI / zlomkový zoom). Krátkou
       opacity+translateY animaci prohlížeč kompozituje i bez hintu;
       crispness > marginální plynulost. (b.461 release na is-visible
       nestačil — vrstva visela i u prvků pod fold.) */
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.team-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 700;
    background: transparent;
}
.team-tab-btn.active:hover {
    color: var(--primary-color);
}
.team-tab-content.active { display: block; }
#prehled-upcoming:empty,
#prehled-recent:empty { min-height: 170px; }
#prehled-mini-table:empty { min-height: 260px; }
#prehled-scorers:empty { min-height: 210px; }
@keyframes prehled-today-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}
.matches-compact {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.comp-switch-btn.is-active {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 1px 3px rgba(15, 31, 53, 0.12);
}
.comp-phase-panel.is-active { display: block; }
.cmr-row {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid #f1f5fb;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
    position: relative;
}
.cmr-row:last-child { border-bottom: 0; }
.cmr-row--link { cursor: pointer; }
.cmr-row--link:hover {
    background: linear-gradient(90deg, #f5f9ff, #fbfdff);
}
.cmr-row--link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
    background: #f0f7ff;
}
.cmr-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    padding: 16px 12px 16px 16px;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    border-right: 1px solid #eef3fa;
    background: #fbfcfe;
}
.cmr-day {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f1f35;
    letter-spacing: -0.015em;
    white-space: nowrap;
}
.cmr-time {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.cmr-teams {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    padding: 8px 6px 8px 10px;
    justify-content: center;
}
.cmr-team-line {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 6px 10px;
    border-radius: 6px;
    position: relative;
    transition: background 0.15s ease;
}
.cmr-team-name {
    font-size: 0.96rem;
    font-weight: 400;
    color: #0f1f35;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cmr-team-line.is-winner .cmr-team-name {
    font-weight: 700;
}
.cmr-team-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.club-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 auto;
    border-radius: 3px;
}
.tn-full { display: inline; }
.tn-short { display: none; }
@media (max-width: 540px) {
  .tn-full { display: none; }
  .tn-short { display: inline; }
}
.cmr-team-line.is-winner .cmr-team-score {
    color: #0f1f35;
    font-weight: 800;
}
.cmr-team-line:not(.is-winner) .cmr-team-score {
    color: #cbd5e1;
    font-weight: 700;
}
.cmr-final-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.025em;
    min-width: 22px;
    flex-shrink: 0;
}
.cmr-final-score-num,
.cmr-final-score-num.is-winner {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f1f35;
}
.cmr-halftime {
    display: inline-flex;
    align-items: center;
    font-size: 0.74rem;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    min-width: 36px;
}
.cmr-row > .cmr-trailing {
    align-self: center;
    justify-self: end;
}
.cmr-trailing {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 14px;
    min-width: 150px;
}
.cmr-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.01em;
}
.cmr-pill--win { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.cmr-pill--draw { background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%); }
.cmr-pill--loss { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.cmr-pill--none {
    background: transparent;
    border: 1px dashed #cbd5e1;
    color: #94a3b8;
    box-shadow: none;
}
.cmr-report {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 7px;
    border: 1px solid #d4dbe5;
    border-radius: 4px;
    background: #fff;
    color: #5b6877;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
    flex-shrink: 0;
}
.cmr-row--link:hover .cmr-report {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.cmr-venue {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #6b7280;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
}
.cmr-venue > span {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.cmr-venue::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 2px #cbd5e1;
}
.cmr-row--upcoming .cmr-team-name {
    color: #0f1f35;
    font-weight: 400;
}
@media (max-width: 540px) {
  .cmr-row {
        grid-template-columns: 54px 1fr auto;
    }
  .cmr-date {
        padding: 8px 4px 8px 8px;
        gap: 1px;
    }
  .cmr-day { font-size: 0.74rem; letter-spacing: -0.02em; }
  .cmr-time { font-size: 0.6rem; }
  .cmr-teams { padding: 4px 4px 4px 8px; }
  .cmr-team-line {
        padding: 3px 6px;
        gap: 6px;
    }
  .cmr-team-name { font-size: 0.82rem; }
  .club-logo { width: 16px; height: 16px; }
  .cmr-team-main { gap: 6px; }
  .cmr-final-score-num,
    .cmr-final-score-num.is-winner { font-size: 0.92rem; }
  .cmr-pill {
        width: 22px;
        height: 22px;
        font-size: 0.68rem;
        border-radius: 6px;
    }
  .cmr-trailing {
        gap: 6px;
        padding: 0 8px;
        min-width: 0;
    }
  .cmr-report { display: none; }
  .cmr-row--link .cmr-trailing::after {
        content: "\203A";
        margin-left: 1px;
        font-size: 1.15rem;
        line-height: 1;
        font-weight: 700;
        color: #c2ccda;
        flex-shrink: 0;
    }
  .cmr-halftime { font-size: 0.6rem; min-width: 0; }
  .cmr-venue { font-size: 0.66rem; }
  .cmr-venue::before { width: 8px; height: 8px; }
}
@media (min-width: 541px) {
  .theme-clean .team-tab-content .cmr-date { padding: 10px 10px 10px 14px; }
  .theme-clean .team-tab-content .cmr-day { font-size: 0.85rem; }
  .theme-clean .team-tab-content .cmr-time { font-size: 0.66rem; }
  .theme-clean .team-tab-content .cmr-teams { padding: 5px 6px 5px 8px; }
  .theme-clean .team-tab-content .cmr-team-line { padding: 4px 10px; }
  .theme-clean .team-tab-content .cmr-team-name { font-size: 0.88rem; }
  .theme-clean .team-tab-content .cmr-final-score-num,
    .theme-clean .team-tab-content .cmr-final-score-num.is-winner { font-size: 0.98rem; }
  .theme-clean .team-tab-content .cmr-pill { font-size: 0.72rem; }
}
.theme-clean .roster-card { box-shadow: 0 1px 3px rgba(0, 74, 173, 0.04); }
.theme-clean .roster-card:hover { transform: none; box-shadow: 0 4px 12px rgba(0, 74, 173, 0.08); }
.theme-clean .staff-card { border-radius: var(--radius-md); box-shadow: 0 1px 3px rgba(0, 74, 173, 0.04); }
.theme-clean .team-table-section .table-wrapper { border-radius: var(--radius-lg); }
.theme-clean .comp-season-item { border-radius: var(--radius-md); }
.theme-clean .archive-card { box-shadow: 0 1px 4px rgba(0, 36, 82, 0.05); }
.theme-clean .archive-card:hover { transform: none; box-shadow: 0 4px 12px rgba(0, 36, 82, 0.09); }
.theme-clean .team-inactive-card { border-radius: var(--radius-lg); box-shadow: 0 1px 4px rgba(0, 74, 173, 0.05); }
.theme-clean .team-inactive-cta { box-shadow: 0 2px 8px rgba(0, 82, 194, 0.18); }
.theme-clean .team-inactive-cta:hover { transform: none; box-shadow: 0 4px 12px rgba(0, 82, 194, 0.24); }
