/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root{
    --banner-h: 50px;
    --bg-gray: #333333;

    --gap: 20px;
    --pano-h: 65vh;

    --rightbar-w: 50px;
    --edge-gap: 20px;

    --bottom-pad: 20px;
}

/* ZÁKLAD */
html, body { height: 100%; }
body{
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg-gray);
    color: #fff;
    overflow-y: auto;
}

/* ================== TOP BANNER ================== */
.banner{
    position: fixed;
    left: 0; right: 0;
    height: var(--banner-h);
    z-index: 1000;
    overflow: hidden;
}

.top-banner{
    top: 0;
    background: transparent;
}
.top-banner::before{
    content:"";
    position:absolute;
    inset:0;
    background:#000;
    z-index:0;
}

.top-banner-inner{
    position: relative;
    z-index: 1;
    width: min(70vw, 1100px);
    margin: 0 auto;

    font-family: 'Orbitron', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1.6vw, 22px);
    line-height: 1;

    color: rgba(255,255,255,.28);
    letter-spacing: 1.2px;

    display:flex;
    align-items:center;
    justify-content:center;
    height: var(--banner-h);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

/* ================== LAYOUT: MAIN má presnú šírku obsahu ==================
   Toto je ten “pixel-perfect” trik:
   - obsah má 20px zľava
   - a vpravo je rezervované (rightbar 50px + 20px gap)
   => pano bude vždy presne 20px od rightbaru
*/
main{
    min-height: 100%;
    padding-top: calc(var(--banner-h) + var(--gap));
    padding-bottom: calc(var(--banner-h) + 24px);

    padding-left: var(--edge-gap);
    padding-right: calc(var(--rightbar-w) + var(--edge-gap));
}

/* Sekcie: len vertikálny spacing */
.content-frame{
    margin-bottom: var(--gap);
}

/* Wrap musí byť relatívny kvôli logu */
.pano-wrap{
    position: relative;
    overflow: visible;
}

/* PANO: šírka 100% z main (už presne definovaná), + 1px border */
.pano{
    width: 100%;
    height: var(--pano-h);

    border-radius: 0;
    overflow: hidden;

    border: 1px solid #000; /* ✅ 1px čierny border */
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    background: #111;
}

/* Logo */
.pano-logo{
    position: absolute;
    bottom: -12px;
    right: calc(-1 * (var(--rightbar-w) * 0.55));
    transform: none;
    height: 64px;

    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
    transition: opacity .25s ease, transform .25s ease;
    z-index: 2000;
}
.pano-wrap.active .pano-logo{
    opacity: .4;
    transform: scale(1);
}

/* ================== RIGHT BAR ================== */
.rightbar{
    position: fixed;
    top: 0;
    right: 0;
    width: var(--rightbar-w);
    height: 100vh;
    background: #000;
    z-index: 1300;
}
.rightbar-inner{
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rightbar-arrows{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.rb-btn{
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}
.rb-btn:hover{ filter: brightness(1.15); }

.rightbar-actions{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
}

.rb-icon{
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    text-decoration: none;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.85);
    font-size: 18px;
}
.rb-icon:hover{ filter: brightness(1.15); }

/* ================== BOTTOM TEXT ================== */
.bottom-textbar{
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    z-index: 1000;
    pointer-events: none;

    /* šírka: rovnako ako "main content", len s odsadením 20px */
    width: calc(100vw - (2 * var(--bottom-pad)) - var(--rightbar-w));
}

.bottom-text{
    font-family: 'Orbitron', sans-serif;
    font-weight: 400;
    font-size: 22px;
    letter-spacing: 1.6px;
    line-height: 1;
    text-align: center;

    color: rgba(0,0,0,.65);
    text-shadow: 0 1px 0 rgba(255,255,255,.12);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================== MOBIL ================== */
@media (max-width: 768px){
    :root{
        --rightbar-w: 44px;
        --pano-h: 65vh;
    }

    .bottom-text{
        font-size: 16px;
        letter-spacing: 1.2px;
    }
}
