/* The page a recording's link opens. */
.recording-unavailable { max-width: 640px; padding-inline: 24px; }
.recording-unavailable h1 { font-size: clamp(26px, 5vw, 36px); margin-bottom: 16px; }
.recording-unavailable__back { width: min(100%, 280px); min-height: 44px; margin: 24px auto 0; }
.recording-unavailable__back:hover, .recording-unavailable__back:focus { color: #fff; background: #A80000; }
.recording-unavailable__back:focus-visible { outline: 2px solid #0F133A; outline-offset: 3px; }
.recording-card { margin-bottom: 110px; }
.recording-video { width: 100%; max-height: 70vh; background: #000; }
.recording-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.recording-actions .magoo-name { margin: 0; overflow-wrap: anywhere; }
/* The heart sits in that row, beside the QR button; its number goes under it. */
.recording-buttons { display: flex; align-items: flex-start; gap: 14px; flex: none; }
.reveal-like { display: flex; flex-direction: column; align-items: center; flex: none; color: #000; font-size: 15px; line-height: 1.2; }
.reveal-like-btn { padding: 0; border: none; background: transparent; }
.reveal-like-count:empty { display: none; }
.recording-discover { margin-top: 14px; }
.recording-report { margin-top: 14px; text-align: center; }
.recording-report button { min-height: 44px; padding: 0 12px; border: none; background: transparent; color: #5C5F75; font-size: 14px; text-decoration: underline; }
.recording-note { margin: 14px 0 0; text-align: center; color: #5C5F75; font-size: 14px; }

/* The recorder's own controls, on the video's page and in "My Reveals". */
.recording-empty { padding: 28px 25px; text-align: center; }
.recording-empty p { margin: 0; color: #5C5F75; }
.recording-link { margin-top: 12px; }
.recording-owner { margin-top: 14px; }
.recording-status { margin: 0 0 10px; }
.recording-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #F2F2F4; color: #474B63; font-family: "roboto-bold"; font-size: 13px; }
.recording-pill.is-waiting { background: #FFF1D6; color: #7A4B00; }
.recording-pill.is-on { background: #DDF3E4; color: #135C2C; }
.recording-owner .recording-note { margin: 0 0 12px; text-align: left; }
.recording-owner .recording-note a { color: #CC0000; }
.recording-owner-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.recording-owner-buttons form { margin: 0; }
.recording-btn { min-height: 44px; padding: 0 18px; border: 1px solid #C9CBD6; border-radius: 22px; background: #fff; color: #0F133A; font-family: "roboto-bold"; font-size: 15px; }
.recording-btn.is-main { border-color: #CC0000; background: #CC0000; color: #fff; }
.recording-btn.is-danger { color: #A80000; }

/* Shared Reveals have their own viewport. Other cards keep their existing layout. */
body.reveal-page { background: #080808 !important; color: white; }
.reveal-page .magoo-site-header, .reveal-page .site-footer { display: none; }
.reveal-page main { margin: 0; padding: 0; }
.reveal-player { position: relative; width: 100%; max-width: 560px; height: 100svh; height: 100dvh; min-height: 480px; margin: auto; overflow: hidden; background: black; }
.reveal-player__video { width: 100%; height: 100%; max-height: none; display: block; object-fit: contain; }
.reveal-brand img { width: 85px; }
.reveal-player__caption { position: absolute; bottom: 0; left: 0; width: 100%; padding: 90px 84px max(20px, env(safe-area-inset-bottom)) 18px; background: linear-gradient(transparent, #000c); pointer-events: none; }
.reveal-player__caption a, .reveal-player__caption button, .reveal-player__caption details { pointer-events: auto; }
.reveal-player__caption h1 { color: white; font-size: 18px; line-height: 1.3; margin: 12px 0; overflow-wrap: anywhere; }
.reveal-creator { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reveal-creator img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.reveal-creator strong { font-size: 15px; overflow-wrap: anywhere; }
.reveal-creator button { min-height: 36px; border: 1px solid #fff9; border-radius: 8px; background: #0003; color: white; padding: 4px 10px; }
.reveal-player__actions { position: absolute; right: 10px; bottom: max(140px, calc(env(safe-area-inset-bottom) + 120px)); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.reveal-player__actions > button, .reveal-player .reveal-like-btn { background: #0006; border: none; color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 48px; min-height: 48px; padding: 6px; border-radius: 12px; font-size: 11px; }
.reveal-player__actions img, .reveal-player__actions svg { width: 26px; height: 26px; }
.reveal-player__actions > button img { filter: none; }
.reveal-player .reveal-like { color: white; }
.reveal-player .action-img-card-container { width: 30px; height: 30px; }
.reveal-player__actions svg { fill: none; stroke: currentColor; stroke-width: 2; }
.reveal-player__actions [aria-pressed=true] svg { fill: white; }
.reveal-discover-row { display: flex; align-items: center; gap: 12px; }
.reveal-player .recording-discover { display: inline-flex; margin: 0; color: white; background: #CC0000; border-radius: 24px; padding: 10px 16px; font-size: 14px; }
.reveal-player .target-modal-btn { background: #fffd; border-radius: 50%; min-width: 44px; min-height: 44px; }
.reveal-player__play { position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%); border: 1px solid white; border-radius: 24px; padding: 12px 20px; color: white; background: #000a; }
.reveal-comments { position: fixed; inset: auto 0 0; width: min(560px, 100%); max-height: 75dvh; margin: 0 auto; padding: 22px; border: 0; border-radius: 20px 20px 0 0; background: white; color: #0F133A; overflow: auto; }
.reveal-comments::backdrop { background: #0008; }
.reveal-comments h2 { font-size: 21px; }
.reveal-comments [data-close-comments] { float: right; }
.reveal-comments button, .reveal-comments a { min-height: 44px; padding: 8px 12px; }
.reveal-comments textarea { width: 100%; border: 1px solid #aaa; border-radius: 8px; padding: 10px; font-size: 16px; }
.reveal-comment { padding: 12px 0; border-bottom: 1px solid #ddd; overflow-wrap: anywhere; white-space: pre-wrap; }
.reveal-comment p { margin: 6px 0; }
.reveal-page button:focus-visible, .reveal-page a:focus-visible { outline: 3px solid #FFC42E; outline-offset: 2px; }
@media (max-height: 600px) { .reveal-player__actions { gap: 3px; bottom: 100px; } .reveal-player__caption { padding-top: 30px; } }
@media (prefers-reduced-motion: reduce) { .reveal-player * { scroll-behavior: auto; } }

/* Reuse Magoo's actual icon artwork and comment sheet, without recolouring it. */
.reveal-creator img, .reveal-comments .comment-dp img { background: #fff; border-radius: 50%; object-fit: cover; }
.reveal-player__actions > button, .reveal-player .reveal-like-btn { background: transparent; padding: 0; border-radius: 0; }
.reveal-player__actions > button img { filter: none; width: 30px; height: 30px; }
.reveal-player .action-img-card-container { width: 44px; height: 44px; padding: 0; background: transparent; border-radius: 0; display: grid; place-items: center; }
.reveal-player .action-img-card-container img { width: 30px; height: 30px; }
.reveal-player__actions > button[aria-pressed=true] .action-img-card-container { box-shadow: 0 0 0 2px #CC0000; }
.reveal-player .target-modal-btn { background: transparent; border: 0; padding: 0; }
.reveal-player .recording-discover { font-family: 'Roboto', sans-serif; font-weight: 700; border-radius: 10px; }
.reveal-creator button { background: transparent; border: 1px solid #fff; border-radius: 8px; color: #fff; font-weight: 700; }
.reveal-comments.comment-section { inset: auto 0 0; left: 0; transform: none; margin: 0 auto; width: min(550px, 100%); height: 75dvh; max-height: 85dvh; padding: 0; border: 0; border-radius: 0; background: transparent; overflow: hidden; }
.reveal-comments.comment-section[open] { display: flex; flex-direction: column; }
.reveal-comments .text-end { margin-bottom: 12px; }
.reveal-comments .comment-area { height: auto; flex: 1; min-height: 0; }
.reveal-comments .comment-footer { flex: none; padding-bottom: max(25px, env(safe-area-inset-bottom)); }
.reveal-comments .comment-footer button { min-height: 35px; padding: 3px; }
.reveal-comments .comment-footer .modal-btn { position: static; transform: none; width: 100%; background: #CC0000; }
.reveal-comments .comment-dp img { width: 25px; height: 25px; }
.reveal-comments .comment-detail p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.reveal-delete-comment { border: 0; background: none; color: #CC0000; font-size: 13px; padding: 4px 0 !important; }
.reveal-player .recording-btn { border-radius: 10px; }
.reveal-player .recording-pill { margin-bottom: 8px; }
.reveal-collection-header { position: relative; z-index: 5; width: min(560px, 100%); margin: auto; padding: 0 12px 10px; background: white; color: #0F133A; }
.reveal-collection-header .member-tabs { margin-top: 10px; }
.reveal-collection-tabs { display: flex; padding: 5px; gap: 6px; border-radius: 12px; background: #f2f2f4; margin-top: 10px; }
.reveal-collection-tabs a { display: block; flex: 1; text-align: center; padding: 11px 8px; color: #0F133A; font-weight: 700; text-decoration: none; border-radius: 10px; }
.reveal-collection-tabs a[aria-current=page] { background: #CC0000; color: white; }
.reveal-collection { max-width: 560px; margin: auto; }
/* The document scrolls: the tabs move away and each player gets the full viewport. */
body.reveal-page { height: auto; min-height: 100%; overflow-y: auto; touch-action: pan-y; }
.reveal-collection .recording-empty { background: white; border-radius: 20px; margin: 20px; }

/* Reveal review: clean icons, a lower social rail, and one discovery pill. */
.reveal-player__actions { right: 12px; bottom: max(86px, calc(env(safe-area-inset-bottom) + 76px)); gap: 8px; z-index: 2; }
.reveal-player .action-img-card-container { background: transparent; border: 0; padding: 0; box-shadow: none; }
.reveal-player__actions > button, .reveal-player .reveal-like-btn { border: 0; box-shadow: none; min-width: 44px; min-height: 44px; }
.reveal-player__actions > button img { filter: none; }
.reveal-player .reveal-like-btn img { filter: none; }
.reveal-player__actions > button[aria-pressed=true] .action-img-card-container { box-shadow: none; }
.reveal-player__actions svg { width: 30px; height: 30px; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reveal-player__actions [data-sound] svg, .reveal-player__actions [data-sound][aria-pressed=true] svg { fill: none; }
.reveal-player__actions svg [hidden] { display: none; }
.reveal-player__actions button, .reveal-player .reveal-like-count { filter: drop-shadow(0 1px 3px #000a); }
.reveal-player__caption { padding: 70px 78px max(98px, calc(env(safe-area-inset-bottom) + 88px)) 18px; }
.reveal-player__caption h1 { font-size: 15px; margin: 8px 0; }
.reveal-player .recording-owner { margin-top: 10px; }
.reveal-player .recording-owner-buttons { align-items: center; gap: 8px; }
.reveal-player .recording-btn { min-height: 36px; padding: 6px 11px; font-size: 12px; }
.recording-delete { width: 40px; height: 40px; border: 0; background: transparent; padding: 4px; }
.recording-delete img { width: 28px; height: 28px; }
.reveal-player .recording-delete img { filter: none; }
.reveal-player .recording-note { color: white; font-size: 12px; }
.reveal-report { pointer-events: auto; margin-top: 5px; }
.reveal-report button { min-height: 30px; border: 0; padding: 0; color: #fffd; background: none; font-size: 11px; text-decoration: underline; }
.reveal-description { pointer-events: auto; max-height: 20dvh; overflow-y: auto; font-size: 14px; line-height: 1.4; }
.reveal-description summary { cursor: pointer; overflow-wrap: anywhere; }
.reveal-description p { color: white; white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; }
.reveal-player .reveal-discover-pill { position: absolute; z-index: 3; left: 18px; right: 18px; bottom: max(20px, env(safe-area-inset-bottom)); width: calc(100% - 36px); min-height: 48px; padding: 12px 18px; border: 0; border-radius: 999px; background: #fff; color: #0F133A; font-size: 16px; font-weight: 700; }
.reveal-player__actions, .reveal-player .recording-owner-buttons, .reveal-creator button, .reveal-report, .reveal-discover-pill { transition: opacity .3s ease; }
.is-controls-dimmed .reveal-player__actions, .is-controls-dimmed .recording-owner-buttons, .is-controls-dimmed .reveal-creator button, .is-controls-dimmed .reveal-report, .is-controls-dimmed .reveal-discover-pill { opacity: .4; }
.is-controls-dimmed :focus-within, .is-controls-dimmed .reveal-player__actions:hover { opacity: 1; }
.reveal-comments .btn-close { filter: none; box-shadow: none; background: transparent url('../img/close.svg') center / 28px no-repeat; }
.recording-description { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-height: 650px) { .reveal-player__actions { gap: 2px; bottom: max(80px, calc(env(safe-area-inset-bottom) + 70px)); } .reveal-player__caption { padding-top: 25px; } }
@media (prefers-reduced-motion: reduce) { .reveal-player__actions, .reveal-player .recording-owner-buttons, .reveal-creator button, .reveal-report, .reveal-discover-pill { transition: none; } }

/* One document swipe surface: the member tabs leave on the first gesture. */
html.reveal-swipe { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
.reveal-swipe .reveal-collection-header, .reveal-swipe .reveal-player { scroll-snap-align: start; scroll-snap-stop: always; }
.reveal-feed { position: relative; max-width: 560px; margin-inline: auto; }
.reveal-feed__toolbar { position: sticky; top: 0; height: 0; z-index: 20; }
.reveal-feed__toolbar-inner { display: flex; align-items: center; justify-content: space-between; padding: max(14px, env(safe-area-inset-top)) 16px 26px; background: linear-gradient(#0009, transparent); pointer-events: none; }
.reveal-feed__toolbar a, .reveal-feed__toolbar button { pointer-events: auto; }
.reveal-feed__menu { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #0005; color: white; }
.reveal-feed__menu svg { width: 28px; height: 28px; fill: currentColor; }
.reveal-feed__menu:disabled { opacity: .5; }
.reveal-player__video { transform: translate3d(0, var(--reveal-video-shift, 0px), 0); }
.reveal-player__caption, .reveal-player__actions, .reveal-player .reveal-discover-pill { transform: translate3d(0, var(--reveal-ui-shift, 0px), 0); }
.reveal-player__caption { padding-bottom: max(80px, calc(env(safe-area-inset-bottom) + 76px)); }
.reveal-player .reveal-options .recording-owner-buttons { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.reveal-player .reveal-options .recording-btn { display: block; width: 100%; min-height: 44px; font-size: 16px; }
.reveal-player .reveal-options .recording-note { color: #0F133A; }
.reveal-options { overscroll-behavior: contain; }
.reveal-options .reveal-report { margin-top: 18px; text-align: center; }
.reveal-options .reveal-report button { color: #5C5F75; font-size: 14px; min-height: 44px; }
.reveal-options .modal-body > p { color: #0F133A; }
body.reveal-page:has(dialog[open]) { overflow: hidden; }
/* Experiences uses the same player and site header, with no hidden videos. */
body.reveal-navigation { overflow: hidden; overscroll-behavior-y: none; }
.reveal-navigation .reveal-player { min-height: 0; }
.reveal-navigation .reveal-brand { visibility: hidden; }
.reveal-navigation.reveal-boundary .magoo-site-header { display: block; position: fixed; inset: 0 0 auto; }
.reveal-navigation .magoo-site-header__navigation,
.reveal-navigation .magoo-site-header__menu,
.reveal-navigation .magoo-site-header__action { display: none; }
.reveal-navigation .magoo-site-header__brand { grid-column: 2; }
.reveal-back { grid-column: 1; grid-row: 1; color: white; min-height: 44px; display: flex; align-items: center; }
.reveal-boundary .reveal-feed__toolbar-inner { padding-top: calc(90px + env(safe-area-inset-top)); }
.reveal-feed__status { position: fixed; top: 42%; left: 50%; transform: translateX(-50%); z-index: 21; max-width: 90%; padding: 8px 16px; border-radius: 12px; color: white; background: #0F133A; text-align: center; pointer-events: none; }
.reveal-feed__status:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .reveal-player__video, .reveal-player__caption, .reveal-player__actions, .reveal-player .reveal-discover-pill { transform: none; } }


/* The feed's player action is distinct from the red Magoo discovery control. */
a.recording-btn.recording-watch {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 44px; padding: 10px 14px; line-height: 1.2;
    text-decoration: none; font-size: 14px; font-weight: 600;
    color: #0F133A; background: #fff; border: 1px solid #d7d7dc; border-radius: 24px;
}
a.recording-btn.recording-watch svg { width: 18px; height: 18px; flex-shrink: 0; fill: currentColor; }
a.recording-btn.recording-watch:hover { background: #f5f5f7; text-decoration: none; }
a.recording-btn.recording-watch:focus-visible { outline: 2px solid #CC0000; outline-offset: 3px; }


