.startup-status,
.qol-quick-panel,
.qol-notice,
.live-sports-hub {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

.startup-status {
  position: fixed;
  left: max(20px, env(safe-area-inset-left));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  gap: 5px;
  width: min(310px, calc(100vw - 40px));
  padding: 13px 14px;
  color: #f5f5f7;
  pointer-events: none;
  background: rgba(18, 18, 20, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: saturate(145%) blur(24px);
  backdrop-filter: saturate(145%) blur(24px);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.startup-status::before {
  content: "";
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(41, 151, 255, 0), rgba(41, 151, 255, 0.95), rgba(141, 243, 165, 0)) 0 0 / 48% 100% no-repeat,
    rgba(255, 255, 255, 0.12);
  animation: visorixStartupPulse 1200ms ease-in-out infinite;
}

.startup-status strong {
  font-size: 13px;
  line-height: 1.2;
}

.startup-status span {
  color: rgba(235, 235, 245, 0.68);
  font-size: 12px;
  line-height: 1.3;
}

body.qol-ready .startup-status {
  opacity: 0;
  transform: translateY(8px);
}

body.qol-ready .startup-status[hidden] {
  display: none;
}

.qol-quick-panel {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  top: max(20px, env(safe-area-inset-top));
  z-index: 12;
  width: min(286px, calc(100vw - 40px));
  color: #f5f5f7;
  pointer-events: none;
}

#onboardingGate:not([hidden]) ~ .qol-quick-panel {
  display: none;
}

.qol-quick-panel__toggle,
.qol-quick-panel__menu button,
.qol-quick-panel select,
.qol-notice button {
  font: inherit;
  letter-spacing: 0;
}

.qol-quick-panel__toggle {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  color: rgba(245, 245, 247, 0.92);
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  background: rgba(18, 18, 20, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: saturate(145%) blur(24px);
  backdrop-filter: saturate(145%) blur(24px);
}

.qol-quick-panel__toggle::after {
  content: "Open";
  float: right;
  color: rgba(235, 235, 245, 0.52);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.qol-quick-panel__toggle[aria-expanded="true"]::after {
  content: "Close";
}

.qol-quick-panel__menu {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 12px;
  pointer-events: auto;
  background: rgba(18, 18, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: saturate(145%) blur(26px);
  backdrop-filter: saturate(145%) blur(26px);
}

.qol-quick-panel__menu[hidden] {
  display: none;
}

.qol-quick-panel label {
  color: rgba(235, 235, 245, 0.58);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.qol-quick-panel select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: #f5f5f7;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  outline: none;
}

.qol-quick-panel select:focus {
  border-color: rgba(41, 151, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.2);
}

.qol-quick-panel__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.qol-quick-panel__actions button {
  min-height: 38px;
  color: #f5f5f7;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
}

.qol-quick-panel__actions button:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

#qolModeHint {
  min-height: 18px;
  color: rgba(235, 235, 245, 0.62);
  font-size: 12px;
  line-height: 1.35;
}

.qol-notice {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  width: min(380px, calc(100vw - 40px));
  padding: 13px;
  color: #f5f5f7;
  background: rgba(18, 18, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 4px solid #2997ff;
  border-radius: 8px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.46), inset 0 1px rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: saturate(145%) blur(24px);
  backdrop-filter: saturate(145%) blur(24px);
}

.qol-notice[hidden] {
  display: none;
}

.qol-notice[data-tone="warning"] {
  border-left-color: #ffd60a;
}

.qol-notice[data-tone="issue"] {
  border-left-color: #ff453a;
}

.qol-notice strong {
  font-size: 13px;
  line-height: 1.25;
}

.qol-notice span {
  grid-column: 1;
  color: rgba(235, 235, 245, 0.7);
  font-size: 12px;
  line-height: 1.35;
}

.qol-notice button {
  grid-row: 1 / span 2;
  grid-column: 2;
  min-height: 32px;
  padding: 7px 10px;
  color: #f5f5f7;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
}

.qol-account-helper {
  margin: 10px 0 0;
  color: rgba(235, 235, 245, 0.62);
  font-size: 12px;
  line-height: 1.4;
}

.playback-bar button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.playback-bar button::after {
  content: attr(aria-label);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.utility-bar #qolMoreButton {
  display: none;
}

body.qol-no-webxr #VRButton {
  opacity: 0.78 !important;
}

body.qol-no-webxr #qolModeHint {
  color: rgba(255, 214, 10, 0.84);
}

.live-sports-control {
  border-color: rgba(255, 214, 10, 0.42) !important;
  background: rgba(255, 214, 10, 0.12) !important;
}

.live-sports-control:hover,
.live-sports-control[aria-pressed="true"] {
  color: #fff !important;
  background: rgba(255, 214, 10, 0.22) !important;
  border-color: rgba(255, 214, 10, 0.72) !important;
}

.live-sports-hub {
  position: fixed;
  inset: 0;
  z-index: 34;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #f5f5f7;
  background:
    linear-gradient(135deg, rgba(8, 8, 10, 0.88), rgba(36, 0, 70, 0.74)),
    rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(135%) blur(26px);
  backdrop-filter: saturate(135%) blur(26px);
}

.live-sports-hub[hidden] {
  display: none;
}

body.live-sports-open #VRButton {
  display: none !important;
}

.live-sports-hub__panel {
  width: min(1080px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  overflow: auto;
  background: rgba(18, 18, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58), inset 0 1px rgba(255, 255, 255, 0.08);
}

.live-sports-hub__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.live-sports-hub__eyebrow {
  display: block;
  color: rgba(255, 214, 10, 0.82);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-transform: uppercase;
}

.live-sports-hub h2,
.live-sports-hub h3 {
  color: #f5f5f7;
  margin: 0;
  line-height: 1.15;
}

.live-sports-hub h2 {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 720;
}

.live-sports-hub h3 {
  font-size: 16px;
  font-weight: 700;
}

.live-sports-hub p {
  color: rgba(235, 235, 245, 0.68);
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.live-sports-hub button {
  font: inherit;
  letter-spacing: 0;
}

.live-sports-hub__close,
.live-sports-sponsors button {
  min-height: 38px;
  padding: 8px 12px;
  color: #f5f5f7;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.live-sports-hub__close:hover,
.live-sports-sponsors button:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.34);
}

.live-sports-hub__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.78fr);
  gap: 16px;
  padding: 16px;
}

.live-sports-event,
.live-sports-sponsors {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.live-sports-event {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
  min-height: 420px;
  overflow: hidden;
}

.live-sports-event__media {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  min-height: 320px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78)),
    radial-gradient(circle at 38% 22%, rgba(255, 214, 10, 0.36), transparent 30%),
    radial-gradient(circle at 72% 40%, rgba(255, 45, 85, 0.28), transparent 34%),
    linear-gradient(135deg, #15171d, #471224 52%, #101113);
}

.live-sports-event__media span,
.live-sports-event__media small,
.live-sports-event__status span {
  color: rgba(235, 235, 245, 0.64);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-transform: uppercase;
}

.live-sports-event__media strong {
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
}

.live-sports-event__body {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
}

.live-sports-event__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.live-sports-event__status strong {
  color: #ffd60a;
  padding: 5px 8px;
  background: rgba(255, 214, 10, 0.14);
  border: 1px solid rgba(255, 214, 10, 0.34);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  text-transform: uppercase;
}

.live-sports-event dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.live-sports-event dl div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.live-sports-event dt,
.live-sports-event dd {
  min-width: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.live-sports-event dt {
  color: rgba(235, 235, 245, 0.5);
  font-weight: 700;
}

.live-sports-event dd {
  color: rgba(245, 245, 247, 0.86);
}

.live-sports-pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.live-sports-pricing button {
  display: grid;
  gap: 5px;
  min-height: 64px;
  padding: 11px;
  color: #f5f5f7;
  text-align: left;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.live-sports-pricing button:hover {
  background: rgba(255, 214, 10, 0.14);
  border-color: rgba(255, 214, 10, 0.46);
}

.live-sports-pricing strong {
  color: #ffd60a;
  font-size: 18px;
  line-height: 1;
}

.live-sports-sponsors {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.live-sports-sponsors ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.live-sports-sponsors li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.live-sports-sponsors span {
  color: rgba(235, 235, 245, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.live-sports-sponsors strong {
  color: #8df3a5;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.live-sports-sponsors button {
  color: #111113;
  background: #ffd60a;
  border-color: rgba(255, 214, 10, 0.72);
}

.live-sports-sponsors button:hover {
  background: #ffe66b;
  border-color: #ffe66b;
}

@keyframes visorixStartupPulse {
  0% {
    background-position: -52% 0, 0 0;
  }

  100% {
    background-position: 152% 0, 0 0;
  }
}

@media (max-width: 860px) {
  .playback-bar button::after {
    display: none;
  }

  .utility-bar #qolMoreButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body:not(.qol-controls-expanded) #cameraPortalButton,
  body:not(.qol-controls-expanded) #projectionModeButton,
  body:not(.qol-controls-expanded) #swapEyesButton,
  body:not(.qol-controls-expanded) #qualityDiagnosticsToggleButton {
    display: none;
  }

  .qol-quick-panel {
    top: auto;
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom) + 78px);
    width: min(270px, calc(100vw - 24px));
  }

  .qol-notice {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
  }

  .live-sports-hub {
    align-items: end;
    padding: 12px;
  }

  .live-sports-hub__panel {
    max-height: calc(100vh - 24px);
  }

  .live-sports-hub__header {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .live-sports-hub__grid,
  .live-sports-event {
    grid-template-columns: 1fr;
  }

  .live-sports-event {
    min-height: 0;
  }

  .live-sports-event__media {
    min-height: 210px;
  }

  .live-sports-pricing {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .startup-status {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
  }

  .qol-quick-panel {
    width: min(235px, calc(100vw - 24px));
  }

  .qol-quick-panel__toggle {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .qol-quick-panel__menu {
    padding: 10px;
  }

  .qol-quick-panel__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .startup-status::before {
    animation: none;
  }
}
