/* =========================
   FEATURE TUTORIAL VIDEOS
   Shared by Position Analysis, Game Analysis, Opening Lab and History.
   Linked only from those four templates (after their page stylesheet).
   Placed after each page's primary workflow; embeds use
   youtube-nocookie with loading="lazy" and never autoplay.
========================= */
.sq-tutorial {
    padding: 24px 28px;
}

.sq-tutorial-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
}

.sq-tutorial-title i { color: var(--accent); }

.sq-tutorial-text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 16px;
}

/* Single-video pages: cap the player so it never dominates wide layouts. */
.sq-tutorial-media {
    max-width: 760px;
}

/* Game Analysis: two tutorials side by side, stacked below 900px. */
.sq-tutorial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1240px;
}

.sq-tutorial-item-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.sq-tutorial-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
}

.sq-tutorial-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 900px) {
    .sq-tutorial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sq-tutorial {
        padding: 18px 16px;
    }
}
