.lite-youtube-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #000;
}

.lite-youtube-shell iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lite-youtube-poster {
    all: unset;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000;
    color: #fff;
    text-align: center;
    font: inherit;
}

.lite-youtube-poster:focus-visible {
    outline: 3px solid #86d2ff;
    outline-offset: 4px;
}

.lite-youtube-media {
    position: absolute;
    inset: 0;
}

.lite-youtube-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lite-youtube-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.45));
}

.lite-youtube-play-button {
    position: relative;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.32);
}

.lite-youtube-play-button::before {
    content: '';
    display: inline-block;
    margin-left: 0.2rem;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.8rem 0 0.8rem 1.2rem;
    border-color: transparent transparent transparent #fff;
}

.lite-youtube-poster:hover .lite-youtube-play-button,
.lite-youtube-poster:focus-visible .lite-youtube-play-button {
    transform: scale(1.03);
}

.lite-youtube-poster:hover .lite-youtube-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.52));
}/* ============================================================
   HowToPage — blog-themed article page
   Accent color matches /blog theme: #20c997
   ============================================================ */

:root {
    --howto-accent: #20c997;
    --howto-accent-dark: #0d7a5f;
    --howto-accent-bg: color-mix(in srgb, #20c997 8%, #fff);
    --howto-accent-border: color-mix(in srgb, #20c997 22%, transparent);
    --howto-text: #1a1a2e;
    --howto-text-muted: #555;
    --howto-border: #e8ecf0;
    --howto-surface: #fff;
    --howto-surface-alt: #f8fafc;
}

/* ── Page wrapper ── */
.howto-page {
    min-height: 80vh;
    background: var(--howto-surface-alt);
}

/* ── Breadcrumb ── */
.howto-breadcrumb {
    margin-bottom: 1.25rem;
}

.howto-breadcrumb .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.82rem;
}

.howto-breadcrumb .breadcrumb-item a {
    color: var(--howto-accent);
    text-decoration: none;
}

.howto-breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}

.howto-breadcrumb .breadcrumb-item.active {
    color: #777;
}

.howto-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #bbb;
}

/* ── Hero ── */
.howto-hero {
    margin-bottom: 1.5rem;
    padding: 1.5rem 1.5rem 1.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--howto-accent-bg) 0%, #fff 100%);
    border: 1px solid var(--howto-accent-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* ── Kicker badge ── */
.howto-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.7rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--howto-accent) 12%, transparent);
    color: var(--howto-accent-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--howto-accent-border);
}

.howto-hero h1 {
    margin: 0 0 0.6rem;
    color: var(--howto-text);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
}

.howto-hero p {
    margin: 0;
    max-width: 820px;
    color: var(--howto-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* ── Tags row ── */
.howto-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.9rem;
}

.howto-meta-row span {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--howto-accent-border);
    background: color-mix(in srgb, var(--howto-accent) 8%, #fff);
    color: var(--howto-accent-dark);
    font-size: 0.78rem;
    font-weight: 600;
}

/* ── Section cards ── */
.howto-section {
    margin-top: 1.25rem;
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--howto-border);
    background: var(--howto-surface);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.howto-section-head {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid color-mix(in srgb, var(--howto-accent) 15%, transparent);
}

.howto-section-head h2 {
    margin: 0 0 0.25rem;
    color: var(--howto-text);
    font-size: 1.15rem;
    font-weight: 700;
}

.howto-section-head p {
    margin: 0;
    color: var(--howto-text-muted);
    font-size: 0.9rem;
}

/* ── Video grid ── */
.howto-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.howto-video-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--howto-border);
    background: var(--howto-surface);
    width: 100%;
    min-width: 0;
}

.howto-video-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.85rem;
}

.howto-video-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.35rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--howto-accent) 10%, transparent);
    color: var(--howto-accent-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid var(--howto-accent-border);
}

.howto-video-card h3 {
    margin: 0 0 0.3rem;
    color: var(--howto-text);
    font-size: 1rem;
    font-weight: 700;
}

.howto-video-card p {
    margin: 0;
    color: var(--howto-text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ── Language toggle pills ── */
.howto-video-switch {
    display: flex;
    gap: 0.4rem;
    flex-wrap: nowrap;
    align-items: stretch;
    min-width: 0;
}

.howto-video-pill {
    flex: 0 0 auto;
    min-width: 4.5rem;
    box-sizing: border-box;
    border: 1px solid var(--howto-accent-border);
    border-radius: 999px;
    background: var(--howto-surface-alt);
    color: var(--howto-accent-dark);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
}

.howto-video-pill:hover {
    background: color-mix(in srgb, var(--howto-accent) 10%, #fff);
}

.howto-video-pill.active {
    background: var(--howto-accent);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--howto-accent) 35%, transparent);
}

/* ── Video embed shell ── */
.howto-video-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 420px;
    border-radius: 10px;
    overflow: hidden;
    background: #0a1a0f;
    border: 1px solid var(--howto-border);
}

.howto-video-shell iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ── Content blocks ── */
.howto-content {
    max-width: 920px;
    margin: 0 auto;
}

.howto-content :is(p, li) {
    color: var(--howto-text-muted);
    line-height: 1.7;
}

.howto-content h2,
.howto-content h3 {
    color: var(--howto-text);
}

.howto-content > ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.howto-content > ul > li {
    position: relative;
    margin: 0;
    padding: 0.68rem 0.78rem 0.68rem 1.1rem;
    border-radius: 10px;
    border: 1px solid var(--howto-border);
    background: var(--howto-surface-alt);
    line-height: 1.62;
    font-size: 1rem;
}

.howto-content > ul > li::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0.42rem;
    width: 2px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--howto-accent) 55%, transparent);
}

.howto-content .bullet-label {
    margin-top: 0.35rem !important;
    margin-bottom: 0.2rem !important;
    padding: 0.42rem 0.62rem;
    border-radius: 8px;
    border: 1px solid var(--howto-accent-border);
    background: color-mix(in srgb, var(--howto-accent) 6%, #fff);
    color: var(--howto-text);
    font-weight: 700;
    font-size: 0.92rem;
}

.howto-content ul ul {
    margin: 0.3rem 0 0.55rem 0;
    padding-left: 1.45rem;
    list-style: disc;
    display: block;
}

.howto-content ul ul li {
    margin: 0.22rem 0;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 1.56;
    font-size: 0.94rem;
}

.howto-content ul ul li::before {
    content: none;
}

.howto-content .content-table,
.howto-content .content-image {
    margin-top: 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--howto-border);
    background: var(--howto-surface);
    padding: 0.85rem;
}

/* ── Footer / back link ── */
.howto-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--howto-border);
}

.howto-back-link {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--howto-border);
    background: var(--howto-surface);
    color: #777;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}

.howto-back-link:hover {
    color: var(--howto-accent-dark);
    border-color: var(--howto-accent-border);
    background: color-mix(in srgb, var(--howto-accent) 6%, #fff);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .howto-hero,
    .howto-section {
        padding: 1rem;
        border-radius: 12px;
    }

    .howto-hero h1 {
        font-size: 1.5rem;
    }

    .howto-video-grid {
        max-width: 100%;
        grid-template-columns: 1fr;
    }

    .howto-video-card-head {
        flex-direction: column;
    }

    .howto-video-switch {
        width: 100%;
        flex-wrap: wrap;
    }

    .howto-video-pill {
        min-width: 0;
        flex: 1 1 calc(50% - 0.2rem);
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .howto-video-grid {
        grid-template-columns: 1fr;
    }

    .howto-video-pill {
        flex: 1 1 100%;
        min-width: 100%;
    }
}