@font-face {
  font-family: "Union";
  src: url("./assets/fonts/Union-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Union";
  src: url("./assets/fonts/Union-Bold.ttf") format("truetype");
  font-weight: 800;
}
@font-face {
  font-family: "Union";
  src: url("./assets/fonts/Union-BoldItalic.ttf") format("truetype");
  font-weight: 800;
  font-style: italic;
}
@font-face {
  font-family: "PODIUM Sharp";
  src: url("./assets/fonts/PODIUMSharp-1.11.otf") format("opentype");
}
@font-face {
  font-family: "PODIUM Sharp 2.7";
  src: url("./assets/fonts/PODIUMSharp-2.7.otf") format("opentype");
}

:root {
  --lr-bg: #06101b;
  --lr-panel: rgba(4, 17, 31, .78);
  --lr-panel-2: rgba(255,255,255,.055);
  --lr-line: rgba(255,255,255,.12);
  --lr-text: #edf9ff;
  --lr-muted: rgba(237,249,255,.68);
  --lr-cyan: #23d8ff;
  --lr-blue: #0c86f6;
}

.live-reaction-page {
  min-height: 100vh;
  margin: 0;
  color: var(--lr-text);
  background:
    radial-gradient(circle at top left, rgba(23, 205, 255, .12), transparent 36%),
    radial-gradient(circle at bottom right, rgba(3, 95, 255, .10), transparent 32%),
    #06101b;
  font-family: "Union", Inter, system-ui, sans-serif;
}

.lr-topbar .fp-navlinks a { font-size: 12px; padding-inline: 11px; }
.lr-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.topbar-btn,
.primary-btn,
.secondary-btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  font-family: inherit;
  font-weight: 900;
  letter-spacing: .02em;
  cursor: pointer;
  color: #f4fbff;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  transition: .16s ease;
}
.topbar-btn:hover,
.primary-btn:hover,
.secondary-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.topbar-btn.primary,
.primary-btn { background: linear-gradient(135deg, #16d8ff, #0874ff); box-shadow: 0 10px 28px rgba(0, 149, 255, .25); }
.topbar-btn.ghost,
.secondary-btn { background: rgba(255,255,255,.075); }
button:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

.lr-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 350px) minmax(420px, 1fr) minmax(320px, 390px);
  gap: 18px;
  padding: 18px;
  max-width: 1900px;
  margin: 0 auto;
}

.lr-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lr-brand-card,
.lr-panel,
.lr-preview-header {
  border: 1px solid var(--lr-line);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.lr-brand-card { padding: 18px; }
.lr-brand-card .eyebrow,
.lr-panel-head p,
.preview-label {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--lr-cyan);
}
.lr-brand-card h1,
.lr-panel-head h2,
.lr-preview-header h2 {
  margin: 0;
  line-height: 1;
  color: #fff;
}
.lr-brand-card h1 { font-size: clamp(25px, 2.4vw, 34px); }
.lr-brand-card p:last-child { margin: 12px 0 0; color: var(--lr-muted); font-size: 13px; line-height: 1.55; }
.lr-panel { padding: 16px; }
.lr-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lr-tool-group {
  padding: 13px;
  border: 1px solid rgba(255,255,255,.095);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}
.lr-tool-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.lr-tool-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #bdf5ff;
  background: rgba(35,216,255,.10);
  border: 1px solid rgba(35,216,255,.22);
  font-size: 10px;
  flex-shrink: 0;
}
.lr-tool-title strong { min-width: 0; }
.flush-buttons,
.flush-controls { margin-top: 0 !important; }
.lr-tool-group > .mini-control { margin-top: 10px; }
.lr-tool-group > .hint:last-child { margin-top: 9px; }
.lr-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.lr-panel-head h2 { font-size: 20px; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(35,216,255,.10);
  color: #bdf5ff;
  border: 1px solid rgba(35,216,255,.24);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.field,
.mini-control,
.lr-field-button {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field span,
.mini-control-head span,
.lr-field-button span {
  color: var(--lr-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.field input,
.field select,
.field textarea,
.mini-control input[type="range"] {
  width: 100%;
  box-sizing: border-box;
}
.field input,
.field select,
.field textarea {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  min-height: 42px;
  padding: 11px 12px;
  color: #f6fcff;
  background: rgba(0,0,0,.22);
  font: 800 13px/1.25 "Union", system-ui, sans-serif;
  outline: none;
}
.field textarea { resize: vertical; min-height: 82px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: rgba(35,216,255,.45); box-shadow: 0 0 0 3px rgba(35,216,255,.10); }

.lr-grid { display: grid; gap: 10px; }
.lr-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lr-buttons { display: grid; gap: 9px; margin-top: 12px; }
.lr-buttons.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lr-buttons.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lr-buttons .secondary-btn,
.lr-buttons .primary-btn { padding-inline: 8px; font-size: 12px; min-height: 42px; }

.lr-paste-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 12px;
  border: 1px dashed rgba(35,216,255,.30);
  border-radius: 16px;
  background: rgba(35,216,255,.06);
  cursor: pointer;
}
.lr-paste-zone strong { display: block; color: #fff; font-size: 13px; }
.lr-paste-zone small { display: block; color: var(--lr-muted); font-size: 11px; margin-top: 3px; line-height: 1.35; }

.lr-control-list {
  display: grid;
  gap: 10px;
  margin-top: 13px;
}
.three-col-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-col-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mini-control {
  padding: 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 15px;
  background: rgba(255,255,255,.045);
}
.mini-control-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.mini-control-head strong {
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}
input[type="range"] { accent-color: var(--lr-cyan); }

.lr-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.lr-preview-header {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #dffaff;
  font-size: 12px;
  font-weight: 900;
}
.status-dot span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #32e98f;
  box-shadow: 0 0 18px rgba(50,233,143,.65);
  flex-shrink: 0;
}
.lr-canvas-wrap {
  width: min(100%, 600px);
  aspect-ratio: 1080 / 1350;
  border-radius: 26px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 28px 80px rgba(0,0,0,.38);
}
#posterCanvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: #008ec4;
  cursor: grab;
}
#posterCanvas:active { cursor: grabbing; }
.lr-hint,
.hint {
  color: var(--lr-muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}
.small-hint { margin-top: 8px; font-size: 11px; }

.lr-event-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  margin-top: 10px;
  padding-right: 4px;
}
.lr-event-list p { margin: 0; color: var(--lr-muted); font-size: 12px; line-height: 1.4; }
.lr-event-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}
.lr-event-option input { margin-top: 2px; accent-color: var(--lr-cyan); }
.lr-event-title { display: block; color: #fff; font-size: 12px; font-weight: 950; line-height: 1.35; }
.lr-event-meta { display: block; color: var(--lr-muted); font-size: 11px; margin-top: 3px; }

.lr-match-editor { display: grid; gap: 12px; }
.lr-match-card {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255,255,255,.04);
}
.lr-match-card h3 {
  margin: 0 0 10px;
  font-size: 13px;
  color: #fff;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.lr-match-card .lr-grid { margin-bottom: 10px; }

@media (max-width: 1460px) {
  .lr-workspace { grid-template-columns: 320px minmax(380px, 1fr) 340px; }
  .three-col-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .lr-workspace { grid-template-columns: 1fr; }
  .lr-sidebar { order: 2; }
  .lr-stage { order: 1; }
  .lr-canvas-wrap { width: min(100%, 540px); }
  .lr-top-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .lr-workspace { padding: 12px; gap: 12px; }
  .lr-grid.two,
  .two-col-list,
  .three-col-list,
  .lr-buttons.two,
  .lr-buttons.three { grid-template-columns: 1fr; }
  .lr-preview-header { align-items: flex-start; flex-direction: column; }
}
