/* --- BASE & RESET --- */
* { box-sizing: border-box; scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; }

body, html {
    margin: 0; padding: 0;
    font-family: 'Archivo Narrow', sans-serif;
    width: 100%;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #f4f1ea;
    background-image: radial-gradient(#ddd9ce 1.2px, transparent 1.2px);
    background-size: 24px 24px;
    color: black;
}

/* --- TOP-LEFT BACK ARROW --- */
.back-arrow {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 9999;

    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    color: #000;
    font-size: 28px;
    line-height: 1;

    background: transparent;
    border: none;
    text-shadow: 0 1px 0 rgba(244, 241, 234, 0.9);

    transition: transform 0.12s ease, opacity 0.12s ease;
}

.back-arrow:hover {
    opacity: 0.7;
}

.back-arrow:active {
    transform: translateX(-1px);
}

.back-arrow:focus-visible {
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* --- STAGE --- */
#videos-container {
    width: 100%;
    min-height: 100svh;
}

#videos-stage {
    position: relative;
    width: 100%;
    height: 100svh;
    overflow: hidden;
    padding-top: 72px; /* space under the back arrow */
}

/* --- DRAGGABLE YOUTUBE EMBEDS --- */
.yt-card {
    position: absolute;
    width: clamp(180px, 26vw, 340px);
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: hidden;
    user-select: none;
}

.yt-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
    background: #000;
}

.yt-overlay {
    position: absolute;
    inset: 0;
    cursor: grab;
    touch-action: none; /* enables drag on mobile without scrolling */
    background: transparent;
}

.yt-card.is-dragging .yt-overlay {
    cursor: grabbing;
}

/* --- MOBILE --- */
@media (max-width: 800px) {
    .back-arrow { top: 12px; left: 12px; }
    #videos-stage { padding-top: 62px; }
    .yt-card { width: clamp(180px, 84vw, 340px); }
}