:root{
  --brand:#af1d5e;
  --brand-hover:#c3266f;
  --brand-soft:rgba(175,29,94,.18);

  /* Brand-derived darks */
  --bg:#f9ebf1;        /* Standard NVP background */
  --bg2:#f4d7e3;
  --card:#af1d5e;      /* Standard NVP color */
  --line:#3a1425;      /* borders/dividers */
  --chip:#2b0f1d;      /* chip background */

  --text:#ffffff;
  --muted:#333333;

  --r:16px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:var(--bg);
  color:var(--text);
}

/* HEADER */
header{
  position:sticky;
  top:0;
  z-index:10;
  background-color: #af1d5e;
  /*background:linear-gradient(
    to bottom,
    #200d16,
    #170910
  );*/
  border-bottom:1px solid var(--line);
  padding:14px 12px;
}

.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0 12px;
}

h3{
  margin:0;
  font-size:17px;
  letter-spacing:.3px;
}

.meta{
  /*color:var(--muted);*/
  font-size:12px;
  margin-top:4px;
}

/* CONTROLS */
.controls{
  display:grid;
  grid-template-columns: 1fr 220px 220px;
  gap:10px;
  margin-top:12px;
}

input, select, button{
  width:100%;
  background:var(--bg2);
  color:var(--card);
  border:1px solid var(--bg);
  border-radius:12px;
  padding:10px 12px;
  font-size:14px;
  transition:.15s ease;
}

input::placeholder{
  color:#d6a7bd;
}

input:focus, select:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 1px var(--brand-soft);
}

button{
  cursor:pointer;
  background:linear-gradient(
    180deg,
    rgba(175,29,94,.35),
    rgba(175,29,94,.15)
  );
  border-color:var(--brand);
}

button:hover{
  background:var(--brand-hover);
  border-color:var(--brand-hover);
}

button:active{
  transform:translateY(1px);
}

/* GRID */
main{
  padding:18px 0 42px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap:14px;
}

/* CARD */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--r);
  overflow:hidden;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(0,0,0,.35);
  transition:.18s ease;
}

.card:hover{
  transform:translateY(-3px);
  border-color:var(--brand);
  box-shadow:0 12px 30px rgba(175,29,94,.45);
}

.thumb{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  background:#12060b;
  display:block;
}

.cap{
  padding:12px;
}

.cap b{
  display:block;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.sub{
  margin-top:4px;
  font-size:12px;
  color:#eac5d6;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* CHIPS */
.chips{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:8px;
}

.chip{
  font-size:11px;
  color:#fff;
  background:var(--chip);
  border:1px solid var(--line);
  padding:3px 8px;
  border-radius:999px;
}

.chip.accent{
  background:var(--brand-soft);
  border-color:var(--brand);
}

/* MESSAGE */
.msg{
  margin-top:14px;
  padding:14px;
  border:1px dashed var(--brand);
  border-radius:var(--r);
  color:var(--muted);
  background:#220d16;
}

/* LIGHTBOX */
.lb{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  background:rgba(26,11,18,.96);
  padding:10px;
}

.lb.on{
  display:flex;
  flex-direction:column;
}

.lb-inner{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:10px;
  width:100%;
  height:100%;
}

.lb-img{
  flex:1;
  width:100%;
  height:100%;
  object-fit:contain;
  background:#12060b;
  border-radius:12px;
  border:1px solid var(--line);
}

.lb-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.lb-info{
  font-size:13px;
  color:var(--muted);
}

.btns{
  display:flex;
  gap:8px;
}

.btns button{
  width:auto;
}

/* RESPONSIVE */
@media (max-width: 900px){
  .controls{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px){
  .controls{ grid-template-columns: 1fr; }
}
