/* --- Variables globales --- */
:root{
  --bg: #7A3D5D;
  --panel: #16161f;
  --panel-2: #1e1e2b;
  --border: #3a3a52;
  --accent: #FA0080;
  --accent-2: #00DDFA;
  --text: #d8d8e0;
  --muted: #8a8aa0;

  /* Tipografías */
  --ff-display: 'Press Start 2P', monospace;
  --ff-body: 'VT323', monospace;
  --fs-body: 1.35rem;

  /* Radios (elementos pequeños) */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-pill: 100px;

  /* Corte diagonal superior izquierda (contenedores grandes) */
  --bevel-size: 28px;
}

/* --- Reset --- */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Body y fondo --- */
body{
  cursor: url("https://media.zhetaaka.com/cursor.cur") 0 0, auto;  /* cursor personalizado */
  background-color: var(--bg);
  background-image: url('https://media.zhetaaka.com/bg.webp');
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  padding: 24px 16px 80px;
  min-height: 100vh;
}

/* --- Barra superior --- */
.topbar{
  max-width: 980px;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, #1a1a28, #2a1a3a);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 16px 10px calc(16px + var(--bevel-size));
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ff-display);
  font-size: 0.6rem;
  letter-spacing: 1px;
  color: var(--accent-2);
  flex-wrap: wrap;
  gap: 10px;
  clip-path: polygon(
    var(--bevel-size) 0,
    100% 0,
    100% 100%,
    0 100%,
    0 var(--bevel-size)
  );
}

.topbar .nav a{
  color: var(--accent-2);
  text-decoration: none;
  margin-left: 14px;
  transition: .15s;
}

.topbar .nav a:hover{
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent);
}

/* --- Layout principal (dos columnas) --- */
.wrap{
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: start;
}

/* --- Paneles (contenedores grandes con corte diagonal) --- */
.panel{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  clip-path: polygon(
    var(--bevel-size) 0,
    100% 0,
    100% 100%,
    0 100%,
    0 var(--bevel-size)
  );
}

.panel .panel-header{
  background: linear-gradient(90deg, #2a1a3a, #1a1a28);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px 8px calc(12px + var(--bevel-size));
  font-family: var(--ff-display);
  font-size: 0.55rem;
  letter-spacing: 1px;
  color: var(--accent);
  text-transform: uppercase;
}

.panel .panel-body{
  padding: 12px;
}

/* Separación entre paneles de la columna izquierda */
aside .panel + .panel{
  margin-top: 18px;
}

/* --- Perfil (columna izquierda) --- */
.avatar{
  width: 100%;
  aspect-ratio: 1/1;
  background: #222 url('https://picsum.photos/seed/zhetaaka/400/400') center/cover;
  border-bottom: 1px solid var(--border);
  filter: grayscale(0.3) contrast(1.1);
}

.profile-name{
  font-family: var(--ff-display);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 6px;
  text-shadow: 0 0 8px #ff2d9566;
  word-break: break-word;
}

.profile-tag{
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 10px;
}

.stat{
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  color: var(--muted);
}

.stat span:last-child{
  color: var(--accent-2);
}

/* --- Iconos sociales --- */
.profile-links{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-links a{
  color: var(--accent-2);
  font-size: 1.4rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--panel-2);
  text-decoration: none;
  transition: .15s;
}

.profile-links a:hover{
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px #ff2d9566;
  transform: translateY(-2px);
}

/* Enlace con imagen (BeatStars) */
.profile-links a.profile-link-img img{
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(85%) sepia(30%) saturate(800%) hue-rotate(150deg) brightness(100%) contrast(100%);
  transition: filter .15s;
}

.profile-links a.profile-link-img:hover img{
  filter: brightness(0) saturate(100%) invert(25%) sepia(90%) saturate(3000%) hue-rotate(300deg) brightness(100%) contrast(100%);
}

/* --- Reproductor --- */
.player{
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.player .track-title{
  font-family: var(--ff-display);
  font-size: 0.6rem;
  color: var(--accent-2);
  letter-spacing: 1px;
}

.player .track-meta{
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: -4px;
}

audio{
  width: 100%;
  height: 40px;
  filter: invert(0.9) hue-rotate(180deg) saturate(1.5);
}

.player audio{
  width: 100%;
  height: 48px;
}

/* --- Reproductor personalizado --- */
.custom-audio{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  padding: 4px 0;
}

.custom-audio .ca-play,
.custom-audio .ca-mute{
  background: transparent;
  border: none;
  color: var(--text);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1rem;
  transition: color .15s;
}

.custom-audio .ca-play:hover,
.custom-audio .ca-mute:hover{
  color: var(--accent-2);
}

/* Barra de progreso */
.custom-audio .ca-seek{
  flex: 1;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  height: 8px;
  padding: 0;
  margin: 0;
}

.custom-audio .ca-seek::-webkit-slider-runnable-track{
  height: 8px;
  background: transparent;
  border-radius: 0;
}

.custom-audio .ca-seek::-moz-range-track{
  height: 8px;
  background: var(--border);
  border-radius: 0;
}

.custom-audio .ca-seek::-moz-range-progress{
  height: 8px;
  background: var(--accent-2);
  border-radius: 0;
}

.custom-audio .ca-seek::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--accent-2);
  border-radius: 50%;
  margin-top: -2px;
  transition: transform .15s;
}

.custom-audio .ca-seek::-webkit-slider-thumb:hover{
  transform: scale(1.2);
}

.custom-audio .ca-seek::-moz-range-thumb{
  width: 12px;
  height: 12px;
  background: var(--accent-2);
  border: none;
  border-radius: 50%;
}

.custom-audio .ca-play:disabled{
  cursor: wait;
  opacity: 0.8;
}

.custom-audio .ca-play:disabled:hover{
  color: var(--text);
}

/* --- Top 8 referencias (escritorio: avatares solapados) --- */
.influencias-stack{
  display: flex;
  align-items: center;
  padding: 4px 0 4px 6px;
  min-height: 52px;
}

.influencias-stack a{
  display: block;
  flex-shrink: 0;
  margin-left: -12px;
  transition: .15s;
  position: relative;
  z-index: 1;
  text-decoration: none;
}

.influencias-stack a:first-child{
  margin-left: 0;
}

.influencias-stack img{
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--panel);
  filter: grayscale(1);
  transition: .15s;
  display: block;
}

.influencias-stack a:hover{
  z-index: 2;
  transform: scale(1.1);
}

.influencias-stack a:hover img{
  filter: grayscale(0);
  border-color: var(--accent);
  box-shadow: 0 0 10px #ff2d9566;
}

/* Tooltip con el nombre (solo escritorio) */
.influencias-stack a::after{
  content: attr(title);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 4px 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .1s;
  z-index: 10;
}

.influencias-stack a:hover::after{
  opacity: 1;
}

.influencias-stack .nombre{
  display: none;
}

/* --- Secciones de la columna derecha --- */
.section{
  margin-bottom: 18px;
}

.section-title{
  font-family: var(--ff-display);
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 4px;
  line-height: 1.6;
}

.section-sub{
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 10px;
}

.blurb p{
  margin-bottom: 8px;
}

.blurb .highlight{
  color: var(--accent-2);
}

/* --- Conciertos (tarjetas) --- */
.conciertos-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.conciertos-grid .concierto-card{
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: .15s;
}

.conciertos-grid .concierto-card:hover{
  border-color: var(--accent);
  box-shadow: 0 0 14px #ff2d9555;
  transform: translateY(-3px);
}

.conciertos-grid .cartel{
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
  filter: grayscale(0.2);
  transition: .15s;
}

.conciertos-grid .concierto-card:hover .cartel{
  filter: grayscale(0);
}

.conciertos-grid .info{
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.conciertos-grid .fecha{
  font-family: var(--ff-display);
  font-size: 0.5rem;
  color: var(--accent);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.conciertos-grid .fecha strong{
  display: block;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 1px;
}

.conciertos-grid .lugar b{
  display: block;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.3;
}

.conciertos-grid .lugar span{
  font-size: 0.9rem;
  color: var(--muted);
}

.conciertos-grid .entradas{
  margin-top: auto;
  font-family: var(--ff-display);
  font-size: 0.45rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
  padding: 6px 8px;
  text-decoration: none;
  text-align: center;
  transition: .15s;
  white-space: nowrap;
  align-self: flex-start;
}

.conciertos-grid .entradas:hover{
  color: var(--on-primary);
  background: var(--accent-2);
  box-shadow: 0 0 10px #00ddfa66;
}

/* --- Grid de canciones --- */
.grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.grid::-webkit-scrollbar{
  width: 6px;
}

.grid::-webkit-scrollbar-track{
  background: transparent;
}

.grid::-webkit-scrollbar-thumb{
  background: var(--border);
  border-radius: 0;
}

.grid::-webkit-scrollbar-thumb:hover{
  background: var(--accent-2);
}

/* --- Tarjetas de canción --- */
.card{
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  transition: .15s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card:hover{
  border-color: var(--accent);
  box-shadow: 0 0 14px #ff2d9555;
  transform: translateY(-3px);
}

.card img{
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  filter: grayscale(0.4);
  display: block;
  flex-shrink: 0;
}

.card:hover img{
  filter: grayscale(0);
}

.card .info{
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.card .title{
  font-family: var(--ff-display);
  font-size: 0.5rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .artist{
  font-size: 1rem;
  color: var(--muted);
}

.card .play{
  color: var(--accent-2);
  font-size: 1rem;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Reproductor de BeatStars (iframe) --- */
.panel-body iframe {
  width: 100%;
  max-width: 599px !important;
  height: 800px;
  border: 0;
  display: block;
  margin: 0 auto;
}

/* --- Galería de fotos --- */
.fotos-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense; /* rellena huecos automáticamente */
  gap: 8px;
}

.fotos-grid .foto{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel-2);
  aspect-ratio: 1/1; /* cada celda es cuadrada */
  cursor: pointer;
  transition: .15s;
}

/* Foto grande: ocupa 2 columnas y 2 filas (50% del ancho) */
.fotos-grid .foto.foto-grande{
  grid-column: span 2;
  grid-row: span 2;
}

.fotos-grid .foto img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.3) contrast(1.05);
  transition: .2s;
}

.fotos-grid .foto:hover{
  border-color: var(--accent);
  box-shadow: 0 0 14px #ff2d9555;
  z-index: 1;
}

.fotos-grid .foto:hover img{
  filter: grayscale(0) contrast(1);
  transform: scale(1.05);
}

/* --- Lightbox de fotos --- */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  cursor: pointer;
}

.lightbox.active{
  opacity: 1;
  pointer-events: auto;
}

.lightbox img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  cursor: default;
}

.lightbox-close{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: .15s;
  z-index: 1;
}

.lightbox-close:hover{
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px #ff2d9566;
}

/* Flechas de navegación del lightbox */
.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: .15s;
  z-index: 1;
}

.lightbox-nav:hover{
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px #ff2d9566;
}

.lightbox-prev{
  left: 16px;
}

.lightbox-next{
  right: 16px;
}

@media (max-width: 760px){
  .lightbox-nav{
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .lightbox-prev{
    left: 8px;
  }

  .lightbox-next{
    right: 8px;
  }
}

/* Responsive: en móvil, 2 columnas */
@media (max-width: 760px){
  .fotos-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  /* En móvil, la foto grande ocupa las 2 columnas pero solo 1 fila */
  .fotos-grid .foto.foto-grande{
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 2/1;
  }
}

/* --- Footer --- */
.footer{
  max-width: 980px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.footer .blink{
  color: var(--accent);
  animation: blink 1.2s steps(2, start) infinite;
}

@keyframes blink{
  to{ visibility: hidden; }
}

.footer .back-to-top{
  display: inline-block;
  margin-top: 8px;
  color: var(--accent-2);
  font-size: 1rem;
  text-decoration: none;
  transition: color .15s, text-shadow .15s;
}

.footer .back-to-top:hover{
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent);
}

.footer .footer-link{
  color: var(--accent-2);
  text-decoration: none;
  transition: color .15s, text-shadow .15s;
}

.footer .footer-link:hover{
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent);
}

/* --- Responsive (móvil) --- */
@media (max-width: 760px){
  .wrap{
    grid-template-columns: 1fr;
  }

  .topbar{
    flex-direction: column;
    gap: 8px;
    font-size: 0.5rem;
  }

  .topbar .nav a{
    margin: 0 8px;
  }

  .grid{
    grid-template-columns: repeat(2, 1fr);
    max-height: none;
    overflow-y: visible;
  }

  .influencias-stack{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    justify-items: center;
    padding: 8px 0;
    min-height: auto;
  }

  .influencias-stack a{
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .influencias-stack img{
    width: 56px;
    height: 56px;
    margin: 0 auto;
  }

  .influencias-stack a::after{
    display: none;
  }

  .influencias-stack .nombre{
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
  }

  .conciertos-grid{
    gap: 8px;
  }

  .conciertos-grid .info{
    padding: 8px;
  }

  .conciertos-grid .fecha strong{
    font-size: 0.9rem;
  }

  .conciertos-grid .lugar b{
    font-size: 0.95rem;
  }
}

