:root{
  --bg: #070A10;
  --panel: rgba(255,255,255,.04);
  --panel2: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.88);
  --muted: rgba(255,255,255,.62);
  --muted2: rgba(255,255,255,.44);

  --g1: #6AE4FF; /* ciano */
  --g2: #B46CFF; /* roxo */
  --g3: #FF6AD5; /* rosa */
  --g4: #FFCC66; /* âmbar */
  --ok: #66FFB5;

  --radius: 18px;
  --radius2: 24px;
  --shadow: 0 20px 70px rgba(0,0,0,.55);
  --shadow2: 0 10px 30px rgba(0,0,0,.45);

  --max: 1180px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }
button, input, textarea{ font: inherit; color: inherit; }

.container{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(7,10,16,.86), rgba(7,10,16,.55));
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.header__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  width: min(var(--max), calc(100% - 0px));
  margin: 0 auto;
}
.logo{
  width: 100px;
  height: auto;
}
.brand{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:center;
  user-select:none;
}

.brand__mark{
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.85), transparent 55%),
    linear-gradient(135deg, rgba(106,228,255,.95), rgba(180,108,255,.95));
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 0 28px rgba(106,228,255,.18);
}

.brand__text{
  font-weight: 800;
  letter-spacing: .5px;
}
.brand__dot{ color: var(--g1); }

.icon-btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.icon-btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.icon-btn:active{ transform: translateY(0px) scale(.98); }

.header__search{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 4px;
}

.search{
  display:flex;
  gap: 10px;
  align-items:center;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 10px 10px 10px 12px;
}

.search__input{
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
}
.search__input::placeholder{ color: rgba(255,255,255,.45); }
.search__hint{ padding: 8px 4px 10px; color: var(--muted2); font-size: 12px; }

/* categorias no header: estilo "barra" igual imagem + intro + hover */
.header__cats{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
/* cada categoria vira um “painel” que colapsa em linha */
.cat-chip{
  --catH: 12px;             /* altura padrão (só linha) */
  --catLineH: 4px;          /* espessura da linha */
  --catBg: rgba(255,255,255,.04);
  --catGrad: linear-gradient(90deg, rgba(106,228,255,.9), rgba(180,108,255,.9)); /* fallback */

  position: relative;
  height: var(--catH);
  width: 100%;

  border: none;
  border-radius: 0;
  background: transparent;

  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;

  transform-origin: top;
  transition:
    height .28s ease,
    background .28s ease;
}

/* linha degradê sempre visível embaixo */
.cat-chip::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--catLineH);
  background: var(--catGrad);
  opacity: .95;
}

/* divisórias verticais entre as abas */
.cat-chip:not(:last-child)::before{
  content:"";
  position:absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: rgba(255,255,255,.10);
  pointer-events:none;
}
/* não precisamos mais do “quadradinho” */
.cat-chip__color{
  display:none;
}
/* texto só aparece quando expandir */
.cat-chip__label{
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .18s ease, transform .18s ease;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  
  color: rgba(255,255,255,.92);
  text-shadow: 0 10px 30px rgba(0,0,0,.55);
  user-select: none;
}

/* hover no HEADER INTEIRO controla a expansão */
.site-header:hover .cat-chip{
  height: 48px;
  background: var(--catBg);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header:hover .cat-chip__label{
  opacity: 1;
  transform: translateY(0);
}

/* INTRO: ao carregar, aparece aberto e depois colapsa sozinho */
.header__cats--intro .cat-chip{
  height: 48px;
  background: var(--catBg);
}
.header__cats--intro .cat-chip__label{
  opacity: 1;
  transform: translateY(0);
}

/* cores (degradê linha embaixo) */
.cat-chip--games{  --catGrad: linear-gradient(90deg, rgba(106,228,255,.95), rgba(102,255,181,.85)); }
.cat-chip--filmes{ --catGrad: linear-gradient(90deg, rgba(255,204,102,.95), rgba(255,106,213,.85)); }
.cat-chip--series{ --catGrad: linear-gradient(90deg, rgba(180,108,255,.95), rgba(106,228,255,.85)); }

/* Drawer */
.backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 80;
}

.drawer{
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(360px, 92vw);
  z-index: 90;
  transform: translateX(-110%);
  transition: transform .2s ease;
  background:
    radial-gradient(900px 500px at 30% 0%, rgba(106,228,255,.10), transparent 60%),
    rgba(10,12,18,.96);
  border-right: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
}
.drawer--open{ transform: translateX(0); }

.drawer__header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.drawer__title{ font-weight: 800; letter-spacing: .2px; }
.drawer__nav{ padding: 10px 10px 6px; display:flex; flex-direction:column; gap: 8px; }
.drawer__link{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.86);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.drawer__link:hover{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); transform: translateY(-1px); }
.drawer__link--admin{ border-color: rgba(255,204,102,.22); }
.drawer__footer{ margin-top:auto; padding: 12px 14px 14px; color: var(--muted2); }

.background{
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(106,228,255,.14), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, rgba(180,108,255,.14), transparent 60%),
    radial-gradient(900px 700px at 70% 90%, rgba(255,106,213,.10), transparent 60%),
    var(--bg);
}
/* Sections */
.section{ padding: 36px 0;  }
.section__head{
  display:flex;
  gap: 16px;
  align-items:flex-end;
  justify-content:space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.section__title{
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: .2px;
}
.section__sub{ margin: 6px 0 0; color: var(--muted); max-width: 62ch; }

.pill-row{ display:flex; gap: 10px; flex-wrap: wrap; justify-content:flex-end; }
.pill{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 10px 12px;
  border-radius: 999px;
  cursor:pointer;
  color: rgba(255,255,255,.78);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.pill:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.pill--active{ border-color: rgba(106,228,255,.28); box-shadow: 0 0 0 3px rgba(106,228,255,.08); }

/* Layout */
.layout{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items:start;
}

@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
}

/* Post cards (estilo “video game UI”) */
.grid{
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(12, 1fr);
}

.card{
  grid-column: span 6;
  border-radius: var(--radius2);
  overflow:hidden;
  position: relative;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow2);
  cursor:pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  will-change: transform;
}
.card:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
}

/* scanline leve */
.card::after{
  content:"";
  position:absolute; inset:0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.03),
    rgba(255,255,255,.03) 1px,
    transparent 1px,
    transparent 6px
  );
  opacity: .18;
  pointer-events:none;
}

.card__media{
  position: relative;
  aspect-ratio: 16/9;
  overflow:hidden;
}
.card__media img{
  width:100%;
  height:100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
  transform: scale(1.02);
}

.card__glow{
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 30% 20%, rgba(106,228,255,.18), transparent 55%),
              radial-gradient(circle at 70% 20%, rgba(180,108,255,.14), transparent 55%),
              radial-gradient(circle at 50% 80%, rgba(255,106,213,.10), transparent 65%);
  pointer-events:none;
}

.card__body{
  padding: 14px 14px 16px;
  position: relative;
}

.card__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.84);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
}

.badge__dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--g1);
  box-shadow: 0 0 0 3px rgba(106,228,255,.10);
}

.card__date{ color: var(--muted2); font-size: 12px; }

.card__title{
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: .2px;
}

.card__excerpt{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Responsive grid cards */
@media (max-width: 980px){
  .card{ grid-column: span 6; }
}
@media (max-width: 680px){
  .card{ grid-column: span 12; }
}

/* Sidebar */
.sidebar{ position: sticky; top: 120px; display:flex; flex-direction:column; gap: 14px; }
.sidebar__card{
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 14px;
}
.sidebar__title{ font-weight: 800; letter-spacing: .2px; margin-bottom: 10px; }
.sidebar__list{ display:flex; flex-direction:column; gap: 10px; }
.mr{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 10px 12px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
  cursor: pointer;
}
.mr:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.mr__title{ font-weight: 700; font-size: 13px; color: rgba(255,255,255,.86); }
.mr__date{ font-size: 12px; color: var(--muted2); margin-top: 4px; }

/* Buttons/Inputs */
.btn{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.86);
  padding: 10px 12px;
  border-radius: 14px;
  cursor:pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.btn:active{ transform: translateY(0px) scale(.99); }

.btn--primary{
  background: linear-gradient(135deg, rgba(106,228,255,.18), rgba(180,108,255,.14));
  border-color: rgba(106,228,255,.24);
}
.btn--ghost{ background: rgba(255,255,255,.02); }
.btn--tiny{ padding: 8px 10px; border-radius: 12px; }

.btn--glow{
  border-color: rgba(255,255,255,.16);
  background:
    radial-gradient(circle at 30% 20%, rgba(106,228,255,.18), transparent 55%),
    radial-gradient(circle at 70% 20%, rgba(180,108,255,.14), transparent 55%),
    rgba(255,255,255,.03);
}
.btn__icon{
  display:inline-grid;
  place-items:center;
  width: 22px;
  height: 22px;
  border-radius: 9px;
  margin-right: 8px;
  background: rgba(255,255,255,.10);
}

.input, .textarea{
  width: 100%;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
  color: rgba(255,255,255,.86);
  border-radius: 14px;
  padding: 10px 12px;
  outline: none;
}
.textarea{ min-height: 100px; resize: vertical; }
.input::placeholder, .textarea::placeholder{ color: rgba(255,255,255,.42); }

/* 1. Tornar o ícone do calendário branco */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* 2. Mudar a cor do Select (fundo azul por exemplo) */
#fCategory { 
  color: white;
  cursor: pointer;
}

/* 3. Garantir que as opções sejam pretas */
#fCategory option {
  background-color: rgba(22, 19, 43, 0.864);
  color: white;
}
/* Modal */
.modal{
  position: fixed;
  inset: 0;
  z-index: 120;
  display:none;
  place-items:center;
  padding: 16px;
  background: rgba(0,0,0,.58);
}
.modal--open{ display:grid; }

.modal__panel{
  width: min(980px, 96vw);
  max-height: 92vh;
  overflow:auto;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(106,228,255,.12), transparent 60%),
    rgba(10,12,18,.94);
  box-shadow: var(--shadow);
}

.modal__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px 10px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(10,12,18,.96), rgba(10,12,18,.55));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.modal__crumb{ color: var(--muted2); font-size: 12px; }

.post__hero{ position: relative; }
.post__cover{
  width:100%;
  height: 340px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}
.post__overlay{
  position:absolute; inset:0;
  background: linear-gradient(to top, rgba(10,12,18,.96), rgba(10,12,18,.25));
}
.post__meta{
  position:absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
}
.post__title{
  margin: 10px 0 8px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: .2px;
}
.post__info{ color: rgba(255,255,255,.72); font-size: 13px; display:flex; gap: 10px; align-items:center; }
.dot{ opacity: .8; }

.post__body{
  padding: 18px 16px 8px;
  color: rgba(255,255,255,.82);
  line-height: 1.75;
}
.post__body h3{
  margin-top: 22px;
  margin-bottom: 10px;
  letter-spacing: .2px;
}
.post__body p{ margin: 0 0 14px; color: rgba(255,255,255,.78); }
.post__body .embed{
  margin: 16px 0;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
}
.post__body iframe{ width: 100%; height: 360px; border: 0; display:block; }

/* Comentários */
.comments{ padding: 8px 16px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.comments__title{ margin: 0; letter-spacing: .2px; }

.comment-auth{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 860px){
  .comment-auth{ grid-template-columns: 1fr; }
}

.comments-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin: 18px 0;
}
.comments-tools{ display:flex; gap:10px; align-items:center; }

.comment__name{
  display:flex;
  gap:10px;
  align-items:center;
}
.comment__ago{
  font-size: 12px;
  opacity: .7;
  font-weight: 600;
}

.comment__actions{
  display:flex;
  gap:14px;
  align-items:center;
  margin-top: 10px;
}

.like-btn{
  border: none;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  padding: 8px 12px;
  border-radius: 999px;
  cursor:pointer;
}
.like-btn.is-liked{
  border-color: rgba(106,228,255,.35);
  box-shadow: 0 0 0 3px rgba(106,228,255,.10);
}
.reply-btn{
  border: none;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  padding: 8px 12px;
  border-radius: 999px;
  cursor:pointer;
}

.comment--reply{
  margin-top: 10px;
  margin-left: 52px;
  border-left: 2px solid rgba(255,255,255,.08);
  padding-left: 12px;
}

.comment-identity{
  display:grid;
  gap:14px;
  padding: 12px 0 6px;
}

.guest-name{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  padding: 14px;
}

.guest-name__actions{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

#topLikedBtn{
  width: 44px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  cursor: pointer;
}

#sortSelect {
  border: none;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255,255,255,.10);
  padding: 8px 12px;
  border-radius: 14px;
  cursor: pointer;
  color: white; /* Garante que o texto principal seja branco */
  appearance: none; /* Remove a seta padrão em alguns navegadores */
  -webkit-appearance: none;
}

/* Estilizando as opções (o menu suspenso) */
#sortSelect option {
  background-color: #0b0916f3; /* Cor sólida para o fundo (transparência não funciona aqui) */
  color: white;              /* Cor do texto das opções */
  padding: 10px;
}

/* Dica: Ajuste para navegadores que usam fundo branco por padrão */
#sortSelect:focus {
  outline: none;
  border-color: rgba(255, 255, 255, .30);
}

.auth-card{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 14px;
}
.auth-card__title{ font-weight: 800; margin-bottom: 10px; }
.auth-card__row{ display:flex; gap: 10px; align-items:center; margin-bottom: 8px; }
.auth-card__row .input{ flex: 1; }

.profile{
  display:flex;
  gap: 10px;
  align-items:center;
  margin: 10px 0 8px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.profile__photo{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.12);
}
.profile__name{ font-weight: 800; }

.composer{
  margin-top: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  padding: 14px;
}
.composer__top{ display:flex; justify-content:space-between; align-items:center; gap: 10px; margin-bottom: 10px; }
.composer__who{ font-weight: 700; color: rgba(255,255,255,.84); }
.composer__bottom{ display:flex; justify-content:space-between; align-items:center; gap: 12px; margin-top: 10px; }

.comment-list{ margin-top: 14px; display:flex; flex-direction:column; gap: 12px; }
.comment{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 12px;
}
.comment__top{ display:flex; gap: 10px; align-items:center; justify-content:space-between; }
.comment__who{ display:flex; gap: 10px; align-items:center; }
.comment__avatar{
  width: 34px;
  height: 34px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.comment__name{ font-weight: 800; }
.comment__time{ color: var(--muted2); font-size: 12px; }
.comment__text{ margin-top: 10px; color: rgba(255,255,255,.78); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

.tiny{ font-size: 12px; color: var(--muted2); }

/* Footer */
.site-footer{
  margin-top: 34px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.20);
}
.footer__grid{
  padding: 28px 0;
  display:grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1.4fr;
  gap: 18px;
}
@media (max-width: 980px){
  .footer__grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer__grid{ grid-template-columns: 1fr; }
  .cat-chip:hover{ height: 48px; }
}

.footer__logo{ display:flex; gap: 10px; align-items:center; margin-bottom: 10px; }
.footer__desc{ margin: 0 0 10px; color: rgba(255,255,255,.70); line-height: 1.6; }
.footer__title{ font-weight: 800; margin-bottom: 10px; }
.footer__list{ list-style:none; padding: 0; margin: 0; display:flex; flex-direction:column; gap: 8px; }
.footer__list a{
  color: rgba(255,255,255,.72);
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}
.footer__list a:hover{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
}
