/* =========================================================
   O autorce (o-autorce.php) – styly jen pro tuto stránku.
   Společné styly jsou v style.css.
   ========================================================= */

#pribeh .featured-text h3 {
    margin-bottom: 1.5rem;
}

#pribeh .featured-text p {
    max-width: 560px;
}

/* ---------------------------------------------------------
   Videa – jedno video najednou, přepínání šipkami / tažením
   --------------------------------------------------------- */
.videos-section .section-header {
    margin-bottom: 3rem;
}

.video-slider {
    max-width: 960px;
    margin: 0 auto;
}

/* Pás videí: posouvá se prstem (scroll-snap) i šipkami */
.vs-viewport {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.vs-viewport::-webkit-scrollbar {
    display: none;
}

.vs-viewport:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.vs-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.video-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--charcoal);
    cursor: pointer;
}

.video-thumb img,
.video-thumb iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

/* Tlačítko přehrát */
.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    padding: 0;
    border-radius: 50%;
    background: rgba(245, 237, 227, 0.92);
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: background 0.4s ease, transform 0.4s ease;
}

.video-play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -11px 0 0 -7px;
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent var(--burnt-sienna);
    transition: border-color 0.4s ease;
}

.video-thumb:hover .video-play,
.video-play:focus-visible {
    background: var(--gold);
    transform: scale(1.08);
}

.video-thumb:hover .video-play::before,
.video-play:focus-visible::before {
    border-left-color: white;
}

/* Ovládání pod videem: šipka – název, puntíky, počet – šipka */
.vs-controls {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.vs-controls.vs-single {
    display: none;
}

.vs-arrow {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background: transparent;
    color: var(--burnt-sienna);
    font-size: 2rem;
    line-height: 1;
    padding: 0 0 4px;
    cursor: pointer;
    transition: background 0.4s ease, color 0.4s ease;
}

.vs-arrow:hover,
.vs-arrow:focus-visible {
    background: var(--gold);
    color: white;
}

.vs-info {
    text-align: center;
}

.vs-title {
    min-height: 1.6em;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--charcoal);
    letter-spacing: 0.5px;
}

.vs-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.8rem 0 0.4rem;
}

.vs-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.vs-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

.vs-count {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--burnt-sienna);
}

.videos-empty {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
}

@media (max-width: 768px) {
    .vs-arrow { width: 44px; height: 44px; font-size: 1.7rem; }
    .vs-title { font-size: 1.15rem; }
    .vs-controls { gap: 0.6rem; }
    .video-play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
    .video-play::before { margin: -9px 0 0 -6px; border-width: 9px 0 9px 15px; }
}


/* ---------------------------------------------------------
   Záložky: Z mé tvorby | Z lektorských kurzů
   --------------------------------------------------------- */
.vs-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2.5rem;
    margin: 0 auto 2rem;
}

.vs-tab {
    padding: 0.5rem 0;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--charcoal);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.vs-tab:hover,
.vs-tab:focus-visible {
    color: var(--gold);
    outline: none;
}

.vs-tab.active {
    color: var(--burnt-sienna);
    border-bottom-color: var(--gold);
}

@media (max-width: 480px) {
    .vs-tabs { gap: 0.5rem 1.5rem; }
    .vs-tab { font-size: 0.72rem; letter-spacing: 1.5px; }
}


/* ---------------------------------------------------------
   Příběh: podnadpis, citace, mezititulek, podpis
   --------------------------------------------------------- */
.story-sub {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.4rem !important;
    color: var(--burnt-sienna) !important;
    margin-bottom: 2rem !important;
}

.story-quote {
    margin: 0 0 2.5rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--gold);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--charcoal);
    max-width: 560px;
}

.story-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--burnt-sienna);
    margin-bottom: 1.2rem;
}

#pribeh .podpis {
    display: block;
    width: 220px;
    max-width: 60%;
    height: auto;
    margin: 2rem 0 0 auto;
}

@media (max-width: 768px) {
    .story-sub { font-size: 1.2rem !important; }
    .story-quote { font-size: 1.15rem; }
    #pribeh .podpis { width: 190px; }
}

/* Sloupec s příběhem: úzký, aby podpis seděl na pravém okraji textu */
#pribeh .featured-text {
    max-width: 560px;
}
