:root{
  --bg: #0D0B0B;
  --ink: #FFFFFF;
  --muted: rgba(255,255,255,.72);
  --stroke: rgba(255,255,255,.14);

  --brand: #540E96;

  --r: 18px;
  --max: 1280px;

  /* um pouco maior */
  --cardW: 310px;
  --thumbH: 170px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ background: var(--bg); }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);

  min-height: 100vh;
  display:flex;
  flex-direction:column;
}

a{ color: inherit; }

.container{
  max-width: var(--max);
  margin:0 auto;
  padding: 26px 16px 30px;
  flex: 1;
}

/* Topbar (AGORA BRANCO) */
.topbar{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;

  border: 1px solid rgba(255,255,255,.18);
  border-radius: calc(var(--r) + 8px);

  background: rgba(255,255,255,.95);
}

@media (max-width: 560px){
  .topbar{ align-items:flex-start; }
}

.brand{ display:flex; align-items:center; gap:12px; }

.badge{
  width:42px;
  height:42px;
  border-radius: 14px;
  display:grid;
  place-items:center;

  font-weight: 900;
  color: #111;

  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.14);
}

.title h1{
  margin:0;
  font-size: clamp(18px, 3vw, 26px);
  letter-spacing: -0.3px;
  color: var(--brand);
}

.title p{
  margin:4px 0 0;
  font-size: 13px;
  color: rgba(0,0,0,.78);
}

/* Buttons */
.btn{
  border:1px solid rgba(0,0,0,.14);
  background: rgba(0,0,0,.06);
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 800;
  cursor:pointer;

  color: rgba(0,0,0,.88);
  transition: background .12s ease, border-color .12s ease, transform .08s ease;
}
.btn:hover{
  background: rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.20);
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  color: #fff;
  border-color: rgba(84,14,150,.65);
  background: rgba(84,14,150,.86);
}
.btn-primary:hover{
  border-color: rgba(84,14,150,.85);
  background: rgba(84,14,150,.92);
}

/* Tabs */
.tabs{
  margin-top: 14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.tab{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.06);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  cursor:pointer;
  color: var(--ink);
  transition: background .12s ease, border-color .12s ease, transform .08s ease;
}
.tab:hover{
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.22);
}
.tab:active{ transform: translateY(1px); }

.tab[aria-pressed="true"]{
  border-color: rgba(84,14,150,.80);
  background: rgba(84,14,150,.22);
}

/* LISTA */
.list{
  margin-top: 16px;
  display:grid;
  gap: 16px;
  justify-content: center;
  grid-template-columns: 1fr;
}

@media (min-width: 700px){
  .list{ grid-template-columns: repeat(2, minmax(0, var(--cardW))); }
}
@media (min-width: 980px){
  .list{ grid-template-columns: repeat(3, minmax(0, var(--cardW))); }
}
@media (min-width: 1200px){
  .list{ grid-template-columns: repeat(4, minmax(0, var(--cardW))); }
}

/* Card */
.item{
  border:1px solid var(--stroke);
  border-radius: calc(var(--r) + 10px);
  overflow:hidden;
  background: rgba(255,255,255,.04);
  transition: border-color .12s ease, background .12s ease;
}
.item:hover{
  border-color: rgba(84,14,150,.35);
  background: rgba(255,255,255,.05);
}

/* Thumb */
.videoBox{
  position: relative;
  width: 100%;
  height: var(--thumbH);
  background: #070606;
  display:grid;
  place-items:center;
  cursor:pointer;
}

.thumb{
  position:absolute;
  inset:0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.videoBox::after{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.45);
}

.noThumb{
  position: relative;
  z-index: 2;
  padding:18px;
  color: rgba(255,255,255,.75);
  font-weight:900;
  text-align:center;
}

/* Play */
.play{
  position:absolute;
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgba(13,11,11,.65);
  border: 1px solid rgba(84,14,150,.65);
  font-weight: 900;
  color: #fff;
}

/* Conteúdo */
.content{
  padding: 14px 16px 16px;
  background: rgba(255,255,255,.06);
  border-top: 1px solid rgba(255,255,255,.10);
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.headerLine{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}

.content h3{
  margin:0;
  font-size: 15px;
  letter-spacing: -0.2px;
  line-height: 1.25;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;

  overflow-wrap: anywhere;
  word-break: break-word;
}

.meta{
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* História: NÃO corta mais */
.story{
  margin: 0;
  color: rgba(255,255,255,.88);
  line-height: 1.6;
  font-size: 13.2px;

  overflow-wrap: anywhere;
  word-break: break-word;

  white-space: normal;
}

/* Badge destaque */
.star{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  font-weight: 900;
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(84,14,150,.65);
  background: rgba(84,14,150,.18);
  color: #FFFFFF;
  white-space: nowrap;
}

/* Modal */
.modal{
  position: fixed;
  inset:0;
  background: rgba(13,11,11,.78);
  display:none;
  place-items:center;
  padding: 18px;
  z-index: 50;
}
.modal[aria-hidden="false"]{ display:grid; }

.dialog{
  width: min(980px, 100%);
  border-radius: 22px;
  background: rgba(13,11,11,.92);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
}

.dialogHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom:1px solid rgba(255,255,255,.12);
}

.dialogHead b{
  font-size: 14px;
  letter-spacing: -0.2px;
}

.x{
  width: 42px;
  height: 38px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  cursor:pointer;
  font-weight: 900;
  color: var(--ink);
}
.x:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.22);
}

/* Player padrão (vídeo) */
.player{
  width:100%;
  aspect-ratio: 16/9;
  background: rgba(255,255,255,.05);
}
.player iframe,
.player video{
  width: 100%;
  height: 100%;
  border:0;
  display:block;
}

/* Player para prints/imagem (scrollável e sem esmagar) */
.player.is-image{
  aspect-ratio: auto;
  max-height: 78vh;
  overflow: auto;
  background: rgba(0,0,0,.25);
}
.player.is-image img{
  width: 100%;
  height: auto;
  display:block;
  object-fit: contain;
}

/* Footer */
.footer{
  padding: 18px 0 22px;
  text-align:center;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
}

.footerInner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.empty{
  padding: 16px;
  border:1px solid var(--stroke);
  border-radius: calc(var(--r) + 8px);
  background: rgba(255,255,255,.06);
  color: var(--muted);
}

/* Acessibilidade */
:focus-visible{
  outline: 2px solid rgba(84,14,150,.75);
  outline-offset: 2px;
}