/* ======================================================= */
/* --- START: YOUTUBE TUTORIAL SLIDE-OUT BUTTON STYLES --- */
/* ======================================================= */
.youtube-tutorial-btn {
    position: fixed;
    bottom: 36px;
    left: 0;
    transform: translateY(-50%) translateX(calc(-100% + 48px)); /* same peek as desktop */
    z-index: 50002;

    background-color: #FF0000;
    color: white;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 15px;

    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row-reverse;

    padding: 10px 12px 10px 15px;
    border-radius: 0 20px 20px 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);

    transition: transform 0.3s ease-in-out;
}

/* Hover + touch support */
.youtube-tutorial-btn:hover,
.youtube-tutorial-btn:active {
    transform: translateY(-50%) translateX(0);
}

.youtube-tutorial-btn svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.youtube-tutorial-btn span {
    white-space: nowrap;
}

/* ---------- iPad / Tablet (≤ 1024px) ---------- */
@media (max-width: 1024px) {
    .youtube-tutorial-btn {
        /* Keep the same peek amount as desktop */
        transform: translateY(-50%) translateX(calc(-100% + 48px));

        /* Make the whole button smaller so it doesn’t extend too far */
        padding: 8px 10px 8px 12px;
        font-size: 13px;
        gap: 6px;
    }

    .youtube-tutorial-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* ---------- Phones ---------- */
@media (max-width: 480px) {
    .youtube-tutorial-btn {
        transform: translateY(-50%) translateX(calc(-100% + 40px));
        padding: 7px 9px 7px 11px;
        font-size: 12px;
    }
    .youtube-tutorial-btn svg {
        width: 20px;
        height: 20px;
    }
}
/* --- END: YOUTUBE BUTTON STYLES --- */