.live-preview {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #090910;
  border: 1px solid var(--border, #555);
  border-radius: 16px;
}
.live-setup-grid { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(360px, 1.1fr); align-items: start; gap: 24px; }
.live-setup-grid #live-setup { grid-column: 1; grid-row: 1; min-width: 0; }
.live-setup-grid #live-preview-panel { grid-column: 2; grid-row: 1; margin: 0; position: sticky; top: 90px; min-width: 0; }
.live-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.live-preview-heading h2 { margin: 0; }
.live-preview-badge { color: var(--ink2); font-size: 11px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.live-preview-badge[data-state="ready"] { background: #b5ffad; color: #102c17; }
.live-preview-badge[data-state="error"] { background: #ffc9dc; color: #5c1630; }
.live-preview-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px; border-radius: 16px; color: #f9f2ff; background: radial-gradient(ellipse at 50% 0, #452c69, #100c1c 80%); }
.live-preview-placeholder > span { font-size: 36px; color: #ff70d9; }
.live-preview-placeholder strong { margin: 8px 0 0; font-size: 18px; }
.live-preview-placeholder p { max-width: 320px; color: #d3c7e6; font-size: 13px; }
.live-preview-placeholder[hidden] { display: none; }
.broadcast-page .broadcast-actionbar { position: static; display: block; margin: 12px 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
.broadcast-page .broadcast-actionbar .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.broadcast-page .broadcast-actionbar .btn { flex: 1; font-size: 13px; }
.broadcast-page #live-state { font-size: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.broadcast-page #live-state[data-error="true"] { border-color: #ff79b6; background: #fa4dd410; }
.live-launch-controls { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.live-launch-controls > a { font-size: 13px; text-decoration: underline; }
.live-launch-controls .check { font-size: 12px; }
.live-launch-controls #go-live { width: 100%; min-height: 44px; }
.live-portrait-preview { display: flex; gap: 12px; align-items: center; margin: 12px 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.live-portrait-preview[hidden], .live-portrait-preview img[hidden] { display: none; }
.live-portrait-preview img { width: 86px; height: 104px; object-fit: contain; border-radius: 8px; background: #090910; }
.live-portrait-preview p { font-size: 12px; overflow-wrap: anywhere; }
.live-publish-grid { margin-top: 24px; align-items: start; }
.live-publish-grid #share-broadcast { margin-top: 0; }
.broadcast-page #live-setup, .broadcast-page #live-preview-panel, .broadcast-page #live-platforms { scroll-margin-top: 90px; }
@media (max-width: 1100px) {
  .live-setup-grid { grid-template-columns: 1fr; }
  .live-setup-grid #live-preview-panel, .live-setup-grid #live-setup { grid-column: auto; grid-row: auto; position: static; }
  .live-preview-wrap { max-width: 640px; margin-inline: auto; }
}
.broadcast-steps { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.broadcast-steps a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 9px 13px; border-radius: 10px; font-size: 13px; }
.broadcast-steps span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #96fa86; color: #14271a; font-weight: 700; }
.broadcast-actionbar { position: sticky; top: 76px; z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 5px 24px #0003; }
.broadcast-actionbar p { margin: 4px 0 0; font-size: 12px; max-width: 410px; }
.broadcast-actionbar .actions { margin: 0; flex-shrink: 0; }
.broadcast-actionbar .btn { min-height: 44px; }
.broadcast-actionbar #go-live { min-width: 124px; font-size: 17px; }
.live-look-fields { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.live-look-fields legend { font-weight: 600; font-size: 13px; }
.live-effect-choice {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  margin: 10px 0 18px;
  overflow: hidden;
  background: linear-gradient(125deg, color-mix(in srgb, var(--neon-pink) 16%, var(--surface2)), color-mix(in srgb, var(--neon-purple) 24%, var(--surface2)) 65%);
  border: 1px solid color-mix(in srgb, var(--neon-pink) 62%, var(--line));
  border-radius: 16px;
  box-shadow: inset 0 1px 0 #ffffff18, 0 8px 28px #fa4dd418;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.live-effect-choice::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  background: var(--neon-pink);
  opacity: .11;
  filter: blur(18px);
  pointer-events: none;
}
.live-effect-choice:hover { transform: translateY(-2px); border-color: var(--neon-pink); box-shadow: inset 0 1px 0 #ffffff25, 0 10px 34px #fa4dd42c; }
.live-effect-choice:focus-within { outline: 3px solid #63dfee; outline-offset: 3px; }
.live-effect-choice:has(:checked) {
  background: linear-gradient(125deg, color-mix(in srgb, var(--neon-green) 18%, var(--surface2)), color-mix(in srgb, var(--neon-purple) 20%, var(--surface2)) 68%);
  border-color: var(--neon-green);
  box-shadow: inset 0 1px 0 #ffffff2e, 0 0 0 1px #8cfc7930, 0 10px 34px #8cfc7929;
}
.live-effect-choice:has(:checked)::after { background: var(--neon-green); opacity: .13; }
.live-effect-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #170b21; background: linear-gradient(135deg, #ff9ce8, var(--neon-pink)); font-size: 23px; box-shadow: 0 5px 18px #fa4dd447; }
.live-effect-choice:has(:checked) .live-effect-icon { background: linear-gradient(135deg, #d3ffca, var(--neon-green)); box-shadow: 0 5px 18px #8cfc7945; }
.live-effect-copy { min-width: 0; }
.live-effect-kicker { display: block; margin-bottom: 2px; color: var(--neon-pink); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.live-effect-choice:has(:checked) .live-effect-kicker { color: var(--neon-green); }
.live-effect-choice strong { display: block; font-size: 18px; line-height: 1.25; }
.live-effect-choice small { display: block; margin-top: 2px; font-weight: 500; color: var(--ink2); font-size: 12px; }
.live-effect-choice .live-effect-cost { margin-top: 5px; color: var(--ink3); font-size: 10px; }
.live-effect-control { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.live-effect-state { color: var(--ink3); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.live-effect-state-on { display: none; color: var(--neon-green); }
.live-effect-choice:has(:checked) .live-effect-state-off { display: none; }
.live-effect-choice:has(:checked) .live-effect-state-on { display: inline; }
.live-effect-choice input {
  appearance: none;
  position: relative;
  width: 52px;
  height: 30px;
  margin: 0;
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  border-radius: 999px;
  background: #080511aa;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.live-effect-choice input::after { content: ''; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px #0008; transition: transform .18s ease; }
.live-effect-choice input:checked { background: var(--neon-green); border-color: var(--neon-green); }
.live-effect-choice input:checked::after { transform: translateX(22px); background: #14271a; }
.live-effect-choice input:focus-visible { outline: none; }
.live-look-fields:disabled .live-effect-choice { opacity: .5; cursor: not-allowed; transform: none; }
.live-face-options { padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.live-face-options a { text-decoration: underline; }
.live-format { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; }
.live-format summary, .live-preview-panel summary { cursor: pointer; font-size: 13px; }
.live-preview-panel { margin-top: 24px; }
.live-preview-wrap { position: relative; }
#live-preview-disclosure { position: absolute; bottom: 16px; left: 16px; background: #000d; padding: 6px 10px; border-radius: 5px; color: white; font-size: 13px; }
#live-effect-time { color: var(--ink2); font-size: 13px; }
@media (max-width: 1000px) {
  .broadcast-actionbar { flex-wrap: wrap; gap: 10px; }
  .broadcast-actionbar .actions { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .live-effect-choice { grid-template-columns: 40px minmax(0, 1fr); padding: 15px; }
  .live-effect-icon { width: 40px; height: 40px; }
  .live-effect-control { grid-column: 1 / -1; width: 100%; flex-direction: row; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
}
@media (max-width: 800px) {
  .broadcast-actionbar { top: 66px; padding: 10px 12px; }
  .broadcast-actionbar > div:first-child > strong { display: none; }
  .broadcast-actionbar .actions { width: 100%; }
  .broadcast-actionbar #go-live { flex: 1; }
}
.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr);
  gap: 24px;
}
.live-layout input,
.live-layout select {
  max-width: 100%;
}
.live-destination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
}
.platform-count {
  font-weight: 600;
  font-size: 13px;
  margin-block: 16px 12px;
}
.platform-included {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #89f78a;
  border-radius: 12px;
  background: #b5ffad;
  color: #102c17;
  margin-bottom: 12px;
}
.platform-included span { font-size: 13px; }
.platform-grid {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.platform-toggle {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  min-width: 0;
  min-height: 130px;
  padding: 13px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 160ms, background 160ms, box-shadow 160ms;
}
.platform-toggle:hover:not([aria-disabled="true"]):not(:disabled) {
  border-color: #80e984;
}
.platform-toggle[aria-pressed="true"] {
  background: #8ff58c;
  border-color: #b3ffad;
  color: #102b16;
  box-shadow: 0 0 18px #8ff58c25;
}
.platform-toggle[aria-disabled="true"] { cursor: not-allowed; }
.platform-toggle[aria-disabled="true"][aria-pressed="false"] { opacity: .62; }
.platform-top { display: flex; align-items: center; gap: 7px; }
.platform-icon {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  background: #88888820;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
}
.platform-name { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.platform-check {
  display: grid;
  place-items: center;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  margin-left: auto;
  border: 1px solid currentColor;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.platform-toggle[aria-pressed="true"] .platform-check {
  background: #102b16;
  color: #a5ffa0;
  border-color: #102b16;
}
.platform-account { font-size: 12px; overflow-wrap: anywhere; }
.platform-state { font-size: 12px; font-weight: 700; margin-top: auto; }
.platform-obs { display: block; padding: 14px 0; text-decoration: underline; font-size: 13px; }
.platform-manage { border-top: 1px solid var(--line); padding-top: 12px; font-size: 13px; }
.platform-manage summary { cursor: pointer; }
.platform-manage .live-destination span { overflow-wrap: anywhere; min-width: 0; }
.platform-manage .btn { flex-shrink: 0; }
.destination-fields { padding: 0; margin: 0; border: 0; min-width: 0; }
.destination-fields legend { padding-top: 16px; font-weight: 600; }
@container (max-width: 350px) {
  .platform-top { display: grid; grid-template-columns: minmax(0, 1fr) 19px; }
  .platform-icon { grid-column: 1; grid-row: 1; }
  .platform-check { grid-column: 2; grid-row: 1; }
  .platform-name { grid-column: 1 / -1; grid-row: 2; overflow-wrap: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .platform-toggle { transition: none; }
}
.live-panel {
  margin-block: 20px;
}
.live-link {
  display: block;
  overflow-wrap: anywhere;
  margin-block: 12px;
}
.live-watch {
  max-width: 1040px;
  margin: 40px auto;
  padding: 24px;
}
.live-watch .brand-logo {
  display: inline-block;
  width: 180px;
}
.live-history {
  display: grid;
  gap: 16px;
  margin-block: 24px;
}
.live-history article {
  margin: 0;
}
#watch-label {
  color: #8eff8a;
}
@media (max-width: 850px) {
  .live-layout {
    grid-template-columns: 1fr;
  }
  .live-watch {
    padding: 16px;
    margin: 16px auto;
  }
}
.live-output{margin:0!important;background:#000!important;color:#fff!important;overflow:hidden}.live-output .live-watch{margin:0;padding:0;width:100vw;max-width:none;height:100vh}.live-output .live-watch>a,.live-output #watch-title,.live-output #watch-label,.live-output .live-watch>p:last-child{display:none}.live-output #live-video{position:fixed;inset:0;width:100vw;height:100vh;max-height:none;object-fit:contain;border:0;border-radius:0;background:#000}.live-output #watch-state{position:fixed;z-index:2;left:5%;right:5%;top:38%;text-align:center;font:20px/1.5 system-ui}.live-output.feed-playing #watch-state{display:none}.live-output #output-play{position:fixed;z-index:3;left:50%;top:55%;transform:translateX(-50%);padding:14px 24px;background:#ff4bd8;color:#13091a;border:0;border-radius:12px;font:600 18px system-ui}
