:root {
  --wine: #6b1f2a;
  --wine-2: #8c2f3d;
  --wine-soft: #f3e4e2;
  --gold: #c19a3e;
  --gold-soft: #f2e9d2;
  --cream: #f5efe4;
  --paper: #fffdf9;
  --ink: #241c1a;
  --muted: #857a72;
  --line: #e8ddcc;
  --green: #4f7d55;
  --blue: #3c5a8a;
  --shadow: 0 6px 22px rgba(60, 30, 20, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 26px; }

/* Top navigation */
.nav {
  background: linear-gradient(100deg, var(--wine), var(--wine-2));
  color: #fff;
  box-shadow: var(--shadow);
}
.nav .wrap { display: flex; align-items: center; gap: 30px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; letter-spacing: .3px; white-space: nowrap; flex: none; color: #fff; }
.brand .disc {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #2a2a2a 22%, #4a2a2f 24%, #2a2a2a 30%, #6b1f2a 31%, #2a2a2a 40%, #7a4a2f 41%, #2a2a2a 55%);
  border: 2px solid #f5efe4; flex: none;
}
.navlinks { display: flex; gap: 22px; margin-left: 8px; font-size: 15px; flex-wrap: wrap; }
.navlinks a { opacity: .82; padding: 6px 2px; border-bottom: 2px solid transparent; }
.navlinks a:hover { opacity: 1; }
.navlinks a.active { opacity: 1; border-bottom-color: var(--gold); font-weight: 600; }

/* Page shell */
.page { padding: 34px 0 60px; }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.crumbs b { color: var(--wine); }
.crumbs a:hover { color: var(--wine); }
h1.title { font-size: 30px; margin: 0 0 6px; letter-spacing: .2px; }
.lead { color: var(--muted); font-size: 15px; margin: 0 0 26px; }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 30px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 14px; box-shadow: var(--shadow); }
.stat .n { font-size: 26px; font-weight: 750; color: var(--wine); }
.stat .l { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* Cards */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: 1.6fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
a.card { display: block; transition: transform .12s ease, box-shadow .12s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(60, 30, 20, 0.14); }
.card .body { padding: 18px 20px; }
.card h2 { margin: 0 0 4px; font-size: 18px; }
.card h3 { margin: 0 0 10px; font-size: 15px; color: var(--muted); font-weight: 600; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 14px; }
.section-h h2 { font-size: 20px; margin: 0; }
.section-h a { color: var(--wine); font-size: 14px; font-weight: 600; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.b-theme { background: var(--wine-soft); color: var(--wine); }
.b-gold { background: var(--gold-soft); color: #7c5c12; }
.b-core { background: #e5efe6; color: var(--green); }
.b-guest { background: #e7edf5; color: var(--blue); }
.b-add { background: #f3e6d2; color: #8a5a1a; }
.b-red { background: #f0dcdc; color: #8f2f2f; }
.b-white { background: #f2eecf; color: #7c6b1c; }
.b-rose { background: #f7dfe4; color: #a83f63; }
.b-spark { background: #e3eef0; color: #2f6f78; }
.b-beer { background: #efe2c6; color: #8a6a1c; }
.b-light { background: rgba(255,255,255,.2); color: #fff; }

/* Avatars + album art */
.av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px; flex: none; }
.av.lg { width: 84px; height: 84px; font-size: 30px; }
.av.xl { width: 96px; height: 96px; font-size: 34px; }
.av.photo { overflow: hidden; }
.av.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art { aspect-ratio: 1/1; border-radius: 10px; display: grid; place-items: center; color: rgba(255,255,255,.92); font-weight: 700; text-align: center; padding: 8px; font-size: 13px; line-height: 1.15; position: relative; overflow: hidden; }
.art::after { content: ""; position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); }
.art.has-cover { padding: 0; }
.art.has-cover::after { display: none; }
.art.has-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Album card button (collection) */
.card.album { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--paper); font: inherit; color: inherit; cursor: pointer; padding: 0; }

/* Album detail modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(25,15,15,.55); display: grid; place-items: center; padding: 20px; z-index: 50; }
.modal-backdrop[hidden] { display: none; }
.modal { background: var(--paper); border-radius: 14px; max-width: 720px; width: 100%; max-height: 88vh; overflow: auto; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.modal .mclose { position: absolute; right: 12px; top: 10px; border: none; background: transparent; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal .mbody { display: flex; gap: 22px; padding: 24px; flex-wrap: wrap; }
.modal .cover { width: 220px; height: 220px; border-radius: 12px; object-fit: cover; flex: none; }
.modal .minfo { flex: 1; min-width: 240px; }
.modal .minfo .artist { font-size: 18px; color: var(--wine); font-weight: 700; }
.modal .tracklist { margin: 8px 0 16px; padding-left: 20px; font-size: 14px; }
.modal .tracklist li { padding: 2px 0; }
.modal .mlinks { display: flex; gap: 8px; flex-wrap: wrap; }
.modal .mlinks a { text-decoration: none; }

/* Gathering cards */
.gcard .head { padding: 16px 20px; color: #fff; }
.gcard .date { font-size: 13px; opacity: .9; }
.gcard .loc { font-size: 20px; font-weight: 700; margin-top: 2px; }
.gcard .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gcard .foot { padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.gcard .hosts { font-size: 14px; color: var(--muted); }
.gcard .btn { background: var(--wine); color: #fff; border-radius: 20px; padding: 8px 16px; font-size: 13px; font-weight: 600; }

/* Presentation blocks */
.pres { display: flex; gap: 16px; padding: 18px 20px; border-top: 1px solid var(--line); }
.pres:first-child { border-top: none; }
.pres .who { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.pres .who .nm { font-weight: 700; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; flex: 1; }
.mini { background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.mini .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.mini .v { font-weight: 650; }
.mini .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.songs { list-style: none; margin: 8px 0 0; padding: 0; }
.songs li { font-size: 13.5px; padding: 2px 0 2px 18px; position: relative; color: #3a302c; }
.songs li::before { content: "\266A"; position: absolute; left: 0; color: var(--wine-2); }

/* Tables */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; padding: 10px 14px; border-bottom: 2px solid var(--line); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: #fbf6ec; }
.tbl td.nowrap { white-space: nowrap; }

/* Member list */
.mcard { text-align: center; padding: 22px 16px; }
.mcard .av { margin: 0 auto 12px; }
.mcard .nm { font-weight: 700; font-size: 17px; }
.mcard .role { margin-top: 6px; }
.mrow { display: flex; justify-content: center; gap: 16px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.mrow b { display: block; color: var(--wine); font-size: 17px; }

/* Profile header */
.phead { display: flex; gap: 22px; align-items: center; padding: 24px; flex-wrap: wrap; }
.phead .meta { color: var(--muted); font-size: 14px; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pstats { display: flex; gap: 26px; text-align: center; }
.pstats .n { font-size: 26px; font-weight: 750; color: var(--wine); }

/* Filter row */
.filters { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.chip { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 7px 15px; font-size: 13px; color: var(--muted); cursor: pointer; }
.chip:hover { border-color: var(--wine); color: var(--wine); }
.chip.on { background: var(--wine); color: #fff; border-color: var(--wine); font-weight: 600; }
.searchbar { margin-left: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 9px 18px; font-size: 14px; width: 260px; color: var(--ink); }
.searchbar::placeholder { color: var(--muted); }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt0 { margin-top: 0; }
.kpi { font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.kpi-v { font-weight: 700; font-size: 20px; color: var(--wine); }

/* Responsive */
@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .g2, .g3 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .duo { grid-template-columns: 1fr; }
  .searchbar { margin-left: 0; width: 100%; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .g4 { grid-template-columns: 1fr; }
  .pstats { gap: 18px; }
}
