/* Theta Global Player Reset v5.1 — clean stable rebuild */

body.theta-player-active{padding-bottom:102px!important}

.theta-player-reset{
  position:fixed;
  left:6px;
  right:6px;
  bottom:8px;
  z-index:999999;
  height:84px;
  display:grid;
  grid-template-columns:260px 218px minmax(420px,1fr) 308px;
  gap:16px;
  align-items:center;
  padding:10px 14px;
  border:1px solid rgba(168,85,247,.55);
  border-radius:16px;
  background:
    radial-gradient(circle at 42% 50%,rgba(168,85,247,.16),transparent 31%),
    linear-gradient(180deg,rgba(7,10,18,.985),rgba(2,4,9,.995));
  box-shadow:0 24px 70px rgba(0,0,0,.62),0 0 28px rgba(168,85,247,.18);
  color:#fff;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  box-sizing:border-box;
  overflow:hidden;
}
.theta-player-reset *{box-sizing:border-box}
.theta-player-reset.is-hidden{opacity:0;pointer-events:none;transform:translateY(130%)}

.theta-player-track{
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  gap:11px;
  align-items:center;
  min-width:0;
  height:64px;
  padding-right:14px;
  border-right:1px solid rgba(255,255,255,.10);
}
.theta-player-cover{
  width:54px;
  height:54px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:10px;
  background:linear-gradient(135deg,#111827,#7c2d12);
  background-size:cover;
  background-position:center;
  padding:0;
}
.theta-player-meta{min-width:0}
.theta-player-meta strong{
  display:block;
  font-size:14px;
  line-height:1.05;
  font-weight:950;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.theta-player-meta small{
  display:block;
  margin-top:4px;
  color:rgba(230,235,255,.68);
  font-size:10px;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.theta-player-meta p{display:flex;gap:4px;flex-wrap:wrap;margin:6px 0 0}
.theta-player-meta span{
  padding:2px 6px;
  border-radius:7px;
  background:rgba(168,85,247,.18);
  color:#eadcff;
  font-size:8px;
  font-weight:900;
  box-shadow:0 0 10px rgba(168,85,247,.14);
}

.theta-player-controls{
  display:grid;
  grid-template-columns:34px 62px 34px 34px;
  gap:14px;
  align-items:center;
  justify-content:center;
  height:64px;
  min-width:218px;
}
.theta-player-controls button{
  display:grid;
  place-items:center;
  width:34px;
  height:42px;
  min-width:34px;
  border:0;
  background:transparent;
  color:#f8fafc;
  padding:0;
  margin:0;
  cursor:pointer;
  filter:drop-shadow(0 0 5px rgba(255,255,255,.16));
}
.theta-player-controls svg{display:block;width:27px;height:27px}
.theta-player-controls [data-repeat] svg{width:24px;height:24px;color:#c7cedb}
.theta-player-controls [data-repeat].is-on svg{color:#c084fc}

.theta-player-play{
  position:relative;
  width:60px!important;
  height:60px!important;
  min-width:60px!important;
  border-radius:999px!important;
  background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.11),rgba(255,255,255,.025) 58%,rgba(87,24,150,.27))!important;
  box-shadow:0 0 17px rgba(168,85,247,.62),0 0 35px rgba(168,85,247,.24),inset 0 0 13px rgba(255,255,255,.08)!important;
  isolation:isolate;
}
.theta-player-play::after{
  content:"";
  position:absolute;
  inset:-5px;
  border-radius:999px;
  background:conic-gradient(from -90deg,#d8b4fe 0deg,#a855f7 var(--theta-ring,0deg),rgba(168,85,247,.18) var(--theta-ring,0deg),rgba(168,85,247,.18) 360deg);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3px));
  mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3px));
  z-index:-1;
}
.theta-player-play span::before{
  content:"";
  position:absolute;
  left:22px;
  top:18px;
  width:6px;
  height:24px;
  border-radius:3px;
  background:#fff;
  box-shadow:10px 0 0 #fff,0 0 8px rgba(255,255,255,.30);
}
.theta-player-reset:not(.is-playing) .theta-player-play span::before{
  left:24px;
  top:18px;
  width:0;
  height:0;
  background:transparent;
  border-top:12px solid transparent;
  border-bottom:12px solid transparent;
  border-left:18px solid #fff;
  border-radius:0;
  box-shadow:none;
}

.theta-player-wavezone{
  min-width:0;
  width:100%;
  display:grid;
  grid-template-rows:42px 2px 12px;
  align-items:center;
}
.theta-player-wave{
  height:42px;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:2px;
  overflow:hidden;
  filter:drop-shadow(0 0 7px rgba(168,85,247,.22));
}
.theta-player-wave i{
  flex:1 1 auto;
  width:2px;
  min-width:2px;
  max-width:3px;
  border-radius:999px;
  background:linear-gradient(180deg,#f3e8ff 0%,#d8b4fe 24%,#a855f7 62%,#6d28d9 100%);
  box-shadow:0 0 5px rgba(168,85,247,.24);
}
.theta-player-wave i.is-muted{
  background:linear-gradient(180deg,#eef2ff 0%,#c8cce0 42%,#8d94a8 78%,#555b6a 100%);
  box-shadow:0 0 4px rgba(210,215,235,.12);
}
.theta-player-progress{
  width:100%;
  height:2px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  cursor:pointer;
}
.theta-player-progress span{
  display:block;
  width:0;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,#a855f7,#c084fc,#e9d5ff);
  box-shadow:0 0 8px rgba(168,85,247,.42);
  position:relative;
}
.theta-player-progress span::after{
  content:"";
  position:absolute;
  right:-3px;
  top:50%;
  width:7px;
  height:7px;
  border-radius:999px;
  transform:translateY(-50%);
  background:#e9d5ff;
  box-shadow:0 0 11px rgba(192,132,252,.75);
}
.theta-player-times{
  display:flex;
  justify-content:space-between;
  margin-top:3px;
  color:rgba(235,238,255,.76);
  font-size:9px;
  font-variant-numeric:tabular-nums;
}

.theta-player-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  height:56px;
}
.theta-player-actions label{
  display:flex;
  align-items:center;
  gap:6px;
  color:rgba(235,238,255,.74);
  font-size:8px;
  text-transform:uppercase;
  font-weight:950;
}
.theta-player-actions input{width:68px;accent-color:#a855f7}
.theta-player-actions button{
  height:34px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:12px;
  background:rgba(255,255,255,.055);
  color:#fff;
  padding:0 12px;
  font-size:11px;
  font-weight:950;
  cursor:pointer;
}
.theta-player-actions [data-close]{
  width:34px;
  min-width:34px;
  padding:0;
}

.theta-player-queue{
  position:absolute;
  right:14px;
  bottom:calc(100% + 10px);
  width:min(380px,calc(100vw - 32px));
  display:none;
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:12px;
  background:rgba(7,10,16,.96);
  box-shadow:0 28px 100px rgba(0,0,0,.55);
}
.theta-player-queue.is-open{display:block}
.theta-player-queue header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.theta-player-queue header button{border:0;background:transparent;color:#c084fc;font-weight:900}
.theta-player-queue [data-queue-list]{display:grid;gap:7px;max-height:320px;overflow:auto}
.theta-player-queue [data-queue-list] button{
  display:grid;
  grid-template-columns:40px 1fr;
  gap:9px;
  align-items:center;
  border:0;
  border-radius:12px;
  padding:7px;
  background:rgba(255,255,255,.055);
  color:#fff;
  text-align:left;
}
.theta-player-queue img{width:40px;height:40px;border-radius:8px;object-fit:cover}
.theta-player-queue small{display:block;color:#9ca6ba}

.theta-player-cinematic{
  position:fixed;
  inset:0;
  z-index:1000000;
  display:grid;
  place-items:center;
  background:radial-gradient(circle at 50% 18%,rgba(168,85,247,.34),transparent 34%),rgba(0,0,0,.90);
  backdrop-filter:blur(24px);
}
.theta-player-cinematic[hidden]{display:none}
.theta-player-cinematic>button{
  position:absolute;
  top:24px;
  right:24px;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:24px;
}
.theta-player-cinematic>div{
  width:min(980px,94vw);
  min-height:min(620px,84vh);
  border:1px solid rgba(255,255,255,.12);
  border-radius:40px;
  padding:clamp(28px,5vw,62px);
  background:linear-gradient(135deg,rgba(255,255,255,.09),rgba(255,255,255,.025));
  color:#fff;
}
.theta-player-cinematic h2{font-size:clamp(54px,8vw,112px);line-height:.86;letter-spacing:-.08em}

@media(max-width:1280px){
  .theta-player-reset{
    grid-template-columns:230px 204px minmax(360px,1fr) 250px;
    gap:10px;
  }
  .theta-player-controls{
    min-width:204px;
    grid-template-columns:32px 58px 32px 32px;
    gap:12px;
  }
  .theta-player-actions input{width:58px}
}
@media(max-width:1080px){
  body.theta-player-active{padding-bottom:210px!important}
  .theta-player-reset{
    height:auto;
    min-height:178px;
    grid-template-columns:1fr;
    overflow:visible;
  }
  .theta-player-track,
  .theta-player-controls,
  .theta-player-wavezone,
  .theta-player-actions{
    grid-column:1;
  }
  .theta-player-track{border-right:0;padding-right:0}
  .theta-player-controls{justify-self:center}
  .theta-player-actions{justify-content:center}
}

/* Theta Player v5.3 — waveform progress colors, safe CSS */
.theta-player-wave i{
  background:linear-gradient(180deg,#d7dbea 0%,#aeb5c8 44%,#70798f 100%)!important;
  box-shadow:0 0 4px rgba(210,215,235,.10)!important;
}

.theta-player-wave i.is-played{
  background:linear-gradient(180deg,#ffffff 0%,#e9d5ff 16%,#c084fc 48%,#8b5cf6 100%)!important;
  box-shadow:
    0 0 7px rgba(192,132,252,.45),
    0 0 14px rgba(168,85,247,.24)!important;
}
