:root{
  --bg0:#0b0b0e;
  --bg1:#111216;

  --surface: rgba(255,255,255,.06);
  --surface2: rgba(255,255,255,.10);

  --text:#f5f5f7;
  --muted:#c2c6d0;
  --soft:#9aa3b2;

  --line: rgba(255,255,255,.14);

  --btn:#ffffff;
  --btnText:#111111;

  --radius: 14px;
  --max: 880px;
  --shadow: 0 10px 30px rgba(0,0,0,.30);
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(255,255,255,0.06), transparent 60%),
    linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 100%);
  line-height:1.25;
}

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 18px 70px;
}

/* HERO */
.hero{
  border-radius: calc(var(--radius) + 6px);
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.10);
  background: #0f1116;
}
.hero img{
  width:100%;
  display:block;
  height: clamp(220px, 38vw, 360px);
  object-fit: cover;
}

/* TOP */
.top{
  margin-top: 18px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  flex-wrap: wrap;

  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.kicker{
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px 0;
}

h1{
  margin:0;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.02em;
  color: var(--text);
}

.controls{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.input, .select{
  border: 1px solid var(--line);
  background: rgba(0,0,0,.40);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  min-width: 220px;
}

.input::placeholder{ color: var(--soft); }
.select{ min-width: 160px; }
.select option{ background:#0f1116; color:#fff; }

.input:focus, .select:focus{
  border-color: rgba(255,255,255,.30);
  box-shadow: 0 0 0 3px rgba(255,255,255,.10);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  padding: 10px 14px;
  border: none;
  background: var(--btn);
  color: var(--btnText);
  text-decoration:none;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  user-select:none;
  cursor:pointer;
  transition: transform .06s ease, opacity .15s ease;
}
.btn:active{ transform: translateY(1px); }

.btn-ghost{
  background: rgba(255,255,255,.10);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover{ background: rgba(255,255,255,.14); }

.btn[aria-disabled="true"]{
  background: rgba(255,255,255,.10);
  color: var(--soft);
  border: 1px solid var(--line);
  cursor:not-allowed;
  pointer-events:none;
  font-weight: 800;
}

/* LIST */
.list{
  margin-top: 22px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.row{
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);

  display:grid;
  grid-template-columns: 120px 1fr auto;
  gap: 14px;
  align-items:center;
  animation: fade .18s ease both;
}

.date{
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.meta{
  display:flex;
  flex-direction:column;
  gap: 4px;
  min-width: 0;
}

.city{
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 13px;
  color: var(--muted);
}

.venue{
  color: var(--text);
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  color: var(--soft);
  font-size: 13px;
}

.subrow{
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);

  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--soft);
  font-size: 13px;
}

.pill{
  border: 1px solid rgba(255,255,255,.18);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  color: var(--muted);
}

.empty{
  padding: 18px 0;
  color: var(--muted);
  font-size: 14px;
}

.error{
  padding: 14px 0;
  color: #ffb4b4;
  font-size: 14px;
}

.muted{ color: var(--muted); }

footer{
  margin-top: 26px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);

  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

@keyframes fade{
  from{ opacity:0; transform: translateY(4px); }
  to{ opacity:1; transform:none; }
}

@media (max-width: 720px){
  .row{
    grid-template-columns: 88px 1fr;
    grid-template-areas:
      "date meta"
      "btn  btn";
  }
  .date{ grid-area: date; font-size: 18px; }
  .meta{ grid-area: meta; }
  .row > .action{ grid-area: btn; }
  .action .btn{ width: 100%; }
  .subrow{ padding-left: 16px; }
  .input{ min-width: 100%; }
  .select{ min-width: 100%; }
}

@media (max-width: 720px){
  .row{
    display:grid;
    grid-template-columns: 88px 1fr;
    grid-template-areas:
      "date meta"
      "date meta"
      "btn  btn";
    gap: 10px 12px;
    align-items:start;
  }

  .date{
    grid-area: date;
    align-self:start;
    padding-top: 2px;
  }

  .meta{
    grid-area: meta;
    min-width: 0;
  }

  .venue{
    white-space: normal;      /* allow wrapping on mobile */
    overflow: visible;
    text-overflow: initial;
    line-height: 1.35;
  }

  .action{
    grid-area: btn;
    width: 100%;
    margin-top: 4px;
  }

  .action .btn{
    width: 100%;
    justify-content: center;
  }

  /* If you have pills/subrow, keep them spaced */
  .subrow{
    margin-top: 8px;
  }
}

@media (max-width: 720px){
  /* stack: date -> meta -> button (no columns) */
  .row{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "date"
      "meta"
      "btn";
    gap: 10px;
    align-items: start;
  }

  .date{
    grid-area: date;
    line-height: 1.05;
    margin: 0;
  }

  .meta{
    grid-area: meta;
    margin: 0;
  }

  /* city must NOT sit on top of the date */
  .city{
    display: block;
    margin-top: 2px;
    line-height: 1.2;
  }

  .venue{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.35;
  }

  .action{
    grid-area: btn;
    width: 100%;
    margin-top: 4px;
  }

  .action .btn{
    width: 100%;
  }

  /* your pills block: keep it clean on mobile */
  .subrow{
    padding-left: 0;
  }
}
 
