@font-face {
  font-family: system;
  src: local("Arial");
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
  background: #101312;
}
body {
  margin: 0;
  color: #eef1e9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
button,
a {
  -webkit-user-select: none;
  user-select: none;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #b9f985;
  outline-offset: 4px;
}
input,
textarea {
  width: 100%;
  border: 1px solid #373d36;
  border-radius: 9px;
  background: #141915;
  color: #eef1e9;
  padding: 12px 13px;
  font-size: 16px;
  outline: none;
}
input:focus,
textarea:focus {
  border-color: #b9f985;
  box-shadow: 0 0 0 2px #b9f98518;
}
input::placeholder,
textarea::placeholder {
  color: #737c71;
}
textarea {
  resize: vertical;
  min-height: 70px;
}
label {
  display: block;
  font-size: 13px;
  color: #b9c1b4;
  margin-bottom: 7px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-weight: 500;
  font-size: clamp(32px, 3.5vw, 51px);
  line-height: 1.12;
  letter-spacing: -1.8px;
}
h2 {
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.6px;
}
h3 {
  font-weight: 500;
  font-size: 17px;
}
.topbar {
  height: 82px;
  border-bottom: 1px solid #2a3029;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(28px, calc((100vw - 1536px) / 2));
  padding-left: max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.brand strong {
  font-size: 17px;
  letter-spacing: 1.4px;
  font-weight: 650;
}
.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  gap: 4px;
}
.brand-mark i {
  background: #b9f985;
  border-radius: 2px;
  width: 9px;
  height: 9px;
}
.lite {
  font-size: 10px;
  letter-spacing: 1px;
  border: 1px solid #4b5a42;
  color: #b9f985;
  border-radius: 5px;
  padding: 2px 6px;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 30px;
}
.desktop-note {
  font-size: 12px;
  color: #858f80;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 9px;
  padding: 11px 17px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 550;
  border: 1px solid #3c4537;
  background: #242c21;
  color: #edf1e7;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover {
  background: #303b2a;
}
.primary {
  background: #b9f985;
  color: #18240e;
  border-color: #b9f985;
}
.primary:hover {
  background: #cdff9f;
}
.subtle {
  background: transparent;
}
.danger {
  color: #ffaaa3;
  border-color: #663b37;
}
.icon-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #c3cbbe;
  border: 0;
  border-radius: 7px;
}
.icon-button:hover {
  background: #ffffff12;
}
.icon-button svg {
  width: 18px;
  height: 18px;
}
.muted {
  color: #939d8d;
}
.small {
  font-size: 13px;
}
.eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: #b9f985;
  font-weight: 600;
  margin-bottom: 15px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 43px;
}
.intro p {
  margin-top: 17px;
  color: #929d8b;
  max-width: 620px;
  font-size: 15px;
}
.time-note {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #b6c0ae;
  max-width: 240px;
  flex-shrink: 0;
  font-size: 12px;
  padding-bottom: 3px;
}
.time-icon {
  height: 43px;
  width: 43px;
  border: 1px solid #3a4533;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #b9f985;
  font-size: 19px;
  flex-shrink: 0;
}
#main {
  max-width: 1536px;
  margin: auto;
  padding: 47px 28px 36px;
  min-height: calc(100svh - 142px);
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 19px;
}
.step-number {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #3e4838;
  border-radius: 50%;
  font-size: 11px;
  color: #a8b39f;
}
.section-heading h2 {
  font-size: 17px;
  letter-spacing: 0;
}
.section-heading .muted {
  font-size: 12px;
  margin-left: auto;
}
.layout-picker {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 34px;
}
.layout-choice {
  background: #191e18;
  border: 1px solid #323b2d;
  border-radius: 10px;
  padding: 15px 11px 12px;
  color: #929e89;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 78px;
}
.layout-choice:hover {
  border-color: #67795b;
}
.layout-choice.selected {
  color: #dcebd0;
  background: #23301c;
  border-color: #b9f985;
  box-shadow: inset 0 0 0 1px #b9f98515;
}
.layout-choice strong {
  font-weight: 500;
  font-size: 20px;
}
.mini-grid {
  display: grid;
  gap: 2px;
  width: 42px;
  height: 30px;
  flex-shrink: 0;
}
.mini-grid i {
  background: #54634a;
  border-radius: 1px;
  min-width: 0;
}
.selected .mini-grid i {
  background: #b9f985;
}
.editor-heading {
  margin-bottom: 16px;
}
.segmented {
  display: flex;
  padding: 3px;
  background: #1a2018;
  border: 1px solid #323b2c;
  border-radius: 9px;
  margin-left: auto;
}
.segmented button {
  background: transparent;
  border: 0;
  color: #9aa78f;
  padding: 7px 13px;
  border-radius: 6px;
  font-size: 12px;
  min-height: 36px;
}
.segmented button.active {
  color: #ecf3e6;
  background: #35412c;
}
.editor-grid {
  display: grid;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 25px;
}
.source-card {
  background: #1a2018;
  border: 1px solid #35402d;
  border-radius: 12px;
  min-width: 0;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.source-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #b2bfa8;
}
.source-number {
  color: #b9f985;
  font-variant-numeric: tabular-nums;
}
.provider-badge {
  font-size: 10px;
  letter-spacing: 0.4px;
  color: #8d9b81;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.source-card textarea {
  flex: 1;
  font-size: 13px;
  min-height: 67px;
  line-height: 1.4;
  resize: none;
}
.source-card input {
  font-size: 13px;
  padding: 10px 12px;
}
.source-card.invalid {
  border-color: #ad6e5f;
}
.source-error {
  color: #ffb4a2;
  font-size: 12px;
  min-height: 0;
}
.source-card label {
  margin: 0;
}
.editor-grid.is-preview {
  min-height: 500px;
  height: 65svh;
}
.editor-grid.is-preview .player-tile {
  min-height: 145px;
}
.create-bottom {
  border-top: 1px solid #303a2a;
  padding-top: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 22px;
}
.create-bottom input {
  background: #1a2018;
}
.pin-wrap {
  position: relative;
}
.pin-wrap input {
  padding-right: 75px;
  letter-spacing: 3px;
}
.pin-toggle {
  position: absolute;
  right: 5px;
  top: 5px;
  height: 38px;
  padding: 0 9px;
  border: 0;
  background: transparent;
  font-size: 11px;
  color: #a8b69c;
}
.field-help {
  margin-top: 7px;
  font-size: 11px;
  color: #7f8e73;
}
.create-bottom .button {
  height: 48px;
  margin-bottom: 23px;
  min-width: 215px;
}
.create-help {
  margin-top: 22px;
  font-size: 12px;
  color: #7f8e73;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.form-error {
  color: #ffb4a2;
  font-size: 13px;
  padding: 12px 0;
  white-space: pre-line;
}
.error {
  color: #ffb4a2;
  font-size: 13px;
  min-height: 20px;
}
.loading {
  padding: 100px 15px;
  text-align: center;
  color: #929e87;
}
.gate {
  max-width: 430px;
  margin: 9svh auto 40px;
}
.gate-symbol {
  width: 59px;
  height: 59px;
  border: 1px solid #47593b;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #b9f985;
  margin-bottom: 29px;
}
.gate h1 {
  font-size: 35px;
  margin-bottom: 15px;
}
.gate p {
  color: #9aa78e;
  margin-bottom: 28px;
}
.gate input {
  font-size: 25px;
  letter-spacing: 8px;
  text-align: center;
  margin-bottom: 12px;
}
.gate .button {
  width: 100%;
  margin-top: 15px;
}
.gate label {
  font-size: 12px;
}
.room-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.room-heading {
  min-width: 0;
}
.room-heading h1 {
  font-size: 25px;
  letter-spacing: -0.8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 55vw;
}
.room-meta {
  font-size: 11px;
  color: #929e87;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.room-meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b9f985;
}
.countdown {
  color: #bbcda9;
  font-variant-numeric: tabular-nums;
}
.room-tools {
  display: flex;
  gap: 7px;
  align-items: center;
}
.room-tools .button {
  padding: 10px 13px;
  font-size: 12px;
}
.watch-grid {
  display: grid;
  gap: 9px;
  min-height: 440px;
  height: calc(100svh - 250px);
  height: calc(100dvh - 250px);
}
.player-tile {
  border: 1px solid #30392b;
  background: #080b08;
  border-radius: 10px;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.player-tile:focus-within {
  border-color: #8db868;
}
.tile-heading {
  display: flex;
  align-items: center;
  height: 38px;
  min-height: 38px;
  padding: 0 8px 0 11px;
  gap: 8px;
  background: #1a2117;
  font-size: 12px;
}
.tile-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  color: #dbe5d3;
}
.tile-index {
  color: #829a70;
  font-size: 10px;
  min-width: 14px;
}
.tile-heading .icon-button {
  min-width: 30px;
  width: 30px;
  height: 32px;
  padding: 7px;
}
.tile-heading .provider-badge {
  font-size: 9px;
}
.player-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-body iframe,
.player-body video {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  border: 0;
  display: block;
  background: #080b08;
  object-fit: contain;
}
.empty-tile {
  color: #58684b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
}
.empty-tile b {
  font-weight: 400;
  font-size: 28px;
  color: #4a5b3f;
}
.media-message {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 20px;
  background: #10180de8;
  font-size: 12px;
  color: #c3d0b8;
}
.media-message .button {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 12px;
}
.media-message[hidden] {
  display: none;
}
.watch-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: #829174;
  margin-top: 13px;
}
.connection {
  color: #e3be80;
}
.player-tile.expanded {
  position: fixed;
  inset: max(12px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  z-index: 100;
  box-shadow: 0 0 0 100vmax #080b08;
}
.expanded .tile-heading {
  height: 46px;
  min-height: 46px;
}
.watch-grid:fullscreen {
  height: 100%;
  padding: 9px;
  background: #080b08;
}
.watch-grid.theater {
  position: fixed;
  inset: 0;
  z-index: 90;
  height: 100dvh;
  min-height: 0;
  background: #080b08;
  padding: 7px;
  padding-top: max(7px, env(safe-area-inset-top));
  padding-bottom: max(7px, env(safe-area-inset-bottom));
}
.theater-exit {
  position: fixed;
  right: 17px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 110;
  background: #1d2919ee;
}
.edit-note {
  background: #202b1a;
  border: 1px solid #415333;
  color: #aebf9f;
  border-radius: 9px;
  padding: 13px 17px;
  font-size: 12px;
  margin-bottom: 24px;
}
.delete-row {
  margin-top: 27px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.dialog-inner {
  padding: 34px;
  position: relative;
}
.dialog-inner h2 {
  margin: 0 0 17px;
}
.dialog-inner > p {
  margin-bottom: 23px;
}
dialog {
  padding: 0;
  max-width: 550px;
  width: calc(100% - 32px);
  border: 1px solid #49553f;
  border-radius: 16px;
  background: #1a2117;
  color: #eef1e9;
}
dialog::backdrop {
  background: #040703b8;
  backdrop-filter: blur(6px);
}
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 0;
  color: #b8c3ae;
  font-size: 25px;
  height: 38px;
  width: 38px;
}
.copy-row {
  display: flex;
  gap: 8px;
}
.copy-row input {
  min-width: 0;
  font-size: 13px;
}
.owner-access {
  border-top: 1px solid #38462e;
  margin-top: 26px;
  padding-top: 23px;
}
.owner-access p {
  margin: 9px 0 16px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: max(25px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: #c5f4a4;
  color: #1a2a11;
  box-shadow: 0 10px 40px #0008;
  padding: 13px 23px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 200;
  max-width: 90vw;
  text-align: center;
}
#footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 28px;
  color: #647359;
  font-size: 10px;
  border-top: 1px solid #263020;
  letter-spacing: 0.4px;
  max-width: 1536px;
  margin: auto;
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}
[hidden] {
  display: none !important;
}
.no-scroll {
  overflow: hidden;
}
@media (min-width: 1600px) {
  .topbar {
    padding-left: calc((100vw - 1480px) / 2);
    padding-right: calc((100vw - 1480px) / 2);
  }
}
@media (max-width: 1100px) {
  .desktop-note {
    display: none;
  }
  .layout-picker {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .layout-choice {
    min-height: 64px;
  }
  .intro {
    margin-bottom: 32px;
  }
  .intro h1 {
    font-size: 39px;
  }
  .time-note {
    max-width: 210px;
  }
  .create-bottom {
    grid-template-columns: 1fr 1fr;
  }
  .create-bottom .button {
    grid-column: 1/-1;
    margin-bottom: 0;
  }
  .source-card {
    padding: 11px;
    gap: 8px;
  }
  .source-card textarea,
  .source-card input {
    font-size: 16px;
  }
  .watch-grid {
    height: calc(100dvh - 240px);
  }
  .room-tools .button {
    min-height: 44px;
  }
  .room-bar {
    align-items: flex-start;
  }
  .tile-heading .provider-badge {
    display: none;
  }
}
@media (max-width: 750px) {
  .topbar {
    height: 68px;
    padding: 0 18px;
  }
  .brand strong {
    font-size: 14px;
    letter-spacing: 1px;
  }
  .brand {
    gap: 9px;
  }
  .top-right .button {
    padding: 8px 12px;
    font-size: 11px;
  }
  .lite {
    font-size: 8px;
  }
  #main {
    padding: 30px 16px 25px;
  }
  .intro {
    display: block;
    margin-bottom: 28px;
  }
  .intro h1 {
    font-size: 34px;
    letter-spacing: -1.3px;
  }
  .intro p {
    font-size: 13px;
  }
  .time-note {
    margin-top: 22px;
    max-width: none;
    font-size: 11px;
  }
  .time-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .layout-picker {
    gap: 7px;
    margin-bottom: 28px;
  }
  .layout-choice {
    padding: 11px;
    min-height: 62px;
  }
  .layout-choice strong {
    font-size: 18px;
  }
  .mini-grid {
    width: 32px;
    height: 25px;
  }
  .section-heading {
    gap: 9px;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  .editor-heading .muted {
    display: none;
  }
  .segmented button {
    padding: 7px 9px;
    font-size: 11px;
  }
  .editor-grid:not(.is-preview) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-rows: auto;
  }
  .editor-grid:not(.is-preview) .source-card {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .source-card textarea {
    min-height: 90px;
    font-size: 16px;
  }
  .create-bottom {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .create-bottom .button {
    grid-column: auto;
  }
  .create-help {
    display: block;
    font-size: 11px;
  }
  .create-help span {
    display: block;
    margin-top: 8px;
  }
  .room-bar {
    display: block;
    margin-bottom: 15px;
  }
  .room-heading h1 {
    max-width: 100%;
    font-size: 22px;
  }
  .room-tools {
    margin-top: 16px;
    flex-wrap: wrap;
  }
  .watch-grid {
    height: 68dvh;
    min-height: 450px;
    gap: 5px;
  }
  .player-tile {
    border-radius: 6px;
  }
  .tile-heading {
    padding: 0 4px 0 6px;
    gap: 4px;
    height: 33px;
    min-height: 33px;
    font-size: 10px;
  }
  .tile-heading .icon-button {
    width: 27px;
    min-width: 27px;
    padding: 6px;
  }
  .tile-index {
    font-size: 9px;
    min-width: 11px;
  }
  .watch-hint {
    display: block;
  }
  .watch-hint span {
    display: block;
    margin-top: 5px;
  }
  .editor-grid.is-preview {
    height: 65dvh;
    min-height: 430px;
  }
  .copy-row {
    flex-direction: column;
  }
  .gate {
    margin-top: 7svh;
  }
  .dialog-inner {
    padding: 28px 22px;
  }
  #footer {
    padding: 17px 16px;
  }
  .delete-row {
    align-items: flex-start;
  }
  .delete-row .small {
    max-width: 65%;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .topbar {
    height: 54px;
  }
  #main {
    padding-top: 18px;
  }
  .room-bar {
    display: flex;
    margin-bottom: 12px;
  }
  .room-tools {
    margin-top: 0;
  }
  .room-heading h1 {
    font-size: 20px;
  }
  .watch-grid {
    height: calc(100dvh - 175px);
    min-height: 250px;
  }
  .watch-hint {
    margin-top: 7px;
  }
  .gate {
    margin: 20px auto;
  }
  .gate-symbol {
    display: none;
  }
  .gate h1 {
    font-size: 25px;
  }
  .gate p {
    margin-bottom: 14px;
  }
  .gate input {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .button,
  .layout-choice {
    transition:
      background 0.15s,
      border-color 0.15s;
  }
}
/* Stream orientation and optional server-side audience statistics. */
select {
  font: inherit;
  width: 100%;
  border: 1px solid #373d36;
  border-radius: 9px;
  background: #141915;
  color: #eef1e9;
  padding: 11px 13px;
  min-height: 44px;
  font-size: 16px;
  touch-action: manipulation;
}
select:focus-visible {
  outline: 2px solid #b9f985;
  outline-offset: 2px;
}
.view-choice {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(220px, 360px) 1fr;
  align-items: center;
  gap: 12px 20px;
  margin: -13px 0 30px;
}
.view-choice label {
  margin: 0;
}
.view-choice .field-help {
  margin: 0;
}
.source-format {
  font-size: 13px;
  background: #141915;
  padding: 9px 11px;
}
.analytics-choice {
  border: 1px solid #3b4931;
  background: linear-gradient(110deg, #212e1a, #171f14);
  border-radius: 12px;
  padding: 19px 21px;
  margin: 0 0 25px;
}
.check-label {
  display: flex;
  gap: 13px;
  align-items: center;
  margin: 0;
  cursor: pointer;
  min-height: 44px;
}
.check-label > input {
  accent-color: #b9f985;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 0;
  cursor: pointer;
  box-shadow: none;
}
.check-label > span {
  display: grid;
  gap: 4px;
}
.check-label strong {
  font-size: 14px;
  color: #e3efd9;
  font-weight: 550;
}
.check-label span span {
  font-size: 12px;
  color: #99aa8a;
}
.analytics-choice > .field-help {
  margin-left: 35px;
}
.check-label:has(input:disabled) {
  cursor: default;
  opacity: 0.8;
}
.source-card select:focus {
  border-color: #b9f985;
}
.player-body:has(iframe) {
  align-items: center;
  justify-content: center;
}
.player-body iframe {
  object-fit: contain;
}
.player-tile[data-format="portrait"] .player-body iframe,
.player-tile[data-format="auto"][data-detected-format="portrait"]
  .player-body
  iframe {
  width: auto;
  max-width: 100%;
  height: 100%;
  aspect-ratio: 9/16;
  position: relative;
  inset: auto;
}
.portrait-wall {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-template-rows: none !important;
  grid-auto-rows: auto !important;
  height: auto;
  min-height: 0;
  align-items: start;
}
.portrait-wall > .player-tile {
  grid-column: auto !important;
  grid-row: auto !important;
  aspect-ratio: auto;
  min-height: 0;
}
.portrait-wall .player-body {
  aspect-ratio: 9/16;
  flex: auto;
  min-height: 0;
}
.portrait-wall > .player-tile[data-format="landscape"] .player-body {
  aspect-ratio: 16/9;
}
.portrait-wall
  > .player-tile[data-format="auto"][data-detected-format="landscape"]
  .player-body {
  aspect-ratio: 16/9;
}
.portrait-wall.single-tile {
  grid-template-columns: minmax(0, 440px) !important;
  justify-content: center;
}
.portrait-wall .player-body iframe {
  max-width: 100%;
  max-height: 100%;
}
.portrait-wall .empty-tile {
  min-height: 180px;
}
.portrait-wall:fullscreen,
.portrait-wall.theater {
  overflow: auto;
  align-content: start;
  height: 100%;
}
.portrait-wall:fullscreen .player-tile,
.portrait-wall.theater .player-tile {
  min-height: 0;
}
.portrait-wall .player-tile.expanded .player-body {
  aspect-ratio: auto;
  flex: 1;
}
.tile-viewers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  color: #b9f985;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  border: 1px solid #496039;
  border-radius: 5px;
  padding: 1px 5px;
  line-height: 18px;
}
.tile-viewers.unavailable {
  color: #809474;
  border-color: #35432d;
}
.audience-panel {
  margin-top: 28px;
  border: 1px solid #3a4930;
  border-radius: 16px;
  padding: 24px;
  background: linear-gradient(135deg, #1a2516, #121a10);
  box-shadow: 0 12px 48px #00000014;
}
.audience-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.audience-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 6px;
}
.audience-heading h2 {
  font-size: 24px;
  letter-spacing: -0.8px;
}
.audience-status {
  font-size: 11px;
  color: #b9f985;
  border: 1px solid #3c542c;
  border-radius: 20px;
  padding: 7px 12px;
  background: #b9f98508;
  white-space: nowrap;
}
.audience-status.finished {
  color: #abbda0;
  border-color: #3d4c34;
}
.audience-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 23px;
}
.audience-metric {
  border-left: 1px solid #37482b;
  padding-left: 23px;
  min-width: 0;
}
.audience-metric:first-child {
  border: 0;
  padding-left: 0;
}
.metric-label {
  font-size: 9px;
  letter-spacing: 1.1px;
  color: #8fa580;
  display: block;
}
.audience-metric > strong {
  display: block;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -1.6px;
  font-variant-numeric: tabular-nums;
  color: #def6cd;
  margin-top: 3px;
}
.audience-metric:first-child > strong {
  color: #b9f985;
}
.audience-metric > strong.is-partial:after {
  content: "*";
  font-size: 20px;
  vertical-align: super;
  margin-left: 2px;
  color: #e1c185;
}
.audience-chart {
  height: 65px;
  margin: 14px 0 8px;
  color: #a6e775;
  background: linear-gradient(0deg, #b9f98508, transparent);
  border-bottom: 1px solid #334729;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.audience-chart svg {
  height: 100%;
  width: 100%;
  overflow: visible;
}
.chart-empty {
  font-size: 11px;
  color: #7e9470;
  padding: 0 10px;
  text-align: center;
}
.audience-detail {
  color: #a8bd9a;
  font-size: 11px;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}
.audience-note {
  font-size: 11px;
  color: #7f9572;
  margin-top: 9px;
  max-width: 950px;
}
.audience-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.audience-actions:empty {
  display: none;
}
.audience-actions .button {
  font-size: 12px;
  padding: 10px 14px;
}
.audience-error {
  color: #efb8a7;
  font-size: 12px;
  margin-top: 9px;
}
.audience-error:empty {
  display: none;
}
.audience-disclosure {
  border-top: 1px solid #35472a;
  margin-top: 20px;
  padding-top: 7px;
}
.audience-disclosure summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #c9dcb9;
  font-size: 12px;
  gap: 9px;
  list-style: none;
}
.audience-disclosure summary::-webkit-details-marker {
  display: none;
}
.audience-disclosure summary:before {
  content: "+";
  color: #9ed66f;
  font-size: 18px;
  width: 16px;
}
.audience-disclosure[open] summary:before {
  content: "−";
}
.audience-source {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.9fr);
  gap: 8px 24px;
  padding: 15px 0;
  border-top: 1px solid #2d3d25;
}
.audience-source-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.source-platform {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: #a6d889;
}
.audience-source-label > strong {
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.audience-source-label > .small {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.audience-source-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: right;
  gap: 12px;
  align-items: center;
}
.audience-source-counts span {
  display: block;
  color: #829b73;
  font-size: 10px;
}
.audience-source-counts strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.4px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.audience-source-meta {
  grid-column: 1/-1;
  color: #7e9570;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.audience-snapshots {
  border-top: 1px solid #314329;
  margin-top: 12px;
  padding-top: 15px;
}
.audience-snapshots h3 {
  font-size: 13px;
  margin-bottom: 10px;
}
.snapshot-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #293922;
}
.snapshot-row > div {
  flex: 1;
  min-width: 0;
}
.snapshot-row strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #c4dcb2;
}
.snapshot-row span {
  display: block;
  font-size: 10px;
  color: #8fa47f;
}
.snapshot-row .button {
  font-size: 11px;
  padding: 8px 12px;
}
.icon-button,
.tile-heading .icon-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 12px;
}
.tile-heading {
  height: 44px;
  min-height: 44px;
}
.dialog-close {
  width: 44px;
  height: 44px;
}
.segmented button {
  min-height: 44px;
}
.tile-title {
  min-width: 0;
}
.tile-heading .provider-badge {
  max-width: 75px;
}
.tile-heading.has-viewers .provider-badge {
  display: none;
}
@media (min-width: 1800px) {
  .portrait-wall {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 1100px) {
  .view-choice {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .view-choice .field-help {
    grid-column: 1/-1;
  }
  .source-format {
    font-size: 16px;
  }
  .portrait-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .tile-heading {
    flex-wrap: wrap;
    height: auto;
    min-height: 44px;
  }
  .tile-title {
    flex-basis: calc(100% - 30px);
    font-size: 11px;
  }
  .tile-heading .tile-viewers {
    margin-left: auto;
  }
  .tile-heading .icon-button {
    margin-left: 0;
  }
  .tile-heading .provider-badge {
    display: none;
  }
  .tile-index {
    align-self: center;
  }
}
@media (max-width: 750px) {
  .view-choice {
    grid-template-columns: 1fr;
    margin: -8px 0 25px;
    gap: 7px;
  }
  .view-choice .field-help {
    grid-column: auto;
  }
  .analytics-choice {
    padding: 15px;
  }
  .analytics-choice > .field-help {
    margin-left: 0;
    margin-top: 10px;
  }
  .check-label {
    align-items: flex-start;
  }
  .check-label > input {
    margin-top: 3px;
  }
  .portrait-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-height: 0 !important;
    height: auto !important;
  }
  .portrait-wall.single-tile {
    grid-template-columns: minmax(0, 400px) !important;
  }
  .editor-grid.is-preview.portrait-wall {
    height: auto;
    min-height: 0;
  }
  .portrait-wall .empty-tile {
    min-height: 120px;
  }
  .tile-heading {
    padding: 0 4px;
    gap: 2px;
  }
  .tile-heading .icon-button {
    padding: 12px;
  }
  .tile-heading .tile-title {
    padding-top: 6px;
    flex-basis: calc(100% - 20px);
  }
  .tile-viewers {
    font-size: 9px;
    padding: 0 4px;
  }
  .audience-panel {
    padding: 18px 15px;
    margin-top: 22px;
    border-radius: 12px;
  }
  .audience-heading {
    align-items: flex-start;
    gap: 8px;
  }
  .audience-heading h2 {
    font-size: 22px;
  }
  .audience-status {
    white-space: normal;
    max-width: 145px;
    text-align: right;
    border: 0;
    padding: 0;
    font-size: 10px;
  }
  .audience-metrics {
    gap: 10px;
    margin-top: 21px;
  }
  .audience-metric {
    padding-left: 10px;
  }
  .metric-label {
    font-size: 8px;
    letter-spacing: 0.3px;
    min-height: 25px;
  }
  .audience-metric > strong {
    font-size: clamp(26px, 7vw, 37px);
    letter-spacing: -1px;
  }
  .audience-chart {
    height: 58px;
  }
  .audience-detail,
  .audience-note {
    font-size: 10px;
  }
  .audience-actions .button {
    flex: 1;
    white-space: normal;
    min-width: 135px;
    font-size: 11px;
  }
  .audience-source {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .audience-source-counts {
    text-align: left;
    max-width: 360px;
  }
  .audience-source-counts strong {
    font-size: 21px;
  }
  .audience-source-meta {
    grid-column: auto;
  }
  .snapshot-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .snapshot-row > div {
    flex-basis: 100%;
    padding-bottom: 3px;
  }
  .snapshot-row .button {
    flex: 1;
  }
  .audience-disclosure summary {
    font-size: 11px;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .portrait-wall {
    height: auto;
    min-height: 0;
  }
  .portrait-wall.theater {
    height: 100dvh;
  }
  .portrait-wall .player-body {
    max-height: calc(100dvh - 100px);
  }
}

/* Older iPad Safari versions do not support CSS aspect-ratio. */
@supports not (aspect-ratio: 9/16) {
  .portrait-wall .player-body::before {
    content: "";
    display: block;
    width: 100%;
    padding-top: 177.777778%;
  }
  .portrait-wall > .player-tile[data-format="landscape"] .player-body::before,
  .portrait-wall
    > .player-tile[data-format="auto"][data-detected-format="landscape"]
    .player-body::before {
    padding-top: 56.25%;
  }
  .portrait-wall .player-tile.expanded .player-body::before {
    display: none;
  }
}
