/* Shared playback, discussion and membership details. */
:root { --ui-surface: #19191d; --ui-raised: #25252b; --ui-muted: #a1a1ae; --ui-text: #f2f2f7; --ui-motion: cubic-bezier(.2,.75,.25,1); }
button { -webkit-tap-highlight-color: transparent; }
.reel-veil { pointer-events: none; }
button:disabled { cursor: default; }
button:focus-visible, textarea:focus-visible { outline: 2px solid #bdbdcb; outline-offset: 4px; }
.ui-back { display: inline-flex; flex-direction: row; direction: rtl; gap: 10px; align-items: center; justify-content: center; }
.ui-back > span { order: 0; }
.ui-back > svg { order: 1; flex-shrink: 0; width: 20px; height: 20px; }
@media (min-width:801px) {
  .ui-back { min-height: 42px; padding: 0 16px; border: 0; background: #232327; color: #ededf2; font-size: 12px; }
  .subscription-close.ui-back { position: fixed; top: 24px; left: 28px; margin: 0; z-index: 5; }
}
.is-image-loading { position: relative; overflow: hidden; background: #19191d; }
.is-image-loading img { opacity: 0; }
.is-image-loading::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(110deg,transparent 10%,#ffffff09 45%,#ffffff12 50%,transparent 80%); background-size: 220% 100%; animation: asset-shimmer 1.6s linear infinite; }
.image-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; color: #9393a3; text-align: center; font-size: 11px; background: #1d1d22; }
.is-image-error img { visibility: hidden; }
@keyframes asset-shimmer { from { background-position: 150% 0; } to { background-position: -150% 0; } }

/* Skeletons use the shape of the player; buffering keeps the current frame visible. */
.viewer-loading { display: block; overflow: hidden; isolation: isolate; border-radius: inherit; background: transparent; }
.viewer-loading::before, .viewer-loading.is-initial::before { content: none; }
.viewer-loading #viewerLoadingLabel { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.player-skeleton { position: absolute; inset: 0; display: none; overflow: hidden; background: #131316; }
.viewer-loading.is-initial .player-skeleton { display: block; }
.player-skeleton::after, .buffer-skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg,transparent 25%,#ffffff06 45%,#ffffff0b 50%,transparent 75%); transform: translateX(-100%); animation: skeleton-sweep 1.7s ease-in-out infinite; }
.skeleton-playing { position: absolute; top: 15px; right: 16px; display: flex; align-items: center; gap: 9px; }
.skeleton-avatar { width: 32px; height: 32px; border-radius: 50%; background: #232329; }
.skeleton-title { width: 125px; height: 10px; border-radius: 999px; background: #24242a; }
.skeleton-media { position: absolute; top: 50%; left: 50%; display: grid; width: 68px; height: 68px; place-items: center; transform: translate(-50%,-50%); border-radius: 20px; background: #19191e; color: #303039; }
.skeleton-media svg { width: 29px; height: 29px; stroke-width: 1.4; }
.skeleton-reactions { position: absolute; bottom: 145px; left: 20px; display: grid; gap: 27px; }
.skeleton-reactions span { display: block; width: 28px; height: 28px; border-radius: 50%; background: #222228; }
.skeleton-bottom { position: absolute; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); left: 16px; display: grid; gap: 22px; }
.skeleton-bottom > span { display: block; height: 3px; border-radius: 999px; background: #2c2c34; }
.skeleton-bottom > b { display: block; height: 45px; border-radius: 16px; background: #222228; }
.buffer-skeleton { display: none; position: absolute; right: 20px; bottom: calc(78px + env(safe-area-inset-bottom)); left: 20px; height: 3px; border-radius: 999px; background: #ffffff21; overflow: hidden; }
.viewer-loading:not(.is-initial) .buffer-skeleton { display: block; }
.buffer-skeleton::after { background: linear-gradient(90deg,transparent,#ffffffa6,transparent); animation-duration: 1.2s; }
.reel-viewer[aria-busy="true"] .playback-indicator { opacity: 0; pointer-events: none; }
@keyframes skeleton-sweep { to { transform: translateX(100%); } }
.viewer-error[hidden] { display: none; }
.viewer-error { position: absolute; z-index: 18; top: 50%; right: 22px; left: 22px; display: flex; align-items: center; flex-direction: column; padding: 26px 20px; border-radius: 22px; background: #19191df2; color: #eeeef5; transform: translateY(-50%); text-align: center; box-shadow: 0 16px 60px #0007; }
.viewer-error > svg { width: 30px; height: 30px; margin-bottom: 16px; color: #b3b3c3; }
.viewer-error > b { font-size: 16px; }
.viewer-error p { margin: 10px 0 22px; color: #a8a8b8; font-size: 12px; line-height: 1.9; }
.viewer-error button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: #eeeef4; color: #19191d; font: 600 12px Vazirmatn,Tahoma,sans-serif; cursor: pointer; }
.viewer-error button svg { width: 18px; height: 18px; }
.viewer-like-burst { position: absolute; z-index: 20; opacity: 0; color: #fff; pointer-events: none; filter: drop-shadow(0 8px 28px #0008); }
.viewer-like-burst svg { width: 88px; height: 88px; fill: currentColor; stroke: currentColor; stroke-width: 1; }
.viewer-expand { display: none; }
@media (min-width:801px) {
  .viewer-expand { position: absolute; z-index: 7; top: 12px; left: 12px; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 0; border-radius: 12px; background: #11111566; backdrop-filter: blur(12px); color: #fff; cursor: pointer; }
  .viewer-expand svg { width: 20px; height: 20px; }
  .reel-viewer.is-expanded { grid-template-columns: 1fr; grid-template-areas: "player"; background: #030304; }
  .reel-viewer.is-expanded .viewer-desktop-panel { display: none; }
  .reel-viewer.is-expanded .viewer-shell { width: min(calc(100vw - 160px), 56.25dvh); height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  .reel-viewer.is-expanded .reel-video { object-fit: contain; }
  .viewer-desktop-panel { padding: 100px clamp(28px,4vw,72px) 28px; border: 0; background: #111113; }
  .desktop-panel-inner { min-height: calc(100dvh - 130px); max-width: 580px; }
  .desktop-panel-head h1 { font-size: clamp(26px,2.6vw,38px); line-height: 1.5; letter-spacing: -.6px; }
  .desktop-episode-summary { margin-top: 16px; color: #a9a9b7; font-size: 12px; }
  .desktop-panel-actions button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; font-size: 11px; }
  .desktop-panel-actions button:disabled { opacity: .4; cursor: default; }
  .desktop-comments { margin-top: 30px; }
  .desktop-comments-head { margin-bottom: 12px; }
  .desktop-comments-list { max-height: min(37dvh,390px); padding: 8px 2px; }
}

/* One wide, touch-friendly seek target with separate played and buffered layers. */
.viewer-seek { height: 53px; gap: 0; grid-template-columns: 1fr 1fr; grid-template-rows: 18px 35px; padding: 0 2px; }
.viewer-seek-rail { grid-column: 1 / -1; grid-row: 2; height: 35px; }
.viewer-seek-time { min-width: 38px; color: #eeeef6; font-size: 10px; font-weight: 500; padding-inline: 3px; }
#viewerSeekCurrent { grid-column: 1; grid-row: 1; text-align: left; }
#viewerSeekDuration { grid-column: 2; grid-row: 1; text-align: right; }
.viewer-seek input { height: 44px; touch-action: none; }
.viewer-seek input::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(to right,#f4f4fa 0 var(--seek-progress),#ffffff72 var(--seek-progress) var(--seek-buffered),#ffffff2b var(--seek-buffered) 100%); }
.viewer-seek input::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -4px; box-shadow: 0 0 0 4px #ffffff00,0 1px 8px #0006; transition: box-shadow .15s; }
.viewer-seek.is-seeking input::-webkit-slider-thumb { box-shadow: 0 0 0 7px #ffffff21,0 1px 8px #0006; }
.viewer-seek input::-moz-range-track { background: linear-gradient(to right,#ffffff72 0 var(--seek-buffered),#ffffff2b var(--seek-buffered) 100%); }
.viewer-seek input::-moz-range-thumb { width: 12px; height: 12px; }
.viewer-seek.is-seeking input::-moz-range-thumb { box-shadow: 0 0 0 7px #ffffff21; }
.viewer-seek-tooltip { bottom: 35px; min-width: 51px; padding: 8px 10px; border-radius: 10px; background: #f4f4f8; color: #151519; font-size: 12px; box-shadow: 0 4px 20px #0005; }
.viewer-seek-tooltip::after { content: ''; position: absolute; top: 100%; left: calc(50% - 4px); border: 4px solid transparent; border-top-color: #f4f4f8; }
.viewer-seek.is-seeking .viewer-seek-time { opacity: .5; }
.viewer-seek.is-seeking ~ .reel-scroll-cue, .reel-viewer.is-speeding .reel-scroll-cue { opacity: 0; }

/* A compact, centered gate with a separate, read-only statistics row. */
.locked-gate { top: 44%; right: 20px; left: 20px; width: auto; max-width: 354px; margin: 0 auto; padding: 21px; border: 0; border-radius: 22px; background: #1d1d21f5; box-shadow: 0 18px 55px #0005; transform: translateY(-50%); text-align: right; }
.gate-head { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; }
.gate-lock { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px; background: #ffffff08; }
.gate-lock svg { width: 17px; height: 17px; }
.locked-gate .gate-kicker { color: #a5a5b2; font-size: 10px; font-weight: 500; }
.locked-gate .gate-title { margin: 15px 0 0; font-size: 21px; line-height: 1.6; letter-spacing: -.4px; }
.locked-gate p { max-width: none; margin: 7px 0 0; color: #aaaab9; font-size: 11px; line-height: 1.95; }
.gate-purchase { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 19px; }
.gate-price { display: grid; gap: 4px; }
.gate-price small { color: #9292a1; font-size: 9px; }
.gate-price strong { font-size: 18px; font-weight: 700; line-height: 1.5; }
.gate-price em { color: #b5b5c2; font-size: 9px; font-style: normal; font-weight: 400; }
.locked-gate button { width: auto; min-height: 42px; margin: 0; padding: 0 15px; border-radius: 999px; box-shadow: none; font-size: 10px; gap: 8px; }
.locked-gate button svg { width: 15px; height: 15px; }
.locked-gate .gate-footnote { margin: 14px 0 0; color: #858595; font-size: 8px; text-align: right; line-height: 1.7; }
.reel-viewer.is-locked .reel-side-actions { top: calc(44% + var(--gate-height,250px) / 2 + 20px); bottom: auto; right: 0; left: 0; width: min(280px,calc(100% - 64px)); margin-inline: auto; display: flex; flex-direction: row; justify-content: space-between; gap: 12px; transform: none; opacity: 1; transition: none; }
.reel-viewer.is-locked .social-stat { min-width: 34px; }
.reel-viewer.is-locked .social-stat > span:first-child { width: 28px; height: 28px; }
.reel-viewer.is-locked .social-stat svg { width: 23px; height: 23px; }
.reel-viewer.is-locked .social-stat b { font-size: 9px; color: #c6c6d1; }
.premium-upgrade-card { border-radius: 18px; background: #222227; }
.premium-upgrade-card .upgrade-copy { padding: 20px; }
.premium-upgrade-card .upgrade-copy h3 { font-size: 22px; line-height: 1.6; }
.premium-upgrade-card .upgrade-copy > span { color: #aaaabb; font-size: 11px; }
.premium-upgrade-card .upgrade-price { padding: 14px 0; background: transparent; }
.premium-upgrade-card .upgrade-price strong { font-size: 19px; }
.premium-upgrade-card .upgrade-button { min-height: 44px; border-radius: 999px; font-size: 11px; }

/* Discussions: legible hierarchy, real sort/replies, persistent composer. */
.episode-sheet.is-comments .sheet-header { padding-bottom: 12px; }
.episode-sheet.is-comments .sheet-content { padding-top: 0; padding-bottom: 4px; }
.discussion-toolbar { display: flex; flex: 0 0 auto; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 0 17px; }
.discussion-toolbar > span { color: #888898; font-size: 10px; }
.discussion-toolbar > div { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: #25252b; }
.discussion-toolbar button { min-height: 31px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: #9999aa; font: 10px Vazirmatn,Tahoma,sans-serif; cursor: pointer; }
.discussion-toolbar button[aria-pressed="true"] { background: #41414a; color: #f0f0f7; }
.comments-list { display: block; }
.comment-thread { margin-bottom: 25px; }
.comment-card { display: grid; grid-template-columns: 36px minmax(0,1fr) 30px; gap: 11px; padding: 2px 0; }
.comment-avatar { width: 36px; height: 36px; background: #303038; font-size: 12px; color: #dcdce8; font-weight: 500; }
.comment-author { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; margin: 1px 0 7px; }
.comment-author b { color: #eeeef5; font-size: 11px; font-weight: 600; }
.comment-author time { color: #797989; font-size: 9px; }
.comment-body p { color: #c7c7d3; font-size: 12px; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-meta { margin-top: 5px; gap: 12px; }
.comment-meta button { min-height: 28px; color: #9292a4; font-size: 10px; }
.comment-like { display: flex; flex-direction: column; gap: 5px; min-height: 42px; padding: 6px 4px; color: #9797aa; }
.comment-like svg { width: 18px; height: 18px; }
.comment-like span { font-size: 9px; }
.comment-like:disabled, .comment-meta button:disabled { opacity: .5; }
.comment-thread-toggle { display: flex; align-items: center; gap: 8px; margin: 6px 47px 0 0; min-height: 32px; padding: 0; background: none; border: 0; color: #a8a8bb; font: 10px Vazirmatn,Tahoma,sans-serif; cursor: pointer; }
.comment-thread-toggle > span { width: 20px; height: 1px; background: #4c4c59; }
.comment-thread-toggle svg { width: 12px; height: 12px; }
.comment-thread-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.comment-replies { padding-right: 34px; margin-top: 12px; }
.comment-card.is-reply { grid-template-columns: 28px minmax(0,1fr) 28px; gap: 9px; margin-top: 12px; }
.comment-card.is-reply .comment-avatar { width: 28px; height: 28px; font-size: 10px; }
.discussion-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 180px; padding: 20px; text-align: center; }
.discussion-empty svg { width: 32px; height: 32px; margin-bottom: 18px; color: #666679; }
.discussion-empty b { color: #c7c7d6; font-size: 13px; }
.discussion-empty p { margin: 10px 0 0; color: #9292a5; font-size: 11px; line-height: 1.9; }
.discussion-composer, .episode-sheet.is-comments .discussion-composer { position: relative; display: grid; grid-template-columns: 32px minmax(0,1fr) 36px; align-items: end; flex: 0 0 auto; gap: 10px; margin: 8px 0 0; padding: 14px 0 8px; border: 0; background: var(--ui-surface); }
.desktop-comment-form.discussion-composer { background: #111113; }
.discussion-composer .comment-avatar { width: 32px; height: 32px; margin-bottom: 5px; font-size: 11px; }
.comment-input-wrap { position: relative; min-width: 0; min-height: 44px; padding: 4px 13px; overflow: hidden; border-radius: 22px; background: #26262d; transition: background .18s; }
.discussion-composer textarea { display: block; width: 100%; min-height: 34px; max-height: 96px; margin: 0; padding: 7px 0; resize: none; border: 0; outline: none; background: transparent; color: #e6e6f2; font: 12px/1.8 Vazirmatn,Tahoma,sans-serif; overflow-y: auto; }
.discussion-composer textarea::placeholder { color: #858599; }
.comment-input-wrap:focus-within { box-shadow: inset 0 0 0 1px #646477; background: #292930; }
.discussion-composer textarea:focus-visible { outline: none; box-shadow: none; }
.episode-sheet.is-comments textarea { max-height: clamp(34px,calc(60dvh - 320px),96px); }
.comment-input-wrap small { display: block; text-align: left; color: #9696aa; font-size: 9px; }
.comment-input-wrap small:empty { display: none; }
.discussion-composer > button[type="submit"] { display: grid; width: 36px; min-width: 36px; height: 36px; padding: 0; margin-bottom: 3px; place-items: center; border: 0; border-radius: 50%; background: #eeeef5; color: #17171b; }
.discussion-composer > button[type="submit"]:disabled { background: #292930; color: #646476; }
.discussion-composer > button[type="submit"] svg { width: 19px; height: 19px; }
.comment-reply-context { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 2px 5px; color: #adadbf; font-size: 11px; }
.comment-reply-context[hidden] { display: none; }
.comment-reply-context button { display: grid; width: 28px; min-width: 28px; height: 28px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #282830; color: #bdbdd0; }
.comment-reply-context button svg { width: 15px; height: 15px; }

/* Membership stays on one bounded content grid, including its back action. */
.subscription-view { background: #0c0c0e; outline: none; }
.subscription-page { width: min(900px,100%); min-height: 100dvh; margin: 0 auto; padding: 24px 28px 48px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,368px); grid-template-rows: auto auto auto 1fr; column-gap: 64px; row-gap: 0; align-items: start; align-content: start; }
.subscription-header { grid-column: 1 / -1; grid-row: 1; position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; min-height: 42px; margin-bottom: 46px; padding-block: 4px; background: #0c0c0ef5; backdrop-filter: blur(12px); }
.subscription-header > span { display: flex; align-items: center; gap: 8px; color: #cccdd5; font-size: 12px; font-weight: 600; }
.subscription-header img { width: 31px; height: 24px; object-fit: contain; filter: invert(1); }
.subscription-header .subscription-close.ui-back { position: static; margin: 0; flex-shrink: 0; min-height: 40px; height: 40px; background: #1d1d22; color: #cdced8; }
.subscription-intro { grid-column: 1; grid-row: 2; max-width: none; align-self: start; margin: 0; }
.subscription-intro > p { display: block; margin: 0 0 12px; color: #8c8d9c; font-size: 11px; font-weight: 400; }
.subscription-intro h1 { margin: 0; max-width: none; font-size: 30px; font-weight: 700; line-height: 1.5; letter-spacing: -.5px; }
.subscription-context { display: block; max-width: none; margin-top: 14px; color: #a8a8b7; font-size: 12px; line-height: 2.1; }
.subscription-benefits { grid-column: 1; grid-row: 3; display: grid; gap: 16px; width: 100%; margin: 27px 0 0; padding: 0; background: none; align-self: start; }
.subscription-benefits li { display: flex; align-items: center; gap: 9px; min-height: 0; color: #bbbcca; font-size: 11px; line-height: 1.8; }
.subscription-benefits svg { flex-shrink: 0; width: 15px; height: 15px; color: #898a9c; }
.subscription-checkout { grid-column: 2; grid-row: 2 / span 3; width: 100%; padding: 0; margin: 0; background: transparent; border-radius: 0; }
.subscription-checkout-label { display: block; margin: 0 0 15px; }
.subscription-checkout-label b { color: #c7c8d5; font-size: 12px; font-weight: 500; }
.subscription-plans { display: grid; gap: 10px; }
.subscription-plan { min-height: 80px; padding: 16px; grid-template-columns: 20px minmax(0,1fr) auto; gap: 12px; border: 0; border-radius: 17px; background: #18181c; color: #a9aaba; box-shadow: none; transition: background .18s; }
.subscription-plan:hover { background: #202025; }
.subscription-plan.is-selected, .subscription-plan.is-selected:hover { background: #2c2c33; color: #f1f1f6; box-shadow: none; }
.subscription-plan-radio, .subscription-plan.is-selected .subscription-plan-radio { display: grid; position: relative; width: 20px; height: 20px; place-items: center; border: 0; border-radius: 50%; background: #35353f; box-shadow: none; }
.subscription-plan-radio svg { width: 12px; height: 12px; opacity: 0; stroke-width: 2.5; }
.subscription-plan.is-selected .subscription-plan-radio { background: #eeeef4; color: #25252d; }
.subscription-plan.is-selected .subscription-plan-radio svg { opacity: 1; }
.subscription-plan.is-selected .subscription-plan-radio::after { content: none; }
.subscription-plan-copy { gap: 5px; }
.subscription-plan-copy b { display: flex; align-items: center; gap: 8px; color: inherit; font-size: 14px; font-weight: 600; }
.subscription-plan-copy small, .subscription-plan.is-selected .subscription-plan-copy small { color: #999aaa; font-size: 9px; line-height: 1.8; }
.subscription-plan > strong { display: block; color: #eeeef6; font-size: 17px; font-weight: 600; text-align: left; }
.subscription-plan > strong small { display: block; margin-top: 3px; color: #8c8d9f; font-size: 9px; font-weight: 400; }
.subscription-plan-badge { position: static; display: inline-block; padding: 3px 6px; border-radius: 6px; background: #ffffff08; color: #abacbf; font-size: 8px; font-style: normal; line-height: 1.4; font-weight: 500; }
.subscription-order { padding: 0 2px; margin: 24px 0 18px; }
.subscription-order > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.subscription-order span { color: #9798ab; font-size: 11px; }
.subscription-order b { color: #dedfeb; font-size: 14px; font-weight: 600; white-space: nowrap; }
.subscription-order p { min-height: 18px; margin: 8px 0 0; color: #7e7f92; font-size: 9px; line-height: 1.8; }
.subscription-continue { min-height: 47px; margin-top: 0; border-radius: 999px; gap: 12px; font-size: 11px; font-weight: 600; }
.subscription-continue svg { width: 17px; height: 17px; }
.subscription-secure { display: flex; justify-content: center; gap: 6px; margin: 12px 0 0; color: #77798d; font-size: 9px; line-height: 1.8; }
.subscription-secure svg { width: 12px; height: 12px; }
.subscription-faq { grid-column: 1; grid-row: 4; width: 100%; margin-top: 32px; }
.subscription-faq h2 { margin: 0 0 12px; font-size: 11px; font-weight: 400; color: #7e8093; }
.subscription-faq details { margin: 8px 0 0; padding: 12px 0; border-radius: 0; background: none; }
.subscription-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #a1a2b5; font-size: 11px; list-style: none; cursor: pointer; }
.subscription-faq summary::-webkit-details-marker { display: none; }
.subscription-faq summary svg { width: 13px; height: 13px; color: #74768b; }
.subscription-faq details[open] svg { transform: rotate(180deg); }
.subscription-faq p { margin: 10px 0 0; color: #8b8c9e; font-size: 11px; line-height: 2; }
.subscription-plan:focus-visible, .episode-tile:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #787a90; }
.reel-episodes-button, .episode-tile, .episode-tile.is-current, .episode-tile.is-locked.is-current { border: 0; box-shadow: none; }
.episode-tile { font-family: inherit; font-variant-numeric: tabular-nums; }
.reel-episodes-button { background: #1a1a1fd6; }
.reel-episodes-button:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #787a90; }

@media (min-width:801px) {
  .desktop-panel-inner { width: 100%; max-width: 560px; }
  .viewer-back.ui-back { left: max(clamp(28px,4vw,72px),calc((50vw - 560px)/2)); }
  .reel-viewer.is-expanded + .viewer-back.ui-back { left: 28px; }
}
@media (max-width:800px) {
  .ui-back, .subscription-close.ui-back, .viewer-back.ui-back { width: 40px; min-width: 40px; height: 40px; padding: 0; gap: 0; border: 0; background: #1e1e2477; backdrop-filter: blur(10px); }
  .ui-back span { display: none; }
  .ui-back svg { width: 20px; height: 20px; }
  .discussion-composer textarea { font-size: 16px; line-height: 1.5; }
  .discussion-composer textarea::placeholder { font-size: 12px; }
  .episode-sheet.is-comments { bottom: var(--keyboard-offset,0px); max-height: min(60dvh,calc(var(--visible-viewport,100dvh) - 20px)); }
  .episode-sheet.is-comments textarea { max-height: clamp(34px,calc(min(60dvh,calc(var(--visible-viewport,100dvh) - 20px)) - 320px),96px); }
  .episode-sheet.is-comments.is-typing-compact { padding-bottom: 12px; }
  .episode-sheet.is-comments.is-typing-compact .discussion-toolbar { display: none; }
  .episode-sheet.is-comments.is-typing-compact .sheet-header { padding-bottom: 8px; }
  .episode-sheet.is-comments.is-typing-compact .sheet-header h2 { font-size: 18px; }
  .episode-sheet.is-comments.is-typing-compact .discussion-composer { padding-top: 6px; }
  .subscription-page { display: flex; width: min(430px,100%); min-height: 100dvh; padding: max(14px,env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom)); flex-direction: column; }
  .subscription-header { order: 0; width: 100%; margin-bottom: 26px; }
  .subscription-header .subscription-close.ui-back { position: static; background: #1d1d22; }
  .subscription-header > span { font-size: 11px; }
  .subscription-intro { order: 1; width: 100%; }
  .subscription-intro > p { margin-bottom: 7px; font-size: 10px; }
  .subscription-intro h1 { font-size: 27px; }
  .subscription-context { margin-top: 10px; font-size: 12px; line-height: 1.95; }
  .subscription-benefits { order: 2; margin-top: 19px; gap: 8px; }
  .subscription-benefits li { font-size: 10px; }
  .subscription-benefits svg { width: 13px; height: 13px; }
  .subscription-checkout { order: 3; width: 100%; margin-top: 27px; padding: 0; }
  .subscription-checkout-label { margin-bottom: 12px; }
  .subscription-checkout-label b { font-size: 11px; }
  .subscription-plan { min-height: 77px; padding: 14px; }
  .subscription-plan > strong { font-size: 17px; }
  .subscription-order { margin-top: 20px; }
  .subscription-continue { min-height: 47px; }
  .subscription-faq { order: 4; margin-top: 29px; }
}
@media (max-width:360px) {
  .locked-gate { right: 15px; left: 15px; padding: 17px; }
  .locked-gate .gate-title { font-size: 19px; }
  .gate-purchase { gap: 8px; }
  .gate-price strong { font-size: 17px; }
  .locked-gate button { padding-inline: 12px; font-size: 9px; }
  .subscription-page { padding-inline: 16px; }
  .subscription-plan { gap: 9px; padding: 13px; }
  .subscription-plan-copy b { gap: 6px; font-size: 13px; }
  .subscription-plan > strong { font-size: 15px; }
  .discussion-toolbar > span { font-size: 9px; }
  .discussion-toolbar button { padding-inline: 9px; font-size: 9px; }
}
@media (max-height:600px) {
  .locked-gate { padding-top: 15px; padding-bottom: 15px; }
  .gate-lock { width: 28px; height: 28px; flex-basis: 28px; }
  .locked-gate .gate-title { font-size: 19px; margin-top: 10px; }
  .locked-gate p { font-size: 10px; }
  .gate-purchase { margin-top: 13px; }
  .locked-gate .gate-footnote { margin-top: 10px; }
  .reel-viewer.is-locked .reel-side-actions { top: calc(44% + var(--gate-height,240px) / 2 + 15px); }
}
/* Media is fitted, never cropped or stretched to the reel frame. */
.reel-video{object-fit:contain;object-position:center;background:#000;filter:none}
.reel-slide{background:#000}
.viewer-view-count{position:fixed;z-index:62;display:inline-flex;direction:ltr;align-items:center;justify-content:center;gap:7px;height:40px;min-width:64px;padding:0 12px;border-radius:999px;background:#1e1e2477;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:#fff;visibility:hidden;opacity:0;pointer-events:none}
.viewer-view-count svg{width:19px;height:19px;stroke-width:1.8;flex:none}
.viewer-view-count b{font-size:12px;font-weight:550;font-variant-numeric:tabular-nums}
.reel-viewer.is-open~.viewer-view-count{visibility:visible;opacity:1}
.viewer-now-playing{height:40px;align-items:center;gap:9px}
.viewer-now-playing img{width:38px;height:38px;flex:0 0 38px}
.viewer-now-playing b{font-size:12px;line-height:1.6}
.viewer-now-playing small{font-size:10px;line-height:1.6}
@media(max-width:800px){
 .viewer-back.ui-back{top:max(12px,calc(env(safe-area-inset-top) + 8px));left:max(12px,calc(50vw - 298px));height:40px;width:40px;min-width:40px;flex-shrink:0}
 .viewer-view-count{top:max(12px,calc(env(safe-area-inset-top) + 8px));left:max(60px,calc(50vw - 250px));padding:0 10px;min-width:62px}
 .viewer-now-playing{top:max(12px,calc(env(safe-area-inset-top) + 8px));right:12px;max-width:calc(100% - 152px)}
 .viewer-now-playing span{gap:4px}
 .viewer-now-playing b{font-size:11px}
 .viewer-now-playing small{font-size:9px}
}
@media(min-width:801px){
 .viewer-back.ui-back{top:28px;height:42px}
 .viewer-view-count{top:28px;height:42px;left:calc(max(clamp(28px,4vw,72px),calc((50vw - 560px)/2)) + 115px)}
 .reel-viewer.is-expanded~.viewer-view-count{left:143px}
 .reel-viewer.is-landscape .viewer-shell{width:calc(50vw - 32px);height:90dvh;max-height:90dvh;aspect-ratio:auto}
 .reel-viewer.is-landscape.is-expanded .viewer-shell{width:calc(100vw - 160px);height:100dvh;max-height:100dvh}
}

/* Compact fresh banners: same width, half of the previous height. */
.fresh-card > img{object-position:center;filter:none}
.fresh-card-copy{gap:4px;padding:16px 22px;text-shadow:0 2px 12px #000,0 3px 28px #000}
.fresh-card-shade{background:linear-gradient(180deg,#0000 8%,#0005 35%,#000e 100%)}
.fresh-card-copy strong{font-size:24px}.fresh-card-copy p{-webkit-line-clamp:1;line-height:1.7}
@media(max-width:800px){.fresh-card-copy{gap:3px;padding:12px 15px}.fresh-card-copy strong{font-size:19px}.fresh-card-copy small{font-size:8px}.fresh-card-copy p{font-size:9px}}
