﻿@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Orbitron:wght@500;600&family=Special+Elite&family=Oxanium&display=swap");



:root {
    --bg-page: #0c0e11;
    --bg-header-transparent: rgba(12,14,17,0.3);
    --bg-header-solid: rgba(12,14,17,0.9);
    --bg-panel: #14171d;
    --bg-card: #1b1f27;
    --text-main: rgba(255,255,255,0.88);
    --text-dim: rgba(255,255,255,0.55);
    --border-soft: rgba(255,255,255,0.07);
    --border-strong: rgba(255,255,255,0.15);
    --glow-warm: #ff7a1a;
    --glow-cool: #4db4ff;
    --band-alpha: 0.18;
    --band-top: 76%;
    --container-w: 1200px;
    --container-pad: 16px;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    background: var(--bg-page);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: var(--text-main);
    text-decoration: none;
}

/* HEADER (sticky po scrollnutí) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    background: rgba(12,14,17,0.3);
    backdrop-filter: blur(6px);
    transition: background .25s ease, box-shadow .25s ease, border-bottom .25s ease, opacity .25s ease, visibility .25s ease;
    border-bottom: 1px solid transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

    .site-header.header-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .site-header.header-solid {
        background: rgba(12,14,17,0.9);
        box-shadow: 0 8px 20px rgba(0,0,0,.7);
        border-bottom: 1px solid var(--border-soft);
    }

.brand-author {
    font-family: 'Special Elite', monospace;
    font-size: 24px;
    font-weight: 400;
    color: #fff;
    opacity: 1;
    transform: translateY(0);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* HAMBURGER – viditeľný aj na desktope, plávajúci sa dokuje do headeru */
.hamburger {
    display: flex;
    width: 38px;
    height: 32px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    background: rgba(0,0,0,.25);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background .15s ease, transform .15s ease;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: transform .15s ease, opacity .15s ease;
}

.hamburger:hover {
    background: rgba(255,122,26,.25);
    transform: translateY(-1px);
}

.hamburger.is-open .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.is-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* plávajúci režim */
.hamburger-floating {
    position: fixed;
    top: 14px;
    left: max(14px, calc(50% - (var(--container-w)/2) + var(--container-pad)));
    z-index: 1400;
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.18);
}
/* keď je v hlavičke, využije jej vizuál */
.site-header .hamburger {
    background: none;
    border: none;
    backdrop-filter: none;
}

/* LOGO vľavo pri hamburgeri */
.header-logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.header-logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.03em;
    line-height: 1;
    margin-left: 14px;
}

/* horné menu – zobrazí sa až po scrolle pod content-nav */
.header-menu {
    display: none;
    gap: 18px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.site-header.show-nav .header-menu {
    display: flex;
}

.header-menu a {
    opacity: .85;
    position: relative;
    transition: opacity .15s ease;
}

    .header-menu a:hover {
        opacity: 1;
    }

    .header-menu a.active::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -18px;
        height: 2px;
        background: #4db4ff;
        border-radius: 2px;
    }

@media (max-width: 980px) {
    .header-menu {
        display: none !important;
    }
}

.header-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    transition: background .15s ease, border .15s ease, transform .15s ease;
}

    .social-link .icon {
        width: 26px;
        height: 26px;
        fill: rgba(255,255,255,.8);
    }

    .social-link:hover {
        transform: translateY(-1px);
    }

@media (max-width: 700px) {
    .header-social {
        display: none;
    }

    .header-left {
        width: auto;
    }
}

.after-header-spacer {
    height: 0px;
}

/* MOBILNÉ MENU */
.mobile-menu {
    position: fixed;
    top: 60px;
    right: 14px;
    left: 14px;
    background: rgba(11,13,16,.9);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 12px;
    padding: 10px 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 1200;
    box-shadow: 0 14px 30px rgba(0,0,0,.45);
}

    .mobile-menu.show {
        display: flex;
    }

    .mobile-menu a {
        padding: 10px 16px;
        font-weight: 500;
        color: rgba(255,255,255,.9);
    }

        .mobile-menu a:hover {
            background: rgba(255,255,255,.02);
            color: #fff;
        }
/* menu panel nech sa otvára pri ľavej hrane kontajnera */
.mobile-menu {
    top: 60px;
    left: max(14px, calc(50% - (var(--container-w)/2) + var(--container-pad)));
    right: auto;
    width: min(320px, 92vw);
}

@media (max-width:520px) {
    .mobile-menu {
        left: 10px;
        right: 10px;
        width: auto;
    }
}

/* --- GLOW pre STRÁŽCOVIA / proroctvo --- */
.series-link {
    display: inline-block;
    transition: transform .3s ease, text-shadow .3s ease, color .3s ease;
    will-change: transform;
    cursor: pointer;
}

.series-head:hover .hero-subline {
    color: rgba(255,255,255,.95);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(70, 120, 255, 0.6) 0%, rgba(10, 20, 40, 0.6) 40%, rgba(255, 100, 40, 0.6) 100%);
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* ---------------- HERO ---------------- */
.hero {
    position: relative;
    /* min-height: 80vh;*/
    background: #000;
    /* overflow: hidden; */
    padding-bottom: 120px;
   
    
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    background-image: url('/image/new/biomainbig.jpg');
    background-size: cover;
    background-position: center center;
    opacity: 1;
    filter: brightness(1) contrast(1) saturate(1);
    pointer-events: none;
    z-index: 0;
    transition: opacity .35s ease;
}

/* VIDEO layer */
    .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
    mix-blend-mode: screen;
}

.hero.hero--video-none .hero-video {
    display: none;
}

.hero.hero--video-all .hero-video {
    display: block;
}

.hero.hero--video-desktop .hero-video {
    display: block;
}

@media (max-width: 800px) {
    .hero.hero--video-desktop .hero-video {
        display: none;
    }
}

.hero.hero--video-mobile .hero-video {
    display: none;
}

@media (max-width: 800px) {
    .hero.hero--video-mobile .hero-video {
        display: block;
    }
}

.hero.hero--video-all .hero-bg-layer,
.hero.hero--video-desktop .hero-bg-layer,
.hero.hero--video-mobile .hero-bg-layer {
    opacity: 0.3;
}

.particles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: .6;
}

.energy-band {
    position: absolute;
    left: -10%;
    right: -10%;
    top: 135px;
    height: 18px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent 0%, rgba(77,180,255,var(--band-alpha)) 18%, rgba(255,255,255,.28) 50%, rgba(255,122,26,var(--band-alpha)) 82%, transparent 100%);
    filter: blur(10px);
    opacity: .75;
    z-index: 3;
    pointer-events: none;
    background-size: 200% 100%;
    animation: bandFlow 9s linear infinite;
}

@keyframes bandFlow {
    from {
        background-position: 0% 0%
    }

    to {
        background-position: 200% 0%
    }
}

.hero-inner {
    position: relative;
    z-index: 5;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-top {
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 30px;
    padding-bottom: 55px;
    text-align: center;
    pointer-events: none;
}

.hero-top-social {
    position: absolute;
    top: 18px;
    right: 24px;
    display: flex;
    gap: 10px;
    z-index: 10;
    pointer-events: auto;
}

.hero-social-link {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    backdrop-filter: blur(4px);
    shadow: 0 10px 20px rgba(0,0,0,.35);
    transition: transform .15s ease, background .15s ease, border .15s ease;
}

    .hero-social-link svg {
        width: 28px;
        height: 28px;
        fill: #fff;
        text-shadow: 0 20px 40px rgba(0, 0, 0, .95), 0 0 30px rgba(0, 0, 0, .75), 0 0 4px rgba(0, 0, 0, .9);
    }

    .hero-social-link:hover {
        transform: translateY(-2px);
    }

@media (max-width: 720px) {
    .hero-top-social {
      
    }
    .brand-author {
margin-top:40px;
    }
}

.logo-wrap {
    position: relative;
    display: inline-grid;
    place-items: center;
    pointer-events: auto;
}

.logo-aura {
    position: absolute;
    inset: -28px;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(255,255,255,.14), transparent 60%), radial-gradient(220px 60px at 30% 60%, rgba(255,122,26,.45), transparent 70%), radial-gradient(220px 60px at 70% 40%, rgba(77,180,255,.45), transparent 70%);
    filter: blur(18px) saturate(1.2);
    opacity: .9;
    animation: auraPulse 4.5s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes auraPulse {
    0% {
        transform: scale(.98);
        opacity: .85
    }

    100% {
        transform: scale(1.03);
        opacity: 1
    }
}

.scene-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

    .scene-glow.left::before {
        content: "";
        position: absolute;
        left: -20vw;
        top: 8%;
        width: 55vw;
        height: 55vh;
        background: radial-gradient(closest-side, rgba(255,122,26,.26), transparent 60%), radial-gradient(closest-side, rgba(255,180,90,.18), transparent 70%);
        filter: blur(22px) saturate(1.15);
        animation: floatSlow 8s ease-in-out infinite alternate;
    }

@keyframes floatSlow {
    0% {
        transform: translateY(-6px) scale(.98);
        opacity: .85
    }

    100% {
        transform: translateY(6px) scale(1.02);
        opacity: 1
    }
}

.hero-universe-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 80px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 20px 40px rgba(0,0,0,.95), 0 0 30px rgba(0,0,0,.75), 0 0 4px rgba(0,0,0,.9);
    opacity: .98;
    will-change: transform;
    transition: transform .25s ease;
}

.hero-top[data-tilt="on"] .hero-universe-title {
    transform: perspective(800px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
}

/* HLAVIČKY SÉRIÍ */
.series-head-row {
    margin: 0 auto;
    margin-top: 150px;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    max-width: 1200px;
    width: 100%;
    text-shadow: 0 10px 30px rgba(0,0,0,.9);
}

.series-head {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    z-index: 5;
}

    .series-head.left {
        text-align: center;
    }

    .series-head.right {
        text-align: center;
    }

.hero-headline {
    font-size: clamp(2rem, 1vw + 1.4rem, 2.5rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 3px;
    color: #fff;
}

    .hero-headline.straz {
        font-family: 'Special Elite', monospace;
        text-shadow: 0 20px 40px rgba(0, 0, 0, .95), 0 0 30px rgba(0, 0, 0, .75), 0 0 4px rgba(0, 0, 0, .9);
    }

    .hero-headline.bio {
        font-family: 'Orbitron', sans-serif;
        font-weight: 600;
        letter-spacing: 0;
        font-size: 45px;
        margin-top: -10px;
        text-shadow: 0 20px 40px rgba(0, 0, 0, .95), 0 0 30px rgba(0, 0, 0, .75), 0 0 4px rgba(0, 0, 0, .9);
    }

.hero-subline {
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    color: rgba(255,255,255,.9);
    text-shadow: 0 20px 40px rgba(0, 0, 0, .95), 0 0 30px rgba(0, 0, 0, .75), 0 0 4px rgba(0, 0, 0, .9);
}

.hero-headline:hover .series-link {
    transform: scale(1.04);
    transition: transform .25s ease, text-shadow .25s ease, color .25s ease;
}

.hero-headline.straz:hover .series-link {
    text-shadow: 0 0 22px rgba(255,122,26, .85), 0 0 42px rgba(255,110,30, .55);
    color: #fff;
}

.hero-headline.bio:hover .series-link {
    text-shadow: 0 0 22px rgba(77,180,255, .85), 0 0 42px rgba(77,180,255, .55);
    color: #fff;
}

.series-link.straz-link:hover {
    transform: scale(1.04);
    text-shadow: 0 20px 40px rgba(255,122,26, .95), 0 0 30px rgba(255,110,30, .75), 0 0 4px rgba(0, 0, 0, .9);
    color: #fff;
}

.series-link.proroctvo-link:hover {
    transform: scale(1.04);
    text-shadow: 0 20px 40px rgba(77,180,255, .95), 0 0 30px rgba(77,180,255, .75), 0 0 4px rgba(0, 0, 0, .9);
    color: #fff;
}

/* KNIHY */
.series-books-row {
    max-width: 1200px;
    width: 100%;
    padding: 24px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.books-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.books-block-head {
    display: none;
    text-align: center;
    text-shadow: 0 10px 30px rgba(0,0,0,.9);
}

    .books-block-head .block-title {
        font-size: 1.5rem;
        line-height: 1.2;
        font-weight: 400;
        color: #fff;
        font-family: 'Special Elite', monospace;
    }

.books-block-head-bio .block-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    letter-spacing: .04em;
}

.books-block-head .block-sub {
    margin-top: 8px;
    font-size: .95rem;
    line-height: 1.35;
    color: rgba(255,255,255,.9);
    max-width: 320px;
    margin-inline: auto;
}

.books-side-left, .books-side-right {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
    justify-content: center;
    z-index: 5;
}

.book-card-mini {
    position: relative;
    flex: 0 0 clamp(100px,10vw,130px);
    width: clamp(100px,10vw,130px);
    height: clamp(150px,15vw,180px);
    border-radius: 2px;
    background: #000;
    border: none;
    box-shadow: 0 28px 40px rgba(0,0,0,.7), 0 0 24px rgba(0,0,0,.8);
    overflow: visible;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, margin .25s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-left: -34px;
    z-index: 1;
}

    .book-card-mini:first-child {
        margin-left: 0;
    }

.books-side-left .book-card-mini:first-child, .books-side-right .book-card-mini:first-child {
    z-index: 10;
}

.books-side-left .book-card-mini:nth-child(2), .books-side-right .book-card-mini:nth-child(2) {
    z-index: 9;
}

.books-side-left .book-card-mini:nth-child(3), .books-side-right .book-card-mini:nth-child(3) {
    z-index: 8;
}

.books-side-left .book-card-mini:nth-child(4), .books-side-right .book-card-mini:nth-child(4) {
    z-index: 7;
}

.books-side-left .book-card-mini:nth-child(5), .books-side-right .book-card-mini:nth-child(5) {
    z-index: 6;
}

.book-card-mini:hover {
    z-index: 50;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 32px 50px rgba(0,0,0,.9), 0 0 28px rgba(0,0,0,.9);
}

.series-head.left:hover ~ .series-books-row .books-side-left .book-card-mini {
    margin-left: 0;
}

.series-head.right:hover ~ .series-books-row .books-side-right .book-card-mini {
    margin-left: 0;
}

.book-card-mini::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,.5), rgba(0,0,0,0));
    pointer-events: none;
    z-index: 2;
    border-radius: 2px 0 0 2px;
}

.book-card-mini::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,.13);
    pointer-events: none;
    z-index: 2;
}

.book-cover-wrapper {
    position: absolute;
    inset: 0;
    border-radius: 2px;
    overflow: hidden;
}

.book-fullcover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

.book-badge {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.8);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 2px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,.8);
    z-index: 6;
    line-height: 1.2;
    box-shadow: 0 12px 24px rgba(0,0,0,.8);
    pointer-events: none;
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.book-card-mini.straz:hover .book-badge {
    background: rgba(255,106,42,.9);
    border-color: rgba(255,255,255,.4);
    color: #0b0d10;
    box-shadow: 0 12px 24px rgba(255,106,42,.4);
}

.book-card-mini.bio:hover .book-badge {
    background: rgba(77,180,255,.9);
    border-color: rgba(255,255,255,.5);
    color: #0b0d10;
    box-shadow: 0 12px 24px rgba(77,180,255,.4);
}

/* POSTAVY – STRÁŽCOVIA (ľavý blok) */
.books-block-straz {
    position: relative;
}

.strazcovia-characters {
    position: absolute;
    left: 100px;
    bottom: -47px;
    width: 390px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .35s ease-out, transform .35s ease-out;
    z-index: 2;
    mix-blend-mode: multiply;
}

    .strazcovia-characters::after {
        content: "";
        position: absolute;
        inset: 0;
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        pointer-events: none;
        z-index: 2;
        mix-blend-mode: multiply;
    }

    .strazcovia-characters img {
        display: block;
        width: 100%;
        height: auto;
        position: relative;
        z-index: 1;
        filter: drop-shadow(0 14px 24px rgba(0,0,0,0.35));
        mix-blend-mode: multiply;
        filter: grayscale(80%) sepia(90%) hue-rotate(160deg) saturate(80%) brightness(90%) contrast(95%);
        transition: filter 0.3s ease;
    }

.books-block-straz .books-side-left:hover ~ .strazcovia-characters,
.books-block-straz:hover .strazcovia-characters {
    opacity: 1;
    transform: translateY(0);
}

.hero.show-strazcovia .strazcovia-characters {
    opacity: 1;
    transform: translateY(0);
}

/* POSTAVY – PROROCTVO / BIOSECTOR (pravý blok) */
.books-block-bio {
    position: relative;
}

.proroctvo-characters {
    position: absolute;
    right: 70px;
    bottom: 0px;
    width: 470px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .35s ease-out, transform .35s ease-out;
    z-index: 2;
    mix-blend-mode: multiply;
}

    .proroctvo-characters::after {
        content: "";
        position: absolute;
        inset: 0;
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        pointer-events: none;
        z-index: 2;
        mix-blend-mode: multiply;
    }

    .proroctvo-characters img {
        display: block;
        width: 100%;
        height: auto;
        position: relative;
        z-index: 1;
        filter: drop-shadow(0 14px 24px rgba(0,0,0,0.35));
        mix-blend-mode: multiply;
        filter: grayscale(80%) sepia(90%) hue-rotate(160deg) saturate(80%) brightness(90%) contrast(95%);
        transition: filter 0.3s ease;
    }

.books-block-bio .books-side-right:hover ~ .proroctvo-characters,
.books-block-bio:hover .proroctvo-characters {
    opacity: 1;
    transform: translateY(0);
}

.hero.show-proroctvo .proroctvo-characters {
    opacity: 1;
    transform: translateY(0);
}

/* Responsívne zmeny pre postavy */
@media (max-width: 1250px) {
    .strazcovia-characters {
        left: 100px;
        bottom: -47px;
        width: 360px;
    }

    .proroctvo-characters {
        right: 60px;
        bottom: 0px;
        width: 450px;
    }
}

@media (max-width: 1100px) {
    .strazcovia-characters {
        left: 100px;
        bottom: -7px;
        width: 320px;
    }

    .proroctvo-characters {
        right: 60px;
        bottom: 0px;
        width: 430px;
    }
}

@media (max-width: 950px) {
    .strazcovia-characters {
        left: 70px;
        bottom: 30px;
        width: 280px;
    }

    .proroctvo-characters {
        right: 30px;
        bottom: 0px;
        width: 400px;
    }
}

@media (max-width: 850px) {
    .strazcovia-characters, .proroctvo-characters {
        display: none !important;
    }
}

/* TIMELINE */
.hero-timeline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
  
}

.timeline-scroll {
    width: 100%;
    
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.timeline-track {
    position: relative;
    width: 100%;
    height:40px;
    border-top: 1px solid rgba(255,255,255,.35);
    background: rgba(20,23,29,.18);
    box-shadow: 0 -10px 30px rgba(0,0,0,.8), 0 30px 50px rgba(0,0,0,.9);
    backdrop-filter: blur(6px);
    border-radius: 2px;
}

.tick {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
    pointer-events: auto;
    color: var(--text-main);
    transition: all .2s ease;
}

.tick-dot {
    width: 8px;
    height: 28px;
    border-radius: 2px;
    margin: 0 auto;
    margin-top: -14px;
    background: rgba(255,255,255,.45);
    box-shadow: 0 0 6px rgba(0,0,0,.9), 0 0 20px rgba(255,255,255,.3);
    transition: all .2s ease;
}

.tick-year {
    margin-top: 10px;
    line-height: 1.1;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,.8);
    text-shadow: 0 2px 5px rgba(0,0,0,.8);
    transition: all .2s ease;
}

.tick-1907 {
    left: 3%
}

.tick-1945 {
    left: 10%
}

.tick-1984 {
    left: 25%
}

.tick-2060 {
    left: 55%
}

.tick-2066 {
    left: 60%
}

.tick-2079 {
    left: 66%
}

.tick-2080 {
    left: 72%
}

.tick-2088 {
    left: 78%
}

.tick-2092 {
    left: 84%
}

.tick-2093 {
    left: 89%
}

.tick-2094 {
    left: 94%
}

.tick.highlight .tick-dot {
    background: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,1), 0 0 24px rgba(255,255,255,.8), 0 0 48px rgba(255,255,255,.6);
}

.tick.highlight .tick-year {
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,1), 0 0 24px rgba(255,255,255,.9);
    font-weight: 600;
}

/* STICKY NAV – spodná lišta, podľa ktorej zobrazíme horné menu */
.content-nav-wrapper {
    position: relative;
    background: rgba(20,23,29,.4);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border-soft);
    transition: background .25s ease, box-shadow .25s ease;
   
}

    .content-nav-wrapper.stuck {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(20,23,29,.9);
        box-shadow: 0 8px 20px rgba(0,0,0,.7);
    }

.content-nav-inner {
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 16px;
    font-weight: 500;
}

.content-nav-item {
    position: relative;
    cursor: pointer;
    opacity: .8;
}

    .content-nav-item:hover {
        opacity: 1
    }

    .content-nav-item.active {
        opacity: 1;
        color: #4db4ff;
    }

        .content-nav-item.active::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -14px;
            height: 2px;
            background: #4db4ff;
            border-radius: 2px;
        }

.after-content-nav-spacer {
    height: 0
}

    .after-content-nav-spacer.active {
        height: 50px
    }

/* HLAVNÝ OBSAH (news + sidebar) */
.main-section {
    max-width: 1200px;
    margin: 32px auto 0;
    padding: 0 16px;
}

@media (max-width:1100px) {
    .main-section {
        grid-template-columns: 1fr 280px
    }
}

@media (max-width:900px) {
    .main-section {
        grid-template-columns: 1fr
    }
}

.news-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.news-column h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.news-view-switch {
    display: none;
    gap: 6px;
}

.news-view-btn {
    background: rgba(255,255,255,.03);
    border: 1px solid transparent;
    color: rgba(255,255,255,.7);
    padding: 5px 12px 6px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s ease, border .15s ease, color .15s ease;
}

    .news-view-btn.active {
        background: rgba(77,180,255,.14);
        border: 1px solid rgba(77,180,255,.5);
        color: #fff;
    }

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .2s ease, transform .2s ease, border .2s ease;
}

    .news-card:hover {
        box-shadow: 0 16px 32px rgba(0,0,0,.6);
        transform: translateY(-2px);
        border-color: var(--border-strong);
    }

.news-thumb {
    width: 100%;
    height: 100%;
    min-height: 180px;
    background: #2a2f3c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-dim);
    border: 0;
    position: relative;
    overflow: hidden;
}

    .news-thumb img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        border: 0;
    }

.news-body {
    padding: 20px 22px 18px;
    min-width: 0;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 6px;
}

.news-date {
    white-space: nowrap;
}

.news-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.72);
}

.news-tag {
    border-radius: 999px;
    padding: 2px 10px 3px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

    .news-tag.base {
        background: rgba(255,255,255,0.08);
        color: rgba(255,255,255,0.75);
        border-color: rgba(255,255,255,0.1);
    }

    .news-tag.blue {
        background: rgba(77,180,255,0.15);
        color: #4db4ff;
        border-color: rgba(77,180,255,0.35);
    }

    .news-tag.orange {
        background: rgba(255,122,26,0.18);
        color: #ff7a1a;
        border-color: rgba(255,122,26,0.35);
    }

    .news-tag:hover {
        filter: brightness(1.2);
    }

.news-column.grid-mode .news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.news-column.grid-mode .news-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    min-height: 280px;
}

.news-column.grid-mode .news-thumb {
    border-radius: 0;
    border: 0;
    aspect-ratio: 16/9;
    background: linear-gradient(120deg, rgba(255,122,26,.2), rgba(77,180,255,.15));
    min-height: 0;
}

.news-column.grid-mode .news-body {
    padding: 16px 16px 12px;
}

.news-column.grid-mode .news-title {
    font-size: 17px;
    margin-bottom: 8px;
}

.news-column.grid-mode .news-excerpt {
    font-size: 14.5px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.news-column.grid-mode .news-meta {
    font-size: 12.5px;
    margin-bottom: 6px;
}

.news-column.grid-mode .news-readmore {
    font-size: 14px;
}

@media (max-width:1100px) {
    .news-card {
        grid-template-columns: 230px 1fr;
    }
}

@media (max-width:700px) {
    .news-card {
        grid-template-columns: 1fr;
    }

    .news-thumb {
        aspect-ratio: 16/9;
    }

    .news-column.grid-mode .news-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width:520px) {
    .news-column.grid-mode .news-list {
        grid-template-columns: 1fr;
    }
}

/* LORE */

.lore-section {
    max-width: 1200px;
    margin: 48px auto 0;
    padding: 0 16px 64px;
   
}

.lore-heading {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 24px
}

.lore-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

@media (max-width:900px) {
    .lore-grid {
        grid-template-columns: 1fr
    }
}

.lore-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 16px 32px rgba(0,0,0,.6)
}

.lore-era {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
    color: var(--text-dim)
}

.lore-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px
}

.lore-desc {
    font-size: 16px;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 16px
}

.lore-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

.btn-primary, .btn-secondary {
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer
}

.btn-primary {
    background: #4db4ff;
    color: #0b0d10;
    border: 0
}

    .btn-primary:hover {
        filter: brightness(1.1)
    }

.btn-secondary {
    background: rgba(255,255,255,.07);
    border: 1px solid var(--border-strong);
    color: var(--text-main)
}

    .btn-secondary:hover {
        background: rgba(255,255,255,.1)
    }



/* FOOTER */
footer {
    background: #0a0c0f;
    border-top: 1px solid var(--border-soft);
    padding: 32px 16px 48px;
    color: var(--text-dim);
    font-size: 13px
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px
}

@media (max-width:800px) {
    .footer-inner {
        grid-template-columns: 1fr
    }
}

.footer-col-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px
}

.footer-link {
    display: block;
    color: var(--text-dim);
    margin-bottom: 8px;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5
}

    .footer-link:hover {
        color: var(--text-main)
    }

/* MOBILE – hero a knihy kompaktnejšie */
@media (max-width:800px) {
    .hero-top {
        padding-top: 28px;
        padding-bottom: 32px
    }

    .hero-universe-title {
        font-size: 60px;
        line-height: 1.1;
        
    }
    .hero-u {
        margin-top:20px;
    }
    .hero-subline {
        font-size: .95rem;
        line-height: 1.35;
        max-width: 580px;
        color: rgba(255,255,255,.85);
        margin-inline: auto;
        text-align: center
    }

    .series-books-row {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: center;
        gap: 12px;
    }

    .books-block {
        gap: 16px;
        width: 100%;
        flex: 0 0 50%;
        min-width: 0;
    }

    .books-side-left, .books-side-right {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 0;
        padding: 0;
        padding-right: 20px;
    }

    .book-card-mini {
        flex: 0 0 clamp(60px, 22vw, 82px);
        width: clamp(60px, 22vw, 82px);
        height: clamp(88px, 33vw, 124px);
        margin-left: -30px;
    }

        .book-card-mini:first-child {
            margin-left: 0;
        }

    .book-badge {
        display: none;
    }

    .hero {
        padding-bottom: 90px;
    }

    .hero-top {
        padding-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .book-card-mini {
        flex-basis: 56px;
        width: 56px;
        height: 86px;
        margin-left: -24px;
    }

    .book-badge {
        display: none;
    }
}

/* Fluid typografia pre mobil a tablety */
@media (max-width: 980px) {
    .hero-headline {
        line-height: 1.08;
        margin-bottom: 4px;
        font-size: clamp(18px, 3.6vw + 0.2rem, 32px);
    }

        .hero-headline.straz {
            font-size: clamp(18px, 3.8vw + 0.1rem, 30px);
            letter-spacing: .01em;
        }

        .hero-headline.bio {
            font-size: clamp(20px, 4.4vw + 0.1rem, 34px);
            letter-spacing: .02em;
        }

    .hero-subline {
        font-size: clamp(12px, 2.8vw, 15px);
        margin-bottom: 10px;
    }

    .series-head-row {
        gap: 12px;
    }
}

@media (max-width: 800px) {
    .hero-headline.straz, .hero-headline.bio {
        margin-top: 0;
        line-height: 1.05;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .hero-headline.straz {
        font-size: clamp(20px, 4.1vw + .1rem, 30px);
        font-weight: 500;
        transform: translateY(1px);
    }

    .hero-headline.bio {
        font-size: clamp(22px, 4.4vw + .1rem, 32px);
        font-weight: 600;
        transform: translateY(0);
    }

    .series-head .hero-subline {
        margin-top: 4px;
        font-size: clamp(12px, 2.8vw, 15px);
        opacity: 0.9;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: clamp(17px, 5.2vw, 24px);
    }

    .hero-subline {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .energy-band, .logo-aura, .scene-glow.left::before {
        animation: none
    }
}

/* AUTHOR */
.author-intro {
    background: rgba(10,11,13,0.3);
    padding: 90px 0 36px;
}

.author-shell {
    max-width: 880px;
    margin: 0 auto;
    background: radial-gradient(circle at top, rgba(77,180,255,0.05), rgba(8,9,11,0.25));
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 22px;
    padding: 68px 32px 36px;
    text-align: center;
    position: relative;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    background: radial-gradient(circle at center top, rgba(255,255,255,0.05), rgba(8,10,12,0.3));
    padding-top: 60px;
}

.author-photo-wrap {
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    width: 116px;
    height: 116px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 40%, rgba(77,180,255,0.25), rgba(10,12,14,0.6) 70%);
    box-shadow: 0 0 16px rgba(77,180,255,0.25);
}

.author-photo {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.25);
}

.author-lead {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    color: rgba(255,255,255,0.96);
}

.author-body {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    max-width: 760px;
    margin: 0 auto 1rem;
}

.author-sign {
    margin-top: 8px;
    font-size: 0.9rem;
    position: relative;
    display: inline-block;
    padding-top: 12px;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.01em;
}

    .author-sign::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: 54px;
        height: 1px;
        background: linear-gradient(90deg, rgba(77,180,255,0) 0%, rgba(77,180,255,0.7) 45%, rgba(77,180,255,0) 100%);
        transform: translateX(-50%);
    }

@media (max-width: 600px) {
    .author-shell {
        margin: 0 16px;
        padding: 68px 18px 30px;
    }

    .author-lead {
        font-size: 1.02rem;
    }
}

/* INTRO BLOK */
.biosector-intro {
    position: relative;
    text-align: center;
    padding: 90px 20px 30px;
    overflow: hidden;
    
}

    .biosector-intro .bio-bg {
        position: absolute;
        inset: 0;
        background: url('/image/stars.jpg') center/cover no-repeat;
        opacity: 0.15;
        z-index: 0;
    }

    .biosector-intro .bio-content {
        position: relative;
        z-index: 1;
        max-width: 900px;
        margin: 0 auto;
        color: rgba(255,255,255,0.9);
    }
    .biosector-intro .bio-content-float {
        float: left;
        height: 300px;
    }



.biosector-intro h2 {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
}

    .biosector-intro p {
        font-weight: 400;
        line-height: 1.6;
        margin: 0 auto 24px;
        max-width: 720px;
        color: rgba(255,255,255,0.75);
    }

.btn-glow {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.25s ease;
}

    .btn-glow:hover {
        border-color: rgba(255,255,255,0.35);
        background: rgba(255,255,255,0.08);
        box-shadow: 0 0 20px rgba(255,255,255,0.1);
    }


.lore-section {
    max-width: 1200px;
    margin: 64px auto 80px;
    padding: 0 16px;
}

.lore-heading {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 26px;
}

.lore-block {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(12,14,17,0.25);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.lore-media {
    position: relative;
    min-height: 360px;
    background: #0b0d10;
    isolation: isolate;
}

    .lore-media img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        filter: brightness(122%) saturate(105%);
        transform: scale(1.0);
        transition: transform .35s ease, filter .35s ease;
    }

.lore-block:hover .lore-media img {
    filter: brightness(88%) saturate(108%);
    transform: scale(1.02);
}

.lore-media::before, .lore-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.lore-block.tint-orange .lore-media::before {
    background: radial-gradient(circle at 10% 10%, rgba(255,122,26,0.10), rgba(0,0,0,0) 55%);
}

.lore-block.tint-blue .lore-media::before {
    background: radial-gradient(circle at 90% 10%, rgba(77,180,255,0.10), rgba(0,0,0,0) 55%);
}

.lore-media::after {
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 44%, rgba(0,0,0,0) 72%);
}

.lore-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding: 28px;
}

.lore-inner {
    max-width: 560px;
}

.content-left .lore-inner {
    margin-left: 6px;
    text-align: left;
}

.content-right {
    justify-content: flex-end;
}

    .content-right .lore-inner {
        margin-right: 6px;
        text-align: right;
    }

    .content-left::before, .content-right::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: min(38%, 420px);
        z-index: -1;
        pointer-events: none;
    }

.content-left::before {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.46), rgba(0,0,0,0));
}

.content-right::before {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.46), rgba(0,0,0,0));
}

.lore-badge {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 10px;
    display: inline-block;
}

    .lore-badge.orange {
        color: #ff7a1a;
    }

    .lore-badge.blue {
        color: #4db4ff;
    }

.lore-title {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.lore-text {
    color: rgba(255,255,255,0.80);
    line-height: 1.55;
    margin-bottom: 14px;
}

.lore-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lore-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 8px 16px 9px;
    font-size: 13.5px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, border-color .15s ease;
}

    .lore-btn:hover {
        background: rgba(255,255,255,0.10);
        transform: translateY(-1px);
        border-color: rgba(255,255,255,0.22);
    }

    .lore-btn.primary {
        background: #4db4ff;
        border-color: rgba(77,180,255,0.6);
        color: #0b0d10;
    }

@media (max-width: 900px) {
    .lore-media {
        min-height: 280px;
    }

    .lore-content {
        padding: 22px;
    }

    .lore-title {
        font-size: 1.35rem;
    }

    .content-left::before, .content-right::before {
        width: 55%;
    }
}





/* ===== HERO SÉRIE ===== */
.series-hero {
    position: relative;
    min-height: 63vh;
    background: #000;
     border-bottom: 1px solid var(--border-soft);
    overflow: hidden;
    display: grid;
    place-items: stretch;
    isolation: isolate;
}

.series-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/image/strazcoviatheme.jpg'); /* pozadie série */
    background-size: cover;
    background-position: center;
    filter: brightness(.9) contrast(1.05) saturate(1.15);
    opacity: 1;
    z-index: 0;
}

.series-hero-inner {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 56px 16px 72px;
    display: flex;
    flex-direction: column;
    min-height: 53vh;
    text-shadow: 0 20px 40px rgba(0,0,0,.95), 0 0 30px rgba(0,0,0,.75), 0 0 4px rgba(0,0,0,.9);
}

.series-hero-label {
    font-size: 14px;
    color: var(--text-dim);
    font-weight: 500;
    margin-bottom: 8px;
}

.series-hero-name {
    font-family: 'Special Elite', system-ui, sans-serif;
    font-size: clamp(2.4rem, 3.8vw, 4.2rem);
    font-weight: 400;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 10px;
}

.series-hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.92);
    max-width: 820px;
}

@media (max-width:900px) {
    .series-hero {
        min-height: 64vh;
    }

    .series-hero-inner {
        min-height: 64vh;
        padding: 44px 16px 56px;
    }

    .series-hero-name {
        font-size: clamp(2rem, 6vw, 3rem);
    }
}

/* PODLAHA + knihy v hero */
.hero-floor {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    height: 20px;
    z-index: 1;
    background: radial-gradient(120% 80% at 80% 100%, rgba(0,0,0,.25) 0%, rgba(0,0,0,.35) 25%, rgba(0,0,0,.55) 100%);
    pointer-events: none;
}

.hero-rail {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 3;
}

.hero-rail-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 16px;
}

.books-side-right {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin-left: -10px;
    align-items: flex-end;
    z-index: 3;
}



.book-badge {
    display: none; /* ak chceš, vieš zapnúť hoverom */
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.8);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,.8);
    z-index: 6;
    line-height: 1.2;
    box-shadow: 0 12px 24px rgba(0,0,0,.8);
    pointer-events: none;
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* ===== LOKÁLNA NAVIGÁCIA SÉRIE ===== */
.content-nav-wrapper.series-nav {
    position: relative;
    background: rgba(20,23,29,.4);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border-soft);
    z-index: 900;
}

.content-nav-inner.series-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 16px;
    font-weight: 500;
}

.content-nav-item {
    position: relative;
    cursor: pointer;
    opacity: .8;
}

    .content-nav-item:hover {
        opacity: 1;
    }

    .content-nav-item.active {
        opacity: 1;
        color: var(--accent);
    }

        .content-nav-item.active::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -14px;
            height: 2px;
            background: var(--accent);
            border-radius: 2px;
        }

/* ===== OBSAH SÉRIE ===== */
.series-content {
    max-width: 1200px;
    margin: 32px auto 0;
    padding: 0 16px 80px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
}

@media (max-width:1100px) {
    .series-content {
        grid-template-columns: 1fr 300px;
    }
}

@media (max-width:900px) {
    .series-content {
        grid-template-columns: 1fr;
    }
}

.series-about-block {
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    box-shadow: 0 16px 32px rgba(0,0,0,.6);
    padding: 20px 20px 24px;
    margin-bottom: 24px;
}

.series-about-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.series-about-text {
    font-size: 15px;
    line-height: 1.6;
}

    .series-about-text p + p {
        margin-top: 1em;
        color: var(--text-dim);
    }

.books-list-heading {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 20px;
}

.books-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.book-card-full {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 20px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    cursor: pointer;
    transition: box-shadow .2s ease, transform .2s ease, border .2s ease;
}

    .book-card-full:hover {
        box-shadow: 0 16px 32px rgba(0,0,0,.6);
        transform: translateY(-2px);
        border-color: var(--border-strong);
    }

.book-thumb {
    width: 100%;
    aspect-ratio: 2/3;
    background: #2a2f3c center/cover no-repeat;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 14px;
    text-align: center;
}

.book-body {
    min-width: 0;
    
}

.book-meta-row {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.book-meta-pill {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-main);
    text-transform: lowercase;
    padding: 4px 8px;
    border-radius: 4px;
}

.book-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.book-desc {
    font-size: 16px;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.book-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* tlačidlá – zdieľané s dizajnom */
.btn-primary {
    background: var(--accent);
    color: #0b0d10;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    padding: 10px 14px;
    border: 0;
    cursor: pointer;
}

    .btn-primary:hover {
        filter: brightness(1.1);
    }

.btn-secondary {
    background: rgba(255,255,255,.07);
    border: 1px solid var(--border-strong);
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
}

    .btn-secondary:hover {
        background: rgba(255,255,255,.1);
    }

@media (max-width:1100px) {
    .book-card-full {
        grid-template-columns: 180px 1fr;
    }
}

@media (max-width:700px) {
    .book-card-full {
        grid-template-columns: 120px 1fr;
    }
}

@media (max-width:500px) {
    .book-card-full {
        grid-template-columns: 1fr;
    }

    .book-thumb {
        max-width: 160px;
        margin: 0 auto;
    }
}

/* SIDEBAR */
.sidebar-block {
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 16px 32px rgba(0,0,0,.6);
    font-size: 15px;
}

    .sidebar-block + .sidebar-block {
        margin-top: 24px;
    }

.sidebar-heading {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

    .sidebar-heading small {
        font-size: 14px;
        font-weight: 400;
        color: var(--accent);
        cursor: pointer;
    }

.featured-book {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.book-cover-side {
    width: 100%;
    aspect-ratio: 2/1;
    background: #2a2f3c;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
}

.book-info-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.book-info-desc {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.book-info-buyrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.price-tag {
    font-weight: 500;
    font-size: 15px;
}

.book-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.book-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    cursor: pointer;
}

    .book-item:hover .book-meta-title {
        color: var(--accent);
    }

.book-mini-cover {
    width: 56px;
    height: 82px;
    background: #2a2f3c center/cover no-repeat;
    border-radius: 4px;
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 13px;
}

.book-meta-title {
    font-size: 15px;
    font-weight: 600;
}

.book-meta-status {
    font-size: 14px;
    margin-top: 6px;
    color: var(--accent);
}
/* hlavné tlačidlo – výrazné, svetlý text na modrom pozadí */
.btn-primary {
    background: var(--accent, #4db4ff);
    color: #05070b; /* tmavý text, dobre čitateľný */
    padding: 9px 14px;
    border-radius: 6px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}




/* HERO BLOK KNIHY (obálka + rýchle info) */
.book-hero {
    position: relative;
    border-bottom: 1px solid var(--border-soft);
    background: #000;
    overflow: hidden;
}

.book-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/image/fill5.jpg');
    background-size: cover;
    background-position: center;
    opacity: 1;
    filter: brightness(0.9) contrast(1.05) saturate(1.2);
    pointer-events: none;
    z-index: 0;
}

.book-hero-inner {
    position: relative;
    z-index: 5;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 16px 40px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    text-shadow: 0 20px 40px rgba(0,0,0,0.95), 0 0 30px rgba(0,0,0,0.75), 0 0 4px rgba(0,0,0,0.9);
}

@media (max-width:800px) {
    .book-hero-inner {
        grid-template-columns: 1fr;
    }
}

.book-hero-cover {
    width: 220px;
    max-width: 220px;
    aspect-ratio: 2/3;
    background: #1b1f27;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 2px 4px rgba(0,0,0,0.6);
    overflow: hidden;
}

@media (max-width:800px) {
    .book-hero-cover {
        margin: 0 auto;
    }
}

.biosector-intro .bio-content-float {
    float:initial;
    height: 250px;
}


.book-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.book-hero-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.book-series-line {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-dim);
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.book-series-pill {
    background-color: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-main);
    text-transform: lowercase;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1.2;
}

.book-title-main {
    font-family: Orbitron, system-ui, sans-serif;
    font-size: clamp(1.8rem, 1.2rem + 1vw, 2.2rem);
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 8px;
}

.book-subline {
    font-size: 1rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
    margin-bottom: 16px;
}

.book-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    line-height: 1.4;
}

.book-status-badge {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
}

.book-price {
   
    font-weight: 500;
    color: var(--text-main);
}

.book-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

/* HLAVNÝ GRID OBSAHU (anotácia, ukážka, sidebar) */
.book-mainlayout {
    max-width: 1200px;
    margin: 32px auto 0;
    padding: 0 16px 80px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

@media (max-width:1100px) {
    .book-mainlayout {
        grid-template-columns: 1fr 280px;
    }
}

@media (max-width:900px) {
    .book-mainlayout {
        grid-template-columns: 1fr;
    }
}

/* BLOKY V ĽAVOM STĹPCI */
.content-block {
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 20px 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.6);
}

.content-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.content-text {
    font-size: 15px;
    line-height: 1.6;
}

    .content-text p + p {
        margin-top: 1em;
        color: var(--text-dim);
    }

.sample-chapter-block {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 16px 20px 20px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.6);
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-line;
}

.sample-heading {
    font-size: 15px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 12px;
    line-height: 1.4;
}

/* SIDEBAR VPRAVO */
.sidebar-block {
    background: var(--bg-panel);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.6);
    font-size: 15px;
    line-height: 1.5;
}

    .sidebar-block + .sidebar-block {
        margin-top: 24px;
    }

.sidebar-heading {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

    .sidebar-heading small {
        font-size: 14px;
        font-weight: 400;
        color: var(--accent);
        cursor: pointer;
    }

.buy-box-price {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
}

.buy-box-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.buy-note {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-dim);
}

/* ďalšie knihy v sérii */
.book-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.book-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    cursor: pointer;
    transition: color .2s ease;
}

.book-mini-cover {
    width: 56px;
    height: 82px;
    background: #2a2f3c;
    border-radius: 4px;
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 13px;
    text-align: center;
}

.book-meta-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.book-meta-status {
    font-size: 14px;
    margin-top: 6px;
    color: var(--accent);
}

.book-item:hover .book-meta-title {
    color: var(--accent);
}

/* postavy v tejto knihe */
.char-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    font-size: 14px;
    line-height: 1.45;
}

.char-line {
    display: flex;
    flex-direction: column;
}

.char-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

.char-role {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.4;
    margin-top: 2px;
}

/* NEWSLETTER – vnútorný prvok author-shell */
.newsletter-box {
    margin: 22px auto 0;
    max-width: 640px;
    padding: 18px 20px 16px;
    border-radius: 18px;
    background: radial-gradient(circle at center top, rgba(255,255,255,0.04), rgba(8,10,12,0.22) );
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 12px 28px rgba(0,0,0,0.28);
    position: relative;
}

    /* žiadna farebná aura – len jemné svetlo */
    .newsletter-box::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.06), transparent 55% );
        opacity: .6;
    }

.newsletter-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-bottom: 6px;
}

.newsletter-text {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255,255,255,0.62);
    margin-bottom: 14px;
}

/* FORM */
.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* INPUT – rovnaká logika ako zvyšok UI */
.newsletter-input {
    flex: 1 1 240px;
    min-width: 200px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.9);
    outline: none;
    transition: background .15s ease, border-color .15s ease;
}

    .newsletter-input::placeholder {
        color: rgba(255,255,255,0.45);
    }

    .newsletter-input:focus {
        background: rgba(255,255,255,0.055);
        border-color: rgba(255,255,255,0.28);
    }

/* BUTTON – čistý, neutrálny, author štýl */
.newsletter-btn {
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, border-color .15s ease;
}

    .newsletter-btn:hover {
        background: rgba(255,255,255,0.10);
        border-color: rgba(255,255,255,0.28);
        transform: translateY(-1px);
    }

/* GDPR */
.newsletter-consent {
    flex: 1 1 100%;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.35;
    color: rgba(255,255,255,0.55);
    margin-top: 4px;
}

    .newsletter-consent input {
        margin-top: 2px;
        accent-color: rgba(255,255,255,0.8);
    }

/* prístupnosť */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* mobil */
@media (max-width:600px) {
    .newsletter-box {
        padding: 16px 16px 14px;
    }

    .newsletter-btn {
        width: 100%;
    }
}

.newsletter-msg {
    width: 100%;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 6px;
    
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease;
}

    .newsletter-msg.show {
        opacity: 1;
        transform: translateY(0);
    }

    .newsletter-msg.ok {
        color: rgba(255,255,255,0.85);
    }

    .newsletter-msg.err {
        color: rgba(255,255,255,0.65);
    }


/* Košík badge */
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.85);
    color: rgba(0,0,0,0.9);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid rgba(0,0,0,0.35);
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}

/* aby sa badge správne kotvil */
.social-link,
.hero-social-link {
    position: relative;
}

/* Hero badge trošku jemnejšie kvôli videu/pozadiu */
.cart-badge-hero {
    background: rgba(255,255,255,0.9);
}

/* Jemný hover pre auth/cart v hlavičke */
.social-link-auth:hover,
.social-link-cart:hover {
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
}

/* Jemný hover pre auth/cart v hero */
.hero-social-auth:hover,
.hero-social-cart:hover {
    background: rgba(255,255,255,0.06);
}




















:root {
    --color-primary: #8a8a8a;
    --sp-bg: #171717;
    --sp-fg: #fff;
    --sp-border: rgba(255,255,255,.10);
    --sp-shadow: rgba(0,0,0,.45);
    --sp-overlay: rgba(0,0,0,.70);
}

/* SidePanel */
#sidePanel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: var(--sp-width, clamp(320px, 92vw, 440px));
    background: var(--sp-bg);
    color: var(--sp-fg);
    border-left: 1px solid var(--sp-border);
    box-shadow: -4px 0 18px var(--sp-shadow);
    translate: 100% 0;
    transition: translate .35s ease;
    z-index: 3000;
    display: flex;
    flex-direction: column;
}

    #sidePanel.active {
        translate: 0 0;
    }

.sidePanel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    font-weight: 600;
    border-bottom: 1px solid var(--sp-border);
    padding-top: calc(12px + env(safe-area-inset-top));
}

.close-btn {
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    background: none;
    border: 0;
    color: inherit;
    text-align: right;
}

#sidePanel iframe {
    width: 100%;
    height: calc(100% - 52px);
    border: none;
    background: transparent;
}

#sidePanelOverlay {
    position: fixed;
    inset: 0;
    background: var(--sp-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease;
    z-index: 2999;
}

#sidePanel.active + #sidePanelOverlay {
    opacity: 1;
    visibility: visible;
}

.sp-resize-handle {
    position: absolute;
    left: -8px;
    top: 0;
    height: 100%;
    width: 14px;
    cursor: ew-resize;
    z-index: 1;
    background: linear-gradient(to right, transparent 6px, var(--sp-border) 6px, var(--sp-border) 7px, transparent 7px);
    touch-action: none;
    opacity: .6;
}

#sidePanel.resizing .sp-resize-handle {
    opacity: 1;
}

#sidePanel.resizing iframe {
    pointer-events: none;
}

body.sp-noselect {
    user-select: none;
}

@media (prefers-reduced-motion: reduce) {
    #sidePanel, #sidePanelOverlay {
        transition: none
    }
}

/* Auth widget */
.sp-user-mount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sp-user-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.sp-btn2, .sp-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    cursor: pointer;
    padding: 0;
}

    .sp-btn img, .sp-btn2 img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        display: block;
    }

    .sp-btn svg, .sp-btn2 svg {
        width: 22px;
        height: 22px;
        fill: #fff;
        opacity: .92;
    }

.sp-badge-dot {
    position: absolute;
    right: -2px;
    top: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff3b30;
    border: 2px solid rgba(0,0,0,.20);
}

.sp-dd {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 240px;
    background: #141414;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,.40);
    padding: 8px;
    display: none;
    z-index: 9999;
}
.sp-user-mount,
.sp-user-menu {
    position: relative;
    z-index: 2100;
}

.sp-dd {
    position: absolute;
    z-index: 2200;
}
.sp-user-menu.sp-open .sp-dd {
    display: block;
}

.sp-caret {
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: #141414;
    transform: rotate(45deg);
    border-left: 1px solid rgba(255,255,255,.10);
    border-top: 1px solid rgba(255,255,255,.10);
}

.sp-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    margin: 4px;
}

    .sp-head img {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        object-fit: cover;
    }

    .sp-head .sp-name {
        font-size: 14px;
        color: #eaeaea;
    }

.sp-list {
    display: flex;
    flex-direction: column;
    margin: 6px 2px;
}

.sp-item {
    display: block;
}

.sp-link-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #eaeaea;
    font-size: 15px;
    line-height: 1.2;
    background: none;
    border: 0;
    cursor: pointer;
}

    .sp-link-menu:hover {
        color: var(--color-primary);
    }

.sp-badge {
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    background: #ff3b30;
    color: #fff;
}

.sp-sep {
    height: 1px;
    margin: 6px 8px;
    background: rgba(255,255,255,.10);
}

.sp-link-menu.sp-danger {
    color: #ff6b6b;
}

/* Login modal */
#spLoginModal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
}


    #spLoginModal .sp-modal {
        position: relative;
        background: rgba(60, 60, 60, 0.58);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.10);
        margin: 5% auto;
        border-radius: 14px;
        width: 100%;
        max-width: 420px;
        height: 560px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, .35);
        overflow: hidden;
    }

    #spLoginModal iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

    #spLoginModal .sp-close {
        position: absolute;
        right: 14px;
        top: 10px;
        font-size: 22px;
        color: #bbb;
        cursor: pointer;
        z-index: 10;
    }

/* Cart badge */
.social-link-cart, .hero-social-cart {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #e6e6e6;
    color: #222;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    border: 1px solid rgba(0,0,0,0.25);
}

/* Newsletter msg */
.newsletter-msg {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    padding: 10px 12px;
    border-radius: 10px;
    display: none;
}

    .newsletter-msg.ok {
        display: block;
        background: rgba(60, 180, 120, .14);
        border: 1px solid rgba(60, 180, 120, .35);
        color: #bff5d5;
    }

    .newsletter-msg.err {
        display: block;
        background: rgba(255, 80, 80, .14);
        border: 1px solid rgba(255, 80, 80, .35);
        color: #ffd0d0;
    }


/* Biosector – login ikonka bez kruhu (ako social ikony) */
.header-social .sp-btn,
.header-social .sp-btn2,
.hero-top-social .sp-btn,
.hero-top-social .sp-btn2 {
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

    /* zruš hover pozadie z Smartpod štýlu */
    .header-social .sp-btn:hover,
    .header-social .sp-btn2:hover,
    .hero-top-social .sp-btn:hover,
    .hero-top-social .sp-btn2:hover {
        background: transparent;
    }

    /* ikonka sa správa ako ostatné SVG */
    .header-social .sp-btn i,
    .hero-top-social .sp-btn i {
        font-size: 20px;
        color: #fff;
    }

    /* avatar (prihlásený stav) – bez kruhu, len jemné zaoblenie */
    .header-social .sp-btn2 img,
    .hero-top-social .sp-btn2 img {
        width: 22px;
        height: 22px;
        border-radius: 4px; /* jemný radius, nie kruh */
        object-fit: cover;
    }

.social-link,
.hero-social-link {
    transition: opacity .15s ease, transform .15s cubic-bezier(.2,.8,.2,1), background .15s ease;
    transform: translateY(0);
    opacity: 1;
}

.header-social .sp-user-menu:hover,
.hero-top-social .sp-user-menu:hover {
    transform: translateZ(-5deg);
}







/* =========================
   3D BOOK (clean + stable)
   ========================= */

.book3d {
    /* rozmery knihy */
    --w: 220px;
    --h: 320px;
    --t: 28px;
    /* strany sú menšie než obálka */
    --pagesInsetTop: 6px;
    --pagesInsetBottom: 6px;
    --pagesInsetOuter: 5px;
    --paper: #eee9df;
    --paper2: #d8d3c8;
    --spine: #2b1c18;
    --spine2: #5b2b22;
    width: var(--w);
    height: var(--h);
    display: inline-block;
    position: relative;
    /* 3D */
    perspective: 1100px;
    /* Dôležité: nech kniha nerobí problémy vrstveniu mimo seba */
    isolation: isolate;
    z-index: 1;
}

    /* jadro knihy */
    .book3d .book {
        width: 100%;
        height: 100%;
        position: relative;
        transform-style: preserve-3d;
        -webkit-transform-style: preserve-3d;
        /* základné natočenie cez premenné */
        --ry: -32deg;
        --rx: 2deg;
        transform: rotateY(var(--ry)) rotateX(var(--rx));
        transition: transform 420ms cubic-bezier(.2,.8,.2,1);
        will-change: transform;
    }

    /* hover len zmení premenné */
    .book3d:hover .book {
        --ry: -18deg;
        --rx: 1deg;
    }

    /* plochy */
    .book3d .face {
        position: absolute;
        inset: 0;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }

    /* front */
    .book3d .front {
        background: var(--cover) center/cover no-repeat;
        transform: translateZ(calc(var(--t) / 2));
        box-shadow: 0 20px 40px rgba(0,0,0,.45);
    }

    /* back */
    .book3d .back {
        background: var(--cover) center/cover no-repeat;
        transform: translateZ(calc(var(--t) / -2));
    }

    /* spine/pages/top/bottom majú vlastnú šírku a sú v strede */
    .book3d .spine,
    .book3d .pages,
    .book3d .top,
    .book3d .bottom {
        position: absolute;
        left: calc(50% - (var(--t) / 2));
        width: var(--t);
    }

    /* spine – ľavá stena */
    .book3d .spine {
        height: var(--h);
        background: linear-gradient(90deg, var(--spine), var(--spine2));
        box-shadow: 0 0 0 1px rgba(0,0,0,.25) inset;
        transform: rotateY(-90deg) translateZ(calc(var(--w) / 2));
    }

    /* pages – pravá stena (menšia než obálka) */
    .book3d .pages {
        top: var(--pagesInsetTop);
        height: calc(var(--h) - var(--pagesInsetTop) - var(--pagesInsetBottom));
        transform: rotateY(90deg) translateZ(calc((var(--w) / 2) - var(--pagesInsetOuter)));
        background: linear-gradient(90deg, var(--paper2), var(--paper) 40%, #fff 55%, var(--paper2) );
        box-shadow: 0 0 0 1px rgba(0,0,0,.12) inset, -3px 0 8px rgba(0,0,0,.15);
    }

    /* horná a spodná hrana (jemný 3D efekt) */
    .book3d .top {
        height: var(--t);
        top: 0;
        width: var(--w);
        left: 0;
        background: linear-gradient(180deg, #f5f2ec, #ddd6ca);
        transform: rotateX(90deg) translateZ(calc(var(--t) / 2));
        transform-origin: top center;
    }

    .book3d .bottom {
        height: var(--t);
        bottom: 0;
        width: var(--w);
        left: 0;
        background: linear-gradient(180deg, #cfc8bc, #e7e1d7);
        transform: rotateX(-90deg) translateZ(calc(var(--t) / 2));
        transform-origin: bottom center;
    }

/* =========================
   HERO placement + layering
   ========================= */

.hero-bottom {
    position: relative;
    width: 100%;
    height: 340px;
    overflow: visible;
    /* aby hero vrstvy nenarušovali zvyšok */
    isolation: isolate;
    pointer-events: none;
}

    .hero-bottom::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
    }

    /* Kniha vpravo */
    .hero-bottom .book3d {
        position: absolute;
        left: 63%;
        top: 40px;
        bottom: 0;
        pointer-events: auto;
        /* nízko, aby menu vždy vyhralo */
        z-index: 2;
    }

        /* Tieň pod knihou */
        .hero-bottom .book3d::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -14px;
            width: 78%;
            height: 20px;
            transform: translateX(-50%);
            background: radial-gradient(ellipse at center, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 70%);
            filter: blur(7px);
            pointer-events: none;
            /* nech je tieň pod knihou, ale stále v hero */
            z-index: 0;
        }

/* =========================
   STATUS BADGE (stable)
   ========================= */

.book-status {
    position: absolute;
    left: 52%;
    bottom: -50px;
    transform: translateX(-50%) rotate(-0deg);
    width: 120px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255,255,255,.92);
    background: rgba(10,10,12,.62);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 10px 26px rgba(0,0,0,.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
    /* vyššie než kniha aj tieň */
    z-index: 5;
}

    .book-status::before {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: 10px;
        pointer-events: none;
        background: linear-gradient( 135deg, rgba(255,255,255,.18), rgba(255,255,255,0) 40%, rgba(255,255,255,.10) 100% );
        mix-blend-mode: screen;
        opacity: .55;
        z-index: 1;
    }

/* Varianty stavu */
.book--status-sale .book-status {
    background: rgba(18, 30, 18, .62);
    border-color: rgba(120, 255, 140, .22);
}

.book--status-preorder .book-status {
    background: rgba(24, 20, 10, .62);
    border-color: rgba(255, 210, 120, .22);
}

.book--status-soon .book-status {
    background: rgba(18, 18, 30, .62);
    border-color: rgba(140, 170, 255, .22);
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 768px) {
    .book-status {
        bottom: -50px;
        font-size: 12px;
        padding: 9px 12px;
    }
}

/* EXTRA SMALL */
@media (max-width: 640px) {
    .book3d {
        --w: 183px;
        --h: 253px;
        --t: 21px;
    }

    /* radšej nescaleovať celý kontajner, nech sedí perspektíva */
    /* ak chceš menšie, rieš cez --w/--h vyššie */
    .hero-bottom .book3d {
        left: auto;
        right: 5%;
        top: 85px;
    }


    .hero-bg-layer {
        background-image: url('/image/new/biomainmob.jpg');
        background-size: cover;
        background-position: center center;
    }
}

/* =========================
   MINI 3D BOOK (series boxes)
   ========================= */

.new-book3d {
    --w: 72px;
    --h: 104px;
    --t: 14px;
    width: var(--w);
    height: var(--h);
    perspective: 700px;
    flex-shrink: 0;
}

.new-book {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    /* jemný default náklon – rovnaký pre všetky */
    transform: rotateY(-18deg) rotateX(6deg);
    transition: transform .35s ease;
}

/* hover – iba mierne priblíženie */
.new-series-card:hover .new-book {
    transform: rotateY(-10deg) rotateX(4deg) scale(1.05);
}

/* spoločné */
.new-book .face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
}

/* obálka */
.new-book .front {
    background: var(--cover) center/cover no-repeat;
    transform: translateZ(calc(var(--t)/2));
    box-shadow: 0 10px 24px rgba(0,0,0,.55);
}

/* zadná strana – tlmená */
.new-book .back {
    background: linear-gradient( rgba(0,0,0,.35), rgba(0,0,0,.55) ), var(--cover) center/cover no-repeat;
    transform: translateZ(calc(var(--t) / -2));
}

/* chrbát */
.new-book .spine {
    width: var(--t);
    height: var(--h);
    left: calc(50% - (var(--t)/2));
    background: linear-gradient(90deg,#2b1c18,#5b2b22);
    transform: rotateY(-90deg) translateZ(calc(var(--w)/2));
}

/* stránky */
.new-book .pages {
    width: var(--t);
    height: calc(var(--h) - 6px);
    top: 3px;
    left: calc(50% - (var(--t)/2));
    background: linear-gradient(90deg,#d8d3c8,#f5f2ec);
    transform: rotateY(90deg) translateZ(calc((var(--w)/2) - 2px));
}

.new-series-books {
    display: flex;
    gap: 11px;
    align-items: flex-end;
}

.new-series-books--3 .new-book3d {
    --w: 84px;
    --h: 122px;
}

.new-series-books--5 .new-book3d {
    --w: 84px;
    --h: 122px;
}


.new-series-title {
    text-shadow: 0 1px 2px rgba(0,0,0,.65), 0 4px 14px rgba(0,0,0,.45);
}

.new-series-desc {
    text-shadow: 0 1px 2px rgba(0,0,0,.75);
}

.new-series-title,
.new-series-desc {
    filter: contrast(1.05);
}


.book .front {
    background:
    /* jemná drážka pri zadnej hrane */
    linear-gradient( to left, transparent 0%, transparent 94%, rgba(0,0,0,.18) 95%, rgba(255,255,255,.12) 97%, rgba(0,0,0,.22) 98%, transparent 99% ), var(--cover) center/cover no-repeat;
    transform: translateZ(calc(var(--t) / 2));
    box-shadow: 0 20px 40px rgba(0,0,0,.45);
}

.book .front {
    box-shadow: inset -2px 0 6px rgba(0,0,0,.25), 0 20px 40px rgba(0,0,0,.45);
}

.new-book .front {
    background:
    /* jemná drážka pri zadnej hrane */
    linear-gradient( to left, transparent 0%, transparent 94%, rgba(0,0,0,.18) 95%, rgba(255,255,255,.12) 97%, rgba(0,0,0,.22) 98%, transparent 99% ), var(--cover) center/cover no-repeat;
    transform: translateZ(calc(var(--t) / 2));
    box-shadow: 0 20px 40px rgba(0,0,0,.45);
}

.new-series-books .pages {
    filter: blur(.15px);
}

.new-book,
.new-series-books .book {
    -webkit-font-smoothing: antialiased;
    image-rendering: auto;
}

    .new-book .front {
        box-shadow: inset -2px 0 6px rgba(0,0,0,.25), 0 20px 40px rgba(0,0,0,.45);
    }

.new-book {
    box-shadow: inset -2px 0 6px rgba(0,0,0,.25), 0 20px 40px rgba(0,0,0,.45);
}

.new-book3d {
}

.new-book .pages {
    background: linear-gradient( to right, rgba(0,0,0,.18), rgba(255,255,255,.95) 20%, rgba(255,255,255,.92) 80%, rgba(0,0,0,.12) );
    /* zjemnenie hrany */
    box-shadow: inset 1px 0 1px rgba(255,255,255,.25), inset -1px 0 2px rgba(0,0,0,.25);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

body {
    background: #05070d;
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background-image: url('/image/stars.jpg');
        background-repeat: repeat;
        background-size: cover;
        background-position: center top;
        opacity: 0.1;
        z-index: -1;
        pointer-events: none;
    }

.main-content {
    background: rgba(5, 7, 13, 0.65);
}

header {
    background: linear-gradient( to bottom, rgba(5,7,13,0.9), rgba(5,7,13,0) );
}

.new-book {
    box-shadow: inset -2px 0 6px rgba(0, 0, 0, .45), 0 20px 40px rgba(0, 0, 0, .45);
}


.timeline-trackf {
    position: relative;
    width: 100%;
    height: 80px;
    background: linear-gradient( to bottom, rgba(5,7,15,0) 0%, rgba(5,7,15,.35) 35%, rgba(5,7,15,.40) 40%, rgba(5,7,15,1) 100% );
    overflow: visible;
}

    /* stmavovanie smerom dole do čiernej */
    .timeline-trackf::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 160px;
        pointer-events: none;
        background: linear-gradient( to bottom, rgba(0,0,0,.10) 0%, rgba(0,0,0,.35) 35%, rgba(0,0,0,.70) 70%, rgba(0,0,0,1) 100% );
    }



.bio-matter {
    width: 240px;
    opacity: .8;
    -webkit-mask-image: radial-gradient( circle, rgba(0,0,0,1) 45%, rgba(0,0,0,.6) 60%, rgba(0,0,0,.25) 70%, rgba(0,0,0,0) 85% );
    mask-image: radial-gradient( circle, rgba(0,0,0,1) 45%, rgba(0,0,0,.6) 60%, rgba(0,0,0,.25) 70%, rgba(0,0,0,0) 85% );
}

.softcover .face.front {
    transform: translateZ(calc(var(--t) / 2 - 1px));
    border-radius: 2px;
    box-shadow: inset -4px 0 6px rgba(0,0,0,0.15);
}

.softcover .face.back {
    transform: rotateY(180deg) translateZ(calc(var(--t) / 2 - 1px));
    border-radius: 2px;
    box-shadow: inset 4px 0 6px rgba(0,0,0,0.12);
}

.softcover .face.spine {
    width: calc(var(--t) * 0.55);
    opacity: 0.65;
    background: linear-gradient( to right, rgba(255,255,255,0.18), rgba(0,0,0,0.16) );
}

.softcover .face.pages {
    box-shadow: inset 2px 0 2px rgba(0,0,0,0.08), inset -2px 0 2px rgba(0,0,0,0.08);
    height: calc(var(--h) - 0px);
    top: 0px;
    transform: rotateY(90deg) translateZ(calc((var(--w) / 2) - 1px));
}



/* FAQ wrapper: nech sa to zarovná do šírky tvojej "glass" karty */
.bio-faq {
    max-width: 1100px;
    margin: 48px auto;
    padding: 0 18px;
}

/* Glass card feel */
.bio-faq__card {
    position: relative;
    border-radius: 22px;
    padding: 26px 22px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
}

.bio-faq__title {
    margin: 0 0 6px;
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 700;
    color: rgba(255,255,255,.92);
    letter-spacing: .2px;
}

.bio-faq__lead {
    margin: 0 0 18px;
    color: rgba(255,255,255,.65);
    line-height: 1.5;
}

.bio-faq__list {
    display: grid;
    gap: 10px;
}

/* Item: jemná dlaždica v rámci glass karty */
.bio-faq__item,
.bio-faq__subitem {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.07);
    background: rgba(255,255,255,.03);
    overflow: hidden;
}

    .bio-faq__item > summary,
    .bio-faq__subitem > summary {
        cursor: pointer;
        padding: 14px 14px;
        list-style: none;
        color: rgba(255,255,255,.9);
        font-weight: 650;
        outline: none;
        user-select: none;
    }

        .bio-faq__item > summary::-webkit-details-marker,
        .bio-faq__subitem > summary::-webkit-details-marker {
            display: none;
        }

        /* Plus/minus ikonka napravo, v štýle “decent” */
        .bio-faq__item > summary::after,
        .bio-faq__subitem > summary::after {
            content: "+";
            float: right;
            color: rgba(255,255,255,.65);
            font-weight: 800;
            letter-spacing: .5px;
        }

    .bio-faq__item[open] > summary::after,
    .bio-faq__subitem[open] > summary::after {
        content: "–";
    }

.bio-faq__answer {
    padding: 0 14px 14px;
    color: rgba(255,255,255,.68);
    line-height: 1.6;
}

    .bio-faq__answer p {
        margin: 10px 0 0;
    }

/* Sub-answer jemnejšie */
.bio-faq__answer--sub {
    padding-top: 6px;
    color: rgba(255,255,255,.62);
}

.bio-faq__hint {
    margin-top: 12px;
    color: rgba(255,255,255,.55);
    font-size: 0.95em;
}

/* Hover: iba jemné zvýraznenie, aby to ladilo s tmavým pozadím */
.bio-faq__item > summary:hover,
.bio-faq__subitem > summary:hover {
    background: rgba(255,255,255,.03);
}