/* AMEU Live Events: player, home page screen, live page, ribbon. */
:root { --live-red: #d4142a; }

/* ---- Player ---- */
.lp-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.lp-stage--portrait { aspect-ratio: 9 / 16; max-width: min(100%, 400px); max-height: 80vh; margin: 0 auto; }
.lp-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.lp-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  border: 0; cursor: pointer; color: #fff;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  background: radial-gradient(circle at 50% 45%, var(--green-mid), var(--green-dark) 75%);
}
.lp-play {
  width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--green-dark); font-size: 26px;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  transition: transform var(--transition);
}
.lp-play i { margin-left: 5px; }
.lp-poster:hover .lp-play, .lp-poster:focus-visible .lp-play { transform: scale(1.08); }
.lp-poster:focus-visible { outline: 3px solid var(--gold-light); outline-offset: -3px; }
.lp-stage--wait { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 45%, var(--green-mid), var(--green-dark) 75%); color: #fff; }
.lp-wait { text-align: center; padding: 16px; }
.lp-wait > i { font-size: 30px; color: var(--gold); }
.lp-wait p { margin: 6px 0 10px; font-weight: 600; }
.lp-help { margin-top: 8px; font-size: 13px; color: var(--gray-600); }
.lp-help a { font-weight: 600; text-decoration: underline; }
.lp--slow .lp-trouble { color: #8a5a00; background: var(--gold-pale); border-radius: var(--radius); padding: 8px 12px; }

/* ---- Badges ---- */
.lv-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 4px;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1.5;
}
.lv-badge--live { background: var(--live-red); color: #fff; }
.lv-badge--live::before, .nav-live.is-live .nav-live-dot, .live-ribbon-dot {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; flex: none;
  animation: lvPulse 1.4s ease-in-out infinite;
}
.lv-badge--soon { background: var(--gold); color: var(--green-dark); }
.lv-badge--replay { background: var(--green-dark); color: #fff; }
@keyframes lvPulse { 50% { opacity: .3; } }

/* ---- Shared details ---- */
.lv-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.lv-meta { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; font-size: 14px; }
.lv-meta i { color: var(--gold); width: 16px; text-align: center; margin-right: 4px; }
.lv-localtime { opacity: .75; }
.lv-desc { font-size: 15px; line-height: 1.7; }
.lv-count { display: inline-flex; gap: 8px; }
.lv-count span { display: flex; flex-direction: column; min-width: 54px; padding: 6px 4px; border-radius: 6px; background: rgba(255,255,255,.12); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
.lv-count b { font-family: var(--font-display); font-size: 22px; line-height: 1.2; color: var(--gold-light); font-variant-numeric: tabular-nums; }

/* ---- Event cards ---- */
.lv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 18px; }
.lv-card { display: flex; flex-direction: column; background: var(--white); color: var(--text-dark); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
.lv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--text-dark); }
.lv-card-img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 8; background: linear-gradient(135deg, var(--green-dark), var(--green-mid)); }
.lv-card-img .lv-badge { position: absolute; top: 10px; left: 10px; }
.lv-card-play { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.16); color: #fff; font-size: 15px; transition: var(--transition); }
.lv-card-play i { margin-left: 3px; }
.lv-card:hover .lv-card-play { background: var(--gold); color: var(--green-dark); }
.lv-card-body { display: flex; flex-direction: column; gap: 4px; padding: 13px 15px 15px; }
.lv-card-date, .lv-card-loc { font-size: 12.5px; color: var(--gray-600); }
.lv-card-date i, .lv-card-loc i { color: var(--gold); }
.lv-card-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--green-dark); overflow-wrap: anywhere; }

/* ---- Home page screen ---- */
.live-band { background: var(--green-dark); color: rgba(255,255,255,.88); padding: 36px 0; border-bottom: 3px solid var(--gold); }
.live-band-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.live-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 12px; overflow-wrap: anywhere; }
.live-band .lp-help { color: rgba(255,255,255,.65); }
.live-band .lp-help a { color: var(--gold-light); }
.live-band .lp--slow .lp-trouble { background: rgba(255,255,255,.1); color: #fff; }
.live-band .lv-eyebrow { color: var(--gold-light); }
.lv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.lv-btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.45); color: #fff; }
.lv-btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.lv-next { display: block; margin-top: 18px; padding: 11px 14px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.08); border-radius: 0 var(--radius) var(--radius) 0; color: rgba(255,255,255,.85); font-size: 13.5px; }
.lv-next:hover { background: rgba(255,255,255,.14); color: #fff; }
.lv-next strong { display: block; color: #fff; font-size: 15px; }
.lv-next-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-light); }
.live-band-prev { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); }
.lv-prev-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.lv-prev-head h3 { color: #fff; font-size: 1.2rem; }
.lv-prev-head a { color: var(--gold-light); font-size: 14px; font-weight: 600; white-space: nowrap; }

/* ---- Live page ---- */
.lv-hero { padding: 32px 0; }
.lv-hero h1 { margin-top: 8px; margin-bottom: 0; }
.lv-page { padding-top: 28px; padding-bottom: 12px; }
.lv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.lv-details { margin-top: 12px; }
.lv-details h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 10px; overflow-wrap: anywhere; }
.lv-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--gray-600); }
.lv-side h3 { font-size: 1.05rem; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.lv-side h3:not(:first-child) { margin-top: 24px; }
.lv-side-item { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--gray-200); color: var(--text-dark); font-size: 13px; }
.lv-side-item strong { color: var(--green-dark); font-size: 14.5px; overflow-wrap: anywhere; }
.lv-side-item:hover strong { color: var(--gold); }
.lv-side-none, .lv-none { color: var(--gray-600); font-size: 14px; }
.lv-archive { margin-top: 40px; scroll-margin-top: 80px; }
.lv-archive-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.lv-search { display: flex; gap: 8px; flex: 0 1 300px; }
.lv-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; font-size: 14px; color: var(--gray-600); }
.lv-empty { text-align: center; padding: 56px 16px; }
.lv-empty > i { font-size: 44px; color: var(--gold); margin-bottom: 14px; }
.lv-empty p { color: var(--gray-600); margin: 8px auto 18px; max-width: 460px; }

/* ---- Live button at the far right of the top bar, and the ribbon ---- */
.top-live {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  margin-left: 16px; padding: 4px 12px; border-radius: 50px;
  background: var(--gold); color: var(--green-dark) !important;
  font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; line-height: 1.4;
  transition: background .2s;
}
.top-live:hover { background: var(--gold-light); }
.top-live i { color: inherit !important; margin: 0 !important; font-size: 11px; }
.top-live.is-live { background: var(--live-red); color: #fff !important; }
.top-live.is-live:hover { background: #a50e20; }
.nav-live-dot { display: none; }
.nav-live.is-live .nav-live-dot { display: inline-block; background: #fff; }
.live-ribbon { background: var(--live-red); }
.live-ribbon a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 16px; color: #fff; font-size: 13.5px; }
.live-ribbon a:hover { color: #fff; }
.live-ribbon strong { letter-spacing: .05em; text-transform: uppercase; font-size: 12px; flex: none; }
.live-ribbon [data-ribbon-title] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.live-ribbon u { flex: none; font-weight: 700; }

@media (max-width: 1024px) {
  .live-band-grid, .lv-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  .lv-hero { padding: 16px 0; }
  .lv-hero h1 { font-size: 1.6rem; margin-top: 4px; }
  .lv-hero .page-hero-subtitle { display: none; }
  .lv-page { padding-top: 16px; }
  .live-band { padding: 20px 0; }
  .lp-stage { border-radius: 4px; }
  .lv-count span { min-width: 48px; }
  .lv-search { flex: 1 1 100%; }
  /* Replays as compact rows so a long archive stays easy to scroll */
  .lv-grid { gap: 10px; }
  .lv-card { flex-direction: row; align-items: stretch; }
  .lv-card-img { flex: 0 0 104px; aspect-ratio: auto; min-height: 84px; }
  .lv-card-img .lv-badge { top: 6px; left: 6px; font-size: 9.5px; padding: 1px 6px; }
  .lv-card-play { width: 34px; height: 34px; font-size: 12px; }
  .lv-card-body { padding: 10px 12px; justify-content: center; min-width: 0; }
  .lv-card-title { font-size: 15px; }
  .lv-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .lv-badge--live::before, .nav-live-dot, .live-ribbon-dot { animation: none !important; }
}
