/* Live sessions: the member app page (#live), tickets, and the public pages (/live, /live/<slug>). Uses the shared tokens. */

/* ---------------- cards (app and site) ---------------- */
.lv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lv-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r3); overflow: hidden; min-width: 0; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; animation: lv-up .45s var(--ease) both; }
.lv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line2); }
.lv-grid > :nth-child(2) { animation-delay: .05s; } .lv-grid > :nth-child(3) { animation-delay: .1s; } .lv-grid > :nth-child(4) { animation-delay: .15s; }
.lv-cv { position: relative; display: block; aspect-ratio: 16 / 7; background: linear-gradient(135deg, #0F2A1E, #0A1611 60%, #12402C); background-size: cover; background-position: center; }
.lv-cv.nocv { aspect-ratio: 16 / 5; background: radial-gradient(120% 140% at 100% 0%, #1B5A3D 0%, #0F2A1E 45%, #0A1611 100%); }
.lv-cv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,17,0) 40%, rgba(10,22,17,.35)); }
.lv-cv-k { position: absolute; left: 16px; bottom: 12px; z-index: 1; color: rgba(255,255,255,.9); font-family: var(--f-m); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lv-date { position: absolute; top: 12px; left: 12px; z-index: 1; display: grid; place-items: center; width: 52px; padding: 6px 0 5px; background: #fff; border-radius: 14px; box-shadow: 0 6px 18px -8px rgba(0,0,0,.4); line-height: 1; }
.lv-date b { font-size: 21px; letter-spacing: -.04em; }
.lv-date small { font-family: var(--f-m); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--deep); margin-top: 3px; }
.lv-cb { display: grid; gap: 6px; padding: 14px 16px 16px; }
.lv-k { font-family: var(--f-m); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--deep); }
.lv-t { font-size: 17px; font-weight: 800; letter-spacing: -.03em; line-height: 1.25; color: var(--ink); }
.lv-meta { color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.lv-meta .ico { width: 15px; height: 15px; }
.lv-meta span { display: inline-flex; gap: 5px; align-items: center; }
.lv-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.lv-price { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.lv-price.big { font-size: 26px; letter-spacing: -.04em; }
.lv-left { font-size: 12.5px; font-weight: 700; color: var(--warn); background: var(--warn-tint); padding: 3px 9px; border-radius: 999px; }
.lv-state { display: inline-flex; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--bg2); color: var(--muted); border: 1px solid var(--line); }
.lv-state.s-few { background: var(--warn-tint); color: var(--warn); border-color: transparent; }
.lv-state.s-sold_out { background: var(--ink); color: #fff; border-color: transparent; }
.lv-state.s-cancelled { background: var(--danger-tint); color: var(--danger); border-color: transparent; }
.lv-state.s-mine { background: var(--tint); color: var(--deep); border-color: transparent; }
.lv-grid.past .lv-card { opacity: .82; }
.lv-grid.past .lv-cv { filter: grayscale(.6); }
@keyframes lv-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lv-card, .lv-tk { animation: none; } .lv-card:hover { transform: none; } }

/* ---------------- member app: list page ---------------- */
.lv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.lv-head p { color: var(--muted); font-size: 14px; max-width: 52ch; margin-top: 4px; }
.lv-head h2 { font-size: 24px; letter-spacing: -.045em; }
.lv-tabs { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 2px; }
.lv-tabs a { padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.lv-tabs a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.lv-tabs .n { font-size: 11.5px; background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 7px; }
.lv-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 40px 16px; background: #fff; border: 1px dashed var(--line2); border-radius: var(--r3); color: var(--muted); }
.lv-empty b { color: var(--ink); font-size: 17px; }
.lv-empty .ico { width: 34px; height: 34px; color: var(--muted2); }
.lv-empty.big { margin: 40px auto; max-width: 520px; }

/* ---------------- member app: detail page ---------------- */
.lv-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.lv-back:hover { color: var(--ink); }
.lv-d { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.lv-banner { display: block; position: relative; border-radius: var(--r3); overflow: hidden; aspect-ratio: 16 / 6; background: linear-gradient(135deg, #0F2A1E, #0A1611 60%, #12402C); background-size: cover; background-position: center; margin-bottom: 18px; }
.lv-banner .lv-cv-k { font-size: 12px; left: 20px; bottom: 16px; }
.lv-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,17,0) 50%, rgba(10,22,17,.35)); }
.lv-d-h { display: grid; gap: 8px; margin-bottom: 16px; }
.lv-d-h h2 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.05em; line-height: 1.08; }
.lv-pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.lv-facts { display: grid; gap: 0; margin: 0 0 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r2); }
.lv-facts > div { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); align-items: start; }
.lv-facts > div:first-child { border-top: 0; }
.lv-facts .ico { color: var(--deep); margin-top: 2px; }
.lv-facts dt { font-size: 12px; font-family: var(--f-m); text-transform: uppercase; letter-spacing: .08em; color: var(--muted2); font-weight: 700; }
.lv-facts dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }
.lv-facts dd small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; margin-top: 2px; }
.lv-facts a { color: var(--deep); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.lv-desc { font-size: 15.5px; line-height: 1.7; color: var(--ink2); }
.lv-desc p + p { margin-top: 12px; }
.lv-side { position: sticky; top: 84px; display: grid; gap: 14px; }
.lv-buy { background: #fff; border: 1px solid var(--line); border-radius: var(--r3); padding: 18px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.lv-buy-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lv-buy-h small { color: var(--muted); font-size: 13px; }
.lv-note { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.lv-note.warn { color: var(--warn); background: var(--warn-tint); padding: 10px 12px; border-radius: 12px; font-weight: 600; }
.lv-note.ok { color: var(--deep); background: var(--tint); padding: 10px 12px; border-radius: 12px; font-weight: 600; }
.lv-tier { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; text-align: left; width: 100%; background: #fff; transition: border-color .2s, background .2s; }
.lv-tier.on { border-color: var(--brand); background: var(--tint); }
.lv-tier[disabled] { opacity: .5; }
.lv-tier .rd { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line2); }
.lv-tier.on .rd { border: 5px solid var(--brand); }
.lv-tier b { font-size: 15px; } .lv-tier small { display: block; color: var(--muted); font-size: 12.5px; }
.lv-tier s { color: var(--muted2); font-weight: 600; font-size: 12.5px; margin-right: 4px; }
.lv-tiers { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.lv-tiers li { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; padding: 8px 0; border-top: 1px solid var(--line); }
.lv-tiers li:first-child { border-top: 0; }
.lv-tiers small { color: var(--deep); font-weight: 700; font-size: 11.5px; }
.lv-fine { font-size: 12.5px; color: var(--muted2); text-align: center; }
.lv-share { display: flex; gap: 8px; }
.lv-share .btn { flex: 1; }

/* mobile: the main action sits in a bar at the bottom, always visible */
.lv-bar { display: none; }
@media (max-width: 1060px) {
  .lv-d { grid-template-columns: 1fr; }
  .lv-side { position: static; }
  .lv-side .lv-buy .lv-cta { display: none; }
  /* sits just above the floating tab bar, in the same style */
  .lv-bar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 140; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 16px 34px -18px rgba(10,26,19,.35); }
  .lv-bar .lv-price { font-size: 18px; white-space: nowrap; }
  .lv-bar small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
  .lv-bar .btn { flex: 1; }
  .lv-d-wrap { padding-bottom: 90px; }
  .lv-banner { aspect-ratio: 16 / 7; margin-bottom: 14px; }
}

/* ---------------- tickets ---------------- */
.lv-tk { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--night); color: #fff; border-radius: var(--r3); padding: 20px; position: relative; overflow: hidden; animation: lv-up .45s var(--ease) both; }
.lv-tk::before, .lv-tk::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--app, #F3F6F4); right: 196px; }
.lv-tk::before { top: -11px; } .lv-tk::after { bottom: -11px; }
.lv-tk-i { display: grid; gap: 6px; min-width: 0; }
.lv-tk-i .lv-k { color: var(--lime); }
.lv-tk-i b.t { font-size: 18px; letter-spacing: -.03em; line-height: 1.25; }
.lv-tk-i span { color: var(--ntext); font-size: 13.5px; }
.lv-code, .lv-tk-i .lv-code { font-family: var(--f-m); font-size: 24px; font-weight: 700; letter-spacing: .12em; color: #fff; }
.lv-qr { background: #fff; border-radius: 16px; padding: 8px; width: 172px; line-height: 0; }
.lv-qr svg { width: 156px; height: 156px; }
.lv-tk-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.lv-tk .btn-w { background: transparent; color: #fff; border-color: var(--nline); }
.lv-tk.void { background: var(--bg3); color: var(--ink); }
.lv-tk.void .lv-tk-i span, .lv-tk.void .lv-code { color: var(--muted); }
.lv-tk.void .lv-qr { opacity: .25; }
.lv-tk-done { display: inline-flex; gap: 6px; align-items: center; color: var(--lime); font-weight: 700; font-size: 13.5px; }
@media (max-width: 560px) {
  .lv-tk { grid-template-columns: 1fr; justify-items: start; }
  .lv-tk::before, .lv-tk::after { display: none; }
  .lv-qr { justify-self: center; width: 220px; }
  .lv-qr svg { width: 204px; height: 204px; }
}
.lv-tl { display: grid; gap: 10px; }
.lv-tr { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r2); padding: 12px 14px; transition: border-color .2s; }
.lv-tr:hover { border-color: var(--line2); }
.lv-tr .lv-date { position: static; box-shadow: none; background: var(--tint); }
.lv-tr b { display: block; font-size: 15px; letter-spacing: -.02em; }
.lv-tr small { color: var(--muted); font-size: 13px; }
.lv-tr .mono { font-size: 13px; font-weight: 700; letter-spacing: .06em; }

/* ---------------- public site pages ---------------- */
.lv-site { background: var(--app, #F3F6F4); min-height: 100vh; display: flex; flex-direction: column; }
.lv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.lv-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; letter-spacing: -.04em; }
.lv-brand b span { color: var(--brand); }
.lv-nav { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 14px; }
.lv-nav > a:not(.btn) { color: var(--muted); }
.lv-main { width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px 16px 48px; flex: 1; }
.lv-hero { padding: 26px 0 20px; display: grid; gap: 12px; justify-items: start; }
.lv-hero h1 { font-size: clamp(32px, 6vw, 52px); letter-spacing: -.055em; }
.lv-hero p { color: var(--muted); max-width: 58ch; font-size: 16px; }
.lv-h { font-size: 20px; letter-spacing: -.035em; margin: 22px 0 12px; }
.lv-detail .lv-hero-img { border-radius: var(--r3); overflow: hidden; aspect-ratio: 16 / 6; background: var(--night); margin-bottom: 20px; }
.lv-detail .lv-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lv-d-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.lv-d-top { margin-bottom: 16px; display: grid; gap: 8px; justify-items: start; }
.lv-d-top h1 { font-size: clamp(28px, 5vw, 42px); letter-spacing: -.05em; }
.lv-d-main .lv-facts { margin-top: 16px; }
.lv-d-main .lv-facts > div { grid-template-columns: 1fr; }
.lv-d-side { position: sticky; top: 80px; }
.lv-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 20px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); background: #fff; }
.lv-foot nav { display: flex; gap: 14px; }
@media (max-width: 860px) {
  .lv-d-grid { grid-template-columns: 1fr; }
  .lv-d-side { position: static; order: -1; }
  .lv-nav > a:not(.btn) { display: none; }
}

/* ---------------- admin (Admin → Live sessions) ---------------- */
.lva-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 16px; transition: border-color .2s, transform .2s var(--ease); }
.lva-row:hover { border-color: var(--line2); transform: translateY(-1px); }
.lva-date { display: grid; place-items: center; width: 52px; padding: 7px 0 6px; border-radius: 14px; background: var(--tint); line-height: 1; }
.lva-date b { font-size: 20px; letter-spacing: -.04em; }
.lva-date small { font-family: var(--f-m); font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--deep); margin-top: 3px; }
.lva-t { min-width: 0; } .lva-t b { display: block; font-size: 16px; letter-spacing: -.02em; } .lva-t small { color: var(--muted); font-size: 13px; }
.lva-n { text-align: right; } .lva-n b { display: block; font-variant-numeric: tabular-nums; } .lva-n small { color: var(--muted); font-size: 12.5px; }
.lva-p { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.lva-flag { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.lva-flag > div:first-child { display: grid; gap: 2px; }
.lva-meta { margin: -6px 0 6px; } .lva-meta .muted { display: inline-flex; gap: 6px; align-items: center; overflow-wrap: anywhere; }
.lva-acts { white-space: nowrap; text-align: right; position: relative; }
.lva-tier { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; background: var(--bg2); }
.lva-tier [data-rmtier] { justify-self: start; }
.lva-cover { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.lva-cv { width: 200px; aspect-ratio: 16 / 6; border-radius: 14px; background: var(--bg3) center / cover no-repeat; display: grid; place-items: center; color: var(--muted2); border: 1px solid var(--line); flex: none; }
.lva-save { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; box-shadow: var(--shadow); }
.lva-save .field { margin: 0; }
.lva-ci { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.lva-code { display: flex; gap: 10px; }
.lva-code .inp { flex: 1; font-size: 22px; letter-spacing: .12em; text-transform: uppercase; height: 56px; text-align: center; }
.lva-cam { display: grid; gap: 10px; justify-items: center; }
.lva-cam video { width: 100%; max-height: 340px; border-radius: 18px; background: var(--night); object-fit: cover; }
.lva-res { display: none; }
.lva-res.ok, .lva-res.no { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 18px; animation: lv-up .3s var(--ease) both; }
.lva-res.ok { background: var(--tint); color: var(--deep); }
.lva-res.no { background: var(--danger-tint); color: var(--danger); }
.lva-res .ico { width: 34px; height: 34px; flex: none; stroke-width: 2.4; }
.lva-res b { display: block; font-size: 20px; letter-spacing: -.03em; color: inherit; }
.lva-res span { display: block; font-size: 14px; color: var(--ink2); margin-top: 2px; }
.lva-log { display: grid; gap: 8px; max-height: 520px; overflow: auto; }
.lva-lr { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--bg2); }
.lva-lr.ok .ico { color: var(--deep); } .lva-lr.no .ico { color: var(--danger); }
.lva-lr b { display: block; font-size: 14px; } .lva-lr small { color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .lva-row { grid-template-columns: 52px minmax(0, 1fr); }
  .lva-n, .lva-p { grid-column: 2; text-align: left; justify-content: flex-start; }
  .lva-ci { grid-template-columns: 1fr; }
  .lva-acts { white-space: normal; text-align: left; }
}
