:root{
  /* ===== Light / HOJEE-like (beige + glass) ===== */
  --txt: rgba(20,18,18,.92);
  --muted: rgba(20,18,18,.62);

  --line: rgba(40,35,35,.12);
  --glass: rgba(255,255,255,.55);
  --glass2: rgba(255,255,255,.35);

  --shadow: 0 18px 55px rgba(0,0,0,.18);
  --shadow2: 0 10px 35px rgba(0,0,0,.14);

  /* Fondo claro */
  --bg-a:#f6f0ea;   /* crema */
  --bg-b:#efe6de;   /* beige */
  --bg-c:#e2d5cb;   /* beige más profundo */

  /* Acentos (como la UI original: botones suaves) */
  --accent-rose: rgba(210, 85, 120, .85);
  --accent-sage: rgba(70, 150, 125, .85);
}

*{ box-sizing:border-box; }

html, body{ height:100%; }

body{
  margin:0;
  color:var(--txt);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(900px 520px at 30% 20%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(900px 520px at 70% 25%, rgba(255,255,255,.65), transparent 60%),
    linear-gradient(180deg, var(--bg-a), var(--bg-b) 45%, var(--bg-c));
  overflow:hidden;
}

/* Fondo blur estilo gallery */
.bg{
  position:fixed;
  inset:0;

  /* base claro */
  background:
    radial-gradient(1000px 650px at 35% 20%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(900px 650px at 70% 30%, rgba(255,255,255,.70), transparent 65%),
    radial-gradient(900px 700px at 50% 85%, rgba(0,0,0,.10), transparent 60%),
    linear-gradient(180deg, rgba(246,240,234,.92), rgba(239,230,222,.92));
  filter: saturate(1.05) contrast(1.05);
}

/* ===== Topbar ===== */
.topbar{
  position:fixed;
  left:0; right:0; top:0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 18px;

  background: rgba(255,255,255,.52);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--line);
  z-index:50;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
}

.logo{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-size:18px;

  background: rgba(255,255,255,.60);
  border:1px solid var(--line);
  box-shadow: var(--shadow2);
}

.name{
  font-weight:900;
  font-size:15px;
  letter-spacing:.2px;
}

.sub{
  font-size:12px;
  color:var(--muted);
  margin-top:2px;
}

/* ===== Buttons ===== */
.actions{ display:flex; gap:10px; }

.btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.55);
  color: rgba(25,22,22,.92);
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  font-weight:700;
  transition: .18s ease;
  box-shadow: var(--shadow2);
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.70);
}

#musicBtn{
  border-color: rgba(210,85,120,.25);
  background: rgba(210,85,120,.14);
}

#mixBtn{
  border-color: rgba(70,150,125,.25);
  background: rgba(70,150,125,.14);
}

/* ===== Layout ===== */
.stage{
  position:fixed;
  inset:72px 0 0 0;
  display:grid;
  grid-template-columns: 260px 1fr;
  gap:16px;
  padding:16px;
}

/* ===== Left panel ===== */
.leftpanel{
  border:1px solid var(--line);
  background: rgba(255,255,255,.40);
  backdrop-filter: blur(14px);
  border-radius:20px;
  padding:14px;
  box-shadow: var(--shadow);
  height: calc(100vh - 104px);
  overflow:auto;
}

.panelCard{
  border:1px solid var(--line);
  background: rgba(255,255,255,.55);
  border-radius:18px;
  padding:14px;
  margin-bottom:12px;
  box-shadow: var(--shadow2);
}

.label{
  font-size:12px;
  color:var(--muted);
}

.big{
  font-size:28px;
  font-weight:950;
  margin-top:4px;
}

/* ===== Collage (3D stage) ===== */
.collage{
  position:relative;
  border:1px solid var(--line);
  background: rgba(255,255,255,.32);
  backdrop-filter: blur(14px);
  border-radius:22px;
  box-shadow: var(--shadow);
  overflow:hidden;

  /* 3D */
  perspective: 1100px;
  transform-style: preserve-3d;
}

/* contenedor interno para rotar con parallax */
.collageInner{
  position:absolute;
  inset:0;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .08s linear;
}

/* ===== Floating tiles ===== */
.tile{
  position:absolute;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(40,35,35,.14);
  box-shadow: 0 18px 50px rgba(0,0,0,.20);
  cursor:pointer;
  background: rgba(255,255,255,.55);
  transition: transform .18s ease, box-shadow .18s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.tile:hover{
  box-shadow: 0 26px 70px rgba(0,0,0,.22);
}

.tile img,
.tile video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Badge */
.badge{
  position:absolute;
  left:10px;
  top:10px;
  padding:6px 10px;
  font-size:12px;
  border-radius:999px;

  background: rgba(255,255,255,.70);
  border:1px solid rgba(40,35,35,.12);
  backdrop-filter: blur(10px);
  color: rgba(25,22,22,.85);
}

/* ===== Modal ===== */
.modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.45);
  z-index:100;
}

.modal.show{ display:flex; }

.modalBox{
  width:min(1000px,94vw);
  border:1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.40);
  backdrop-filter: blur(16px);
  border-radius:22px;
  overflow:hidden;
  position:relative;
  box-shadow: var(--shadow);
}

.close{
  position:absolute;
  right:14px;
  top:14px;
  border:none;
  border-radius:999px;
  padding:10px 14px;
  background: rgba(255,255,255,.72);
  cursor:pointer;
  color: rgba(25,22,22,.9);
  box-shadow: var(--shadow2);
}

.modalBody{
  max-height:75vh;
  background: rgba(0,0,0,.08);
  display:flex;
  align-items:center;
  justify-content:center;
}

.modalBody img,
.modalBody video{
  width:100%;
  max-height:75vh;
  height:auto;
}

.cap{
  padding:14px;
  border-top:1px solid rgba(40,35,35,.10);
  color: rgba(25,22,22,.65);
  font-size:12px;
}

/* ===== Responsive ===== */
@media (max-width: 900px){
  body{ overflow:auto; }

  .stage{
    position:static;
    grid-template-columns:1fr;
  }

  .collage{ height:70vh; }
  .leftpanel{ height:auto; }
}
