/* Public events pages (/events and /events/{slug}). Theme colours come from the website settings (site_chrome.js). */
:root {
  --site-primary: #0E2D6D; --site-primary-hover: #1C4DA1; --site-secondary: #008C6A; --site-accent: #38BDF8;
  --site-gradient-navbar: linear-gradient(135deg, #091E4A 0%, #0E2D6D 50%, #173B84 100%);
  --site-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --site-heading-font: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --ev-bg: #f6f7fb; --ev-card: #fff; --ev-line: #e5e8ef; --ev-ink: #0f172a; --ev-muted: #5b6475;
  --ev-header-h: 64px; --ev-radius: 18px;
  --ev-soft: color-mix(in srgb, var(--site-primary) 7%, #fff);
  --ev-ring: color-mix(in srgb, var(--site-primary) 18%, transparent);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ev-page { font-family: var(--site-font); background: var(--ev-bg); color: var(--ev-ink); margin: 0; -webkit-font-smoothing: antialiased; }
.ev-page a { color: inherit; }
.ev-page h1, .ev-page h2, .ev-page h3 { font-family: var(--site-heading-font); }
.min-w-0 { min-width: 0; }

/* Header */
.ev-header { position: fixed; inset: 0 0 auto 0; height: var(--ev-header-h); z-index: 1040; background: rgba(255,255,255,.88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(15,23,42,.06); transition: box-shadow .2s; }
.ev-header.scrolled { box-shadow: 0 6px 24px rgba(15,23,42,.08); }
.ev-header-in { height: 100%; display: flex; align-items: center; gap: .9rem; }
.ev-brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; flex-shrink: 0; min-width: 0; }
.ev-brand img { height: 36px; width: auto; max-width: min(170px, 36vw); object-fit: contain; }
.ev-brand span { font-family: var(--site-heading-font); font-weight: 800; color: var(--site-primary); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.ev-nav { display: flex; align-items: stretch; height: 100%; margin-left: auto; }
.ev-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 70px; padding: 0 .45rem; text-decoration: none; color: var(--ev-muted); font-size: .72rem; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.ev-nav a i { font-size: 1.15rem; line-height: 1; }
.ev-nav a:hover, .ev-nav a.active { color: var(--ev-ink); }
.ev-nav a.active { border-bottom-color: var(--site-primary); }
.sc-nav-badge { position: absolute; top: 7px; right: 8px; font-size: .55rem; font-weight: 800; padding: 1px 5px; border-radius: 6px; color: #fff; }
.ev-portal { flex-shrink: 0; border-radius: 999px; font-weight: 700; font-size: .84rem; padding: .48rem 1.1rem; background: var(--site-primary); color: #fff !important; text-decoration: none; }
.ev-portal:hover { background: var(--site-primary-hover); }
/* Desktop: logo + 7 nav items + 2 buttons must fit laptop widths: long labels wrap, a 2nd header button hides < 1200px */
@media (min-width: 992px) { .ev-nav a { min-width: 56px; max-width: 86px; padding: 0 .4rem; text-align: center; line-height: 1.15; white-space: normal; } }
@media (min-width: 992px) and (max-width: 1199.98px) { #registerLink { display: none !important; } .ev-nav a { max-width: 78px; padding: 0 .3rem; font-size: .68rem; } }

/* Hero (list) */
.ev-hero { position: relative; overflow: hidden; color: #fff; padding: calc(var(--ev-header-h) + 40px) 0 86px; background: var(--site-gradient-navbar); isolation: isolate; }
.ev-hero::before { content: ""; position: absolute; inset: -40%; z-index: -1; filter: blur(10px); animation: evDrift 22s ease-in-out infinite alternate; background:
  radial-gradient(40% 50% at 12% 20%, color-mix(in srgb, var(--site-secondary) 55%, transparent), transparent 70%),
  radial-gradient(35% 45% at 88% 15%, color-mix(in srgb, var(--site-accent) 45%, transparent), transparent 70%),
  radial-gradient(45% 50% at 60% 100%, color-mix(in srgb, #ef4444 30%, transparent), transparent 70%); }
@keyframes evDrift { to { transform: translate3d(4%, -3%, 0) rotate(8deg); } }
.ev-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .6rem; }
.ev-hero p { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 640px; margin: 0; }
.ev-hero-stats { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.ev-hero-stat { border-radius: 14px; padding: .65rem 1rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); }
.ev-hero-stat b { font-family: var(--site-heading-font); font-size: 1.3rem; margin-right: .35rem; }
.ev-hero-stat span { font-size: .8rem; color: rgba(255,255,255,.8); font-weight: 600; }

/* Filter bar */
.ev-bar { position: relative; z-index: 5; margin-top: -44px; background: #fff; border-radius: var(--ev-radius); box-shadow: 0 20px 50px rgba(15,23,42,.12); border: 1px solid rgba(15,23,42,.05); padding: .8rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.ev-tabs { display: flex; gap: .3rem; background: #f1f4f9; padding: .25rem; border-radius: 14px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.ev-tabs::-webkit-scrollbar { display: none; }
.ev-tab { border: 0; background: none; border-radius: 11px; padding: .5rem .9rem; font-weight: 700; font-size: .86rem; color: var(--ev-muted); white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; }
.ev-tab .n { font-size: .7rem; background: rgba(15,23,42,.07); border-radius: 999px; padding: .05rem .45rem; }
.ev-tab.active { background: #fff; color: var(--ev-ink); box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.ev-tab .dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: evPulse 1.6s infinite; }
@keyframes evPulse { 70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); } 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); } }
.ev-searchbox { position: relative; flex: 1 1 240px; }
.ev-searchbox i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--ev-muted); }
.ev-searchbox input { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--ev-line); padding: 0 .9rem 0 2.5rem; font-size: 16px; background: #fff; }
.ev-searchbox input:focus { outline: none; border-color: var(--site-primary); box-shadow: 0 0 0 4px var(--ev-ring); }
.ev-cats { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: .9rem 0 .2rem; }
.ev-cats::-webkit-scrollbar { display: none; }
.ev-cat { flex: 0 0 auto; border: 1px solid var(--ev-line); background: #fff; border-radius: 999px; padding: .35rem .85rem; font-size: .8rem; font-weight: 700; color: var(--ev-muted); }
.ev-cat.active { background: var(--site-primary); border-color: var(--site-primary); color: #fff; }

/* Event cards */
.ev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1rem; }
@media (max-width: 1199.98px) { .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639.98px) { .ev-grid { grid-template-columns: minmax(0, 1fr); } }
.ev-card { background: #fff; border-radius: var(--ev-radius); border: 1px solid var(--ev-line); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.ev-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(15,23,42,.1); }
.ev-card:focus-visible { outline: 3px solid var(--ev-ring); outline-offset: 2px; }
.ev-media { position: relative; aspect-ratio: 16 / 9; background: var(--site-gradient-navbar); overflow: hidden; }
.ev-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ev-card:hover .ev-media img { transform: scale(1.05); }
.ev-media .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.7); font-size: 2.6rem; }
.ev-date { position: absolute; left: .8rem; bottom: .8rem; background: #fff; border-radius: 12px; text-align: center; padding: .3rem .6rem; line-height: 1.05; box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.ev-date b { display: block; font-size: 1.25rem; color: var(--ev-ink); }
.ev-date small { font-size: .62rem; font-weight: 800; text-transform: uppercase; color: #ef4444; letter-spacing: .05em; }
.ev-pill { position: absolute; left: .8rem; top: .8rem; font-size: .7rem; font-weight: 800; letter-spacing: .04em; border-radius: 999px; padding: .28rem .65rem; background: rgba(15,23,42,.72); color: #fff; backdrop-filter: blur(6px); }
.ev-pill.live { background: #ef4444; }
.ev-pill.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: .35rem; animation: evBlink 1.2s infinite; }
@keyframes evBlink { 50% { opacity: .25; } }
.ev-feat { position: absolute; right: .8rem; top: .8rem; background: #fbbf24; color: #111; font-size: .68rem; font-weight: 800; border-radius: 999px; padding: .25rem .6rem; }
.ev-card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.ev-card-cat { font-size: .72rem; font-weight: 800; color: var(--site-primary); text-transform: uppercase; letter-spacing: .06em; }
.ev-card-title { font-size: 1.05rem; font-weight: 800; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-card-sum { font-size: .86rem; color: var(--ev-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.ev-card-meta { margin-top: auto; padding-top: .6rem; display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .78rem; color: var(--ev-muted); font-weight: 600; }
.ev-card-cta { margin-top: .7rem; display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: .86rem; color: var(--site-primary); }
.ev-seats { font-size: .74rem; font-weight: 700; color: #b45309; background: #fef3c7; border-radius: 999px; padding: .15rem .55rem; }
.ev-seats.full { color: #991b1b; background: #fee2e2; }
.ev-empty { grid-column: 1 / -1; text-align: center; padding: 3.5rem 1rem; background: #fff; border-radius: var(--ev-radius); border: 1px dashed #cbd5e1; color: var(--ev-muted); }
.ev-empty i { font-size: 2.4rem; color: var(--site-primary); opacity: .6; display: block; margin-bottom: .6rem; }
.sk { background: linear-gradient(90deg, #eceef3, #f6f7fa, #eceef3); background-size: 200% 100%; animation: evShine 1.2s linear infinite; border-radius: 8px; }
@keyframes evShine { to { background-position: -200% 0; } }

/* Event page */
.evd-hero { position: relative; color: #fff; padding: calc(var(--ev-header-h) + 26px) 0 40px; background: #0b1220; overflow: hidden; isolation: isolate; }
.evd-hero-bg { position: absolute; inset: -20px; z-index: -2; background-size: cover; background-position: center; filter: blur(18px) saturate(1.1); opacity: .55; transform: scale(1.1); }
.evd-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,18,32,.55), rgba(11,18,32,.92)); }
.evd-crumbs { font-size: .8rem; font-weight: 600; margin-bottom: .8rem; }
.evd-crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.evd-crumbs a:hover { color: #fff; text-decoration: underline; }
.evd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; align-items: start; }
@media (max-width: 991.98px) { .evd-layout { grid-template-columns: minmax(0, 1fr); } }
.evd-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.evd-badge { font-size: .74rem; font-weight: 700; border-radius: 999px; padding: .3rem .7rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
.evd-badge.live { background: #ef4444; border-color: #ef4444; }
.evd-title { font-size: clamp(1.7rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .7rem; text-wrap: balance; }
.evd-sum { color: rgba(255,255,255,.85); font-size: 1.05rem; line-height: 1.6; margin: 0 0 1.1rem; max-width: 760px; }
.evd-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .9rem; color: rgba(255,255,255,.9); }
.evd-facts i { color: #fbbf24; margin-right: .35rem; }
.evd-count { display: flex; gap: .6rem; margin-top: 1.4rem; }
.evd-count div { min-width: 70px; text-align: center; border-radius: 14px; padding: .6rem .5rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); }
.evd-count b { display: block; font-family: var(--site-heading-font); font-size: 1.6rem; line-height: 1; }
.evd-count span { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.75); font-weight: 700; }

/* Player */
.evd-player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--ev-radius); overflow: hidden; background: #000; box-shadow: 0 30px 70px rgba(0,0,0,.45); margin-bottom: 1.2rem; }
.evd-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.evd-player .pip { inset: auto 12px 12px auto; width: 24%; aspect-ratio: 16 / 9; border-radius: 10px; border: 2px solid rgba(255,255,255,.75); object-fit: cover; z-index: 2; }
.evd-overlay { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; text-align: center; padding: 1.2rem; color: #fff; background: radial-gradient(circle at 50% 40%, rgba(15,23,42,.55), rgba(2,6,23,.92)); }
.evd-overlay .big { font-family: var(--site-heading-font); font-weight: 800; font-size: clamp(1.1rem, 2.4vw, 1.5rem); margin-bottom: .3rem; }
.evd-overlay p { color: rgba(255,255,255,.8); margin: 0 0 .9rem; font-size: .92rem; }
.evd-live-tag { position: absolute; left: 12px; top: 12px; z-index: 4; background: #ef4444; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .05em; padding: .28rem .65rem; border-radius: 999px; }
.evd-live-tag::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: .35rem; animation: evBlink 1.2s infinite; }
.evd-ctrl { position: absolute; right: 12px; top: 12px; z-index: 4; display: flex; gap: .4rem; }
.evd-ctrl button { border: 0; width: 38px; height: 38px; border-radius: 50%; background: rgba(15,23,42,.7); color: #fff; display: grid; place-items: center; }
.evd-ctrl button:hover { background: rgba(15,23,42,.9); }
.evd-unmute { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 4; border: 0; border-radius: 999px; padding: .55rem 1.1rem; font-weight: 800; background: #fff; color: #0f172a; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.evd-spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(255,255,255,.2); border-top-color: #fff; animation: evSpin .9s linear infinite; margin: 0 auto .8rem; }
@keyframes evSpin { to { transform: rotate(360deg); } }

/* Registration card */
.evd-card { background: #fff; color: var(--ev-ink); border-radius: var(--ev-radius); box-shadow: 0 26px 60px rgba(0,0,0,.25); overflow: hidden; }
.evd-card-head { padding: 1.1rem 1.2rem .4rem; }
.evd-card-head h2 { font-size: 1.15rem; font-weight: 800; margin: 0 0 .2rem; }
.evd-card-head p { margin: 0; color: var(--ev-muted); font-size: .86rem; }
.evd-card-body { padding: .8rem 1.2rem 1.2rem; }
.evd-card .form-control { border-radius: 12px; height: 46px; font-size: 16px; }
.evd-card .form-control:focus { border-color: var(--site-primary); box-shadow: 0 0 0 4px var(--ev-ring); }
.evd-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; border: 0; border-radius: 12px; padding: .85rem 1rem; font-weight: 800; font-size: .95rem; text-decoration: none; background: linear-gradient(135deg, var(--site-primary), var(--site-primary-hover)); color: #fff; box-shadow: 0 12px 26px color-mix(in srgb, var(--site-primary) 35%, transparent); }
.evd-btn:disabled { opacity: .6; }
.evd-btn.alt { background: #fff; color: var(--ev-ink); border: 1.5px solid var(--ev-line); box-shadow: none; margin-top: .6rem; }
.evd-state { text-align: center; padding: 1.4rem 1.2rem 1.4rem; }
.evd-state i.big { font-size: 2.6rem; display: block; margin-bottom: .5rem; }
.evd-state h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 .35rem; }
.evd-state p { color: var(--ev-muted); font-size: .88rem; margin: 0 0 .9rem; }
.evd-seatbar { height: 8px; border-radius: 999px; background: #edf0f5; overflow: hidden; margin: .4rem 0 .2rem; }
.evd-seatbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--site-secondary), var(--site-primary)); }
.evd-mini { display: flex; gap: .5rem; padding: 0 1.2rem 1.2rem; }
.evd-mini button, .evd-mini a { flex: 1; display: flex; align-items: center; justify-content: center; gap: .35rem; border: 1px solid var(--ev-line); background: #fff; border-radius: 10px; padding: .55rem; font-size: .82rem; font-weight: 700; color: var(--ev-ink); text-decoration: none; }
.evd-mini button:hover, .evd-mini a:hover { border-color: var(--site-primary); color: var(--site-primary); }

.evd-main { padding: 2rem 0 3.5rem; }
.evd-section { background: #fff; border: 1px solid var(--ev-line); border-radius: var(--ev-radius); padding: 1.5rem; margin-bottom: 1.2rem; }
.evd-section h2 { font-size: 1.25rem; font-weight: 800; margin: 0 0 .8rem; display: flex; gap: .5rem; align-items: center; }
.evd-section h2 i { color: var(--site-primary); }
.evd-desc { font-size: .98rem; line-height: 1.75; color: #273041; white-space: pre-line; overflow-wrap: anywhere; }
.evd-facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 575.98px) { .evd-facts-grid { grid-template-columns: minmax(0, 1fr); } }
.evd-fact { border: 1px solid var(--ev-line); border-radius: 14px; padding: .85rem 1rem; display: flex; gap: .75rem; align-items: center; }
.evd-fact i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ev-soft); color: var(--site-primary); flex-shrink: 0; font-size: 1.1rem; }
.evd-fact small { display: block; font-size: .7rem; color: var(--ev-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.evd-fact b { display: block; font-size: .9rem; }

/* Mobile */
.mobile-bottom-tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1050; display: flex; justify-content: space-around; }
.mobile-tab-btn { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; text-decoration: none; font-weight: 700; padding: .35rem .2rem; }
@media (max-width: 991.98px) {
  .ev-nav, .ev-portal { display: none !important; }
  body.ev-page { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 767.98px) {
  .ev-hero { padding-top: calc(var(--ev-header-h) + 22px); padding-bottom: 70px; }
  .ev-bar { margin-top: -38px; }
  .ev-tabs { width: 100%; }
  .evd-section { padding: 1.1rem; }
  .evd-count div { min-width: 0; flex: 1; }
}
@media (min-width: 992px) { .mobile-bottom-tabbar { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .ev-hero::before, .sk, .ev-tab .dot, .evd-spinner { animation: none !important; } html { scroll-behavior: auto; } }

/* Header search + register (same header as the course and lectures pages) */
.ev-search { position: relative; flex: 1 1 260px; max-width: 360px; margin: 0; }
.ev-search input { width: 100%; height: 40px; border-radius: 12px; border: 1px solid transparent; background: #eef2f7; padding: 0 .9rem 0 2.4rem; font-size: .88rem; color: var(--ev-ink); }
.ev-search input:focus { outline: none; background: #fff; border-color: var(--site-primary); box-shadow: 0 0 0 4px var(--ev-ring); }
.ev-search i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--ev-muted); }
.ev-portal-alt { background: transparent !important; color: var(--site-primary) !important; border: 1.5px solid var(--site-primary); }
.ev-portal-alt:hover { background: var(--ev-soft) !important; }
@media (max-width: 991.98px) { .ev-brand span { display: none; } .ev-search { max-width: none; } }

/* ======================================================================= LIVE ROOM (event page while live) */
.lr { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1rem; margin-bottom: 1.4rem; }
@media (max-width: 1199.98px) { .lr { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 991.98px) { .lr { grid-template-columns: minmax(0, 1fr); } }
.lr-stage-wrap { min-width: 0; }
.lr-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.lr-stage > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.lr-pip { position: absolute; inset: auto 12px 12px auto; width: 24%; aspect-ratio: 16 / 9; border-radius: 12px; border: 2px solid rgba(255,255,255,.75); object-fit: cover; z-index: 2; background: #000; }
.lr-top { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 4; display: flex; gap: .4rem; align-items: center; pointer-events: none; }
.lr-top > * { pointer-events: auto; }
.lr-tag { color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .05em; padding: .28rem .65rem; border-radius: 999px; background: rgba(15,23,42,.72); backdrop-filter: blur(6px); }
.lr-tag.live { background: #ef4444; }
.lr-tag.live::before, .lr-tag.rec::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: .35rem; animation: evBlink 1.2s infinite; }
.lr-tag.rec::before { background: #ef4444; }
.lr-tag.me { background: #16a34a; }
.lr-overlay { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; text-align: center; padding: 1.2rem; color: #fff; background: radial-gradient(circle at 50% 40%, rgba(15,23,42,.55), rgba(2,6,23,.92)); }
.lr-overlay .big { font-family: var(--site-heading-font); font-weight: 800; font-size: clamp(1.05rem, 2.4vw, 1.45rem); margin-bottom: .3rem; }
.lr-overlay p { color: rgba(255,255,255,.8); margin: 0 0 .9rem; font-size: .92rem; }
.lr-unmute { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 5; border: 0; border-radius: 999px; padding: .55rem 1.1rem; font-weight: 800; background: #fff; color: #0f172a; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.lr-speakers { display: flex; gap: .55rem; overflow-x: auto; padding-top: .6rem; scrollbar-width: none; }
.lr-speakers::-webkit-scrollbar { display: none; }
.lr-spk { position: relative; flex: 0 0 168px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #1e293b; }
.lr-spk video { width: 100%; height: 100%; object-fit: cover; }
.lr-spk .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.2rem; }
.lr-spk .nm { position: absolute; left: 6px; bottom: 6px; font-size: .7rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); padding: .1rem .45rem; border-radius: 6px; }
.lr-spk.talking { box-shadow: 0 0 0 3px #22c55e; }
.lr-bar { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; justify-content: center; padding: .75rem 0 0; }
.lr-btn { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; border-radius: 999px; padding: .55rem .95rem; font-weight: 700; font-size: .84rem; transition: background .2s, transform .15s; }
.lr-btn:hover:not(:disabled) { background: rgba(255,255,255,.16); }
.lr-btn:active { transform: scale(.97); }
.lr-btn.on { background: #f59e0b; border-color: #f59e0b; color: #111; }
.lr-btn.red { background: #ef4444; border-color: #ef4444; }
.lr-btn:disabled { opacity: .4; }
/* Heart attendance check */
.lr-heart { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(2,6,23,.55); backdrop-filter: blur(3px); }
.lr-heart[hidden] { display: none; }
.lr-heart-card { text-align: center; color: #fff; padding: 1rem; }
.lr-heart-btn { width: clamp(96px, 18vw, 140px); aspect-ratio: 1; border: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fb7185, #e11d48 60%, #9f1239); color: #fff; font-size: clamp(2.6rem, 6vw, 3.6rem);
  display: grid; place-items: center; margin: 0 auto .8rem; box-shadow: 0 0 0 0 rgba(225,29,72,.55); animation: lrBeat 1.1s ease-in-out infinite, lrRing 1.6s infinite; cursor: pointer; }
@keyframes lrBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } }
@keyframes lrRing { 70% { box-shadow: 0 0 0 26px rgba(225,29,72,0); } 100% { box-shadow: 0 0 0 0 rgba(225,29,72,0); } }
.lr-heart-card b { display: block; font-size: 1.15rem; }
.lr-heart-card small { color: rgba(255,255,255,.8); }
/* Side panel */
.lr-panel { background: #fff; color: var(--ev-ink); border-radius: 20px; display: flex; flex-direction: column; height: min(72vh, 640px); overflow: hidden; box-shadow: 0 26px 60px rgba(0,0,0,.25); }
@media (max-width: 991.98px) { .lr-panel { height: 460px; } }
.lr-tabs { display: flex; gap: .25rem; padding: .5rem; border-bottom: 1px solid var(--ev-line); }
.lr-tab { flex: 1; border: 0; background: none; border-radius: 10px; padding: .5rem; font-weight: 800; font-size: .84rem; color: var(--ev-muted); }
.lr-tab.active { background: var(--ev-ink); color: #fff; }
.lr-tab .n { font-size: .68rem; padding: .02rem .4rem; border-radius: 999px; background: rgba(15,23,42,.1); margin-left: .25rem; }
.lr-tab.active .n { background: rgba(255,255,255,.2); }
.lr-msgs { flex: 1; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .55rem; overscroll-behavior: contain; }
.lr-msg { display: flex; gap: .55rem; font-size: .88rem; line-height: 1.4; }
.lr-av { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: .7rem; font-weight: 800; color: #fff; background: var(--site-primary); }
.lr-msg.host .lr-av { background: #dc2626; }
.lr-msg b { font-size: .78rem; }
.lr-msg .t { color: var(--ev-muted); font-size: .7rem; margin-left: .3rem; }
.lr-msg .host-tag { font-size: .62rem; font-weight: 800; color: #fff; background: #dc2626; border-radius: 6px; padding: .02rem .35rem; margin-left: .25rem; }
.lr-msg.mine .lr-av { background: var(--site-secondary); }
.lr-q { border: 1px solid #fde68a; background: #fffbeb; border-radius: 12px; padding: .55rem .7rem; }
.lr-q.done { opacity: .6; }
.lr-q .ans { font-size: .68rem; font-weight: 800; color: #15803d; }
.lr-empty { text-align: center; color: var(--ev-muted); font-size: .85rem; padding: 2rem 1rem; }
.lr-compose { border-top: 1px solid var(--ev-line); padding: .6rem; }
.lr-compose form { display: flex; gap: .4rem; }
.lr-compose input { flex: 1; min-width: 0; border-radius: 999px; border: 1px solid var(--ev-line); padding: .55rem .9rem; font-size: 16px; }
.lr-compose input:focus { outline: none; border-color: var(--site-primary); box-shadow: 0 0 0 4px var(--ev-ring); }
.lr-compose button { border: 0; border-radius: 999px; width: 42px; height: 42px; background: var(--site-primary); color: #fff; flex-shrink: 0; }
.lr-compose .note { font-size: .72rem; color: var(--ev-muted); padding: .3rem .4rem 0; }
.lr-toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 1080; background: #0f172a; color: #fff; padding: .6rem 1rem; border-radius: 999px; font-weight: 700; font-size: .86rem; box-shadow: 0 14px 30px rgba(0,0,0,.35); max-width: calc(100vw - 24px); }
@media (min-width: 992px) { .lr-toast { bottom: 28px; } }
/* Replay */
.rp-player { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.rp-player video { width: 100%; height: 100%; background: #000; }
.rp-list { display: flex; flex-direction: column; gap: .5rem; margin-top: .8rem; }
.rp-item { display: flex; gap: .7rem; align-items: center; width: 100%; text-align: left; border: 1px solid var(--ev-line); background: #fff; border-radius: 12px; padding: .6rem .8rem; }
.rp-item.active { border-color: var(--site-primary); background: var(--ev-soft); }
.rp-item i { font-size: 1.3rem; color: var(--site-primary); }
.cert-cta { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: 16px; background: linear-gradient(135deg, #fef3c7, #fffbeb); border: 1px solid #fde68a; }
.cert-cta i.big { font-size: 2.2rem; color: #b45309; }
@media (prefers-reduced-motion: reduce) { .lr-heart-btn { animation: none; } }

/* ======================================================================= Hosts & speakers, agenda */
.spk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.spk-card { position: relative; border: 1px solid var(--ev-line); border-radius: 18px; padding: 1.2rem 1rem 1rem; text-align: center; background: #fff; transition: transform .25s, box-shadow .25s; cursor: pointer; }
.spk-card:hover, .spk-card:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(15,23,42,.1); outline: none; }
.spk-card .ph { width: 104px; height: 104px; border-radius: 50%; margin: 0 auto .75rem; object-fit: cover; display: grid; place-items: center; font-weight: 800; font-size: 1.8rem; color: #fff;
  background: linear-gradient(135deg, var(--site-primary), var(--site-secondary)); box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--ev-soft); }
.spk-card .badge-host { position: absolute; top: .8rem; right: .8rem; font-size: .66rem; font-weight: 800; letter-spacing: .05em; background: #fef3c7; color: #92400e; border-radius: 999px; padding: .2rem .55rem; }
.spk-card h3 { font-size: 1.02rem; font-weight: 800; margin: 0; }
.spk-card .role { font-size: .82rem; color: var(--site-primary); font-weight: 700; margin-top: .15rem; }
.spk-card .org { font-size: .78rem; color: var(--ev-muted); }
.spk-card .topic { font-size: .82rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed var(--ev-line); color: #334155; }
.spk-card .slot { font-size: .74rem; color: var(--ev-muted); font-weight: 700; margin-top: .25rem; }
.spk-card .more { font-size: .78rem; font-weight: 800; color: var(--site-primary); margin-top: .5rem; display: inline-block; }
.agenda { list-style: none; padding: 0; margin: 0; position: relative; }
.agenda::before { content: ""; position: absolute; left: 76px; top: 6px; bottom: 6px; width: 2px; background: var(--ev-line); }
.agenda li { display: grid; grid-template-columns: 64px 24px minmax(0, 1fr); gap: .6rem; padding: .55rem 0; align-items: start; }
.agenda .tm { text-align: right; font-weight: 800; font-size: .86rem; color: var(--site-primary); line-height: 1.2; }
.agenda .tm small { display: block; font-weight: 600; color: var(--ev-muted); font-size: .7rem; }
.agenda .dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--site-primary); margin: .2rem auto 0; position: relative; z-index: 1; }
.agenda li.now .dot { background: #ef4444; border-color: #fecaca; box-shadow: 0 0 0 4px rgba(239,68,68,.2); }
.agenda .what { display: flex; gap: .7rem; align-items: center; border: 1px solid var(--ev-line); border-radius: 14px; padding: .6rem .8rem; background: #fff; }
.agenda li.now .what { border-color: #fecaca; background: #fff7f7; }
.agenda .what img, .agenda .what .av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem; background: var(--site-primary); }
.agenda .what b { display: block; font-size: .92rem; }
.agenda .what small { color: var(--ev-muted); }
.evd-desc.rich { white-space: normal; }
.evd-desc.rich h2, .evd-desc.rich h3 { font-size: 1.1rem; font-weight: 800; margin: 1rem 0 .4rem; }
.evd-desc.rich ul, .evd-desc.rich ol { padding-left: 1.3rem; }
.evd-desc.rich blockquote { border-left: 3px solid var(--site-primary); padding: .2rem .9rem; color: #475569; margin: .8rem 0; }
.evd-desc.rich .ql-align-center { text-align: center; } .evd-desc.rich .ql-align-right { text-align: right; } .evd-desc.rich .ql-align-justify { text-align: justify; }
.spk-modal .modal-content { border: 0; border-radius: 22px; overflow: hidden; }
.spk-modal .hero { background: var(--site-gradient-navbar); color: #fff; padding: 1.6rem 1.4rem 1.2rem; display: flex; gap: 1rem; align-items: center; }
.spk-modal .hero .ph { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; background: rgba(255,255,255,.15); }
.spk-modal .links a { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; background: var(--ev-soft); color: var(--site-primary); text-decoration: none; margin-right: .3rem; }
.ev-avatars { display: flex; margin-right: .3rem; }
.ev-avatars > * { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; object-fit: cover; background: var(--site-primary); color: #fff; font-size: .62rem; font-weight: 800; display: grid; place-items: center; }
.ev-avatars > *:first-child { margin-left: 0; }
.lr-now { margin-left: auto; color: #fff; font-size: .74rem; font-weight: 700; background: rgba(15,23,42,.72); backdrop-filter: blur(6px); padding: .28rem .65rem; border-radius: 999px; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 575.98px) { .agenda::before { left: 62px; } .agenda li { grid-template-columns: 50px 24px minmax(0, 1fr); } .spk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; } .spk-card .ph { width: 76px; height: 76px; font-size: 1.3rem; } }