/* ==========================================================
   ORBITAL PLAYER v3 — PREMIUM PILL (ORGANISED CSS) ✅ FINAL
   Drop-in replacement for your current player CSS.
   Matches your HTML ids/classes exactly.

   Goals:
   ✅ Always visible while scrolling (NO translateY hide)
   ✅ No weird center gaps (rail fills center correctly)
   ✅ Plyr-like rail (clipped track, square buffer edge)
   ✅ Mini mode works on ALL screens (TV → phones)
   ✅ Mini has “…” menu access (volume/speed/share/embed)
   ✅ iOS safe-area support

   Sections:
   1) Design Tokens
   2) Base + Accessibility + Icons
   3) Player Shell (Fixed + Premium Pill)
   4) Left Area
   5) Center Area (Controls + Rail)
   6) Seek Rail (Plyr-like)
   7) Right Area (Buttons + Volume + Speed)
   8) Orbital Ring
   9) Drawer
   10) Popover (Mini “…” menu)
   11) Mini Mode (Compact)
   12) Responsive (TV/Laptop/Tablet/Phone)
========================================================== */


/* ==========================================================
   1) DESIGN TOKENS
========================================================== */
:root{
  --enoplay-font: var(--enoplay-font-body, ui-sans-serif, system-ui);

  /* FULL (main) */
  --orb-bg: #03104e;
  --orb-bg2: rgba(2,10,40,.92);
  --orb-text: #fafafa;
  --orb-muted: #afb1b6;
  --orb-stroke: rgba(255,255,255,.10);
  --orb-soft: rgba(255,255,255,.06);

  /* MINI (debug color) */
  --orb-mini-bg: rgba(52, 12, 84, .92);
  --orb-mini-bg2: rgba(28, 8, 44, .92);
  --orb-rail: rgba(255,255,255,.22);
  --orb-buffer: rgba(255,255,255,.22);
  --orb-fill: #ffa700;
  --orb-h: 104px;
  --orb-bottom: 20px;
  --orb-gap: 14px;
  --orb-pad-y: 14px;
  --orb-pad-x: 18px;
  --orb-radius: 28px;
  --orb-pill-radius: var(--orb-radius);
  --orb-shadow: 0 14px 40px rgba(0,0,0,.45);
  --orb-focus: rgba(255,255,255,.35);
  --orb-bar-z: 99999;
  --orb-drawer-z: 99998;

  /* iOS safe area */
  --orb-safe-b: env(safe-area-inset-bottom, 0px);
}


/* ==========================================================
   OPTIONAL ANIMATIONS
========================================================== */
@keyframes orb-popup{
  0%{ opacity:.5; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}


/* ==========================================================
   2) BASE + ACCESSIBILITY + ICONS
========================================================== */
.orb-offscreen{
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: polygon(0 0,0 0,0 0,0 0);
  position:absolute !important;
  height:1px; width:1px;
  overflow:hidden;
}

.eno-ico{
  width: 20px;
  height: 20px;
  display:block;
  fill: currentColor;
}

/* Prevent page content hiding behind fixed player */
body{
  padding-bottom: calc(var(--orb-h) + var(--orb-bottom) + var(--orb-safe-b) + 28px);
}


/* ==========================================================
   3) PLAYER SHELL (FIXED + PREMIUM PILL)
========================================================== */
.orbital-audio{
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--orb-bottom) + var(--orb-safe-b));
  z-index: var(--orb-bar-z);
  height: var(--orb-h);
  padding: 12px 14px;
  padding-bottom: calc(14px + var(--orb-safe-b));
  display: flex;
  align-items: center;
  background: transparent;
  color: var(--orb-text);
  font-family: var(--enoplay-font);

  /* ✅ Always visible while scrolling */
  transform: none !important;
  opacity: 1 !important;
}

/* Centered premium pill container */
.orbital-audio--pill .orbital-inner{
  width: min(1180px, calc(100vw - 28px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto; /* LEFT | CENTER | RIGHT */
  align-items: center;
  column-gap: 14px;
  height: 100%;
  padding: var(--orb-pad-y) var(--orb-pad-x);
  border-radius: var(--orb-pill-radius);
  background: linear-gradient(180deg, var(--orb-bg2), rgba(3,16,78,.86));
  border: 1px solid var(--orb-stroke);
  box-shadow: var(--orb-shadow);
  backdrop-filter: blur(10px);
  min-width: 0;
}


/* ==========================================================
   4) LEFT AREA (COVER + META)
========================================================== */
.orbital-left{
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  max-width: 360px; /* prevents stealing center space */
}

.orbital-art img{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0,0,0,.35);
}

.orbital-meta{
  min-width: 0;
  overflow: hidden;
}

.orbital-title{
  font-weight: 750;
  font-size: 18px;
  color: #ffa300;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orbital-artist{
  margin-top: 4px;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--orb-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ==========================================================
   5) CENTER AREA (CONTROLS + RAIL)
========================================================== */
.orbital-center{
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.orbital-controls{
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;

  text-align: left;
}

/* Buttons */
.orb-btn{
  border: 0;
  background: transparent;
  color: var(--orb-text);
  cursor: pointer;
  padding: 10px;
  border-radius: 14px;
  line-height: 1;
  transition: background .15s ease, transform .1s ease;
  flex: 0 0 auto;
}

.orb-btn:hover{ background: rgba(255,255,255,.08); }
.orb-btn:active{ transform: translateY(1px); }

.orb-btn:focus-visible{
  outline: 2px solid var(--orb-focus);
  outline-offset: 2px;
}

.orb-btn.is-on{
  background: rgba(255,167,0,.18);
  outline: 1px solid rgba(255,167,0,.35);
}

/* Primary play button */
.orb-btn-play{
  background: rgba(255,255,255,.10);
  padding: 12px;
  border-radius: 999px;
}
.orb-btn-play .eno-ico{ width: 26px; height: 26px; }

/* Time */
.orb-time{
  min-width: 58px;
  text-align: center;
  font-weight: 650;
  font-size: 14px;
  color: rgba(255,255,255,.86);
  user-select: none;
  flex: 0 0 auto;
}

/* Optional visualizer */
.orb-viz{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 40px;
  width: 100%;
  opacity: .22;
  pointer-events: none;
  filter: blur(.2px);
}

/* ==========================================================
   6) SEEK RAIL (PLYR-LIKE CLIPPED TRACK)
   Your HTML order:
   bg, marks, buffer, fill, handle, tip
========================================================== */
.orb-rail{
  position: relative;
  flex: 1 1 auto;
  min-width: 140px;
  height: 28px;
  cursor: pointer;
  user-select: none;
  min-width: 0;
}

/* Track (clips buffer + fill) */
.orb-rail-bg{
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--orb-rail);
  overflow: hidden; /* ✅ clip */
}

/* Buffer: square end like Plyr */
.orb-rail-buffer{
  position: absolute;
  left: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  width: 0%;
  background: var(--orb-buffer);
  opacity: .55;
  border-radius: 0 !important; /* ✅ */
  z-index: 1;
}

/* Fill on top */
.orb-rail-fill{
  position: absolute;
  left: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  width: 0%;
  background: var(--orb-fill);
  border-radius: 999px;
  z-index: 2;
}

/* Handle */
.orb-handle{
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--orb-fill);
  border: 3px solid rgba(255,255,255,.95);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  pointer-events: none;
  z-index: 5;
}

/* Rail hover premium */
.orb-rail:hover .orb-rail-bg,
.orb-rail:hover .orb-rail-buffer,
.orb-rail:hover .orb-rail-fill{
  height: 5px;
}

/* Chapter markers */
.orb-marks{
  position: absolute;
  left: 0; 
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 10px;
  pointer-events: none;
  z-index: 3;
}
.orb-mark{
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3px;
  height: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.55);
  box-shadow: 0 0 0 3px rgba(255,255,255,.05);
}

/* Tooltip */
.orb-tip{
  position: absolute;
  top: -58px;
  transform: translateX(-50%) translateY(10px) scale(.92);
  transform-origin: 50% 100%;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  color: #0b0f1a;
  font-weight: 800;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: transform .2s .1s ease, opacity .2s .1s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.orb-tip::after{
  content:"";
  position:absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(255,255,255,.92);
}

.orb-tip.is-show{
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  animation: orb-popup .18s ease both;
}

.orb-tip-cover{
  width: 26px;
  height: 26px;
  border-radius: 8px;
  object-fit: cover;
  display: none;
}
.orb-tip.has-cover .orb-tip-cover{ display: block; }
.orb-tip-time{ white-space: nowrap; }

/* Your Plyr buffer helpers (safe to keep) */
.plyr__progress__buffer::-webkit-progress-value{ border-radius: 0; }
.plyr__progress__buffer::-moz-progress-bar{ border-radius: 0; }
.plyr__progress__buffer::-ms-fill{ border-radius: 0; }


/* ==========================================================
   7) RIGHT AREA (BUTTONS + VOLUME + SPEED + MORE)
========================================================== */
.orbital-right{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.orb-volwrap{
  width: clamp(110px, 10vw, 170px);
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 90px;
}

.orb-vol{
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  outline: none;
}

.orb-vol::-webkit-slider-runnable-track{
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
}
.orb-vol::-moz-range-track{
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
}

.orb-vol::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--orb-fill);
  border: 3px solid rgba(255,255,255,.9);
  box-shadow: 0 10px 18px rgba(0,0,0,.25);
  margin-top: calc((14px - 5px) / -2);
}
.orb-vol::-moz-range-thumb{
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--orb-fill);
  border: 3px solid rgba(255,255,255,.9);
}

.orb-speed{
  background: rgba(255,255,255,.06);
  color: var(--orb-text);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 10px 10px;
  outline: none;
  flex: 0 0 auto;
  min-width: 68px
}

/* More button styling */
.orb-more{
  /*display: inline-flex;*/
  display:none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.orb-more:hover{ background: rgba(255,255,255,.10); }


/* ==========================================================
   8) ORBITAL RING
========================================================== */
.orb-ring{
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.06);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background .15s ease, transform .10s ease;
}
.orb-ring:hover{ background: rgba(255,255,255,.1); }
.orb-ring:active{ transform: translateY(1px); }

.orb-ring-svg{
  width: 40px;
  height: 40px;
  transform: rotate(-90deg);
}
.orb-ring-track{
  fill: none;
  stroke: rgba(255,255,255,.18);
  stroke-width: 4;
}
.orb-ring-prog{
  fill: none;
  stroke: rgba(255,255,255,.85);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 125.66;
  stroke-dashoffset: 125.66;
  transition: stroke-dashoffset .12s linear;
}
.orb-ring-dot{
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 0 0 4px rgba(255,255,255,.12);
  opacity: .9;
}


/* ==========================================================
   ORBITAL DRAWER (QUEUE) — COMPLETE FINAL (iPhone-safe)
   - No hard-coded sticky offsets (JS-free)
   - Search sticks under header automatically (using grid)
   - Grab handle (mobile sheet vibe)
   - Better list sizing + tiny-phone tweaks
   ========================================================== */

/* ===== Drawer shell ===== */
.orb-drawer{
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: calc(var(--orb-bottom) + var(--orb-safe-b) + var(--orb-h) + var(--orb-gap));
  z-index: var(--orb-drawer-z);

  /* sizing */
  max-height: min(420px, 60vh);
  overflow: hidden;

  /* look */
  background: rgba(18,18,18,.98);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--orb-radius);
  box-shadow: var(--orb-shadow);

  /* closed state */
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;

  transition: transform .18s ease, opacity .18s ease;

  /* IMPORTANT: make it layout like a sheet */
  display: grid;
  grid-template-rows: auto auto 1fr; /* header, search, list */
}

.orb-drawer,
.orb-drawer *{
  -webkit-tap-highlight-color: transparent;
}

.orb-drawer.is-open{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ===== Grab handle (mobile sheet vibe) ===== */
.orb-drawer-grab{
  display: none;
  padding: 10px 0 0;
}
.orb-grab-pill{
  display:block;
  width: 46px;
  height: 5px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
}

/* ==========================================================
   HEADER (row 1)
========================================================== */
.orb-drawer-head{
  /* stays visible even when list scrolls */
  position: sticky;
  top: 0;
  z-index: 3;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(18,18,18,.98);
}

.orb-drawer-title{
  font-weight: 650;
  letter-spacing: .4px;
  color: var(--orb-text);
  min-width: 0;
}

.orb-drawer-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

/* chip buttons */
.orb-chip{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--orb-text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.orb-chip:hover{ background: rgba(255,255,255,.10); }

/* ==========================================================
   SEARCH (row 2) — NO hard-coded "top"
========================================================== */
.orb-drawer-search{
  position: sticky;
  top: 0;            
  z-index: 2;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(18,18,18,.98);
}

.orb-search-ico{
  width: 18px;
  height: 18px;
  opacity: .85;
  flex: 0 0 auto;
}

.orb-search{
  width: 100%;
  min-width: 0;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);

  border-radius: 14px;
  padding: 12px 12px;
  outline: none;

  font-family: var(--enoplay-font, system-ui, -apple-system, Segoe UI, Roboto, Arial);
}

.orb-search:focus{
  border-color: rgba(255,255,255,.22);
}

/* Clear button */
.orb-search-clear{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  flex: 0 0 auto;
}
.orb-search-clear:hover{ background: rgba(255,255,255,.10); }

/* ==========================================================
   LIST (row 3) — the ONLY scrolling area
========================================================== */
.orb-list{
  overflow: auto;
  padding: 10px;

  /* iOS momentum scroll */
  -webkit-overflow-scrolling: touch;

  /* Let grid control height; no brittle calc needed */
  min-height: 0;
}

/* ==========================================================
   ROW (track item)
========================================================== */
.orb-item{
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 10px 10px;
  border-radius: 16px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

/* now-playing indicator (purple accent) */
.orb-item::before{
  content:"";
  position:absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: rgba(140,80,255,.0);
  transition: .18s ease;
}

.orb-item:hover{ background: rgba(255,255,255,.06); }
.orb-item.is-active{ background: rgba(255,255,255,.10); }

.orb-item.is-active::before{
  background: rgba(140,80,255,.95);
  box-shadow: 0 0 0 3px rgba(140,80,255,.18);
}

.orb-item img{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  flex: 0 0 auto;
  margin-left: 6px;
}

.orb-item-meta{
  min-width: 0;
  flex: 1;
}

.orb-item-title{
  font-weight: 700;
  font-size: 14px;
  color: rgba(255,255,255,.92);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.orb-item-artist{
  color: var(--orb-muted);
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* right side (duration + more) */
.orb-item-right{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.orb-item-dur{
  font-weight: 800;
  font-size: 12px;
  color: rgba(255,255,255,.72);
  white-space: nowrap;
}

.orb-item-more{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  cursor: pointer;
}
.orb-item-more:hover{ background: rgba(255,255,255,.10); }

/* ==========================================================
   ROW ACTIONS POPOVER
========================================================== */
.orb-row-pop{
  position: fixed;
  z-index: 100000;
  width: 190px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(18,18,18,.98);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.orb-row-pop.is-open{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.orb-row-act{
  width: 100%;
  text-align: left;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: transparent;
  color: rgba(255,255,255,.92);
  cursor: pointer;
}
.orb-row-act:hover{ background: rgba(255,255,255,.06); }

/* ==========================================================
   MOBILE / SMALL PHONES (iPhone etc.)
========================================================== */
@media (max-width: 760px){
  .orb-drawer{
    left: 10px !important;
    right: 10px !important;

    /* closer to the player, respects safe area */
    bottom: calc(10px + var(--orb-safe-b) + var(--orb-h) + 10px) !important;

    max-height: min(74vh, 620px) !important;
    border-radius: 22px !important;
    transform: translateY(14px);
  }

  .orb-drawer-grab{ 
    display:block; 
  }

  .orb-drawer-head{
    padding: 12px 12px !important;
  }

  .orb-drawer-title{
    font-size: 16px !important;
    letter-spacing: .2px !important;
  }

  .orb-chip{
    padding: 8px 10px !important;
  }

  .orb-drawer-search{
    padding: 10px 12px 12px !important;
  }

  .orb-search{
    padding: 12px 12px !important;
    border-radius: 14px !important;
  }

  .orb-item{
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .orb-item img{
    width: 46px !important;
    height: 46px !important;
    border-radius: 16px !important;
  }

  .orb-item-title{
    font-size: 14px !important;
    line-height: 1.15 !important;
  }
  .orb-item-artist{
    font-size: 12px !important;
  }
}

/* super tiny phones */
@media (max-width: 380px){
  .orb-drawer{ left: 8px !important; right: 8px !important; }
  .orb-chip{ padding: 8px 9px !important; }
  .orb-item-dur{ display: none; } /* saves space */
}

/* ===============================
   Drawer Width Control
   =============================== */

/* Desktop / large screens */
@media (min-width: 900px){
  .orb-drawer{
    max-width: 760px;          /* 👈 key control */
    /*max-width: min(720px, 100%);*/
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
  }
}

/* Large desktop / ultrawide */
@media (min-width: 1280px){
  .orb-drawer{
    max-width: 680px;          /* tighter = more premium */
  }
}

/* Mobile stays full-width */
@media (max-width: 760px){
  .orb-drawer{
    max-width: none;
    left: 10px !important;
    right: 10px !important;
  }
}

/* ==========================================================
   10) POPOVER (Mini “…” menu)
   Your .orb-pop is OUTSIDE the player (good)
========================================================== */
.orb-pop{
  position: fixed; 
  z-index: 99999;                     
  bottom: calc(100% + 10px);
  z-index: calc(var(--orb-bar-z, 120) + 5);
  width: min(320px, calc(100vw - 24px));
  padding: 12px;
  border-radius: 18px;
  background: rgba(3, 17, 24, 0.965);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  top: auto;                    /* important */
  bottom: auto;                 /* important */
  left: 0;     
}

.orb-pop.is-open{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.orb-pop__row{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 8px 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.orb-pop__icon{
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  display:grid;
  place-items:center;
  cursor:pointer;
}

.orb-pop__vol{
  flex: 1 1 auto;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  outline: none;
}

.orb-pop__vol::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--orb-fill);
  border: 3px solid rgba(255,255,255,.9);
  margin-top: calc((14px - 5px) / -2);
}

.orb-pop__links{
  padding: 10px 6px 6px;
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.orb-pop__link{
  width: 100%;
  text-align: left;
  padding: 12px 12px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  cursor: pointer;
}
.orb-pop__link:hover{ background: rgba(255,255,255,.06); }

.orb-pop__speed{
  margin-top: 8px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 6px 2px;
}

.orb-pop__label{
  color: rgb(15 208 255 / 91%);
  background: rgb(122 123 148 / 17%);
  border: 1px solid rgb(221 216 216 / 40%);
  min-width: 90px;
  border-radius: 12px;
  padding: 5px 8px;
  font-size: 13px;
  font-weight: 600;
}

.orb-pop__select{
  background: rgba(255,255,255,.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 12px 12px;
  outline: none;
  min-width: 90px;
}

/* On phones we still allow it to look full width */
@media (max-width: 760px){
  .orb-pop{
    width: auto;
    left: 12px !important;
    right: 12px !important;
  }
}

/* ==========================================================
   MINI MODE — COMPLETE (NO RAIL, NO GAPS)
========================================================== */

/* 0) Container size */
.orbital-audio.is-mini{
  left: 12px;
  right: 12px;
  bottom: calc(12px + var(--orb-safe-b)) !important;
  width: min(520px, calc(100vw - 36px));
  height: 86px;
  padding: 0 !important;
  max-width: none !important;
}

/* 1) 3 columns: LEFT | CENTER | RIGHT */
.orbital-audio.is-mini .orbital-inner{
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: max-content 1fr max-content !important;
  align-items: center !important;
  min-width: 0 !important;
  column-gap: 12px !important;
  justify-content: space-between !important;
  padding: 10px 12px !important;
  border-radius: var(--orb-radius) !important;
  background: linear-gradient(180deg, var(--orb-mini-bg), var(--orb-mini-bg2)) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}

/* 2) LEFT stays compact */
.orbital-audio.is-mini .orbital-left{
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  max-width: 260px !important;
}

.orbital-audio.is-mini .orbital-art img{
  width: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
}

/* mini meta */
.orbital-audio.is-mini .orbital-meta{ 
  min-width: 0 !important;
  overflow: hidden !important;
}

.orbital-audio.is-mini .orbital-title,
.orbital-audio.is-mini .orbital-artist{
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.orbital-audio.is-mini .orbital-title{
  font-size: 15px !important;
}

.orbital-audio.is-mini .orbital-artist{
  font-size: 12px !important;
  letter-spacing: .2px !important;
}

/* 3) CENTER = CONTROLS ONLY (THIS is what removes the gap) */
.orbital-audio.is-mini .orbital-center{
  min-width: 0 !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* controls shrink to content */
.orbital-audio.is-mini .orbital-controls{
  width: auto !important;
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
}

/* 4) Rail disabled in mini (no layout space reserved) */
.orbital-audio.is-mini .orb-rail{
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  flex: 0 0 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* 5) RIGHT stays tight */
.orbital-audio.is-mini .orbital-right{
  width: auto !important;
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
}

/* show “…” only in mini */
.orbital-audio.is-mini .orb-more{
  display: inline-flex !important;
}

/* 6) Compact buttons */
.orbital-audio.is-mini .orb-btn{ padding: 7px !important; }
.orbital-audio.is-mini .orb-btn-play{ padding: 9px !important; }
.orbital-audio.is-mini .orb-btn-play .eno-ico{
  width: 22px !important;
  height: 22px !important;
}

/* Hide heavy stuff in mini */
.orbital-audio.is-mini #orb-time-current,
.orbital-audio.is-mini #orb-time-duration,
.orbital-audio.is-mini .orb-rail,
.orbital-audio.is-mini .orb-viz,
.orbital-audio.is-mini .orb-hints,
.orbital-audio.is-mini .orb-marks,
.orbital-audio.is-mini .orb-tip{
  display: none !important;
}

/* Hide shuffle/repeat/mute in mini (force popover) */
.orbital-audio.is-mini .orb-ring,
.orbital-audio.is-mini #orb-btn-shuffle,
.orbital-audio.is-mini #orb-btn-repeat,
.orbital-audio.is-mini #orb-btn-mute,
.orbital-audio.is-mini .orb-volwrap,
.orbital-audio.is-mini #orb-volume,
.orbital-audio.is-mini .orb-speed{
  display: none !important;
}

/* 8) Drag helper */
.orbital-audio.is-mini.is-dragging{
  cursor: grabbing;
  user-select: none;
}

/* Debug: full */
.orbital-audio:not(.is-mini) .orbital-inner{
  box-shadow: 0 14px 40px rgba(0,0,0,.45), 
  0 0 0 2px rgba(255,167,0,.25);
}

/* Debug: mini */
.orbital-audio.is-mini .orbital-inner{
  box-shadow: 0 14px 40px rgba(0,0,0,.45), 
  0 0 0 2px rgba(140,80,255,.35) !important;
}

@media (max-width: 420px){
  .orbital-audio.is-mini{ width: calc(100vw - 24px); }
  .orbital-audio.is-mini .orbital-left{ max-width: 190px !important; }
}

/* ==========================================================
   12) RESPONSIVE
========================================================== */

/* TV / huge screens */
@media (min-width: 1600px){
  :root{ --orb-h: 110px; --orb-bottom: 22px; }
  .orbital-audio--pill .orbital-inner{
    width: min(1320px, calc(100vw - 48px));
    column-gap: 16px;
  }
  .orbital-left{ max-width: 420px; }
  .orb-volwrap{ width: 160px; }
  .orb-rail{ min-width: 220px; }
}

/* Laptops */
@media (max-width: 1200px){
  .orbital-audio--pill .orbital-inner{
    width: min(1040px, calc(100vw - 24px));
    padding: 12px 14px;
    column-gap: 12px;
  }
  .orbital-left{ max-width: 300px; }
  .orb-volwrap{ width: 120px; }
  .orb-rail{ min-width: 160px; }
}

/* Tablets */
@media (max-width: 980px){
  :root{ --orb-h: 108px; }
  .orbital-left{ max-width: 280px; }
  .orb-volwrap{ width: clamp(100px, 14vw, 140px); }
  .orb-rail{ min-width: 140px; }
}

/* Phones: Plyr-like stack (still fixed bottom) */
@media (max-width: 760px){
  :root{ --orb-h: auto; --orb-bottom: 0px; }

  body{
    padding-bottom: calc(170px + var(--orb-safe-b));
  }

  .orbital-audio{
    height: auto;
    bottom: 0;
    padding: 10px 10px;
    padding-bottom: calc(12px + var(--orb-safe-b));
  }

  .orbital-audio--pill .orbital-inner{
    width: calc(100vw - 20px);
    height: auto;
    display:flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
    padding: 12px 12px !important;
  }

  .orbital-left{
    width: 100%;
    max-width: none;
    justify-content: center;
  }

  .orbital-art img{
    width: 64px;
    height: 64px;
    box-shadow: 0 0 20px rgb(0 0 0 / 50%);
  }

  .orbital-center{
    width: 100%;
  }

  .orbital-controls{
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .orb-time{ display: none; }

  .orb-rail{
    width: 100% !important;
    min-width: 0;
    order: 50;
  }

  .orbital-right{
    width: 100%;
    justify-content: space-between;
  }

  /* popover centered on phones */
  .orb-pop{
    left: 12px;
    right: 12px;
    width: auto;
  }

  body{
    padding-bottom: calc(180px + var(--orb-safe-b));
  }
}

/* Small phones */
@media (max-width: 520px){
  .orbital-title{ font-size: 16px; }
  .orbital-artist{ font-size: 13px; }
  .orb-volwrap{ width: 92px; }
  .orb-btn{ padding: 8px; }
  .orb-btn-play{ padding: 10px; }
  .orb-handle{ width: 11px; height: 11px; }
}

/* Tiny phones */
@media (max-width: 360px){
  .orbital-artist{ display: none; }
  .orbital-audio.is-mini .orbital-meta{ display: none !important; }
  .orbital-audio.is-mini .orb-rail{ min-width: 70px; max-width: 150px !important; }
}