/* Shorts preview only — not loaded on public directory pages. */

.page-shorts {
  margin: 0;
  background: #08090b;
  color: #fff;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}
.shorts-shell {
  height: 100vh;
  height: 100dvh;
  background: #08090b;
}
.shorts-stage {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}
.page-shorts .shorts-feed {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  background: #000;
  overscroll-behavior: contain;
}
.page-shorts .shorts-feed:focus { outline: none; }
.short {
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
  overflow: hidden;
}
.short__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
}
.short__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.28) 36%, rgba(0,0,0,.08) 58%, transparent 100%);
  pointer-events: none;
}
.short__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}
.short__badge {
  align-self: flex-start;
  font: 700 9px/1 var(--font-body, Inter, sans-serif);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #08090b;
  background: #ffd56a;
  border-radius: 999px;
  padding: 4px 7px;
}
.short__creator { display: flex; align-items: center; gap: 10px; }
.short__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover; background: #151920; border: 2px solid rgba(255,255,255,.9);
}
.short__name { font: 700 16px/1.2 var(--font-display, "Inter Tight", sans-serif); }
.short__handle { font-size: 13px; color: rgba(255,255,255,.7); }
.short__caption { margin: 0; font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.94); }
.short__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 2px; }
.short__cta { text-decoration: none; }
.short__report {
  background: none; border: 0; color: rgba(255,255,255,.7);
  font: 500 13px var(--font-body, Inter, sans-serif);
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
  padding: 6px 0;
}
.short__report:hover { color: #fff; }

/* Mute indicator — inside the 9:16 stage */
.shorts-mute {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font: 600 11px/1 var(--font-body, Inter, sans-serif);
  letter-spacing: .02em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.shorts-mute__on { display: none; }
.shorts-mute.is-on .shorts-mute__off { display: none; }
.shorts-mute.is-on .shorts-mute__on { display: block; }
.shorts-mute.is-on .shorts-mute__label { /* still useful */ }

/* Side arrows: desktop only, stacked to the right, column stays centered */
.shorts-nav,
.shorts-nav-spacer { display: none; }
.shorts-navbtn {
  display: inline-flex;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background .16s ease, opacity .16s ease;
}
.shorts-navbtn:hover { background: rgba(255,255,255,.22); }
.shorts-navbtn:disabled { opacity: .32; cursor: default; }

@media (min-width: 900px) {
  .shorts-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: #08090b;
  }
  .shorts-stage {
    --pad: 32px;
    --avail-h: calc(100dvh - var(--pad));
    --avail-w: calc(100vw - 160px);
    width: min(calc(var(--avail-h) * 9 / 16), var(--avail-w));
    height: min(var(--avail-h), calc(var(--avail-w) * 16 / 9));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0,0,0,.55);
    outline: 1px solid rgba(255,255,255,.08);
  }
  .shorts-nav,
  .shorts-nav-spacer {
    display: flex;
    flex: none;
    width: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .shorts-nav-spacer { visibility: hidden; pointer-events: none; }
  .short__overlay { padding: 20px 18px 22px; }
}

/* Profile grid */
.page-shorts-profile .shorts-grid-wrap {
  padding: 8px 0 48px;
}
.page-shorts-profile .shorts-preview-h2 {
  font: 650 18px/1.2 var(--font-display, "Inter Tight", sans-serif);
  margin: 0 0 14px;
}
.shorts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 720px) {
  .shorts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}
@media (min-width: 1100px) {
  .shorts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}
.shorts-tile {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  width: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #1c2129 0%, #0e1014 72%);
  text-decoration: none;
  color: inherit;
  isolation: isolate;
}
.shorts-tile__video,
.shorts-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #14171d;
  border: 0;
}
.shorts-tile__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.58);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.75);
}
.shorts-tile__play svg { margin-left: 2px; }
.shorts-tile__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
}
.shorts-tile:hover .shorts-tile__play { background: rgba(0,0,0,.6); }
.shorts-preview-back { font-size: 13.5px; margin: 18px 0 0; }
.shorts-preview-back a { color: var(--ink-dim, #a2abb8); }

.shorts-report-modal {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.shorts-report-modal[hidden] { display: none; }
.shorts-report-modal__panel {
  background: #12151a; color: #f4f6f8; border-radius: 16px;
  padding: 22px; width: min(420px, 100%);
  border: 1px solid #22262d;
}
.shorts-report-modal__panel h2 { margin: 0 0 8px; font: 700 18px "Inter Tight", sans-serif; }
.shorts-report-modal__panel p { margin: 0 0 14px; color: #a2abb8; font-size: 13.5px; }
.shorts-report-modal textarea {
  width: 100%; min-height: 80px; border-radius: 10px; border: 1px solid #22262d;
  background: #0c0e12; color: inherit; padding: 10px; font: inherit; margin-bottom: 12px;
}
.shorts-report-modal__actions { display: flex; gap: 10px; justify-content: flex-end; }
