* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Unbounded", sans-serif;
}

body {
  background: black;
  background-image: url("");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: white;
}

#snow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: -1;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 60px;
}

.logo {
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: lowercase;
}

.navbtn {
  background: none;
  border: none;
  margin: 0;
  
  color: white;
  font-family: inherit;
  font-size: 1rem;

  cursor: pointer;
  opacity: 0.7;
  transition: 0.2s;
}

.navbtn:hover {
  opacity: 1;
  text-decoration: underline;
}

.navbtn:focus {
  outline: none;
}

.navbtn:active {
  transform: scale(0.97);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  justify-content: center;
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
}

/* Hero */
.hero {
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 80px;

  background: url("https://lilgiela33.org/assets/imgs/home.jfif") center/cover no-repeat;
}

.hero h2 {
  font-size: 60px;
  font-weight: 500;
}

.hero p {
  margin-top: 10px;
  color: #bdbdbd;
}

.btn {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 25px;
  border-radius: 30px;
  background: white;
  color: black;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  opacity: 0.7;
}

/* Sections */
.section {
  padding: 80px 60px;
}

.section h2 {
  font-size: 30px;
  margin-bottom: 20px;
}

.subtext {
  color: gray;
  margin-bottom: 25px;
}

.quote {
  margin-top: 20px;
  font-style: italic;
  color: white;
}

/* Discografia */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(291px, 1fr));
  gap: 25px;
}

.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 20px;
  border-radius: 18px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.3);
}

/* Archives Photos */
.photos {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.photos img {
  width: 180px;
  border-radius: 14px;
  opacity: 0.8;
  transition: 0.3s;
}

.photos img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.ghost {
  background: transparent;
  border: 1px solid gray;
  color: white;
  margin-top: 30px;
}

.ghost:hover {
  border-color: white;
}

/* Footer */
footer {
  padding: 40px;
  text-align: center;
  color: gray;
  font-size: 13px;
}

footer span {
  display: block;
  margin-top: 8px;
  color: white;
  opacity: 0.6;
}

.contact-form {
  max-width: 500px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  font-size: 0.9rem;
  opacity: 0.7;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.6);
  color: white;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 120px;
  resize: none;
}

.contact-form button {
  padding: 12px;
  border: none;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  background: white;
  color: black;
  transition: 0.2s;
}

.contact-form button:hover {
  transform: scale(1.03);
}

.mini {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 20px;
}

button:disabled {
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
}

.bio-preview {
  margin-top: 60px;
  text-align: center;
  max-width: 600px;
}

.bio-preview p {
  opacity: 0.75;
  font-size: 15px;
  line-height: 1.6;
}

.bio-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.bio-content h3 {
  margin-top: 32px;
  margin-bottom: 8px;
  font-size: 20px;
  letter-spacing: 1px;
  color: #fff;
}

.bio-content p {
  line-height: 1.7;
  opacity: 0.85;
  font-size: 15px;
}


.bio-button {
  display: inline-block;
  background: transparent;
  margin-top: 20px;
  padding: 10px 18px;
  border: 1px solid red;
  color: rgb(255, 255, 255);
  font-family: monospace;
  text-decoration: none;
  border-radius: 10px;
  transition: 0.2s;
}

.bio-button:hover {
  background: red;
  color: black;
}

.bio-page {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

.bio-full {
  max-width: 700px;
  text-align: center;
}

.bio-full h2 {
  font-size: 22px;
  margin-bottom: 25px;
}

.bio-full p {
  font-size: 15px;
  opacity: 0.8;
  line-height: 1.8;
  margin-bottom: 20px;
}

.archive-line {
  font-family: monospace;
  color: red;
  margin-top: 30px;
  opacity: 0.9;
}

.footer {
  margin-top: 100px;
  padding: 30px 0;
  text-align: center;
  font-family: monospace;
  font-size: 13px;
  opacity: 0.7;
}

.merch-link {
  display: block;
  margin-top: 12px;
  text-decoration: none;
  color: red;
  opacity: 0.8;
  transition: 0.2s;
}

.merch-link:hover {
  opacity: 1;
  text-shadow: 0 0 8px red;
}

.email-corner {
  position: fixed;
  top: 85px; /* abaixo do nav */
  right: 25px;

  text-align: right;
  font-family: monospace;
  font-size: 12px;

  opacity: 0.65;
  z-index: 500;
}

.email-corner p {
  margin: 0;
  color: white;
  opacity: 0.55;
}

.email-corner a {
  color: red;
  text-decoration: none;
  opacity: 0.85;
  transition: 0.2s;
}

.email-corner a:hover {
  opacity: 1;
  text-shadow: 0 0 8px red;
}

#copyEmail {
  color: red;
  cursor: pointer;
  opacity: 0.85;
  transition: 0.2s;
}

#copyEmail:hover {
  opacity: 1;
  text-shadow: 0 0 8px red;
}

#copyAlert {
  margin-top: 6px;
  font-size: 11px;
  color: white;
  opacity: 0;
  transition: 0.3s;
}

@media (max-width: 700px) {
  .email-corner {
    display: none;
  }
}

.footer {
  margin-top: 120px;
  padding: 35px 0;
  text-align: center;
  font-family: monospace;
  font-size: 13px;
  opacity: 0.75;
}

.footer-link {
  display: block;
  margin-top: 10px;
  text-decoration: none;
  color: red;
  opacity: 0.8;
  transition: 0.2s;
}

.footer-link:hover {
  opacity: 1;
  text-shadow: 0 0 10px red;
}

.footer-email {
  display: block;
  margin-top: 12px;
  color: red;
  cursor: pointer;
  opacity: 0.85;
  transition: 0.2s;
}

.footer-email:hover {
  opacity: 1;
  text-shadow: 0 0 10px red;
}

.footer-alert {
  margin-top: 6px;
  font-size: 11px;
  font-family: monospace;
  color: white;
  opacity: 0;
  transition: 0.3s;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: black;
}

::-webkit-scrollbar-thumb {
  background: red;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: darkred;
}


/* =========================================
   ARCHIVES JSON GALLERY + LIGHTBOX
   ========================================= */
.gallery{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
@media (max-width: 900px){
  .gallery{ grid-template-columns:repeat(2,1fr); }
}

.thumb{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:16px;
  opacity:.92;
  cursor:pointer;
  transition:transform .18s ease, opacity .18s ease;
  display:block;
}
.thumb:hover{ opacity:1; transform:scale(1.01); }

.thumb.video{
  position:relative;
  background-size:cover;
  background-position:center;
  border-radius:16px;
  opacity:.92;
  cursor:pointer;
  transition:transform .18s ease, opacity .18s ease;
}
.thumb.video:hover{ opacity:1; transform:scale(1.01); }

.play-icon{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:42px;
  color:#fff;
  text-shadow:0 0 20px rgba(0,0,0,.8);
  opacity:.9;
  user-select:none;
}

/* LIGHTBOX */
.lightbox{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.92);
  z-index:999999;
}
.lightbox.open{ display:flex; }

.lb-img, .lb-video{
  max-width:min(92vw, 1100px);
  max-height:82vh;
  border-radius:18px;
  object-fit:contain;
  display:none;
  box-shadow:0 0 40px rgba(0,0,0,.6);
}
.lb-img.show, .lb-video.show{ display:block; }

.lb-close{
  position:absolute;
  top:18px;
  right:18px;
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.25);
  color:#fff;
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  opacity:.9;
}

.lb-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.15);
  color:#fff;
  font-size:40px;
  line-height:40px;
  width:54px;
  height:54px;
  border-radius:16px;
  cursor:pointer;
  opacity:.9;
}
.lb-prev{ left:18px; }
.lb-next{ right:18px; }

.lb-bar{
  position:absolute;
  top:18px;
  right:18px;
  display:flex;
  gap:10px;
  align-items:center;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(0,0,0,.85);
  border:1px solid rgba(255,0,0,.35);
}
.lb-btn{
  background:transparent;
  border:1px solid rgba(255,0,0,.6);
  color:#fff;
  padding:10px 12px;
  border-radius:14px;
  font-family:monospace;
  cursor:pointer;
  text-decoration:none;
}
.lb-btn:hover{ background:red; color:#000; }
.lb-counter{
  font-family:monospace;
  font-size:13px;
  opacity:.85;
  padding-right:6px;
}

/* Toast top-right (used by share/copy) */
#toast{
  position:fixed;
  top:18px;
  right:18px;
  padding:14px 16px;
  border-radius:16px;
  background:rgba(0,0,0,0.85);
  border:1px solid rgba(255,0,0,0.45);
  color:white;
  font-family:monospace;
  font-size:14px;
  opacity:0;
  pointer-events:none;
  transition:opacity 160ms ease;
  z-index:1000000;
}
#toast.show{ opacity:1; }

/* ARCHIVES UI OVERRIDES */
body #lightbox .lb-close{
  position:absolute !important;
  top:18px !important;
  right:18px !important;
  z-index:1000003 !important;
}

/* action bar under media, centered */
body #lightbox .lb-bar{
  position:absolute !important;
  left:50% !important;
  transform:translateX(-50%) !important;
  bottom:18px !important;
  top:auto !important;
  right:auto !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px !important;

  padding:12px 16px !important;
  border-radius:18px !important;
  background:rgba(0,0,0,.80) !important;
  backdrop-filter:blur(6px) !important;

  z-index:1000002 !important;
}

/* keep nav arrows above media but below close */
body #lightbox .lb-nav{
  z-index:1000002 !important;
}

/* toast: top-right, left of X (won't overlap) */
body #toast,
body .toast{
  position:fixed !important;
  top:18px !important;
  right:78px !important; /* space for X */
  left:auto !important;
  bottom:auto !important;

  padding:12px 14px !important;
  border-radius:16px !important;
  background:rgba(0,0,0,.88) !important;
  border:1px solid rgba(255,0,0,.45) !important;

  z-index:1000004 !important;
}

/* make sure overlay never blocks clicks */
body .overlay{
  pointer-events:none !important;
}

/* ===== MOBILE FIX (added) =====*/
@media (max-width: 900px) {
  html { -webkit-text-size-adjust: 100%; }

  body {
    padding: 0;
    overflow-x: hidden;
  }

  header {
    padding: 14px 14px 10px;
    gap: 10px;
  }

  .logo, header h1 {
    font-size: 20px;
    letter-spacing: 0.5px;
    line-height: 1.1;
  }

  /* NAV: no hamburger — swipe horizontally */
  nav {
    display: flex;
    align-items: center;
    gap: 10px;

    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;

    padding: 10px 2px;
    margin: 0;
    width: 100%;

    background: rgba(0,0,0,0.85);
    border-radius: 14px;
  }
  nav::-webkit-scrollbar { height: 0px; }

  .navbtn, nav button, nav a {
    flex: 0 0 auto;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    min-height: 40px;
  }

  .section, section {
    padding: 16px 14px;
  }

  h2 {
    font-size: 18px;
    line-height: 1.2;
  }

  .subtext, p.subtext {
    font-size: 13px;
    opacity: 0.85;
  }

  .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card { width: 100%; }

  iframe {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* If there's a global overlay, don't let it eat taps */
  .overlay { pointer-events: none; }

  /* Hide custom cursor on mobile */
  .cursor, #cursor, .custom-cursor, .cursor-dot, .cursor-outline {
    display: none !important;
  }

  /* Prevent sticky hover on touch */
  a:hover, button:hover, .navbtn:hover {
    transform: none !important;
    filter: none !important;
  }

  footer {
    padding: 16px 14px;
    gap: 8px;
    text-align: center;
  }
}

/* Tablet: allow 2 columns where grid is used */
@media (min-width: 901px) and (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== MOBILE LAYOUT REFINEMENT ===== */
@media (max-width: 900px){

  /* evita qualquer coisa estourar a tela */
  * { max-width: 100%; }
  img, video, iframe { max-width: 100% !important; }

  body { overflow-x: hidden; }

  /* se você tiver um container central (ex: .wrap/.container/.content) */
  .container, .wrap, .content, main {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* deixa tudo mais “coluna” */
  header, main, section, footer {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* títulos e textos mais confortáveis no celular */
  h1 { font-size: 22px !important; }
  h2 { font-size: 18px !important; }
  p  { font-size: 14px !important; line-height: 1.5; }

  /* grids viram 1 coluna no mobile */
  .grid {
    grid-template-columns: 1fr !important;
  }

  /* Spotify embeds: melhor toque e sem “vazar” */
  iframe {
    width: 100% !important;
    border-radius: 14px !important;
  }
}

.bio-archive{
  max-width: 760px;
  margin: 28px auto 36px;
  padding: 18px 18px 14px;
  border: 1px solid rgba(255,0,0,0.22);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  border-radius: 16px;
}

.bio-archive-title{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: 2px;
  font-size: 12px;
  color: rgba(255,0,0,0.9);
  opacity: 0.9;
  margin-bottom: 12px;
  display: flex;
  align-items: center;     /* centraliza vertical */
  justify-content: flex-start;
  gap: 10px;
  line-height: 1;          /* evita pular linha */
  white-space: nowrap;     /* impede quebrar */
}

.sigil-svg{
  width: 18px;
  height: 18px;
  display: inline-flex;    /* não quebra linha */
  flex: 0 0 auto;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  pointer-events: none; /* impede clique/abrir em nova aba */
}

.bio-archive-lines{
  display: grid;
  gap: 10px;
}

.bio-archive-lines > div{
  display:flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.bio-archive-lines > div:last-child{
  border-bottom: none;
  padding-bottom: 0;
}

.bio-archive .k{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: 1.5px;
  font-size: 12px;
  opacity: 0.6;
}

.bio-archive .v{
  font-size: 14px;
  opacity: 0.9;
  text-align: right;
}
