/* U8 Divisione — ručne písaný utility CSS systém
   Obsahuje len triedy, ktoré appka reálne používa (podľa pôvodného Next.js/Tailwind dizajnu).
   Rozširuje sa priebežne, ako pribúdajú nové šablóny. */

[x-cloak] { display: none !important; }

/* ---------- Plynulý přechod mezi stránkami (pjax fade) ---------- */
@media (prefers-reduced-motion: no-preference) {
    #app-content { transition: opacity .2s ease-out; }
    #app-content.pjax-fading { opacity: 0; }
}

/* ---------- Reset & základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100%;
    background: #000;
    color: #ededed;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

/* ---------- Farebná paleta (zodpovedá Tailwind red/gray škále) ---------- */
:root {
    --red-400: #f87171;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --red-900: #7f1d1d;
    --red-950: #450a0a;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --green-400: #4ade80;
    --green-500: #22c55e;
}

/* ---------- Layout ---------- */
.container-full { margin-left: auto; margin-right: auto; width: 100%; max-width: 1600px; padding-left: 1.5rem; padding-right: 1.5rem; }
.container-wide { margin-left: auto; margin-right: auto; width: 100%; max-width: 1280px; padding-left: 1.5rem; padding-right: 1.5rem; }
.container-content { margin-left: auto; margin-right: auto; width: 100%; max-width: 900px; padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 1024px) {
    .container-full, .container-wide, .container-content { padding-left: 2rem; padding-right: 2rem; }
}

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hidden { display: none; }
.block { display: block; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-full { top: 100%; }
.left-0 { left: 0; }
.left-1\/2 { left: 50%; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.z-50 { z-index: 50; }
.z-\[9999\] { z-index: 9999; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-16 { height: 4rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.min-h-full { min-height: 100%; }
.min-h-screen { min-height: 100vh; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.cursor-pointer { cursor: pointer; }
.object-cover { object-fit: cover; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Spacing (rem = 14px základ) ---------- */
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; } .gap-5 { gap: 1.25rem; } .gap-6 { gap: 1.5rem; } .gap-10 { gap: 2.5rem; }

.p-3 { padding: .75rem; } .p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; } .p-10 { padding: 2.5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-1\.5 { padding-top: .375rem; padding-bottom: .375rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-4 { padding-top: 1rem; } .pt-20 { padding-top: 5rem; }
.pb-10 { padding-bottom: 2.5rem; }
.mt-0\.5 { margin-top: .125rem; } .mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; } .mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; } .mt-12 { margin-top: 3rem; } .mt-20 { margin-top: 5rem; }
.mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: .75rem; } .mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-10 { margin-bottom: 2.5rem; } .mb-12 { margin-bottom: 3rem; }

/* ---------- Typografia ---------- */
.text-\[10px\] { font-size: 10px; }
.text-xs { font-size: .75rem; }
.text-sm { font-size: .875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.uppercase { text-transform: uppercase; }
.normal-case { text-transform: none; }
.break-words { overflow-wrap: break-word; }
.tracking-wide { letter-spacing: .025em; }
.tracking-widest { letter-spacing: .1em; }
.tracking-\[0\.18em\] { letter-spacing: .18em; }
.tracking-\[0\.2em\] { letter-spacing: .2em; }
.tracking-\[0\.3em\] { letter-spacing: .3em; }
.tracking-\[0\.35em\] { letter-spacing: .35em; }
.tracking-\[0\.4em\] { letter-spacing: .4em; }
.tracking-\[0\.45em\] { letter-spacing: .45em; }

/* ---------- Farby ---------- */
.text-white { color: #fff; }
.text-black { color: #000; }
.text-red-400 { color: var(--red-400); }
.text-red-500 { color: var(--red-500); }
.text-red-600 { color: var(--red-600); }
.text-gray-300 { color: var(--gray-300); }
.text-gray-400 { color: var(--gray-400); }
.text-gray-500 { color: var(--gray-500); }
.text-green-400 { color: var(--green-400); }

.bg-black { background-color: #000; }
.bg-black\/70 { background-color: rgba(0,0,0,.70); }
.bg-black\/75 { background-color: rgba(0,0,0,.75); }
.bg-black\/90 { background-color: rgba(0,0,0,.90); }
.bg-black\/95 { background-color: rgba(0,0,0,.95); }
.bg-red-500\/10 { background-color: rgba(239,68,68,.1); }
.bg-red-600 { background-color: var(--red-600); }
.bg-red-700 { background-color: var(--red-700); }
.bg-red-950\/60 { background-color: rgba(69,10,10,.6); }
.bg-gray-700\/20 { background-color: rgba(55,65,81,.2); }
.bg-gray-800 { background-color: var(--gray-800); }

.border { border-width: 1px; border-style: solid; border-color: var(--gray-700); }
.border-t { border-top-width: 1px; border-top-style: solid; border-color: var(--gray-700); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-color: var(--gray-700); }
.border-red-500\/40 { border-color: rgba(239,68,68,.4); }
.border-red-600 { border-color: var(--red-600); }
.border-red-700 { border-color: var(--red-700); }
.border-red-900 { border-color: var(--red-900); }
.border-red-900\/70 { border-color: rgba(127,29,29,.7); }
.border-green-500\/40 { border-color: rgba(34,197,94,.4); }
.border-gray-600 { border-color: var(--gray-600); }

/* ---------- Rámčeky, efekty ---------- */
.rounded-md { border-radius: .375rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.4), 0 4px 6px -4px rgba(0,0,0,.4); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.transition { transition: all .2s ease; }
.transition-all { transition: all .3s ease; }
.transition-colors { transition: color .3s ease, background-color .3s ease, border-color .3s ease; }
.transition-transform { transition: transform .3s ease; }
.duration-300 { transition-duration: .3s; }

a.hover-red:hover, .hover\:bg-red-600:hover { background-color: var(--red-600); }
.hover\:bg-red-700:hover { background-color: var(--red-700); }
.hover\:text-red-500:hover { color: var(--red-500); }
.hover\:opacity-80:hover { opacity: .8; }
.group:hover .group-hover\:rotate-180 { transform: rotate(180deg); }
.group:hover .group-hover\:block { display: block; }

/* ---------- Komponenty ---------- */
.card {
    border-radius: 1rem;
    border: 1px solid var(--red-900);
    background-color: rgba(0,0,0,.70);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.4);
    transition: all .3s ease-out;
}
.card-padded { padding: 1.5rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    border: 1px solid var(--red-600);
    padding: .75rem 1.5rem;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    background: transparent;
    transition: all .3s ease-out;
}
.btn:hover { background-color: var(--red-600); }
.btn-solid { background-color: var(--red-600); border-color: var(--red-600); }
.btn-solid:hover { background-color: var(--red-700); }

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border-width: 1px;
    border-style: solid;
    padding: .25rem 1rem;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .2em;
}
.badge-red { border-color: rgba(239,68,68,.4); background-color: rgba(239,68,68,.1); color: var(--red-400); }
.badge-green { border-color: rgba(34,197,94,.4); background-color: rgba(34,197,94,.1); color: var(--green-400); }
.badge-gray { border-color: var(--gray-600); background-color: rgba(55,65,81,.2); color: var(--gray-300); }
.badge-yellow { border-color: rgba(234,179,8,.4); background-color: rgba(234,179,8,.1); color: #facc15; margin-left: .5rem; text-transform: none; letter-spacing: normal; }
.badge-position { border-color: var(--red-600); background-color: var(--red-600); color: #fff; font-weight: 900; box-shadow: 0 2px 8px rgba(0,0,0,.5); }

.stat-card {
    border-radius: 1rem;
    border: 1px solid var(--red-900);
    background-color: rgba(0,0,0,.70);
    backdrop-filter: blur(4px);
    padding: 1.25rem 1rem;
    text-align: center;
}
.stat-card .stat-value { font-size: 3rem; font-weight: 900; color: var(--red-500); }
.stat-card .stat-value-small { font-size: 1.875rem; font-weight: 900; color: var(--red-500); overflow-wrap: break-word; line-height: 1.25; }
.stat-card .stat-label { margin-top: .75rem; color: var(--gray-400); text-transform: uppercase; font-size: .75rem; letter-spacing: .18em; }
.stat-card .stat-context { margin-top: .35rem; color: var(--gray-500); font-size: .8rem; }

.section-title { margin-bottom: 3rem; }
.section-title.centered { text-align: center; }
.section-title .eyebrow { margin-bottom: 1rem; font-size: .875rem; text-transform: uppercase; letter-spacing: .4em; color: var(--red-500); }
.section-title h2 { font-size: 1.875rem; font-weight: 900; margin: 0; }

.page-hero { padding-top: 5rem; padding-bottom: 2.5rem; text-align: center; }
.page-hero .eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .45em; color: var(--red-500); }
.page-hero h1 { margin-top: 1rem; font-size: 3rem; font-weight: 900; text-transform: uppercase; color: #fff; }
.page-hero p { margin: 1.25rem auto 0; max-width: 42rem; font-size: 1.125rem; color: var(--gray-400); }

/* ---------- Header / navigácia ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid var(--red-700);
    background-color: rgba(0,0,0,.90);
    backdrop-filter: blur(12px);
}
.site-header .bar { height: 4rem; display: flex; align-items: center; justify-content: space-between; }
.site-header .logo h1 { margin: 0; font-size: 1.875rem; font-weight: 900; line-height: 1; color: #fff; }
.site-header .logo p { margin: .125rem 0 0; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .35em; color: var(--red-500); }
.site-nav { display: none; align-items: center; gap: 2.5rem; font-size: 13px; font-weight: 600; text-transform: uppercase; }
.site-nav a { color: #fff; transition: color .3s ease; }
.site-nav a:hover, .site-nav a.active { color: var(--red-500); }
.site-nav .dropdown { position: relative; }
.site-nav .dropdown-menu {
    position: absolute; left: 50%; top: 100%; display: none;
    width: 13rem; transform: translateX(-50%); padding-top: 1rem;
}
.site-nav .dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu-inner {
    border-radius: 1rem; border: 1px solid var(--red-900);
    background-color: rgba(0,0,0,.95); backdrop-filter: blur(12px); overflow: hidden;
}
.dropdown-menu-inner a { display: block; padding: .75rem 1.25rem; font-size: .875rem; text-transform: none; color: #fff; transition: background .2s; }
.dropdown-menu-inner a:hover { background-color: rgba(69,10,10,.6); }
.dropdown-menu-inner a.active { color: var(--red-500); }
.live-btn {
    border-radius: .375rem; background-color: var(--red-600); padding: .375rem 1rem;
    font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: #fff; transition: all .3s ease;
}
.live-btn:hover { background-color: var(--red-700); }
.admin-indicator {
    display: inline-flex; align-items: center; gap: .3rem;
    border-radius: .375rem; border: 1px solid rgba(34,197,94,.4); background-color: rgba(34,197,94,.1);
    padding: .375rem 1rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: var(--green-400); text-decoration: none; transition: all .3s ease-out;
}
.admin-indicator:hover { background-color: rgba(34,197,94,.2); border-color: var(--green-500); }
.mobile-menu-btn { font-size: 1.25rem; color: #fff; background: none; border: none; }
.mobile-nav { display: none; border-top: 1px solid var(--red-700); background-color: rgba(0,0,0,.95); }
.mobile-nav.open { display: block; }
.mobile-nav nav { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem; font-size: .875rem; font-weight: 600; text-transform: uppercase; color: #fff; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--red-500); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--red-900); margin-top: 5rem; }
.site-footer .footer-row { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; flex-wrap: wrap; }
.site-footer h3 { font-size: 1.875rem; font-weight: 900; color: #fff; margin: 0; }
.site-footer .brand-tag { font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--red-500); margin: 0; }
.site-footer .tagline { color: var(--gray-400); margin-top: .5rem; font-size: .875rem; }
.site-footer .social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.site-footer .social-links a { color: var(--gray-400); transition: color .3s ease; }
.site-footer .social-links a:hover { color: var(--red-500); }
.site-footer .copyright { color: var(--gray-500); font-size: .875rem; margin: 0; }
.site-footer .rights { color: var(--gray-500); font-size: .75rem; margin: .25rem 0 0; }

/* ---------- Responzívne (md ≥768px, lg ≥1024px, xl ≥1280px) ---------- */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:text-right { text-align: right; }
    .site-footer h3 { font-size: 2.25rem; }
}
@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1280px) {
    .xl\:text-4xl { font-size: 2.25rem; }
}

/* ---------- Login stránka ---------- */
.login-main {
    min-height: 100vh;
    background-image: url('../../hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.login-overlay { position: absolute; inset: 0; background: transparent; }
.login-glow {
    position: absolute; width: 900px; height: 900px; border-radius: 50%;
    background: rgba(220,38,38,.12); filter: blur(220px);
}
.login-card {
    position: relative; z-index: 10; width: 100%; max-width: 680px; padding: 42px;
    border-radius: 32px; background: rgba(10,10,10,.55); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 50px rgba(0,0,0,.6);
}
.login-logo { text-align: center; margin-bottom: 30px; }
.login-logo .u8 { font-size: 84px; font-weight: 900; color: var(--gray-300); letter-spacing: -4px; line-height: 1; }
.login-logo .divisione { color: var(--red-600); font-size: 18px; font-weight: 700; letter-spacing: 10px; margin-top: 4px; }
.login-card h1 { text-align: center; color: #fff; font-size: 56px; font-weight: 900; margin: 0 0 10px; }
.login-card .subtitle { text-align: center; color: var(--gray-400); font-size: 16px; margin-bottom: 40px; }
.login-field { margin-bottom: 24px; }
.login-field label { color: #fff; display: block; margin-bottom: 10px; font-weight: 700; }
.login-field input {
    width: 100%; height: 64px; padding: 0 20px; border-radius: 14px;
    background: rgba(0,0,0,.45); border: 1px solid rgba(220,38,38,.4); color: #fff; font-size: 16px;
}
.login-field-password { position: relative; }
.login-field-password input { padding-right: 60px; }
.login-toggle-password {
    position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--gray-400);
}
.login-submit {
    width: 100%; height: 64px; border-radius: 14px; background: var(--red-600); border: none;
    color: #fff; font-size: 22px; font-weight: 800; box-shadow: 0 0 30px rgba(220,38,38,.45);
}
.login-submit:disabled { opacity: .7; cursor: not-allowed; }
.login-footer { text-align: center; color: #777; margin-top: 24px; font-size: 14px; }
.login-error { color: var(--red-400); text-align: center; margin-bottom: 20px; font-size: 14px; }

/* ================= Fáza 2: verejné stránky ================= */

/* ---------- Stránkový základ (bg-fixed hero obrázok + tmavý overlay) ---------- */
.page-bg {
    min-height: 100vh;
    background-image: url('../../hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
}
.page-bg-overlay { min-height: 100vh; background-color: rgba(0,0,0,.80); display: flex; flex-direction: column; }
.page-bg-overlay-70 { min-height: 100vh; background-color: rgba(0,0,0,.80); display: flex; flex-direction: column; }

/* ---------- Doplnkové rozostupy/veľkosti/mriežky ---------- */
.gap-8 { gap: 2rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-16 { margin-top: 4rem; }
.p-12 { padding: 3rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-10 { padding-top: 2.5rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pb-24 { padding-bottom: 6rem; }
.max-w-3xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-5xl { max-width: 64rem; margin-left: auto; margin-right: auto; }
.opacity-70 { opacity: .7; }
.opacity-70:hover { opacity: 1; }
.grayscale img, img.grayscale { filter: grayscale(1); }

@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .xl\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .xl\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- Obrázok "fill" (náhrada za Next/Image fill) ---------- */
.media-box { position: relative; overflow: hidden; }
.media-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-box .gradient-t { position: absolute; inset: 0; background: linear-gradient(to top, #000 0%, transparent 55%); }
.media-box .gradient-t-strong { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.5) 45%, transparent 100%); }
.media-box .gradient-l { position: absolute; inset: 0; background: linear-gradient(to left, transparent 0%, rgba(0,0,0,.2) 55%, rgba(0,0,0,.8) 100%); }
.media-box .gradient-r-hero { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.75) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.15) 100%); }
.h-48 { height: 12rem; } .h-64 { height: 16rem; }
.h-\[340px\] { height: 340px; } .min-h-\[340px\] { min-height: 340px; }
.h-\[500px\] { height: 500px; } .h-\[560px\] { height: 560px; }

/* ---------- Hero (domovská stránka) ---------- */
.hero-section { position: relative; min-height: 74vh; }
.hero-text { max-width: 640px; padding-top: 3rem; }
.hero-eyebrow { margin-bottom: 1.25rem; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .45em; color: var(--red-500); }
.hero-title { font-size: 3rem; font-weight: 900; line-height: 1; color: #fff; margin: 0; }
.hero-subtitle { margin-top: .75rem; font-size: 2.1rem; font-weight: 900; line-height: 1.25; color: var(--red-600); }
.hero-tags { margin-top: 1.25rem; font-size: 11px; text-transform: uppercase; letter-spacing: .28em; color: var(--red-400); }
.hero-desc { margin-top: 1.25rem; max-width: 620px; font-size: 1rem; line-height: 1.75; color: var(--gray-300); }
.hero-cards { margin-top: 4rem; margin-bottom: 5rem; display: flex; justify-content: center; }
.hero-cards-grid { display: grid; width: 100%; max-width: 1040px; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1280px) { .hero-cards-grid { grid-template-columns: repeat(2, 1fr); } }

.featured-article-card { position: relative; min-height: 390px; display: flex; flex-direction: column; }
.next-race-card { height: 100%; display: flex; flex-direction: column; }
.countdown { font-size: 1.5rem; font-weight: 900; color: var(--red-500); }

/* ---------- Novinky: featured + grid ---------- */
.featured-news { margin-bottom: 5rem; }
.featured-news-link { display: block; overflow: hidden; border-radius: 1rem; background: #000; box-shadow: 0 25px 60px rgba(0,0,0,.6); }
.featured-news-media { position: relative; height: 560px; }
.featured-news-text { position: absolute; inset: 0 auto 0 0; z-index: 10; display: flex; width: 100%; max-width: 42%; flex-direction: column; justify-content: flex-end; padding: 2.5rem; }
.featured-news-text .eyebrow { margin-bottom: .75rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .4em; color: var(--red-500); }
.featured-news-text .date { margin-bottom: .5rem; font-size: .875rem; color: var(--gray-400); }
.featured-news-text h2 { margin-bottom: 1rem; font-size: 2.25rem; font-weight: 900; line-height: 1.2; color: #fff; }
.featured-news-text .track { margin-bottom: 2rem; font-size: 1.125rem; font-weight: 600; color: var(--red-500); }

.news-card { display: flex; height: 100%; flex-direction: column; overflow: hidden; border-radius: 1rem; border: 1px solid var(--red-900); background-color: rgba(0,0,0,.70); backdrop-filter: blur(4px); transition: all .3s ease-out; }
.news-card:hover { transform: translateY(-6px); border-color: var(--red-500); box-shadow: 0 20px 50px rgba(220,38,38,.25); }
.news-card .news-card-media { position: relative; height: 12rem; overflow: hidden; }
.news-card .news-card-media img { transition: transform .7s ease; }
.news-card:hover .news-card-media img { transform: scale(1.05); }
.news-card .news-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.news-card .track-tag { display: inline-flex; width: fit-content; border-radius: 9999px; border: 1px solid rgba(220,38,38,.6); background: rgba(69,10,10,.4); padding: .25rem .75rem; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .25em; color: var(--red-400); }
.news-card .date { margin-top: .75rem; font-size: .75rem; color: var(--gray-400); }
.news-card h3 { margin-top: 1rem; font-size: 1.5rem; font-weight: 900; line-height: 1.25; color: #fff; transition: color .3s ease; }
.news-card:hover h3 { color: var(--red-500); }
.news-card .excerpt { margin-top: 1rem; font-size: .875rem; line-height: 1.75; color: var(--gray-400); }
.news-card .read-more-wrap { margin-top: auto; padding-top: 2rem; }
.news-card .divider { height: 1px; background: rgba(127,29,29,.4); margin-bottom: 1.25rem; }
.news-card .read-more { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; color: var(--red-500); }

/* ---------- Ikony na kartách (soundtrack / video / výsledek) ---------- */
.card-icon-row { display: inline-flex; align-items: center; gap: .5rem; }
.card-icon-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
    height: 2.25rem; min-width: 2.25rem; padding: 0 .65rem;
    border-radius: .6rem; border: 1px solid var(--red-900); background: rgba(0,0,0,.75);
    color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .02em;
    backdrop-filter: blur(4px); cursor: pointer; transition: all .2s ease-out;
}
.card-icon-btn:hover { border-color: var(--red-500); background: rgba(220,38,38,.2); transform: translateY(-2px); }
.card-icon-badge { cursor: default; }
.card-icon-badge:hover { border-color: var(--red-900); background: rgba(0,0,0,.75); transform: none; }

.news-card-wrap { display: flex; height: 100%; flex-direction: column; gap: .75rem; }
.news-card-wrap .news-card { flex: 1; }
.news-card-wrap .card-icon-row { padding: 0 .25rem; }

.featured-news-icons { position: absolute; top: 1.5rem; right: 1.5rem; z-index: 10; }

/* ---------- Výsledky: tabuľka ---------- */
table.results-table { width: 100%; min-width: 900px; border-collapse: collapse; }
table.results-table thead { background: linear-gradient(to right, #000, var(--red-950)); }
table.results-table th { padding: 1.25rem; text-align: left; }
table.results-table th.center, table.results-table td.center { text-align: center; }
table.results-table td { padding: 1.25rem; }
table.results-table tbody tr { border-bottom: 1px solid var(--red-900); transition: background .2s; }
table.results-table tbody tr:hover { background: rgba(69,10,10,.3); }
.pos-1 { color: #facc15; } .pos-2 { color: var(--gray-300); } .pos-3 { color: #d97706; }
.table-scroll { overflow-x: auto; }

/* ---------- Štatistiky / rekordy ---------- */
.stat-section-divider { margin-bottom: 2rem; height: 1px; background: linear-gradient(to right, transparent, var(--red-600), transparent); }
.section-heading { margin-bottom: 2rem; display: flex; align-items: center; justify-content: center; gap: 1rem; font-size: 1.875rem; font-weight: 900; }
.record-card { border-radius: 1rem; border: 1px solid var(--red-900); background: rgba(0,0,0,.70); backdrop-filter: blur(4px); padding: 1.5rem; transition: all .3s ease-out; }
.record-card:hover { border-color: var(--red-600); transform: translateY(-6px); }
.record-card .title { font-size: .875rem; text-transform: uppercase; letter-spacing: .18em; color: var(--red-500); }
.record-card .value { margin-top: 1.25rem; font-size: 3rem; font-weight: 900; color: #fff; }
.record-card .subtitle { margin-top: 1.25rem; font-size: 1.25rem; font-weight: 600; color: var(--red-400); }
.record-card .details { margin-top: .5rem; font-size: .875rem; color: var(--gray-400); }

/* ---------- Tým ---------- */
.avatar-circle { width: 6rem; height: 6rem; margin: 0 auto 1.5rem; border-radius: 9999px; border: 2px solid var(--red-500); display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 900; background-size: cover; background-position: top center; }
.avatar-photo { width: 8rem; height: 8rem; margin: 0 auto 1.5rem; border-radius: 9999px; border: 2px solid var(--red-500); object-fit: cover; }
.team-card:hover { transform: translateY(-6px); border-color: var(--red-500); }
.team-card { cursor: pointer; transition: all .3s ease-out; }
.team-card img { transition: transform .7s ease; }
.team-card:hover img { transform: scale(1.05); }

.team-card.founder-card {
    position: relative;
    z-index: 2;
    border: 1px solid rgba(220,38,38,.55);
    box-shadow: 0 0 26px rgba(220,38,38,.28);
}
@media (min-width: 768px) {
    .team-card.founder-card { transform: scale(1.06); }
    .team-card.founder-card:hover { transform: scale(1.08) translateY(-6px); border-color: var(--red-500); }
}
@media (prefers-reduced-motion: no-preference) {
    @keyframes founder-card-glow {
        0%, 100% { box-shadow: 0 0 22px rgba(220,38,38,.28); }
        50% { box-shadow: 0 0 44px rgba(220,38,38,.55); }
    }
    .team-card.founder-card { animation: founder-card-glow 3.2s ease-in-out infinite; }
}

.driver-modal-photo { width: 100%; max-height: 32rem; object-fit: contain; border-radius: 1rem; margin-bottom: 1.5rem; background: #000; }
.prose-box { max-width: 64rem; margin: 8rem auto 0; background: rgba(0,0,0,.70); border: 1px solid var(--red-900); border-radius: 1rem; padding: 3rem; text-align: center; }

/* ---------- O nás (prose) ---------- */
.prose-article p { font-size: 1.25rem; line-height: 2.5rem; color: var(--gray-300); margin: 0 0 2rem; }
.prose-article ul { list-style: none; padding: 0; margin: 0 0 3rem; color: var(--gray-300); font-size: 1.125rem; }
.prose-article ul li { margin-bottom: 1rem; }
.prose-article h2 { font-size: 3.75rem; font-weight: 700; color: var(--red-500); margin: 0 0 2.5rem; }
.prose-article h3 { font-size: 1.875rem; font-weight: 900; color: var(--red-500); margin: 0 0 1.5rem; }

/* ---------- Závody / kalendář ---------- */
.race-feature { overflow: hidden; margin-bottom: 2.5rem; padding: 0 !important; }
.race-feature-grid { display: grid; }
@media (min-width: 768px) { .race-feature-grid { grid-template-columns: repeat(2, 1fr); } }
.race-feature-left { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.race-card { overflow: hidden; background: rgba(0,0,0,.70); border: 1px solid var(--red-900); border-radius: 1rem; transition: all .3s ease-out; }
.race-card:hover { border-color: var(--red-600); transform: translateY(-6px); }
.race-card.completed { background: rgba(0,0,0,.70); border-color: var(--gray-800); }
.race-card-media { position: relative; height: 16rem; width: 100%; }
.race-card-media img { transition: transform .7s ease; }
.race-card:hover .race-card-media img { transform: scale(1.05); }
.race-card-media .badge-pos { position: absolute; top: 1rem; right: 1rem; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.race-card-media .info { position: absolute; bottom: 0; left: 0; padding: 1.5rem 1.5rem 0; }
.race-card-media .info .week { color: var(--red-500); font-size: .75rem; text-transform: uppercase; letter-spacing: .3em; margin-bottom: .5rem; }
.race-card-media .info h4 { font-size: 1.5rem; font-weight: 900; line-height: 1.25; margin: 0; }
.race-card-media .info .series { color: var(--gray-300); font-size: .875rem; margin-top: .5rem; }
.race-card-media .badge-index { position: absolute; top: 1rem; left: 1rem; width: auto; padding: 0 .6rem; height: 2.25rem; border-radius: .5rem; background: rgba(0,0,0,.75); border: 1px solid var(--red-600); color: #fff; font-weight: 900; font-size: .8rem; letter-spacing: .05em; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }

.archive-icon-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; border-radius: .75rem;
    border: 1px solid var(--gray-700); background: rgba(255,255,255,.03);
    font-size: 1.1rem; text-decoration: none; transition: all .3s ease-out;
}
.archive-icon-link:hover { border-color: var(--red-500); background: rgba(220,38,38,.1); transform: translateY(-2px); }
.country { display: flex; align-items: center; gap: .4rem; color: var(--gray-300); font-size: .875rem; margin-top: .5rem; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Sjednocené mapy okruhu v kartách ---------- */
.race-card-map-box { position: relative; height: 16rem; width: 100%; background: linear-gradient(180deg, #ececec, #d8d8d8); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.race-card-map-box img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.race-card.completed .race-card-map-box { filter: grayscale(1) brightness(.85); }

/* ---------- Hero: countdown / next race / podmínky ---------- */
.race-hero { position: relative; border-radius: 1.5rem; overflow: hidden; margin-bottom: 2.5rem; }
.race-hero-bg { position: absolute; inset: -4%; background-size: cover; background-position: center; transition: transform .2s ease-out; will-change: transform; }
.race-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.88)); }
.race-hero-content { position: relative; z-index: 1; padding: 2.5rem; display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .race-hero-content { grid-template-columns: 1fr 1.4fr 1fr; align-items: center; } }
.race-hero-eyebrow { color: var(--red-500); text-transform: uppercase; letter-spacing: .3em; font-size: .75rem; margin-bottom: .5rem; }
.race-hero-season { color: var(--red-500); font-weight: 900; letter-spacing: .2em; font-size: .875rem; }

.countdown-parts { display: flex; gap: .75rem; margin: 1rem 0; }
.countdown-part { text-align: center; min-width: 3rem; }
.countdown-part .num { font-size: 2.25rem; font-weight: 900; color: var(--red-500); line-height: 1; }
.countdown-part .lbl { font-size: .65rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .1em; }
.race-hero-countdown-caption { color: var(--gray-400); font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; }

.race-hero-center { text-align: center; }
.race-hero-center h2 { font-size: 3rem; font-weight: 900; font-style: italic; margin: 0; }
.race-hero-center .flag-row { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.race-hero-center .series-line { color: var(--gray-400); margin-top: .5rem; text-transform: uppercase; letter-spacing: .15em; font-size: .875rem; }

.weather-panel { background: rgba(0,0,0,.65); border: 1px solid var(--red-900); border-radius: 1rem; padding: 1.25rem; backdrop-filter: blur(6px); }
.weather-panel .weather-eyebrow { color: var(--red-500); text-transform: uppercase; letter-spacing: .2em; font-size: .7rem; margin-bottom: .75rem; }
.weather-panel .weather-main { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.weather-panel .weather-main .temp { font-size: 1.75rem; font-weight: 900; }
.weather-panel .weather-main .cond { color: var(--gray-400); font-size: .8rem; }
.weather-row { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--gray-400); margin-top: .5rem; }
.weather-row .weather-label { width: 5.5rem; flex-shrink: 0; }
.weather-row .weather-bar { flex: 1; height: 4px; background: rgba(255,255,255,.1); border-radius: 2px; position: relative; overflow: hidden; }
.weather-row .weather-bar span { position: absolute; inset: 0 auto 0 0; background: var(--red-500); border-radius: 2px; }
.weather-row .weather-value { width: 3rem; text-align: right; color: #fff; }
.weather-panel .weather-updated { color: var(--gray-600); font-size: .65rem; margin-top: 1rem; }

/* ---------- Season timeline ---------- */
.timeline-frame-rule { height: 3px; border-radius: 2px; margin: 0 1rem; background: linear-gradient(90deg, transparent, var(--red-600), transparent); box-shadow: 0 0 16px rgba(220,38,38,.5); }
.season-timeline { position: relative; padding: 2.25rem 2.75rem 0; margin: 1.5rem 0; overflow-x: auto; }
.season-timeline .timeline-line {
    position: absolute; top: 3.15rem; left: 3%; right: 3%; height: 8px; border-radius: 4px;
    background: linear-gradient(90deg, var(--gray-800), var(--gray-700));
    box-shadow: inset 0 0 3px rgba(0,0,0,.7), 0 0 10px rgba(255,255,255,.04);
}
.season-timeline .timeline-progress {
    position: absolute; top: 3.15rem; left: 3%; height: 8px; border-radius: 4px;
    background: linear-gradient(90deg, var(--green-500), var(--red-500));
    box-shadow: 0 0 18px rgba(34,197,94,.65), 0 0 8px rgba(220,38,38,.65);
    background-size: 200% 100%;
    transition: width 1s ease;
}
.timeline-endpoint { position: absolute; top: 2.6rem; font-size: .7rem; font-weight: 900; letter-spacing: .15em; color: var(--gray-500); }
.timeline-endpoint.start { left: 0; }
.timeline-endpoint.finish { right: 0; }
.season-timeline .timeline-nodes { position: relative; display: flex; justify-content: space-between; gap: .5rem; min-width: 640px; }
.timeline-node { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 0; transition: transform .2s ease; }
.timeline-node:hover { transform: translateY(-3px); }
.timeline-node .dot { width: 2rem; height: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .875rem; font-weight: 900; border: 3px solid var(--gray-700); background: #000; z-index: 1; color: var(--gray-500); }
.timeline-node.done .dot { border-color: var(--green-500); color: var(--green-400); box-shadow: 0 0 10px rgba(34,197,94,.5); }
.timeline-node.current .dot { border-color: var(--red-500); box-shadow: 0 0 14px rgba(220,38,38,.7); }
.timeline-node .track { margin-top: .6rem; font-weight: 700; font-size: .75rem; text-transform: uppercase; text-align: center; color: var(--gray-400); }
.timeline-node .date { font-size: .65rem; color: var(--gray-600); }
.timeline-node.done .track { color: var(--green-400); }
.timeline-node.current .track { color: var(--red-500); }

.timeline-car-wrap {
    position: absolute; top: 3.15rem; transform: translate(-50%, -50%); z-index: 2;
    transition: left 1.8s cubic-bezier(.45,.05,.15,1);
}
.timeline-car-dot {
    width: 4.5rem; height: auto; display: block;
    -webkit-mask-image: radial-gradient(ellipse 88% 82% at center, black 60%, transparent 100%);
    mask-image: radial-gradient(ellipse 88% 82% at center, black 60%, transparent 100%);
    filter: brightness(1.55) contrast(1.35) drop-shadow(0 0 8px rgba(220,38,38,.9));
}
.timeline-legend { display: flex; gap: 2rem; justify-content: center; margin: 1.5rem 0 3.75rem; font-size: .75rem; color: var(--gray-400); flex-wrap: wrap; }
.timeline-legend .dot-swatch { width: .6rem; height: .6rem; border-radius: 50%; display: inline-block; margin-right: .4rem; }

/* ---------- Season race cards (status variant) ---------- */
.season-timeline, .season-cards-row { scrollbar-width: none; -ms-overflow-style: none; }
.season-timeline::-webkit-scrollbar, .season-cards-row::-webkit-scrollbar { display: none; }

.season-scroll-wrap { position: relative; }
.season-cards-row { display: flex; gap: 1.25rem; overflow-x: auto; padding-bottom: .5rem; }
.season-cards-row .race-card { flex: 1 0 15rem; min-width: 15rem; }
.season-cards-row .race-card:hover { transform: translateY(-6px); border-color: var(--red-600); }
.season-cards-row .race-card:hover.is-active-scroll { transform: translateY(-6px) scale(1.02); }
.race-card.status-done { border-left: 3px solid var(--green-500); box-shadow: 0 0 10px rgba(34,197,94,.18); }
.race-card.status-current { border-left: 3px solid var(--red-500); box-shadow: 0 0 24px rgba(220,38,38,.25); }
.race-card.status-upcoming { border-left: 3px solid var(--gray-700); }
.race-card.is-active-scroll { transform: scale(1.02); box-shadow: 0 0 32px rgba(220,38,38,.4); border-color: var(--red-500); }
.race-card.is-active-scroll .race-card-media img { transform: scale(1.06); }
.race-card-status-pill { text-align: center; padding: .5rem; font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; border-radius: .5rem; margin-top: 1rem; }
.race-card-status-pill.done { background: rgba(34,197,94,.1); color: var(--green-400); border: 1px solid rgba(34,197,94,.3); }
.race-card-status-pill.current { background: rgba(220,38,38,.15); color: #fff; border: 1px solid var(--red-600); }
.race-card-status-pill.upcoming { background: rgba(255,255,255,.05); color: var(--gray-400); border: 1px solid var(--gray-700); }

.scroll-edge-hint {
    position: absolute; top: 0; bottom: .5rem; width: 3.5rem; z-index: 3;
    display: flex; align-items: center; pointer-events: none;
    opacity: 0; transition: opacity .3s ease;
}
.scroll-edge-hint.visible { opacity: 1; }
.scroll-edge-hint.left { left: 0; justify-content: flex-start; background: linear-gradient(90deg, rgba(10,10,10,.85), transparent); padding-left: .5rem; }
.scroll-edge-hint.right { right: 0; justify-content: flex-end; background: linear-gradient(270deg, rgba(10,10,10,.85), transparent); padding-right: .5rem; }
.scroll-edge-hint .chevron { color: var(--red-500); font-size: 1.25rem; filter: drop-shadow(0 0 6px rgba(220,38,38,.8)); }

/* ---------- Živé prvky: pulz, dýchání, tikání, jízda ---------- */
@media (prefers-reduced-motion: no-preference) {
    @keyframes pulse-current-card {
        0%, 100% { box-shadow: 0 0 24px rgba(220,38,38,.25); }
        50% { box-shadow: 0 0 42px rgba(220,38,38,.55); }
    }
    .race-card.status-current { animation: pulse-current-card 2.4s ease-in-out infinite; }

    @keyframes glow-done-card {
        0%, 100% { box-shadow: 0 0 10px rgba(34,197,94,.18); }
        50% { box-shadow: 0 0 20px rgba(34,197,94,.35); }
    }
    .race-card.status-done { animation: glow-done-card 3.6s ease-in-out infinite; }

    @keyframes breathe-upcoming-card {
        0%, 100% { opacity: .82; }
        50% { opacity: 1; }
    }
    .race-card.status-upcoming { animation: breathe-upcoming-card 4s ease-in-out infinite; }

    @keyframes pulse-current-car-dot {
        0%, 100% { filter: drop-shadow(0 0 8px rgba(220,38,38,.8)); transform: scale(1); }
        50% { filter: drop-shadow(0 0 20px rgba(220,38,38,1)); transform: scale(1.15); }
    }
    .timeline-car-dot { animation: pulse-current-car-dot 1.6s ease-in-out infinite; }

    @keyframes pulse-current-ring {
        0%, 100% { box-shadow: 0 0 14px rgba(220,38,38,.7); }
        50% { box-shadow: 0 0 26px rgba(220,38,38,1); }
    }
    .timeline-node.current .dot { animation: pulse-current-ring 1.7s ease-in-out infinite; }

    @keyframes frame-rule-glow {
        0%, 100% { opacity: .6; }
        50% { opacity: 1; }
    }
    .timeline-frame-rule { animation: frame-rule-glow 2.8s ease-in-out infinite; }

    @keyframes chevron-nudge {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(4px); }
    }
    .scroll-edge-hint.right .chevron { animation: chevron-nudge 1.4s ease-in-out infinite; }
    .scroll-edge-hint.left .chevron { animation: chevron-nudge 1.4s ease-in-out infinite reverse; }

    @keyframes flow-progress {
        0% { background-position: 0% 0; }
        100% { background-position: -200% 0; }
    }
    .timeline-progress { animation: flow-progress 2.5s linear infinite; }

    @keyframes tick-second {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.18); }
    }
    .countdown-part:last-child .num { animation: tick-second 1s steps(1) infinite; }
}
.race-card-body { padding: 1.5rem; }
.race-card-body .grid-2 { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .race-card-body .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.race-card:hover, .race-feature:hover { border-color: var(--red-600); }

/* ---------- Modál s informacemi o trati ---------- */
.track-modal-backdrop { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.75); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.track-modal { width: 100%; max-width: 40rem; max-height: 90vh; overflow-y: auto; background: rgba(10,10,10,.97); border: 1px solid var(--red-900); border-radius: 1.25rem; }
.track-modal-media { position: relative; height: 240px; }
.track-modal-media img { width: 100%; height: 100%; object-fit: cover; }
.track-modal-close { position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; border-radius: 9999px; background: rgba(0,0,0,.6); border: 1px solid var(--red-600); color: #fff; font-size: 1.125rem; cursor: pointer; transition: background .2s; }
.track-modal-close:hover { background: var(--red-600); }
.track-modal-media-info { position: absolute; bottom: 0; left: 0; padding: 1.5rem; }
.track-modal-media-info .week { color: var(--red-500); font-size: .75rem; text-transform: uppercase; letter-spacing: .3em; margin-bottom: .5rem; }
.track-modal-media-info h3 { font-size: 1.875rem; font-weight: 900; margin: 0; }
.track-modal-body { padding: 2rem; }
.track-modal-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 640px) { .track-modal-facts { grid-template-columns: repeat(3, 1fr); } }
.track-modal-facts .fact { text-align: center; }
.track-modal-facts .fact .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .2em; color: var(--gray-500); }
.track-modal-facts .fact .value { margin-top: .5rem; font-size: 1.5rem; font-weight: 900; color: #fff; }
.track-modal-note { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--red-900); color: var(--gray-400); line-height: 1.7; }
.track-modal-subheading { margin-bottom: 1rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .2em; color: var(--red-500); font-weight: 700; }
.track-modal-map { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--red-900); }
.track-modal-map img { width: 100%; max-height: 320px; object-fit: contain; background: #0a0a0a; border-radius: .75rem; padding: 1rem; }
.track-modal-gallery { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--red-900); }
.track-modal-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .track-modal-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.track-modal-gallery-grid figure { margin: 0; border-radius: .75rem; overflow: hidden; border: 1px solid var(--red-900); }
.track-modal-gallery-grid img { width: 100%; height: 130px; object-fit: cover; display: block; }
.track-modal-gallery-grid figcaption { padding: .5rem .75rem; font-size: .75rem; color: var(--gray-400); display: flex; justify-content: space-between; gap: .5rem; }
.track-modal-source { color: var(--red-500); flex-shrink: 0; }
.track-modal-source:hover { color: var(--red-400); }

/* ---------- Hudba ---------- */
.music-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .music-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .music-grid { grid-template-columns: repeat(3, 1fr); } }
.music-card { background: rgba(0,0,0,.70); border: 1px solid var(--red-900); border-radius: 1rem; overflow: hidden; transition: all .3s ease-out; }
.music-card:hover { border-color: var(--red-500); transform: translateY(-6px); box-shadow: 0 20px 50px rgba(220,38,38,.25); }
.music-card img { width: 100%; height: 500px; object-fit: cover; transition: transform .7s ease; }
.music-card:hover img { transform: scale(1.05); }
.music-card .body { padding: 1.5rem; }
.music-card .eyebrow { color: var(--red-500); text-transform: uppercase; letter-spacing: .25em; font-size: .875rem; margin-bottom: .75rem; }
.music-card h2 { font-size: 1.875rem; font-weight: 900; margin: 0 0 1.5rem; }
.music-card .play-btn { width: 100%; background: var(--red-600); border: none; color: #fff; transition: background .2s; padding: .75rem 0; border-radius: .75rem; font-weight: 700; margin-bottom: 1rem; }
.music-card .play-btn:hover { background: var(--red-700); }
.music-card .yt-link { display: inline-block; color: var(--red-500); }
.music-card .yt-link:hover { color: var(--red-400); }

.global-player { position: fixed; bottom: 0; left: 0; width: 100%; z-index: 9999; background: rgba(0,0,0,.95); border-top: 1px solid var(--red-600); backdrop-filter: blur(12px); }
.global-player .inner { max-width: 80rem; margin: 0 auto; padding: 1rem 1.5rem; }
.global-player .row { display: flex; align-items: center; gap: 1rem; }
.global-player .cover { width: 5rem; height: 5rem; object-fit: cover; border-radius: .75rem; border: 1px solid var(--red-700); }
.global-player .info { flex: 1; min-width: 0; }
.global-player .eyebrow { color: var(--red-500); text-transform: uppercase; letter-spacing: .3em; font-size: .75rem; }
.global-player h3 { font-size: 1.25rem; font-weight: 900; margin: .1rem 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.global-player .up-next { color: var(--gray-400); font-size: .875rem; margin-top: .25rem; }
.global-player .progress-track { width: 100%; height: .5rem; background: var(--gray-800); border-radius: 9999px; overflow: hidden; cursor: pointer; margin-top: .75rem; }
.global-player .progress-fill { height: 100%; background: var(--red-600); transition: width .1s linear; }
.global-player .times { display: flex; justify-content: space-between; font-size: .75rem; color: var(--gray-400); margin-top: .25rem; }
.global-player .controls { display: flex; align-items: center; gap: .5rem; }
.global-player .controls button { border: 1px solid var(--red-600); background: transparent; padding: .75rem 1rem; border-radius: .75rem; color: #fff; transition: background .2s; }
.global-player .controls button:hover { background: var(--red-600); }
.global-player .controls button.solid { background: var(--red-600); }
.global-player .controls button.solid:hover { background: var(--red-700); }
.global-player .controls button.active { background: var(--red-600); border-color: var(--red-600); }
.global-player .volume { width: 6rem; accent-color: var(--red-600); }

@media (max-width: 640px) {
    .global-player .inner { padding: .75rem 1rem; }
    .global-player .row { flex-wrap: wrap; row-gap: .75rem; }
    .global-player .cover { width: 3rem; height: 3rem; }
    .global-player .info { flex-basis: 100%; order: 1; }
    .global-player .controls { flex-basis: 100%; order: 2; flex-wrap: wrap; justify-content: center; gap: .4rem; }
    .global-player .controls button { padding: .5rem .7rem; }
    .global-player .volume { display: none; }
}

/* ---------- Detail reportáže (novinky/{slug}) ---------- */
.race-report-wrap { max-width: 72rem; margin: 0 auto; padding: 8rem 1.5rem 6rem; }
.race-report-hero { text-align: center; margin-bottom: 4rem; }
.race-report-hero .eyebrow { color: var(--red-500); text-transform: uppercase; letter-spacing: .4em; margin-bottom: 1rem; font-size: .875rem; }
.race-report-hero h1 { font-size: 3.5rem; font-weight: 900; margin: 0 0 1.5rem; line-height: 1.1; }
.race-report-hero .excerpt { color: var(--gray-400); font-size: 1.25rem; max-width: 48rem; margin: 0 auto; }
.race-report-hero img { width: 100%; max-width: 64rem; margin: 3rem auto; border-radius: 1rem; border: 1px solid var(--red-900); object-fit: cover; }
.race-summary { margin-bottom: 3rem; display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .race-summary { grid-template-columns: repeat(4, 1fr); } }
.race-summary .box { border-radius: 1rem; border: 1px solid var(--red-900); background: rgba(0,0,0,.70); padding: 1.5rem; text-align: center; }
.race-summary .box .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .25em; color: var(--gray-500); }
.race-summary .box .value { margin-top: .75rem; font-size: 3rem; font-weight: 900; }
.race-summary .box .value.red { color: var(--red-500); }
.race-summary .box .value-sm { margin-top: .75rem; font-size: 1.25rem; font-weight: 700; }
.race-report-body { background: rgba(0,0,0,.70); border: 1px solid var(--red-900); border-radius: 1rem; padding: 3rem; max-width: 64rem; margin: 0 auto; }
.race-content { font-size: 1.25rem; line-height: 2.2; color: var(--gray-200, #e5e7eb); }
.race-content p { margin: 0 0 1.4rem; }
.race-content p:last-child { margin-bottom: 0; }
.race-content .article-inline-image { display: block; width: 100%; height: auto; border-radius: 1rem; border: 1px solid var(--red-900); margin: 0 0 1.4rem; }
.race-data-grid { margin-top: 4rem; border-top: 1px solid var(--red-900); padding-top: 2.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .race-data-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .race-data-grid { grid-template-columns: repeat(5, 1fr); } }
.race-data-item .label { color: var(--gray-500); text-transform: uppercase; font-size: .875rem; }
.race-data-item .value { font-size: 1.25rem; font-weight: 700; margin-top: .1rem; }
.race-section { margin-top: 4rem; border-top: 1px solid var(--red-900); padding-top: 2.5rem; }
.race-reaction blockquote { border-left: 4px solid var(--red-500); padding: .5rem 0 .5rem 1.5rem; margin: 0; }
.race-reaction blockquote p { font-size: 1.5rem; font-style: italic; line-height: 2.5rem; color: var(--gray-200, #e5e7eb); margin: 0; }
.race-reaction .signature { margin-top: 1rem; font-size: .875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--red-500); }
.text-gray-200 { color: #e5e7eb; }

/* ---------- Prihlásené odkazy / drobnosti ---------- */
.link-red { color: var(--red-500); font-weight: 700; }
.link-red:hover { color: var(--red-400); }

/* ================= Fáza 3: Admin panel ================= */

.admin-shell {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,.85), rgba(0,0,0,.85)), url('../../hero-bg.png') center/cover fixed;
    color: #fff;
}

.admin-sidebar { width: 20rem; flex-shrink: 0; border-right: 1px solid var(--red-900); background: rgba(0,0,0,.80); backdrop-filter: blur(12px); }
.admin-sidebar-brand { padding: 2rem; border-bottom: 1px solid var(--red-900); text-align: center; }
.admin-sidebar-brand h2 { font-size: 3rem; font-weight: 900; color: var(--red-500); margin: 0; }
.admin-sidebar-brand p { color: var(--gray-400); text-transform: uppercase; letter-spacing: .3em; font-size: .75rem; margin: 0; }
.admin-sidebar-brand .control-center { color: var(--red-500); margin-top: 1.5rem; }

.admin-nav { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.admin-nav a { display: block; border: 1px solid var(--red-900); border-radius: .75rem; padding: 1rem; color: #fff; transition: all .2s ease; }
.admin-nav a:hover, .admin-nav a.active { border-color: var(--red-500); background: rgba(69,10,10,.2); }
.admin-nav a.admin-nav-blue { border-color: #1e3a8a; }
.admin-nav a.admin-nav-blue:hover, .admin-nav a.admin-nav-blue.active { border-color: #3b82f6; }
.admin-nav a.admin-nav-green { border-color: #14532d; }
.admin-nav a.admin-nav-green:hover, .admin-nav a.admin-nav-green.active { border-color: #22c55e; }

.admin-content { flex: 1; min-width: 0; }
.admin-topbar { border-bottom: 1px solid var(--red-900); padding: 2rem 2.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.admin-topbar .eyebrow { color: var(--red-500); text-transform: uppercase; letter-spacing: .4em; font-size: .875rem; margin: 0; }
.admin-topbar h1 { font-size: 3rem; font-weight: 900; margin: .25rem 0 0; }
.admin-page { padding: 2.5rem; max-width: 1400px; }

.admin-widget { background: rgba(0,0,0,.70); border: 1px solid var(--red-900); border-radius: 1rem; padding: 1.5rem; transition: all .3s ease-out; }
.admin-widget.padded-8 { padding: 2rem; }
.admin-widget:hover.hoverable { border-color: var(--red-500); }
.admin-widget-grid { display: grid; }
@media (min-width: 1024px) { .admin-widget-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.admin-widget-grid > div { padding: 2rem; }
.admin-divide-x > div { padding: 1.5rem; }
.admin-divide-x > div + div { border-top: 1px solid var(--red-900); }
@media (min-width: 1024px) {
    .admin-divide-x { display: grid; grid-template-columns: repeat(3, 1fr); }
    .admin-divide-x > div + div { border-top: none; border-left: 1px solid var(--red-900); }
}

.admin-stat { background: rgba(0,0,0,.70); border: 1px solid var(--red-900); border-radius: 1rem; padding: 1.5rem; transition: all .3s ease-out; }
.admin-stat:hover { border-color: var(--red-500); }
.admin-stat .stat-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; color: var(--gray-400); text-transform: uppercase; font-size: .75rem; }
.admin-stat .stat-num { font-size: 3rem; font-weight: 900; margin: 0; }

.admin-list { display: flex; flex-direction: column; gap: 1rem; }
.admin-list-item { border: 1px solid var(--red-900); border-radius: .75rem; padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.admin-list-item h3 { margin: 0; font-weight: 700; font-size: 1.125rem; }
.admin-list-item .meta { color: var(--gray-500); margin: 0; }
.admin-list-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

.btn-outline { display: inline-flex; align-items: center; justify-content: center; border-radius: 1rem; padding: .5rem 1rem; font-weight: 600; border: 1px solid; transition: all .3s ease-out; background: transparent; color: #fff; cursor: pointer; font-size: .875rem; }
.btn-yellow { border-color: #ca8a04; } .btn-yellow:hover { background: #ca8a04; }
.btn-green { border-color: #16a34a; } .btn-green:hover { background: #16a34a; }
.btn-red { border-color: var(--red-600); } .btn-red:hover { background: var(--red-600); }
.btn-gray { border-color: var(--gray-700); } .btn-gray:hover { background: var(--gray-800); }

.admin-form { display: grid; gap: 1rem; }
.admin-form.spaced { gap: 1.5rem; }
.admin-form label { display: block; margin-bottom: .5rem; color: var(--gray-400); font-weight: 700; }
.admin-form input[type=text], .admin-form input[type=email], .admin-form input[type=password],
.admin-form input[type=date], .admin-form input[type=time], .admin-form input[type=number],
.admin-form input[type=file], .admin-form input[type=url], .admin-form textarea, .admin-form select {
    width: 100%;
    background: rgba(0,0,0,.7);
    border: 1px solid var(--red-900);
    border-radius: .75rem;
    padding: 1rem;
    color: #fff;
    font-size: 1rem;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { outline: none; border-color: var(--red-500); }
.admin-form textarea { min-height: 8rem; resize: vertical; }
.admin-form textarea.tall { min-height: 20rem; }
.admin-form-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Nativní <input type=file> se stylováním (padding/border/background) napříč prohlížeči chová
   nespolehlivě — kliknutí na "vycpanou" plochu okolo malého vnitřního tlačítka nemusí spolehlivě
   otevřít dialog. Standardní robustní vzorec: skrytý input (ne display:none, jinak by přestal jít
   ovládat přes klávesnici/label) + label stylovaný jako tlačítko, který ho spouští nativně. */
.file-upload-field { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.file-upload-field input[type=file] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.file-upload-button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    background: rgba(0,0,0,.7);
    border: 1px solid var(--red-900);
    border-radius: .75rem;
    padding: .85rem 1.25rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 0;
    transition: border-color .2s ease-out;
}
.file-upload-button:hover { border-color: var(--red-500); }
.file-upload-filename { color: var(--gray-400); font-size: .875rem; }

.admin-search { width: 100%; background: #000; border: 1px solid var(--red-900); border-radius: .75rem; padding: 1rem; color: #fff; margin-bottom: 2rem; }

.season-tools { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--red-900); }
.season-tool-form { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.season-tool-form label { color: var(--gray-500); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin-right: .25rem; }
.season-tool-form select, .season-tool-form input[type=text], .season-tool-form input[type=number] {
    background: rgba(0,0,0,.7);
    border: 1px solid var(--red-900);
    border-radius: .5rem;
    padding: .5rem .75rem;
    color: #fff;
    font-size: .875rem;
}

.filter-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
@media (max-width: 900px) { .filter-bar { grid-template-columns: 1fr; } }
.filter-field label { display: block; margin-bottom: .5rem; color: var(--gray-400); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.filter-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(0,0,0,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ef4444'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat right 1rem center;
    background-size: 1rem;
    border: 1px solid var(--red-900);
    border-radius: .75rem;
    padding: .75rem 2.5rem .75rem 1rem;
    color: #fff;
    font-size: .95rem;
    cursor: pointer;
    transition: border-color .2s ease-out;
}
.filter-select:hover { border-color: var(--red-700); }
.filter-select:focus { outline: none; border-color: var(--red-500); }
.filter-select option { background: #18181b; color: #fff; }
.filter-input {
    width: 100%;
    background: rgba(0,0,0,.7);
    border: 1px solid var(--red-900);
    border-radius: .75rem;
    padding: .75rem 1rem;
    color: #fff;
    font-size: .95rem;
    transition: border-color .2s ease-out;
}
.filter-input::placeholder { color: var(--gray-500); }
.filter-input:hover { border-color: var(--red-700); }
.filter-input:focus { outline: none; border-color: var(--red-500); }
.filter-checkbox { display: flex; align-items: center; gap: .625rem; margin-bottom: 1.5rem; cursor: pointer; color: var(--gray-400); font-weight: 600; }
.filter-checkbox input[type=checkbox] { width: 1.15rem; height: 1.15rem; accent-color: var(--red-600); cursor: pointer; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: .75rem 1.25rem .75rem 0; border-bottom: 1px solid var(--red-900); color: var(--gray-400); font-weight: 600; white-space: nowrap; }
.admin-table td { padding: 1rem 1.25rem 1rem 0; border-bottom: 1px solid rgba(127,29,29,.3); }

.flash { border-radius: .75rem; padding: 1rem 1.5rem; margin-bottom: 1.5rem; font-weight: 600; }
.flash-success { background: rgba(34,197,94,.15); border: 1px solid #22c55e; color: #4ade80; }
.flash-error { background: rgba(239,68,68,.15); border: 1px solid #dc2626; color: #f87171; }

.media-gallery { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .media-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .media-gallery { grid-template-columns: repeat(4, 1fr); } }
.media-gallery-item { border: 1px solid var(--red-900); border-radius: .75rem; overflow: hidden; }
.media-gallery-item img { width: 100%; height: 13rem; object-fit: cover; }
.media-gallery-item .body { padding: 1rem; }
.media-gallery-item .filename { font-size: .75rem; color: var(--gray-500); word-break: break-all; margin-bottom: .75rem; }

@media (max-width: 767px) {
    .site-footer .footer-row { flex-direction: column; text-align: center; }
}
