img, svg {
    vertical-align: middle;
}

:root {
  --player-handle-reserve: 24px;
}

#record-container {
  /* display:none!important; */
}

/* Dedicated editing surface used when the player is opened with ?save=. */
html.export-mode body {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 0, 199, 0.11), transparent 30%),
    radial-gradient(circle at 88% 92%, rgba(34, 201, 136, 0.08), transparent 28%),
    #05070b;
}

html.export-mode body.has-desktop-sidemenu {
  padding-right: 0 !important;
}

html.export-mode header,
html.export-mode #player .video-details,
html.export-mode #creator,
html.export-mode .screen-in-screen,
html.export-mode .one-screen {
  display: none !important;
}

html.export-mode .cover-container,
html.export-mode .cover-container > main {
  width: 100% !important;
  max-width: none !important;
}

html.export-mode #player,
html.export-mode .video-container,
html.export-mode .video-container .main {
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
}

html.export-mode .video-container .main {
  box-sizing: border-box;
  padding: var(--export-panel-height, 255px) 20px calc(var(--export-controls-height, 84px) + 132px);
  background: transparent;
}

html.export-mode .main .camera {
  height: 100%;
}

html.export-mode .camera video {
  max-height: 100%;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

html.export-mode .camera::after {
  content: "CAM " attr(data-view);
  top: 10px;
  right: 10px;
  width: auto;
  height: auto;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(5, 7, 11, 0.72);
  color: #f8fafc;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  backdrop-filter: blur(10px);
}

html.export-mode .video-container .mini {
  bottom: calc(var(--export-controls-height, 84px) + 12px);
  left: 50%;
  width: min(760px, calc(100% - 28px));
  height: 100px;
  box-sizing: border-box;
  padding: 8px;
  gap: 8px;
  transform: translateX(-50%);
  justify-content: center;
  align-items: stretch;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  background: rgba(7, 10, 16, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

html.export-mode .mini > :first-child {
  margin-left: 0;
}

html.export-mode .mini .camera {
  width: 122px;
  max-width: 122px;
  border: 2px solid transparent;
  border-radius: 12px;
  opacity: .82;
  box-shadow: none;
  transition: border-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

html.export-mode .mini .camera:hover {
  border-color: var(--glow-color);
  opacity: 1;
  transform: translateY(-2px);
}

html.export-mode .mini .camera::after {
  top: 6px;
  right: 6px;
}

.export-workspace {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 110;
  width: min(1040px, calc(100vw - 28px));
  transform: translateX(-50%);
  color: #e7edf7;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(8, 11, 18, 0.88);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.export-workspace__topline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 10px;
}

.export-workspace__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #cbd5e1;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.export-workspace__back:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.24);
}

.export-workspace__heading {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.export-workspace__heading strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.export-workspace__eyebrow {
  color: #8894a7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.export-workspace__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: #a9b5c7;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.10);
}

.export-workspace__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.10);
}

.export-workspace__status[data-state="recording"] {
  color: #ff5f78;
  background: rgba(255, 55, 92, 0.11);
}

.export-workspace__status[data-state="recording"]::before {
  animation: export-recording-pulse 1.3s ease-in-out infinite;
}

.export-workspace__status[data-state="ready"] {
  color: #6ee7b7;
  background: rgba(34, 201, 136, 0.11);
}

.export-workspace__status[data-state="error"] {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
}

.export-workspace__body {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 0 14px 13px;
}

.export-workspace__name {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.export-workspace__name > span {
  color: #7d899c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.export-workspace__name input {
  width: 100%;
  min-width: 0;
  height: 38px;
  box-sizing: border-box;
  padding: 0 11px;
  color: #f8fafc;
  font: inherit;
  font-size: 12px;
  cursor: text;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.export-workspace__name input:focus {
  border-color: rgba(255, 0, 199, 0.62);
  box-shadow: 0 0 0 3px rgba(255, 0, 199, 0.10);
}

.export-workspace__metrics {
  display: flex;
  gap: 5px;
}

.export-workspace__metrics > span {
  display: grid;
  min-width: 70px;
  gap: 2px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.export-workspace__metrics small {
  color: #738096;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.export-workspace__metrics strong {
  color: #dce5f2;
  font-size: 11px;
  white-space: nowrap;
}

.export-workspace__help {
  grid-column: 1 / -1;
  margin: 0;
  color: #9aa7ba;
  font-size: 10px;
  line-height: 1.35;
}

.export-workspace__guide {
  grid-column: 1 / -1;
  display: block;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.028);
}

.export-workspace__guide summary {
  cursor: pointer;
  color: #b8c6d9;
  font-size: 12px;
  padding: 2px;
}
.export-workspace__guide[open] ol { margin-top: 12px; }
.export-workspace__guide[open] .export-timeline-key { margin-top: 12px; }

.export-workspace__guide ol {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  margin: 0;
  padding-left: 18px;
  color: #aab5c5;
  font-size: 9px;
  line-height: 1.4;
}

.export-workspace__guide li::marker {
  color: #f472d0;
  font-weight: 900;
}

.export-workspace__guide strong {
  color: #eef2f8;
}

.export-timeline-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 10px;
  max-width: 285px;
}

.export-timeline-key > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #91a0b4;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.export-key-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 14px;
  color: #071015;
  font-size: 6px;
  font-style: normal;
  font-weight: 900;
  border-radius: 4px;
}

.export-key-marker--camera { background: #f472d0; }
.export-key-marker--skip {
  width: 30px;
  height: 8px;
  border: 1px solid #fbbf24;
  background: repeating-linear-gradient(135deg, rgba(251, 191, 36, .8) 0 3px, rgba(251, 191, 36, .25) 3px 6px);
}
.export-key-marker--handle {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: #f8fafc;
  box-shadow: 0 0 0 1px rgba(5, 7, 11, .8);
}

.export-workspace__actions {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.export-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.export-action:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
}

.export-action--record {
  color: #ff8bb9;
  border-color: rgba(255, 0, 199, 0.28);
}

.export-action--secondary {
  color: #cbd5e1;
  border-color: rgba(203, 213, 225, .24);
  background: rgba(148, 163, 184, .08);
}

.export-action--stop {
  color: #fff;
  border-color: rgba(255, 77, 109, 0.62);
  background: rgba(255, 55, 92, 0.18);
}

.export-action--stop:hover {
  border-color: rgba(255, 107, 130, 0.88);
  background: rgba(255, 55, 92, 0.28);
}

.export-action--render {
  color: #03120d;
  border-color: transparent;
  background: linear-gradient(135deg, #65efbd, #22c988);
  box-shadow: 0 8px 24px rgba(34, 201, 136, 0.18);
}

.export-action--render:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #7cf5c9, #29d893);
}

.export-action:disabled {
  cursor: wait;
  opacity: .62;
  transform: none;
}

html.export-mode .controls {
  opacity: 1 !important;
  padding: 10px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78));
}

html.export-mode .central-controls {
  opacity: 1 !important;
}

html.export-mode .progress-overlay {
  z-index: 3;
  height: 28px;
  margin-bottom: 8px;
  pointer-events: none !important;
}

/* Keep the camera picker above the complete timeline, not a fixed 58px
   offset that overlaps as soon as the editor adds its section track. */
html.export-mode .controls { box-sizing: border-box; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
html.export-mode .playback-line { display: block; width: 100%; }

#pause-edit { display: none; }
.export-workspace[data-workflow="direct"][data-playing="true"] { display: block !important; }
.export-workspace[data-workflow="direct"][data-playing="true"] .export-workspace__body { display: none; }
.section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: #edf4fc; background: #101620; border: 1px solid #465269; border-radius: 10px; width: 100%; margin-bottom: 14px; padding: 4px 8px; box-sizing: border-box; }
.section-actions[hidden] { display: none; }
.section-actions__heading { display: flex; align-items: center; gap: 12px; margin-right: auto; font-size: 12px; }
html.export-mode .section-actions button { color: inherit; font-size: 13px; min-height: 44px; padding: 6px 10px; cursor: pointer; }
.section-actions > button { border-left: 1px solid #344052; }
.section-actions button[hidden] { display: none; }
.section-actions button:focus-visible { outline: 2px solid #60a5fa; }
html.export-mode .progress-overlay-skip[role="button"] { pointer-events: auto; cursor: pointer; }
html.export-mode .progress-overlay-skip.is-selected { outline: 2px solid white; outline-offset: 1px; }
@media (max-width: 720px) {
  .section-actions__heading { width: 100%; justify-content: space-between; }
  .section-actions > button { flex: 1 1 auto; }
}
.export-workspace[data-playing="true"] {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(620px, calc(100vw - 16px));
}
.export-workspace[data-playing="true"] .export-workspace__heading,
.export-workspace[data-playing="true"] .export-workspace__body > :not(.export-workspace__actions),
.export-workspace[data-playing="true"] .export-workspace__actions > :not(#stop-recording):not(#pause-edit) {
  display: none !important;
}
.export-workspace[data-playing="true"] .export-workspace__body { display: block; padding: 6px; border: 0; }
.export-workspace[data-playing="true"] .export-workspace__topline { grid-template-columns: auto 1fr; padding: 6px 10px; }
.export-workspace[data-playing="true"] .export-workspace__topline { min-width: 0; }
.export-workspace[data-playing="true"] .export-workspace__status { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.export-workspace[data-playing="true"] .export-workspace__actions { gap: 6px; }
.export-workspace[data-playing="true"] #pause-edit { display: inline-flex; }
.export-workspace[data-playing="true"] .export-action { min-height: 44px; padding: 8px 10px; }

html.export-mode .progress-overlay-camera {
  position: absolute;
  z-index: 2;
  top: 0;
  height: 28px;
  box-sizing: border-box;
  overflow: hidden;
  color: #071015;
  font-size: 11px;
  font-weight: 900;
  line-height: 28px;
  text-align: center;
  white-space: nowrap;
  border-radius: 3px;
  box-shadow: inset -1px 0 rgba(5, 7, 11, .42);
}

html.export-mode .progress-overlay-camera.is-selectable {
  cursor: pointer;
  pointer-events: auto;
}

html.export-mode .progress-overlay-camera.is-selectable:hover,
html.export-mode .progress-overlay-camera.is-selectable:focus-visible,
html.export-mode .progress-overlay-camera.is-selected {
  outline: 2px solid #fff;
  outline-offset: 1px;
  filter: brightness(1.15);
}

html.export-mode .progress-overlay-skip {
  position: absolute;
  z-index: 1;
  top: 0;
  height: 28px;
  box-sizing: border-box;
  overflow: hidden;
  color: #1c1402;
  font-size: 10px;
  font-weight: 900;
  line-height: 26px;
  text-align: center;
  white-space: nowrap;
  border: 1px solid #fbbf24;
  border-radius: 3px;
  background: repeating-linear-gradient(135deg, rgba(251, 191, 36, .9) 0 4px, rgba(251, 191, 36, .38) 4px 8px);
}

html.export-mode .progress-overlay-handle {
  position: absolute;
  z-index: 4;
  top: -3px;
  width: 16px;
  height: 34px;
  transform: translateX(-50%);
  cursor: ew-resize;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

html.export-mode .progress-overlay-handle::before {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 50%;
  width: 2px;
  border-radius: 2px;
  background: #f8fafc;
  box-shadow: 0 0 0 1px rgba(5, 7, 11, .9), 0 0 7px rgba(248, 250, 252, .55);
  transform: translateX(-50%);
}

html.export-mode .progress-overlay-handle:hover::before,
html.export-mode .progress-overlay-handle:focus-visible::before {
  width: 4px;
  background: #fff;
}

@keyframes export-recording-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .48; transform: scale(.75); }
}

@media (max-width: 720px) {
  html.export-mode .video-container .main {
    padding: var(--export-panel-height, 320px) 8px calc(var(--export-controls-height, 84px) + 110px);
  }

  .export-workspace {
    top: 8px;
    width: calc(100vw - 16px);
    max-height: 45dvh;
    overflow-y: auto;
  }

  .export-workspace__body {
    grid-template-columns: 1fr;
  }
  .export-workspace[data-playing="true"] .export-workspace__back { display: none; }
  .export-workspace[data-playing="true"] .export-workspace__topline { grid-template-columns: minmax(0, 1fr); padding-inline: 8px; }

  .export-workspace__metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .export-workspace__metrics > span {
    min-width: 0;
    padding-inline: 6px;
  }

  .export-workspace__guide {
    grid-template-columns: 1fr;
  }

  .export-workspace__guide ol {
    display: grid;
    gap: 3px;
  }

  .export-timeline-key {
    justify-content: flex-start;
    max-width: none;
  }

  .export-workspace__actions {
    justify-content: stretch;
    order: -1;
  }

  .export-action {
    flex: 1 1 auto;
    min-height: 44px;
  }

  html.export-mode .video-container .mini {
    height: 86px;
    justify-content: flex-start;
  }
  html.export-mode .mini .camera { flex: 0 0 104px; }
  html.export-mode .progress-overlay-handle { width: 24px; height: 44px; top: -8px; }
  html.export-mode .progress-overlay { margin-bottom: 16px; }
}

#creator {    
	position: absolute;
	bottom: 45px;
	left: 5px;
	z-index: 10000;
	width: 55px;
	height: 55px;
	overflow: hidden;
	box-shadow: -1px -1px 9px 0px black;
	border-radius: 100px;
	background-color:black
}

#creator img {
	height: 100%;
  width: 100%;
  object-fit: cover;
  margin: auto;
  display: block;
}

.top {
    z-index: 1;
    /*height: 300px;
    width: 180px;*/
    height: auto;
    width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bottom {
    z-index: 0;
    min-height: 20px;
    min-width: 20px;
}



.camera::after {
    background: #00000029;
    border-radius: 11px;
    content: attr(data-view);
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    z-index: 1;
    color: #ffffff;
    align-content: center;
    text-align: center;
    font-size: small;
}

.mini .camera-tools {
  display:flex;
}

.camera-tools {
  /*display:none;*/
  position:absolute;
  z-index:1;
      right: 19px;
    /*top: -7px;*/
}

.camera-tools > button {
  position:relative;
  height:32px;
}

.camera.no-feed {
  background: rgb(47 48 53) url(/images/no-feed.jpg) center center / contain no-repeat;
}

.camera.no-feed video {
  opacity: 0;
}

.camera {
    overflow: hidden;   
}

.main .camera {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 100dvh;
    width: 100%;
}


.camera video {
  display: block;
  max-width: 100%;
  max-height: 100dvh;
  height: auto;
  /*width: auto;*/
  object-fit: contain;
}
.mini {
  display: flex;
  flex-wrap: nowrap; /* 👈 Prevent wrapping to new lines */
  overflow-x: auto;   /* 👈 Allow horizontal scrolling if needed */
  gap: 10px;          /* Optional spacing between cameras */
  padding: 5px;       /* Optional visual spacing */
  box-sizing: border-box;
}


.mini .camera {
  flex: 0 0 auto;
  border: 2px solid var(--glow-color);
  /*max-width: calc(30% - 10px);*/
  max-width: 260px;
  /*width: 60%;*/
  border: 0px solid var(--glow-color);
  max-height: min-content;
  height: 100%;
  position:relative;
  border-radius: 13px;
  box-shadow: -1px -1px 9px 0px black;

}


.mini > :first-child {
  margin-left: auto;
}



.mini video {
  object-fit: contain;
	max-height:100%;
  border-radius:13px;
}

/*.mini .camera:last-of-type video {
    height:20vh;
}*/

/* Player layout: video on top, remaining space reserved below */
#player {
    height: 100dvh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    /* Make the video container fullscreen without causing scrolling */
.video-container {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    flex: 0 0 auto;
    max-height: calc(100dvh - var(--player-handle-reserve));
    /*height: auto;
	  max-height: 100dvh;*/
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
    /*justify-content: center;*/
}

/* Main area fills the fullscreen minus the height of the mini overlay */
.video-container .main {
    flex: 0 1 auto;
    min-height: 0;
    background-color: #0c0c0c;
    /* Background color for the main area */
    position: relative;
    z-index: 1;
    height: auto;
    max-height: calc(100dvh - var(--player-handle-reserve));
    width: 100%;
    text-align: center;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    /*display: flex;
    justify-content: center;
    align-items: end;*/
        margin-top: auto;
    margin-bottom: auto;
}

.video-container .main.no-feed::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    rgba(0,0,0,0.6) 
    url("/images/no-feed.jpg") center / contain no-repeat;
}

/* Mini area is an overlay at the bottom of the main content */
.video-container .mini {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    z-index: 3;
    transition: opacity 0.3s ease-out;
    /*justify-content: flex-end;*/
    display:none;
    height: 25%;
    align-items: flex-end;
}

#player .video-details {
    flex: 1 1 auto;
    min-height: var(--player-handle-reserve);
    background: linear-gradient(180deg, #090d14 0%, #070a11 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #94a3b8;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: height 260ms cubic-bezier(.22, .61, .36, 1);
}

#player .video-details.is-floating {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 9;
    box-shadow: 0 -14px 36px rgba(0, 0, 0, 0.45);
}

.player-meta {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
    padding: 0 14px 14px;
}

.player-meta-handle {
    width: 46px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    margin: 0 auto;
}

.player-meta-handle-hit {
    position: relative;
    width: 100%;
    height: 24px;
    flex: 0 0 24px;
    border: 0;
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.95) 0%, rgba(11, 18, 32, 0.65) 70%, rgba(11, 18, 32, 0) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-details {
    position: relative;
}

.video-details::after {
    content: "";
    position: absolute;
    inset: 24px 0 0 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease;
}

.video-details.is-floating::after {
    opacity: 0;
}

.player-meta-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.player-meta-scroll[data-open="false"] {
    pointer-events: none;
}

.player-meta-scroll[data-open="false"] .player-meta {
    filter: brightness(0.55);
}

.player-meta-title {
    font-size: clamp(20px, 3.4vw, 30px);
    line-height: 1.1;
    color: #94a3b8;
    margin: 0;
    letter-spacing: .2px;
}

.player-meta-desc {
    margin: 0;
    color: #64748b;
    line-height: 1.5;
    font-size: 14px;
}

.player-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.player-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.015);
    min-height: 30px;
}

.player-meta-label {
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 0;
    opacity: .9;
}

.player-meta-value {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    word-break: break-word;
}

.player-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.player-meta-tag {
    font-size: 11px;
    line-height: 1;
    padding: 7px 10px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #475569;
    text-decoration: none;
}

.player-meta-tag:hover {
    color: #94a3b8;
    text-decoration: underline;
}

.player-meta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.player-meta-btn {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.player-meta-btn.primary {
    border-color: rgba(34, 197, 94, 0.22);
    background: rgba(34, 197, 94, 0.08);
    color: #86efac;
}

.related-events {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.related-event {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.015);
    color: inherit;
}

.related-event-media {
    position: relative;
}

.related-event img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #0b1220;
}

.related-event-pill {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 7px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #d9e1f2;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.22);
    backdrop-filter: blur(6px);
}

.related-event-body {
    padding: 10px;
    display: grid;
    gap: 6px;
}

.related-event-title {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    line-height: 1.25;
}

.related-event-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-event-chip {
    font-size: 11px;
    color: #64748b;
    opacity: .9;
}

.player-comments {
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

.player-comments-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-comments-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 12px;
}

.player-comments-compose {
    display: grid;
    gap: 8px;
}

.player-comments-compose textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    padding: 10px;
    resize: vertical;
    min-height: 72px;
}

.player-comments-note {
    font-size: 12px;
    color: #64748b;
}

.player-comments-list {
    display: grid;
    gap: 8px;
}

.player-comment {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
}

.player-comment-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.player-comment-user {
    font-size: 12px;
    color: #cbd5e1;
    font-weight: 600;
}

.player-comment-time {
    font-size: 11px;
    color: #64748b;
}

.player-comment-body {
    font-size: 13px;
    color: #94a3b8;
    white-space: pre-wrap;
    word-break: break-word;
}

.player-comment-actions {
    margin-top: 8px;
    display: none;
    gap: 8px;
}

.player-comment.is-active .player-comment-actions,
.player-comment:focus-within .player-comment-actions {
    display: flex;
}

.player-comment-actions button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    color: #94a3b8;
    border-radius: 8px;
    font-size: 11px;
    padding: 4px 8px;
    cursor: pointer;
}

.player-blocked-users {
    display: grid;
    gap: 8px;
    margin-top: 6px;
}

.player-blocked-users-list {
    display: grid;
    gap: 6px;
}

.player-blocked-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.02);
    color: #94a3b8;
    font-size: 12px;
}

.player-blocked-user button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    color: #94a3b8;
    border-radius: 8px;
    font-size: 11px;
    padding: 4px 8px;
    cursor: pointer;
}

/* copied css for video player */
.controls {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    /*height: 40px;*/
    background-color: rgba(0,
            0,
            0,
            0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    opacity: 0;
    /*transition: opacity 0.3s ease-out;*/
    z-index: 3;
}

.controls button {
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    outline: none;
}

/*.left {
    position: relative;
    top: 1%;
    width: 70px;
    display: flex;
    justify-content: space-between;
}*/

.video-timer {
    position: relative;
    top: 3px;
    right: 6px;
    display: flex;
    flex-direction: row;
    color: #efefef;
    margin-left: 5px;
    font-size: 12px;
}

.separator {
    margin: 0 5px;
    font-size: 16px;
    font-family: "Open sans";
}

.right {
  display:flex;
  flex-direction: row;
    position: relative;
	  margin: -4px 0px 5px 10px;
    top: 1.5px;
    /*opacity:0;*/
}

.d-none {
	display: none!important;
}

button,
input {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
}

.volume-container {
    display: flex;
    align-items: center;
}

.volume {
    position: relative;
    left: 5px;
    width: 50px;
    height: 3px;
}

.playback-line {
    position: relative;
    top: 1px;
    height: 12px;
    background-color: #ddd;
    /*width: 40%;*/
    flex:1;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: #24c988;
    transition: width 0.1s linear;
}


.central-controls {
    opacity: 0;
    /*transition: opacity 0.3s ease-out;*/
}
/* play button */
.play {
    border: 0;
    background: transparent;
    box-sizing: border-box;
    width: 0;
    height: 74px;

    transition: 100ms all ease;
    cursor: pointer;
    border-width: 37px 0 37px 60px;
    z-index: 4;
    position: absolute;
    top: calc(50% - 4px);
	  left: calc(50% - 50px); 
    transform: translateY(-50%); 
}
  .play.paused {
    /*border-style: double;
    border-width: 0px 0 0px 60px;*/
     
  }

  .play .play-svg {
    display: block;
  }

  .play.paused .play-svg {
    display: none;
  }

  .play .pause-svg {
    display: none;
  }
  .play.paused .pause-svg {
    display: block;
  }


  .play:hover {
    border-color: transparent transparent transparent #fff;
  }

  .overlay {
    position:absolute;
    z-index: 2;
    margin:10px 10px;
    /*width: 100%;*/
    text-align: left;
  }

/* Webkit version for Chrome, Safari, Edge */
.playback-line {
    --thumb-size: 15px;
    --progress-ratio: 0;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    margin: 0;
    padding: 0;
    height: 12px;
    background: linear-gradient(
      to right,
      transparent 0,
      transparent calc(var(--thumb-size) / 2),
      var(--glow-color) calc(var(--thumb-size) / 2),
      var(--glow-color) calc((100% - var(--thumb-size)) * var(--progress-ratio) + (var(--thumb-size) / 2)),
      #fff calc((100% - var(--thumb-size)) * var(--progress-ratio) + (var(--thumb-size) / 2)),
      #fff calc(100% - (var(--thumb-size) / 2)),
      transparent calc(100% - (var(--thumb-size) / 2)),
      transparent 100%
    );
    border-radius: 999px;
    outline: none;
}

/* Webkit Slider Thumb */
.playback-line::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
	  margin-top: -2px; /* Align the thumb vertically */
    background-color: var(--glow-color);
    border-radius: 50%;
    cursor: pointer;

    position: relative;
    z-index: 1;
}

/* Webkit Track (this styles the entire track) */
.playback-line::-webkit-slider-runnable-track {
    height: 12px;
    background: transparent;
    border-radius: 999px;
}

/* Webkit Active Track (the progress color) */
.playback-line::-webkit-slider-runnable-track:before {
    content: none;
}

/* Webkit Active Track (the progress color, to match the Mozilla progress) */
.playback-line::-webkit-slider-runnable-track {
    background: transparent;
}

/* Set the initial value of the progress */
.playback-line {
    --progress: 0%;
}


/* Firefox */
.playback-line::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background-color: var(--glow-color); /* Thumb color */
    border-radius: 50%;
    cursor: pointer;
}

.playback-line::-moz-range-track {
    background: transparent;
    border-radius: 999px;
}

.playback-line::-moz-range-progress {
    background: transparent;
    border-radius: 999px;
}


.control-btn {
	z-index: 4;
    position: absolute;
    top: 50%;
    left: calc(50% - 100px);
    transform: translate(-50%, -50%);
    /*transition: opacity 0.3s ease-out;*/
    height: min(10%, 75px);
    width: min(10%, 75px);
    min-height: 40px;
}

.control-btn.forward {
	left: calc(50% + 100px);
} 


  /* spinner */
  .lds-spinner {
    /* change color here */
    color: #1c4c5b;
    margin: auto;
  }
  .lds-spinner,
  .lds-spinner div,
  .lds-spinner div:after {
    box-sizing: border-box;
  }
  .lds-spinner {
    color: currentColor;
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;

  }
  .lds-spinner div {
    transform-origin: 40px 40px;
    animation: lds-spinner 1.2s linear infinite;
  }
  .lds-spinner div:after {
    content: " ";
    display: block;
    position: absolute;
    top: 3.2px;
    left: 36.8px;
    width: 6.4px;
    height: 17.6px;
    border-radius: 20%;
    background: currentColor;
  }
  .lds-spinner div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
  }
  .lds-spinner div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
  }
  .lds-spinner div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.9s;
  }
  .lds-spinner div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.8s;
  }
  .lds-spinner div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.7s;
  }
  .lds-spinner div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.6s;
  }
  .lds-spinner div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.5s;
  }
  .lds-spinner div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.4s;
  }
  .lds-spinner div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.3s;
  }
  .lds-spinner div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.2s;
  }
  .lds-spinner div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.1s;
  }
  .lds-spinner div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
  }
  @keyframes lds-spinner {
    0% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }

  .loading {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background-color: #0000007d;
    /*opacity: 0.5;*/
  }

  .loading img {
	/*border: 2px solid #111113;*/
	width: 140px;
    margin: auto;
    border-radius: 300px;
    margin-top: 40px;
        scale: 2;
  }

.animate-border {
	animation: borderPulse 5s linear forwards;
}

@keyframes borderPulse {
	0% {
		border-color: darkgrey darkgrey darkgrey darkgrey;
	}
	25% {
		border-color: #24c988 #24c988 #24c988 #24c988;
	}
	35% {
		border-color: darkgrey darkgrey darkgrey darkgrey;
	}
	50% {
		border-color: #24c988 #24c988 #24c988 #24c988;
	}
	60% {
		border-color: darkgrey darkgrey darkgrey darkgrey;
	}
	75% {
		border-color: #24c988 #24c988 #24c988 #24c988;
	}
	85% {
		border-color: grey grey grey grey;
	}
	100% {
		border-color: #24c988 #24c988 #24c988 #24c988;
	}
}


.toggle-mute {
  display:none;
}


.progress-overlay-marker {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 14px;
    border-radius: 5px;
    transform: translate(-50%, -50%);
    font-size: x-small;
    text-align: center;
}

.progress-overlay-marker.cam {
  background: blue;
}

.progress-overlay-marker.start {
  background: green;
}

.progress-overlay-marker.end {
  background: red;
}
