.club-feed {
  width:100%;height:100%;height:100dvh;max-width:none;max-height:none;inset:0;margin:0;padding:0;
  background:transparent;color:#f2f3f2;border:0;overflow:hidden;overscroll-behavior:contain;
}
.club-feed::backdrop {background:#090a0ea8;}
/* Blur the actual page layers as well on WebKit, where the modal backdrop can omit the blur. */
body:has(.club-feed[open]) :is(.site-header,.club-hero,.reel-shelf,.club-layout .band,.dock-header,.member-menu,.travel-coin),
body:has(.club-feed[open]) > footer {filter:blur(14px);}

html:has(.club-feed[open]) {overflow:hidden;overscroll-behavior:none;}
.feed-shell {
  position:relative;height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;row-gap:10px;
  padding:max(14px,env(safe-area-inset-top)) clamp(10px,3vw,48px) max(16px,env(safe-area-inset-bottom));
}
.feed-top,.feed-bottom {display:flex;align-items:center;justify-content:space-between;}
.feed-top {font-size:14px;letter-spacing:-.025em;}
.club-feed button {color:inherit;border:1px solid #e4ecf43b;background:#191b20d9;cursor:pointer;}
.club-feed button:hover,.club-feed button:focus-visible {background:#30343cee;border-color:#f5f5fa96;}
.feed-top button,.feed-nav button,.feed-play,.feed-sound,.feed-slide-nav button {
  width:44px;height:44px;padding:10px;border-radius:50%;display:grid;place-items:center;
}
.club-feed svg {display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;}
.feed-stage {
  position:relative;place-self:center;display:grid;place-items:center;container-type:size;
  height:min(100%,calc((100vw - 72px)*9/16));aspect-ratio:16/9;max-width:100%;touch-action:none;
}
.feed-stage:has(.feed-card[data-kind="caption"]) {touch-action:pan-y;}
.feed-aperture {position:absolute;inset:0;display:grid;place-items:center;overflow:hidden;border-radius:15px;isolation:isolate;}
.feed-surface {position:relative;}
.feed-stage :is(img,video) {user-select:none;-webkit-user-drag:none;}
.feed-frame {position:absolute;overflow:hidden;pointer-events:none;background:#111216;}
.feed-frame > :is(img,canvas) {width:100%;height:100%;display:block;object-fit:contain;}
.feed-card {
  position:relative;min-width:0;min-height:0;overflow:hidden;
  border-radius:15px;background:#111216;box-shadow:0 0 0 1px #e7eef329,0 15px 60px #0008;
}
.feed-card video,.feed-slide {display:block;width:auto;height:auto;max-width:100cqw;max-height:100cqh;}
.feed-card[data-kind="caption"] {height:min(100cqh,calc(100cqw * 1.25));aspect-ratio:4/5;}
.feed-card[data-kind="caption"] .feed-surface {height:100%;display:flow-root;}
.feed-caption {padding:clamp(18px,3vw,32px);white-space:pre-wrap;overflow-wrap:anywhere;overflow-y:auto;overscroll-behavior:contain;line-height:1.55;background:#1b1d22;}
.feed-play,.feed-sound {position:absolute;bottom:12px;z-index:2;backdrop-filter:blur(10px);}
.club-feed .feed-play {left:12px;color:#301421;background:#efa8c3;border-color:#ffccdf99;}
.club-feed .feed-play:is(:hover,:focus-visible) {background:#ffc0d7;}
.feed-sound {right:12px;}
.feed-sound[data-muted="true"] [data-glyph="audible"],.feed-sound[data-muted="false"] [data-glyph="muted"] {display:none;}
.feed-resource {
  position:absolute;top:12px;left:12px;z-index:2;max-width:calc(100% - 82px);padding:7px 12px 8px;
  display:grid;gap:2px;text-decoration:none;border:1px solid #edf0f239;border-radius:12px;
  background:linear-gradient(145deg,#171a20e8,#14151bcc);backdrop-filter:blur(12px);box-shadow:0 3px 16px #0004;
}
.feed-resource[hidden] {display:none}
.feed-resource[href] {min-height:44px;align-content:center;padding-right:32px}
.feed-resource[href]::after {content:'→';position:absolute;right:11px;top:50%;transform:translateY(-50%);color:#e5e7eb}
.feed-resource[href]:hover {border-color:#ffffff91;background-color:#25272d}
.feed-resource[href]:focus-visible {outline:2px solid white;outline-offset:2px}
.lesson-player {position:relative}
.feed-resource small {font:10px/1.1 var(--mono);text-transform:uppercase;letter-spacing:.12em;color:#c7cbd2;}
.feed-resource strong {font-size:clamp(14px,1.3vw,17px);line-height:1.2;letter-spacing:-.025em;color:#fff;}

.feed-play [data-glyph="play"] {fill:currentColor;stroke:none;}
.feed-play [data-glyph="pause"] {stroke-width:3.2;}
.feed-play[aria-label="Pausar reel"] [data-glyph="play"],.feed-play[aria-label="Reproduzir reel"] [data-glyph="pause"] {display:none;}
.feed-nav {display:grid;gap:8px;position:absolute;right:clamp(12px,6vw,140px);top:50%;transform:translateY(-50%);}
.feed-nav button,.feed-slide-nav button {font-size:21px;line-height:1;}
.feed-slide-count {position:absolute;top:10px;right:12px;background:#121318d9;border-radius:100px;padding:4px 10px;font:12px/1.5 var(--mono);}
.feed-caption {height:calc(100% - 112px);margin-top:64px;}
.feed-card[data-kind="caption"] {background:#1b1d22;}
.feed-card[data-kind="caption"] .feed-slide-nav {inset:auto 6px 4px;transform:none;}
.feed-slide-nav {position:absolute;inset:50% 6px auto;transform:translateY(-50%);display:flex;justify-content:space-between;pointer-events:none;}
.feed-slide-nav button {pointer-events:auto;width:36px;height:40px;padding:4px;}
.feed-slide-nav button:disabled {visibility:hidden;}
.feed-bottom {flex-wrap:wrap;column-gap:14px;row-gap:5px;justify-self:center;width:min(100%,620px);}
.feed-identity {min-width:0;flex:1;}
.feed-identity span {font:11px/1.4 var(--mono);color:#adb6bb;}
.feed-identity h2 {font-size:clamp(16px,2.1vw,24px);font-weight:540;letter-spacing:-.035em;line-height:1.18;}
.feed-seek {width:100%;height:18px;accent-color:#dce5e8;cursor:pointer;}
.feed-status {position:absolute;bottom:max(100px,14%);left:50%;transform:translateX(-50%);width:min(430px,92vw);padding:18px 24px;background:#17191ff5;border:1px solid #c3cbd143;border-radius:16px;box-shadow:0 8px 40px #000a;}
.feed-status {font-size:14px;color:#d5d9da;pointer-events:none;}
@media(max-aspect-ratio:1/1) {
  .feed-shell {gap:6px;padding-inline:8px;}
  .feed-stage {width:100%;height:100%;max-height:100%;aspect-ratio:auto;}
  .feed-nav {display:flex;position:static;transform:none;}
  .feed-nav button {background:#101216ad;width:40px;height:40px;}
  .feed-bottom,.feed-top {padding-inline:6px;}
  .feed-card {border-radius:10px;}
}

@media(prefers-reduced-motion:no-preference) {
  .club-feed[open]::backdrop {animation:feed-darken .32s ease-out;}
  .club-feed[open] :is(.feed-top,.feed-bottom) {animation:feed-controls-in .32s ease-out;}
}
@keyframes feed-darken {from{background-color:transparent;}}
@keyframes feed-controls-in {from{opacity:0;}to{opacity:1;}}
