/* ── Hero Cinematic ── */
.hero-cinematic {
    position: relative;
    min-height: 50vh;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    overflow: hidden;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .hero-cinematic {
        grid-template-columns: 5fr 7fr;
        min-height: 45vh;
    }
}

/* Mobil: hero content nahoře, visual panel skrytý */
.hero-cinematic.pwa-visual-only {
    min-height: auto;
}

@media (min-width: 768px) {
    .hero-cinematic.pwa-visual-only {
        display: grid;
        min-height: 45vh;
    }
}

.hero-cinematic__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-cinematic__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35) contrast(1.1) saturate(1.2);
}

@media (min-width: 768px) {
    .hero-cinematic__bg img {
        mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.15) 70%, transparent 100%);
        -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.15) 70%, transparent 100%);
    }
}

.hero-cinematic__bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--t-body, #0a0a12) 0%, transparent 100%);
    z-index: 1;
}

.hero-cinematic__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, transparent 50%),
        linear-gradient(to bottom, transparent 50%, var(--t-body, #0a0a12) 100%);
    pointer-events: none;
}

/* ── Hero Content — levý sloupec ── */
.hero-cinematic__content {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 3vw, 2rem) 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(0.75rem, 2vw, 1.25rem);
    justify-content: center;
    min-width: 0;
}

/* ── Hero Title ── */
.hero-cinematic__title {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.hero-title__main {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #fff;
    line-height: 0.9;
}

.hero-title__sub {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1rem, 2vw + 0.3rem, 1.75rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--t-accent, #ef4444);
    opacity: 0.85;
    margin-top: 0.15em;
}

/* ── Hero Visual Panel — pravý sloupec (desktop only) ── */
.hero-cinematic__visual {
    position: relative;
    z-index: 3;
    cursor: pointer;
    overflow: hidden;
    display: none;
}

@media (min-width: 768px) {
    .hero-cinematic__visual {
        display: block;
        margin: 0.75rem 0.75rem 0.75rem 0;
        border-radius: var(--radius-lg);
    }
}

.hero-article__img-wrap {
    position: absolute;
    inset: 0;
}

.hero-article__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.4) contrast(1.1) brightness(0.7);
    transition: filter 0.7s ease, transform 0.8s ease;
}

@media (hover: hover) {
    .hero-cinematic__visual:hover .hero-article__img {
        filter: grayscale(0) contrast(1.05) brightness(0.8);
        transform: scale(1.03);
    }
}

.hero-article__img-fade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    border-radius: var(--radius-lg);
}

.hero-article__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-article__tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--t-accent, #ef4444);
    background: var(--t-accent-muted, rgba(239, 68, 68, 0.15));
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.3rem 0.85rem;
    width: fit-content;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-article__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 2vw + 0.5rem, 2.5rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--t-hero-text, #fff);
    max-width: 30ch;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
    transition: color 0.3s ease;
}

@media (hover: hover) {
    .hero-cinematic__visual:hover .hero-article__title {
        color: #fca5a5;
    }
}

.hero-article__excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--t-hero-excerpt, rgba(209, 213, 219, 0.85));
    max-width: 50ch;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* ── Hero Badge — Liquid Glass ── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    width: fit-content;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-badge__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--t-accent, #ef4444);
    box-shadow: 0 0 8px currentColor;
}

.hero-badge__text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

@keyframes badge-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.85);
    }
}

/* ── Hero Taglines ── */
.hero-taglines {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

@media (max-width: 767px) {
    .hero-taglines {
        display: none;
    }
}

.hero-tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.8rem, 1vw + 0.3rem, 1rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
    margin: 0;
}

.hero-tagline--accent {
    color: var(--t-accent, #ef4444);
    font-weight: 500;
    opacity: 0.75;
}

/* ── Equalizer Animation ── */
.hero-eq {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 24px;
    margin-left: 0.25rem;
}

.hero-eq__bar {
    width: 3px;
    border-radius: 2px;
    background: var(--t-accent, #ef4444);
    opacity: 0.6;
    animation: eq-bounce 0.8s ease-in-out infinite;
}

@media (max-width: 767px) {
    .hero-badge {
        gap: 0.5rem;
    }

    .hero-eq {
        height: 16px;
        margin-top: 0;
        gap: 2px;
    }

    .hero-eq__bar {
        width: 2px;
    }
}

.hero-eq__bar:nth-child(1) {
    height: 40%;
    animation-delay: 0s;
}

.hero-eq__bar:nth-child(2) {
    height: 70%;
    animation-delay: 0.1s;
}

.hero-eq__bar:nth-child(3) {
    height: 50%;
    animation-delay: 0.2s;
}

.hero-eq__bar:nth-child(4) {
    height: 90%;
    animation-delay: 0.15s;
}

.hero-eq__bar:nth-child(5) {
    height: 60%;
    animation-delay: 0.25s;
}

.hero-eq__bar:nth-child(6) {
    height: 80%;
    animation-delay: 0.05s;
}

.hero-eq__bar:nth-child(7) {
    height: 45%;
    animation-delay: 0.3s;
}

@keyframes eq-bounce {

    0%,
    100% {
        transform: scaleY(0.3);
    }

    50% {
        transform: scaleY(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-eq__bar {
        animation: none;
    }

    .hero-badge__pulse {
        animation: none;
    }
}

/* ══════════════════════════════════════════════
   Hero Actions — Form + Loading
   ══════════════════════════════════════════════ */
.hero-cinematic__actions {
    width: 100%;
    margin-top: clamp(0.5rem, 1.5vw, 1rem);
    height: 80px;
    overflow: hidden;
}

/* ── Form ── */
.hero-form-area {
    max-width: 500px;
    height: 80px;
    display: flex;
    align-items: center;
}

.hero-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 500px;
}

.hero-form__input {
    flex: 1;
    height: 44px;
    padding: 0 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.hero-form__input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.hero-form__input:focus {
    border-color: var(--t-accent, #ef4444);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

.hero-form__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--t-accent, #ef4444);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

@media (hover: hover) {
    .hero-form__btn:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
    }
}

.hero-form__btn:active {
    transform: scale(0.97);
}

.hero-form__expand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 44px;
    padding: 0 1rem;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color var(--duration-base);
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

@media (hover: hover) {
    .hero-form__expand:hover {
        color: rgba(255, 255, 255, 0.9);
    }
}

.hero-input--shake {
    animation: hero-shake 0.4s ease-in-out;
}

@keyframes hero-shake {

    0%,
    100% {
        transform: translateX(0)
    }

    20% {
        transform: translateX(-6px)
    }

    40% {
        transform: translateX(6px)
    }

    60% {
        transform: translateX(-4px)
    }

    80% {
        transform: translateX(4px)
    }
}

/* ── Loading Area ── */
.hero-loading-area {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    height: 80px;
}

/* ── Progress Bar ── */
.hero-loading__progress-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.hero-loading__progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--t-accent, #ef4444), #f97316, var(--t-accent, #ef4444));
    background-size: 200% 100%;
    border-radius: 2px;
    position: relative;
    z-index: 1;
    animation: hero-progress-glow 2s ease-in-out infinite;
}

.hero-loading__progress-glow {
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 7px;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.4), transparent);
    background-size: 30% 100%;
    animation: hero-progress-shimmer 1.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hero-progress-glow {

    0%,
    100% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }
}

@keyframes hero-progress-shimmer {
    0% {
        background-position: -100% 0
    }

    100% {
        background-position: 400% 0
    }
}

/* ── Status Headline ── */
.hero-loading__status {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
    color: var(--t-accent, #ef4444);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    animation: hero-status-fade 0.4s ease-out;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.hero-loading__status--success {
    color: #22c55e;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.hero-loading__status--error {
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

@keyframes hero-status-fade {
    from {
        opacity: 0;
        transform: translateY(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Live Console ── */
.hero-loading__console {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.hero-console__line {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.5);
}

.hero-console__line:nth-child(1) {
    opacity: 0.55;
}

.hero-console__line:nth-child(2) {
    opacity: 0.3;
}

.hero-console__line:nth-child(3) {
    opacity: 0.12;
}

/* ══════════════════════════════════════════════
   Ticker Bar
   ══════════════════════════════════════════════ */
.ticker-bar {
    overflow: hidden;
    white-space: nowrap;
    background: var(--t-card-bg, rgba(255, 255, 255, 0.03));
    border-top: 1px solid var(--t-header-border, rgba(255, 255, 255, 0.06));
    border-bottom: 1px solid var(--t-header-border, rgba(255, 255, 255, 0.06));
    padding: 0.4rem 0;
    position: relative;
}

.ticker-bar__track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 90s linear infinite;
    will-change: transform;
}

.ticker-bar__content {
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--t-accent, rgba(239, 68, 68, 0.6));
}

.ticker-bar__separator {
    display: inline-block;
    margin: 0 2rem;
    color: var(--t-text-muted, rgba(255, 255, 255, 0.15));
}

@keyframes ticker-scroll {
    to {
        transform: translateX(-50%);
    }
}

.ticker-bar::before,
.ticker-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.ticker-bar::before {
    left: 0;
    background: linear-gradient(to right, var(--t-body, #000), transparent);
}

.ticker-bar::after {
    right: 0;
    background: linear-gradient(to left, var(--t-body, #000), transparent);
}

/* Editorial Grid + Card → moved to components/article-card.css */

/* ── Modal Animations ── */
dialog::backdrop {
    background: rgba(0, 0, 0, 0.75);
}