/* ==========================================================================
   Sound-on-tap (Sep 24, 2026; a component since Sep 28, 2026)
   --------------------------------------------------------------------------
   Our own video opens playing MUTED under the custom pages' "Click to
   activate sound" badge; one click anywhere on the picture restarts it with
   sound (static/js/community/player_chrome.js). Same look as custom page
   16: dark glass, gold edge, gentle pulse — theme-blind on purpose, it sits
   on the picture. Both render `hidden`; the script reveals them. The layer
   (a <button>) takes the click; the badge above it lets clicks through.
   Markup: templates/includes/_hosted_video.html.

   A COMPONENT, not a surface stylesheet, because two surfaces share the
   exact same player: the sales page (funnel/video_page.html — these rules
   lived in surfaces/funnel_video.css until Sep 28, 2026, moved here
   unchanged) and the sidebar of an Upload funnel's checkout. That is the
   "genuine sharing" exception in CLAUDE.md's one-file-per-surface rule (cf.
   components/upsell-payment.css). Each page links this sheet only when it
   renders the badge.

   .is-compact (the checkout's 380-px sidebar): the phone-size badge at
   every width — the full-size one would cover half that picture.
   ========================================================================== */

.cc-sound-zone {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

.cc-sound-zone:focus-visible {
    outline: 2px solid rgba(200, 165, 78, 0.8);
    outline-offset: -4px;
}

.cc-sound-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 14px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border: 1px solid rgba(200, 165, 78, 0.3);
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.3;
    text-align: left;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    animation: cc-sound-pulse 2.4s ease-in-out infinite;
    transition: background 0.3s ease;
}

.cc-sound-badge svg {
    flex-shrink: 0;
}

.cc-sound-zone:hover ~ .cc-sound-badge {
    background: rgba(0, 0, 0, 0.9);
}

/* `hidden` must win over the display rules above. */
.cc-sound-zone[hidden],
.cc-sound-badge[hidden] {
    display: none;
}

@keyframes cc-sound-pulse {
    0%, 100% { box-shadow: 0 2px 16px rgba(200, 165, 78, 0.2); transform: scale(1); }
    50% { box-shadow: 0 2px 28px rgba(200, 165, 78, 0.5); transform: scale(1.04); }
}

@media (max-width: 768px) {
    .cc-sound-badge {
        font-size: 11px;
        padding: 10px 14px;
        gap: 8px;
        max-width: 150px;
        border-radius: 10px;
    }

    .cc-sound-badge svg {
        width: 34px;
        height: 34px;
    }
}

/* The phone-size badge at every width (the checkout sidebar). */
.cc-sound-badge.is-compact {
    font-size: 11px;
    padding: 10px 14px;
    gap: 8px;
    max-width: 150px;
    border-radius: 10px;
}

.cc-sound-badge.is-compact svg {
    width: 34px;
    height: 34px;
}
