/* ==========================================================================
   ócca — Stories
   ========================================================================== */
body.sv-lock { overflow: hidden; }

.sv {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: rgb(18, 18, 18);
  touch-action: none; user-select: none; -webkit-user-select: none;
  animation: sv-in 0.28s ease both;
}
.sv[hidden] { display: none; }
@keyframes sv-in { from { opacity: 0; transform: scale(0.96); } }

.sv-brand { position: absolute; top: 22px; left: 28px; width: 96px; height: auto; }
.sv-x {
  position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: #fff; display: grid; place-items: center;
}
.sv-x svg { width: 28px; height: 28px; }

.sv-wrap { position: relative; width: var(--sv-w); height: var(--sv-h); }
.sv-stage { position: absolute; inset: 0; perspective: 1400px; }
.sv-cube { position: absolute; inset: 0; transform-style: preserve-3d; }

.sv-face {
  position: absolute; inset: 0; overflow: hidden; border-radius: 12px; background: #000;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  container-type: size;
}
.sv-media { position: absolute; inset: 0; }
.sv-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv-media .ph { position: absolute; inset: 0; }
.sv-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0.45), transparent 18%, transparent 72%, rgba(0, 0, 0, 0.55));
}

/* topo: barras + cabeçalho */
.sv-top { position: absolute; z-index: 4; top: 0; left: 0; right: 0; padding: 10px 10px 0; transition: opacity 0.2s; }
.sv-bars { display: flex; gap: 3px; }
.sv-bar { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.sv-bar i { display: block; height: 100%; width: 0; background: #fff; }
.sv-head { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; }
.sv-head strong { font-weight: 700; }
.sv-label { color: rgba(255, 255, 255, 0.7); font-size: 13px; }
.sv-av {
  width: 32px; height: 32px; border-radius: 50%; background: var(--orange); flex: none;
  display: grid; place-items: center; overflow: hidden;
}
.sv-av img { width: 22px; }
.sv-head-actions { margin-left: auto; display: flex; }
.sv-ic {
  width: 38px; height: 38px; border: 0; padding: 0; background: none; color: #fff;
  display: grid; place-items: center; position: relative; -webkit-tap-highlight-color: transparent;
}
.sv-ic[hidden] { display: none; }
.sv-ic svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)); }
.sv-close { display: none; }

/* rodapé: responder / curtir / comentar / enviar */
.sv-foot {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 2px;
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom, 0px)) 12px;
  transition: opacity 0.2s;
}
.sv-foot input {
  flex: 1; min-width: 0; height: 44px; margin-right: 4px; padding: 0 18px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.6); background: transparent;
  color: #fff; font: inherit; font-size: 15px; outline: 0;
}
.sv-foot input::placeholder { color: rgba(255, 255, 255, 0.85); }
.sv-foot input:focus { border-color: #fff; background: rgba(0, 0, 0, 0.35); }
.sv-ic svg { transition: transform 0.15s; }
.sv-ic:active svg { transform: scale(0.85); }
.sv-like.on svg { fill: var(--orange); stroke: var(--orange); }
.sv-like.pop svg { animation: sv-pop 0.4s ease; }
@keyframes sv-pop { 40% { transform: scale(1.35); } }
.sv-cmt sup {
  position: absolute; top: 3px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--orange); font-size: 10px; font-weight: 700; line-height: 16px;
}
.sv-cmt sup:empty { display: none; }

/* balões de comentário (estilo novo do Instagram) */
.sv-bubbles {
  position: absolute; z-index: 3; left: 12px; right: 28%; bottom: 74px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  transition: opacity 0.2s;
}
.sv-bubble {
  display: flex; align-items: flex-start; gap: 8px; max-width: 100%;
  padding: 7px 12px 7px 7px; border: 0; border-radius: 18px;
  background: rgba(20, 20, 20, 0.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #fff; font: inherit; font-size: 13px; line-height: 1.35; text-align: left;
  animation: sv-bubble-in 0.5s cubic-bezier(0.2, 1.3, 0.4, 1) both; transform-origin: bottom left;
}
.sv-bubble strong { font-weight: 700; }
.sv-bubble.out { animation: sv-bubble-out 0.35s ease forwards; }
@keyframes sv-bubble-in { from { opacity: 0; transform: translateY(14px) scale(0.6); } }
@keyframes sv-bubble-out { to { opacity: 0; transform: translateY(-10px) scale(0.85); } }
.b-av {
  width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-size: 10px; font-weight: 800; color: #1a1208; overflow: hidden;
}
.b-av.me { background: var(--orange); }
.b-av.me img { width: 70%; }

/* segurar = esconde a interface (igual ao Instagram) */
.sv-holding .sv-face.is-current .sv-top,
.sv-holding .sv-face.is-current .sv-foot,
.sv-holding .sv-face.is-current .sv-bubbles,
.sv-holding .sv-face.is-current .sv-media-ui { opacity: 0; }

/* ----------------------------------------------------- story de texto --- */
.sv-text {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 4.5cqw;
  padding: 22cqh 8cqw 20cqh; color: #fff;
}
.sv-text.bg-orange { background: var(--orange); }
.sv-text.bg-beige { background: var(--beige); color: #1a1208; }
.sv-text.bg-dark { background: #0d0d0d; }
.sv-text.bg-pattern { background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.82)), url("assets/pattern-col-a.svg") 0 0 / 34cqw auto repeat, #111; }
.sv-text.bg-orange em, .sv-text.bg-beige em { color: inherit; text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.1em; }
.sv-text h2 { margin: 0; font-size: 10.5cqw; line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
.sv-text p { margin: 0; font-size: 4.4cqw; line-height: 1.45; opacity: 0.88; }
.sv-kicker {
  align-self: flex-start; padding: 1.6cqw 3.4cqw; border-radius: 999px;
  background: rgba(0, 0, 0, 0.2); font-size: 3.3cqw; font-weight: 700;
}
.bg-dark .sv-kicker, .bg-pattern .sv-kicker { background: rgba(255, 71, 41, 0.18); color: var(--orange); }
.sv-text ol { margin: 0; padding: 0; list-style: none; counter-reset: i; display: grid; gap: 2.6cqw; }
.sv-text li {
  counter-increment: i; display: flex; gap: 3cqw; align-items: baseline;
  font-size: 4.3cqw; font-weight: 600; line-height: 1.35;
}
.sv-text li::before { content: "0" counter(i); color: var(--orange); font-weight: 800; font-size: 3.6cqw; }

/* ------------------------------------------------- story de foto/vídeo --- */
.sv-media-ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity 0.2s; }
.sv-media-ui a, .sv-media-ui form { pointer-events: auto; }
.sv-cap { position: absolute; left: 5cqw; right: 5cqw; top: 70px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.sv-cap strong { display: block; font-size: 7cqw; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.sv-cap span { display: block; color: var(--beige); font-size: 3.6cqw; font-weight: 700; margin-top: 1cqw; }
.sv-cap p { margin: 2cqw 0 0; font-size: 3.9cqw; line-height: 1.45; max-width: 90%; }
.sv-extras { position: absolute; left: 0; right: 0; top: 58%; display: grid; justify-items: center; gap: 4cqw; }

/* figurinha de link */
.sv-sticker {
  align-self: center; justify-self: center;
  display: inline-flex; align-items: center; gap: 2cqw;
  padding: 2.8cqw 4.4cqw; border-radius: 2.6cqw; background: #fff; color: var(--orange);
  font-size: 3.6cqw; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); transform: rotate(-2deg); transition: transform 0.15s;
}
.sv-sticker svg { width: 4.4cqw; height: 4.4cqw; }
.sv-sticker:active { transform: rotate(-2deg) scale(0.95); }

/* caixinha de perguntas */
.sv-question {
  position: relative; align-self: center; width: 80%; margin-top: 6cqw;
  display: grid; gap: 3cqw; padding: 9cqw 4.5cqw 4.5cqw; border-radius: 5cqw;
  background: #fff; color: #111; text-align: center; transform: rotate(-1.5deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.sv-q-av {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%);
  width: 13cqw; height: 13cqw; border-radius: 50%; border: 1cqw solid #fff;
  background: var(--orange); display: grid; place-items: center; overflow: hidden;
}
.sv-q-av img { width: 70%; }
.sv-question strong { font-size: 4.8cqw; line-height: 1.25; font-weight: 800; }
.sv-question input {
  width: 100%; border: 0; border-radius: 2.6cqw; padding: 3.4cqw; background: #efefef; color: #111;
  font: inherit; font-size: 16px; text-align: center; outline: 0;
}
.sv-question button {
  border: 0; border-radius: 2.6cqw; padding: 3cqw; background: var(--orange); color: #fff;
  font: inherit; font-size: 3.8cqw; font-weight: 700;
}

/* ------------------------------------------------------- comentários --- */
.sv-sheet { position: absolute; inset: 0; z-index: 10; display: flex; align-items: flex-end; background: rgba(0, 0, 0, 0.35); border-radius: 12px; overflow: hidden; }
.sv-sheet[hidden] { display: none; }
.sv-sheet-panel {
  width: 100%; max-height: 72%; display: flex; flex-direction: column;
  background: #1c1c1c; border-radius: 18px 18px 0 0; animation: sv-sheet-in 0.3s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}
@keyframes sv-sheet-in { from { transform: translateY(100%); } }
.sv-grab { width: 40px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.3); margin: 10px auto 4px; cursor: pointer; }
.sv-sheet h3 { margin: 6px 0 10px; text-align: center; font-size: 15px; }
.sv-comments { list-style: none; margin: 0; padding: 4px 16px 12px; overflow-y: auto; display: grid; gap: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 14px; }
.sv-comments li { display: flex; gap: 10px; align-items: flex-start; }
.sv-comments .b-av { width: 32px; height: 32px; font-size: 12px; }
.sv-comments strong { font-size: 13px; }
.sv-comments p { margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, 0.85); }
.sv-empty { justify-content: center; color: var(--muted); font-size: 14px; padding: 18px 0; }
.sv-comment-form {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sv-comment-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 16px; padding: 10px 0; }
.sv-comment-form button { border: 0; background: none; color: var(--orange); font: inherit; font-weight: 700; font-size: 14px; }

/* ------------------------------------------------------------ aviso --- */
.sv-toast {
  position: absolute; left: 50%; bottom: 28px; z-index: 20; transform: translate(-50%, 20px);
  padding: 12px 18px; border-radius: 12px; background: #fff; color: #111;
  font-size: 14px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.sv-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.sv-toast a { color: var(--orange); margin-left: 8px; }

/* ------------------------------------------- navegação no computador --- */
.sv-nav {
  position: absolute; top: 50%; z-index: 5; width: 34px; height: 34px; margin-top: -17px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.88); color: #111;
  display: grid; place-items: center;
}
.sv-nav svg { width: 18px; height: 18px; }
.sv-nav.prev { left: -56px; }
.sv-nav.next { right: -56px; }
.sv-peek {
  position: absolute; top: 50%; width: calc(var(--sv-w) * 0.42); aspect-ratio: 9 / 16;
  transform: translateY(-50%); border: 0; padding: 0; border-radius: 10px; overflow: hidden;
  background: #000; color: #fff; cursor: pointer; opacity: 0.55; transition: opacity 0.2s;
  display: grid; place-content: center; justify-items: center; gap: 8px; font: inherit;
}
.sv-peek:hover { opacity: 0.8; }
.sv-peek[hidden] { display: none; }
.sv-peek.prev { left: calc(var(--sv-w) * -0.42 - 110px); }
.sv-peek.next { right: calc(var(--sv-w) * -0.42 - 110px); }
.sv-peek-bg { position: absolute; inset: 0; }
.sv-peek-bg .ph, .sv-peek-bg .sv-text { position: absolute; inset: 0; padding: 0; }
.sv-peek-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); }
.sv-peek-av {
  position: relative; width: 56px; height: 56px; border-radius: 50%; padding: 2.5px;
  background: conic-gradient(from 200deg, var(--orange), var(--beige), var(--orange));
}
.sv-peek-av.seen { background: #555; }
.sv-peek-av span { width: 100%; height: 100%; border-radius: 50%; border: 2.5px solid #000; background: var(--orange); display: grid; place-items: center; overflow: hidden; }
.sv-peek-av img { width: 66%; }
.sv-peek strong { position: relative; font-size: 13px; }

@media (max-width: 1100px) { .sv-peek { display: none; } }

/* ---------------------------------------------------------- celular --- */
.sv-mobile { background: #000; }
.sv-mobile .sv-brand, .sv-mobile .sv-x, .sv-mobile .sv-nav, .sv-mobile .sv-peek { display: none; }
.sv-mobile .sv-face, .sv-mobile .sv-sheet { border-radius: 0; }
.sv-mobile .sv-close { display: grid; }
.sv-mobile .sv-pause { display: none; }
.sv-mobile .sv-top { padding-top: calc(8px + env(safe-area-inset-top, 0px)); }

/* ------------------------------- anéis já vistos (Home / destaques) --- */
.story.seen .story-ring { background: #3a3a3a; }
button.story, button.highlight { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
