.oneira-player {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: radial-gradient(ellipse at center, #16324a 0%, #071018 72%);
  color: #dceaf4;
  user-select: none;
  container-type: size;
  container-name: oneira-player;
}
.oneira-player-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  container-type: size;
}
.oneira-player-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.oneira-player.is-empty video { visibility: hidden; }
.oneira-player.is-empty .oneira-player-empty { display: flex; }
.oneira-player-empty {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  font-size: clamp(18px, 16cqmin, 52px);
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(197, 228, 244, 0.2);
  text-shadow: 0 0 24px rgba(90, 160, 200, 0.12);
}
.oneira-player-chrome {
  flex: 0 0 auto;
  padding: 4px 8px 8px;
  background: linear-gradient(180deg, rgba(8, 18, 28, 0.2), rgba(8, 18, 28, 0.92));
}
.oneira-player-scrub {
  width: 100%;
  height: 6px;
  margin: 0 0 6px;
  accent-color: #3aa0d8;
}
.oneira-player-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.oneira-player-time {
  justify-self: start;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #9ec3d8;
  min-width: 0;
}
.oneira-player-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.oneira-player-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #7ec8ea;
  background: radial-gradient(circle at 50% 40%, #4aa3d4, #1b5f86);
  color: #e8f6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.oneira-player-play svg { width: 16px; height: 16px; }
.oneira-player-skip,
.oneira-player-icon {
  background: transparent;
  color: #c5e2f2;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
}
.oneira-player-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.oneira-player-icon svg { width: 16px; height: 16px; }
.oneira-player-end {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  min-width: 0;
}
.oneira-player-vol {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.oneira-player-vol-pop {
  display: flex;
  align-items: center;
}
.oneira-player-vol-slider {
  width: 64px;
  max-width: 64px;
  min-width: 0;
  flex: 0 1 64px;
  height: 4px;
  accent-color: #3aa0d8;
}
@container oneira-player (max-width: 460px) {
  .oneira-player-vol-slider { max-width: 36px; width: 36px; flex-basis: 36px; }
}
@container oneira-player (max-width: 380px) {
  .oneira-player-vol-pop {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 28px;
    height: 50cqh;
    max-height: 50cqh;
    min-height: 40px;
    padding: 8px 0;
    background: rgba(10, 22, 34, 0.96);
    border: 1px solid rgba(120, 170, 200, 0.35);
    border-radius: 8px;
    z-index: 6;
    overflow: hidden;
  }
  .oneira-player-vol::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 10px;
  }
  .oneira-player-vol:hover .oneira-player-vol-pop,
  .oneira-player-vol:focus-within .oneira-player-vol-pop,
  .oneira-player-vol.is-open .oneira-player-vol-pop {
    display: flex;
  }
  .oneira-player-vol-slider {
    display: block;
    flex: none;
    margin: 0;
    padding: 0;
    width: 16px;
    max-width: 16px;
    min-width: 0;
    height: 100%;
    max-height: 100%;
    writing-mode: vertical-lr;
    direction: rtl;
    appearance: slider-vertical;
    -webkit-appearance: slider-vertical;
  }
}
.oneira-player-gear-wrap {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 4;
}
.oneira-player-gear {
  background: rgba(8, 18, 28, 0.45);
  border-radius: 8px;
}
.oneira-player-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 168px;
  padding: 8px;
  background: rgba(10, 22, 34, 0.96);
  border: 1px solid rgba(120, 170, 200, 0.35);
  border-radius: 8px;
  z-index: 3;
}
.oneira-player-menu-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8fb6cc;
  margin: 6px 0 4px;
}
.oneira-player-menu-title:first-child { margin-top: 0; }
.oneira-player-menu-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.oneira-player-menu-chip {
  background: #163044;
  color: #d5eaf6;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 999px;
}
.oneira-player-menu-chip.is-on {
  background: #2e7eab;
  color: #fff;
}
.oneira-player-menu-chip:disabled { opacity: 0.85; cursor: default; }
.oneira-player.is-empty .oneira-player-chrome { opacity: 0.85; }
.oneira-player.is-overlay {
  overflow: hidden;
}
.oneira-player.is-overlay .oneira-player-stage {
  position: absolute;
  inset: 0;
  flex: none;
  height: auto;
}
.oneira-player.is-overlay .oneira-player-chrome {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(8, 18, 28, 0), rgba(8, 18, 28, 0.78) 42%);
  transition: opacity 0.25s ease;
}
.oneira-player.is-overlay .oneira-player-gear-wrap {
  z-index: 4;
  transition: opacity 0.25s ease;
}
.oneira-player.is-overlay.is-chrome-hidden .oneira-player-chrome,
.oneira-player.is-overlay.is-chrome-hidden .oneira-player-gear-wrap {
  opacity: 0;
  pointer-events: none;
}
.oneira-player:fullscreen,
.oneira-player:-webkit-full-screen {
  width: 100%;
  height: 100%;
}
.profile-tile.is-video {
  overflow: hidden;
  padding: 0;
  background: #071018;
}
.profile-tile.is-video.has-widget-border {
  padding: 0;
}
