/* ==========================================================================
   BASTIDORES (REELS)
   --------------------------------------------------------------------------
   Vídeos verticais que tocam ao toque (ReelPlayer.js) e o cartão
   do Instagram.
   ========================================================================== */

.reels {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

.reel {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #000;
    cursor: pointer;
}

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

.reel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10,10,11,0.9) 0%, transparent 45%);
    pointer-events: none;
}

.reel .play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: 74px;
    height: 74px;
    margin: -37px 0 0 -37px;
    border-radius: 50%;
    background: rgba(252,100,0,0.95);
    color: #0a0a0b;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .2s ease, opacity .3s ease;
    box-shadow: 0 0 0 10px rgba(252,100,0,0.2);
}

.reel .play svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

.reel:hover .play {
    transform: scale(1.06);
}

.reel.playing .play {
    opacity: 0;
    pointer-events: none;
}

.reel .txt {
    position: absolute;
    z-index: 1;
    left: 20px;
    right: 20px;
    bottom: 18px;
}

.reel .txt small {
    color: var(--orange);
    font-weight: 600;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.reel .txt b {
    display: block;
    font-size: 1.25rem;
    margin-top: 4px;
    line-height: 1.2;
}

.reel.insta {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(80% 60% at 50% 30%, rgba(252,100,0,0.28), transparent 70%), var(--panel);
}

.reel.insta::after {
    display: none;
}

.insta-in {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
}

.insta-logo img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--black), 0 0 0 6px var(--orange);
}

.insta-in b {
    font-size: 1.4rem;
}

.insta-in > span:not(.btn) {
    color: #d4d4d8;
    font-size: 0.95rem;
    max-width: 24ch;
}

/* --- Responsivo --------------------------------------------------------- */

@media (max-width:1060px) {
    .reels {
        grid-template-columns: repeat(3,minmax(220px,1fr));
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 6px;
    }

    .reel {
        scroll-snap-align: start;
    }
}

@media (max-width:640px) {
    .reels {
        grid-template-columns: repeat(3,78%);
    }
}
