:root {
  --primary-dark: #0a0510;
  --glass-bg: rgba(5, 5, 5, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 14px;
  --accent: #dcd0ff;
  --text-dim: #8888aa;
}

* { box-sizing: border-box; outline: none; user-select: none; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px 0 24px;
  background-color: var(--primary-dark);
  position: relative;
}

body.party-vfx .bg-image{
  filter: brightness(0.62) contrast(1.2) saturate(1.35);
  animation: partyHueShift 8s linear infinite;
}
body.party-vfx .container{
  box-shadow:
    0 30px 70px rgba(0,0,0,0.78),
    0 0 40px rgba(220,208,255,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

@keyframes partyHueShift{
  0% { filter: brightness(0.62) contrast(1.2) saturate(1.35) hue-rotate(0deg); }
  50% { filter: brightness(0.66) contrast(1.2) saturate(1.5) hue-rotate(120deg); }
  100% { filter: brightness(0.62) contrast(1.2) saturate(1.35) hue-rotate(360deg); }
}

.bg-image {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("../Imagens/beachvibe.png");
  background-size: cover;
  background-position: center;
  z-index: -10;
  filter: brightness(0.5) contrast(1.1);
}

.vignette {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.95) 100%);
  z-index: -9;
  pointer-events: none;
}

.ocean-mist {
  position: fixed;
  bottom: 0; left: 0; width: 100%; height: 40%;
  z-index: -8;
  opacity: 0.6;
  pointer-events: none;
  mask-image: linear-gradient(to top, rgba(0,0,0,1), transparent);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1), transparent);
}

.mist-layer {
  position: absolute;
  bottom: 0; left: 0; width: 200%; height: 100%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 800 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.02' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.mist1 { animation: mistMove 40s linear infinite; opacity: 0.3; }
.mist2 { animation: mistMove 60s linear infinite reverse; opacity: 0.2; transform: scaleY(1.2); }

@keyframes mistMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

#rainCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 5;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 420px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.05);
  text-align: center;
}

@media (min-height: 860px){
  body{
    align-items: center;
    padding: 20px 0;
  }
}

h1 {
  font-family: "Outfit", sans-serif;
  font-weight: 200;
  font-size: 24px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.subtitle {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 30px;
  letter-spacing: 1px;
  font-weight: 400;
}

.subtitle a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted rgba(220, 208, 255, 0.3);
  transition: 0.3s;
}

.input-wrapper { margin-bottom: 20px; position: relative; }

input[type="text"] {
  width: 100%;
  padding: 15px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: 0.3s;
  user-select: text;
  -webkit-user-select: text;
}
input[type="text"]:focus {
  background: rgba(0,0,0,0.5);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(220, 208, 255, 0.1);
}

button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e1e24 0%, #101012 100%);
  color: rgba(255,255,255,0.7);
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  -webkit-appearance: none;
}
button:active { transform: scale(0.98); }

#status {
  margin-top: 25px;
  min-height: 20px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.track-info {
  margin-top: 5px;
  font-size: 13px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
  animation: pulseText 4s infinite;
}

.controls { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); }

.progress-box { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.time-txt { font-size: 10px; width: 30px; color: rgba(255,255,255,0.3); }

.bar-bg {
  flex: 1; height: 10px;
  display: flex; align-items: center;
  cursor: pointer; position: relative;
}
.bar-line {
  width: 100%; height: 3px; background: rgba(255,255,255,0.1);
  border-radius: 2px; position: relative; overflow: visible;
}
.bar-fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  border-radius: 2px;
}
.bar-knob {
  position: absolute; right: -6px; top: -5px; width: 13px; height: 13px;
  background: #fff; border-radius: 50%; opacity: 1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.volume-box { display: flex; justify-content: center; align-items: center; gap: 8px; opacity: 0.8; margin-top: 10px;}
input[type=range] { -webkit-appearance: none; background: transparent; width: 100px; }
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: rgba(255,255,255,0.2); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; height: 14px; width: 14px; border-radius: 50%;
  background: #fff; margin-top: -6px; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.advanced-audio-box{
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.20);
  transition: opacity .15s ease, border-color .15s ease, transform .15s ease;
}
.advanced-audio-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 1.3px;
  opacity: 0.84;
}
.advanced-audio-badge{
  font-size: 9px;
  letter-spacing: 1px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.05);
}
.advanced-audio-row{
  display: grid;
  grid-template-columns: 90px 1fr 50px;
  gap: 8px;
  align-items: center;
}
.advanced-audio-row + .advanced-audio-row{
  margin-top: 8px;
}
.advanced-audio-row label{
  font-size: 10px;
  letter-spacing: 0.8px;
  opacity: 0.75;
  text-transform: uppercase;
  text-align: left;
}
.advanced-audio-row input[type=range]{
  width: 100%;
}
.advanced-audio-value{
  font-size: 10px;
  letter-spacing: 0.5px;
  opacity: 0.88;
  text-align: right;
}
.advanced-audio-box.is-locked{
  opacity: 0.62;
  border-style: dashed;
  border-color: rgba(255,255,255,0.14);
  cursor: pointer;
}
.advanced-audio-box.is-locked .advanced-audio-row input[type=range]{
  pointer-events: none;
}
@media (max-width: 520px){
  .advanced-audio-row{
    grid-template-columns: 82px 1fr 46px;
  }
}

@keyframes pulseText { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

.hub-tabs{
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hub-tab{
  flex: 1;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.24);
  color: rgba(255,255,255,0.84);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 11px;
  letter-spacing: 0.6px;
  cursor: pointer;
}
.hub-tab.is-active{
  color: #fff;
  border-color: rgba(220,208,255,0.34);
  box-shadow: 0 0 0 1px rgba(220,208,255,0.18) inset;
  background: rgba(220,208,255,0.08);
}

.hub-panel{
  display: none;
}

.global-panel{
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: left;
}
.global-title{
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.55;
  margin-bottom: 10px;
  text-transform: uppercase;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.following-chip{
  font-size: 10px;
  letter-spacing: 1px;
  opacity: 0.75;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.2);
  display:none;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.global-list{
  max-height: 150px;
  overflow: auto;
  padding-right: 6px;
  -webkit-overflow-scrolling: touch;
}
.listener-sim-panel{
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(220,208,255,0.22);
  border-radius: 12px;
  background: rgba(10,6,16,0.35);
}
.listener-sim-title{
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 8px;
}
.listener-sim-controls{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.listener-sim-controls input{
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(0,0,0,0.24);
  color: #fff;
  font-size: 12px;
  padding: 8px 10px;
  outline: none;
}
.listener-sim-controls input:focus{
  border-color: rgba(220,208,255,0.5);
  box-shadow: 0 0 0 1px rgba(220,208,255,0.22) inset;
}
.listener-sim-actions{
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.listener-sim-check{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255,255,255,0.82);
}
.listener-sim-check input{
  accent-color: #dcd0ff;
}
.listener-sim-hint{
  min-height: 16px;
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.66);
}
.global-item{
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  line-height: 1.3;
}
.global-item:first-child{ border-top: none; padding-top: 0; }
.global-user{
  opacity: 0.95;
  font-size: 13px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.global-meta{
  opacity: 0.55;
  font-size: 11px;
  margin-top: 3px;
  letter-spacing: 0.5px;
}
.global-actions{
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mini-btn{
  padding: 8px 14px;
  font-size: 11px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.25);
  color:#fff;
  cursor:pointer;
  text-transform: none;
  letter-spacing: 0.5px;
  width:auto;
}
.mini-btn.owner-premium{
  border-color: rgba(220,208,255,0.34);
  background: rgba(220,208,255,0.09);
}
.mini-btn.owner-infinity{
  border-color: rgba(255,204,120,0.38);
  background: rgba(255,191,88,0.12);
}
.mini-btn.sim-danger{
  border-color: rgba(255,132,132,0.4);
  background: rgba(255,132,132,0.12);
}
.mini-btn.sim-toggle-on{
  border-color: rgba(136,255,170,0.42);
  background: rgba(136,255,170,0.12);
}

.settings-panel,
.fx-panel,
.friends-panel,
.sim-panel{
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: left;
}

.fx-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fx-card{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  border-radius: 12px;
  padding: 10px;
}
.fx-card-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fx-title{
  font-size: 12px;
  letter-spacing: 0.5px;
}
.fx-desc{
  margin-top: 6px;
  font-size: 10px;
  opacity: 0.72;
  line-height: 1.35;
}
.fx-slider-row{
  margin-top: 12px;
  display: grid;
  grid-template-columns: 86px 1fr 46px;
  align-items: center;
  gap: 8px;
}
.fx-slider-row label{
  font-size: 11px;
  opacity: 0.84;
}
.fx-slider-row input[type=range]{
  width: 100%;
}
#fxEchoValue{
  font-size: 10px;
  text-align: right;
  opacity: 0.84;
}
.fx-presets{
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.fx-presets .mini-btn{
  width: 100%;
  padding: 8px 10px;
  font-size: 10px;
  letter-spacing: 0.7px;
}
.fx-note{
  margin-top: 10px;
  font-size: 11px;
  opacity: 0.74;
}

.setting-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.setting-copy{
  flex: 1;
}
.setting-title{
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #fff;
}
.setting-desc{
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.68;
  line-height: 1.35;
}
.setting-switch{
  position: relative;
  width: 48px;
  height: 28px;
  display: inline-flex;
}
.setting-switch input{
  opacity: 0;
  width: 0;
  height: 0;
}
.setting-slider{
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  transition: .2s ease;
}
.setting-slider::before{
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  left: 4px;
  top: 3px;
  background: rgba(255,255,255,0.92);
  transition: .2s ease;
}
.setting-switch input:checked + .setting-slider{
  background: rgba(220,208,255,0.25);
  border-color: rgba(220,208,255,0.45);
}
.setting-switch input:checked + .setting-slider::before{
  transform: translateX(19px);
}
.setting-hint{
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.3px;
  opacity: 0.78;
}

.marketing-card{
  margin-top: 14px;
  border: 1px solid rgba(220,208,255,0.2);
  background: linear-gradient(135deg, rgba(220,208,255,0.09), rgba(255,255,255,0.03));
  border-radius: 14px;
  padding: 12px;
}
.marketing-title{
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.marketing-sub{
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.75;
}
.marketing-list{
  margin: 8px 0 0 16px;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 11px;
  opacity: 0.92;
}

.friends-note{
  font-size: 11px;
  opacity: 0.7;
  line-height: 1.35;
}
.friends-tools{
  margin-top: 10px;
  display: flex;
  gap: 8px;
}
.friends-tools input{
  flex: 1;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.2);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
}
.friends-tools input:focus{
  outline: none;
  border-color: rgba(220,208,255,0.5);
}
.friends-status{
  margin-top: 8px;
  min-height: 16px;
  font-size: 11px;
  opacity: 0.85;
}
.friends-incoming{
  margin-top: 10px;
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
}
.friends-incoming-actions{
  display: flex;
  gap: 8px;
}
.friends-incoming-actions .mini-btn{
  flex: 1;
  text-align: center;
}
.friends-incoming-text{
  font-size: 11px;
  opacity: 0.86;
  line-height: 1.35;
}
.friends-list{
  margin-top: 10px;
  max-height: 180px;
  overflow: auto;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 10px;
}
.friends-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.friends-actions{
  display: flex;
  align-items: center;
  gap: 6px;
}
.friends-actions .mini-btn{
  padding: 6px 10px;
  font-size: 10px;
}
.friends-item:first-child{
  border-top: none;
  padding-top: 0;
}
.friends-empty{
  font-size: 11px;
  opacity: 0.62;
  line-height: 1.35;
}

@media (max-width: 520px){
  .fx-grid{
    grid-template-columns: 1fr;
  }
  .fx-slider-row{
    grid-template-columns: 76px 1fr 42px;
  }
  .fx-presets{
    grid-template-columns: 1fr;
  }
  .friends-tools{
    flex-direction: column;
  }
  .friends-tools .mini-btn{
    width: 100%;
  }
}

.discord-panel{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: left;
  display:none;
}
.discord-title{
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.55;
  margin-bottom: 10px;
  text-transform: uppercase;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}
.discord-hint{
  display:none;
  margin-top: 10px;
  font-size: 11px;
  opacity: 0.75;
  line-height: 1.35;
  letter-spacing: 0.3px;
}
.discord-hint a{
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted rgba(220, 208, 255, 0.3);
}

audio.ios-audio{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  opacity:0;
}

#errOverlay{
  position:fixed;
  left:10px; right:10px; bottom:10px;
  background:rgba(0,0,0,0.75);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:14px;
  padding:10px 12px;
  font-size:11px;
  line-height:1.35;
  letter-spacing:0.3px;
  color:#ffd2d2;
  z-index:99999;
  display:none;
  white-space:pre-wrap;
  text-align:left;
}

/* ── AD MODE ── */
.ad-mode .container {
  border-color: rgba(255, 200, 50, 0.25);
  box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,200,50,0.12), 0 0 80px rgba(255,180,0,0.06);
}

.ad-badge {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.ad-mode .ad-badge { display: flex; }

.ad-badge-pill {
  background: linear-gradient(135deg, #e8a800 0%, #f5c518 50%, #e8a800 100%);
  background-size: 200% 200%;
  animation: adShimmer 2s ease infinite;
  color: #000;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 3px;
  padding: 5px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 2px 12px rgba(245,197,24,0.35);
}

.ad-badge-text {
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(255,200,50,0.6);
  animation: adFadeText 3s ease infinite;
}

@keyframes adShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes adFadeText {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes adPulseBar {
  0%, 100% { box-shadow: 0 0 6px rgba(245,197,24,0.4); }
  50% { box-shadow: 0 0 14px rgba(245,197,24,0.7); }
}

.ad-mode .bar-fill {
  background: linear-gradient(90deg, #e8a800, #f5c518, #e8a800) !important;
  background-size: 200% 100% !important;
  animation: adShimmer 1.5s linear infinite, adPulseBar 2s ease infinite !important;
  box-shadow: 0 0 10px rgba(245,197,24,0.5) !important;
}

.ad-mode .bar-knob {
  background: #f5c518 !important;
  box-shadow: 0 0 8px rgba(245,197,24,0.6) !important;
}

.ad-mode .bar-line {
  background: rgba(245,197,24,0.15) !important;
}

.ad-mode .track-info {
  color: #f5c518 !important;
  text-shadow: 0 0 10px rgba(245,197,24,0.3) !important;
}

.ad-mode #status .ad-sponsor {
  font-size: 10px;
  color: rgba(255,200,50,0.5);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.ad-glow {
  display: none;
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(245,197,24,0.08), transparent, rgba(245,197,24,0.05));
  pointer-events: none;
  z-index: -1;
  animation: adGlowPulse 3s ease infinite;
}
.ad-mode .ad-glow { display: block; }

@keyframes adGlowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ── CUSTOM TRACK UPLOAD ── */
.upload-panel {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.upload-panel.visible { display: block; }

.upload-title {
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.55;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.upload-dropzone {
  position: relative;
  padding: 18px 14px;
  border-radius: 14px;
  border: 1.5px dashed rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.15);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
}
.upload-dropzone:hover {
  border-color: rgba(220,208,255,0.3);
  background: rgba(0,0,0,0.25);
}
.upload-dropzone.dragging {
  border-color: var(--accent);
  background: rgba(220,208,255,0.05);
}
.upload-dropzone input[type="file"] {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.upload-icon {
  font-size: 20px;
  margin-bottom: 6px;
}
.upload-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
}
.upload-sublabel {
  font-size: 9px;
  color: rgba(255,255,255,0.25);
  margin-top: 4px;
  letter-spacing: 0.3px;
}
.upload-progress {
  display: none;
  margin-top: 10px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.upload-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}
.upload-status {
  display: none;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.5px;
}

.custom-track-badge {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 1.5px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(220,208,255,0.12);
  color: var(--accent);
  margin-bottom: 4px;
  text-transform: uppercase;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
}
/* ══════════════════════════════════════
   SUPPORT WIDGET — Intercom-style
   ══════════════════════════════════════ */

/* FAB Button */
.sw-fab {
  position: fixed; bottom: 20px; right: 20px; z-index: 900;
  width: 56px; height: 56px; border-radius: 16px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(99,102,241,0.4), 0 1px 3px rgba(0,0,0,0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sw-fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 8px 32px rgba(99,102,241,0.5), 0 2px 8px rgba(0,0,0,0.3); }
.sw-fab:active { transform: scale(0.95); }
.sw-fab svg { width: 24px; height: 24px; fill: #fff; transition: transform 0.3s; }
.sw-fab.is-open svg { transform: rotate(90deg) scale(0.8); }
.sw-fab .sw-unread {
  position: absolute; top: -4px; right: -4px; width: 18px; height: 18px;
  background: #ef4444; border-radius: 50%; border: 2.5px solid var(--bg, #09090b);
  display: none; animation: sw-pulse-dot 2s infinite;
}
@keyframes sw-pulse-dot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

/* Panel */
.sw-panel {
  position: fixed; bottom: 88px; right: 20px; z-index: 900;
  width: 380px; height: 560px;
  background: #0c0c0e;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  display: none; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden; font-family: "Inter", -apple-system, sans-serif;
  transform-origin: bottom right;
}
.sw-panel.open {
  display: flex;
  animation: sw-panel-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes sw-panel-in {
  from { opacity: 0; transform: scale(0.9) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Header */
.sw-header {
  padding: 22px 20px 18px;
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  color: #fff; position: relative; overflow: hidden;
}
.sw-header::after {
  content: ""; position: absolute; top: -40%; right: -20%; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.sw-header-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.sw-header-brand { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.sw-header-sub { font-size: 12px; opacity: 0.75; margin-top: 4px; font-weight: 400; position: relative; z-index: 1; }
.sw-online-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; display: inline-block; margin-right: 5px; box-shadow: 0 0 6px rgba(52,211,153,0.5); }
.sw-close {
  background: rgba(255,255,255,0.15); border: none; color: #fff; cursor: pointer;
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: background 0.2s;
}
.sw-close:hover { background: rgba(255,255,255,0.25); }

/* Body */
.sw-body {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  scrollbar-width: thin; scrollbar-color: #27272a transparent;
}
.sw-body::-webkit-scrollbar { width: 4px; }
.sw-body::-webkit-scrollbar-thumb { background: #27272a; border-radius: 4px; }

/* Views */
.sw-view { display: none; flex-direction: column; height: 100%; }
.sw-view.active { display: flex; }

/* ── Ticket List ── */
.sw-ticket-item {
  padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  cursor: pointer; transition: all 0.2s ease;
  position: relative;
}
.sw-ticket-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}
.sw-ticket-item .sw-ti-subject {
  font-size: 13px; font-weight: 600; color: #f4f4f5;
  margin-bottom: 6px; line-height: 1.4;
  display: flex; align-items: center; gap: 6px;
}
.sw-ticket-item .sw-ti-meta {
  font-size: 11px; color: #52525b; display: flex; align-items: center; gap: 8px;
}
.sw-ticket-status {
  font-size: 10px; padding: 3px 8px; border-radius: 6px; font-weight: 600;
  letter-spacing: 0.02em;
}
.sw-ticket-status.open { background: rgba(99,102,241,0.12); color: #818cf8; }
.sw-ticket-status.resolved { background: rgba(16,185,129,0.1); color: #34d399; }
.sw-has-reply {
  width: 8px; height: 8px; border-radius: 50%; background: #818cf8;
  display: inline-block; flex-shrink: 0;
  box-shadow: 0 0 8px rgba(129,140,248,0.5);
  animation: sw-pulse-dot 2s infinite;
}

/* New Ticket Button */
.sw-footer-bar {
  padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.01);
}
.sw-new-btn {
  width: 100%; padding: 12px; border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff; border: none;
  font-weight: 600; font-size: 13px; cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: all 0.2s; letter-spacing: -0.01em;
  box-shadow: 0 2px 12px rgba(99,102,241,0.25);
}
.sw-new-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(99,102,241,0.35); }
.sw-new-btn:active { transform: scale(0.98); }

/* ── New Ticket Form ── */
.sw-form-title {
  font-size: 15px; font-weight: 700; color: #f4f4f5;
  margin-bottom: 4px; letter-spacing: -0.02em;
}
.sw-form-subtitle {
  font-size: 12px; color: #52525b; margin-bottom: 18px;
}
.sw-form-field { margin-bottom: 14px; }
.sw-form-field label {
  display: block; font-size: 11px; color: #71717a;
  margin-bottom: 6px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.sw-form-field input, .sw-form-field textarea {
  width: 100%; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06); color: #f4f4f5;
  padding: 10px 14px; border-radius: 10px; font-size: 13px;
  font-family: "Inter", sans-serif; transition: all 0.2s;
}
.sw-form-field input::placeholder, .sw-form-field textarea::placeholder { color: #3f3f46; }
.sw-form-field input:focus, .sw-form-field textarea:focus {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.04);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.sw-form-field textarea { min-height: 100px; resize: none; line-height: 1.6; }
.sw-form-actions { display: flex; gap: 8px; margin-top: 4px; }
.sw-form-actions button {
  flex: 1; padding: 10px; border-radius: 10px; font-size: 13px;
  font-weight: 600; cursor: pointer; font-family: "Inter", sans-serif;
  transition: all 0.2s;
}
.sw-btn-cancel {
  background: rgba(255,255,255,0.04); color: #71717a;
  border: 1px solid rgba(255,255,255,0.06);
}
.sw-btn-cancel:hover { background: rgba(255,255,255,0.07); color: #a1a1aa; }
.sw-btn-submit {
  background: linear-gradient(135deg, #6366f1, #7c3aed); color: #fff; border: none;
  box-shadow: 0 2px 12px rgba(99,102,241,0.25);
}
.sw-btn-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(99,102,241,0.35); }
.sw-btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Chat View ── */
.sw-chat-header {
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.01);
}
.sw-back-btn {
  background: rgba(255,255,255,0.06); border: none; color: #a1a1aa; cursor: pointer;
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: all 0.2s; flex-shrink: 0;
}
.sw-back-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.sw-chat-subject {
  font-weight: 600; color: #f4f4f5; font-size: 13px;
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  letter-spacing: -0.01em;
}

.sw-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
  scrollbar-width: thin; scrollbar-color: #27272a transparent;
}
.sw-messages::-webkit-scrollbar { width: 4px; }
.sw-messages::-webkit-scrollbar-thumb { background: #27272a; border-radius: 4px; }

.sw-msg {
  max-width: 82%; padding: 10px 14px; border-radius: 16px;
  font-size: 13px; line-height: 1.55; white-space: pre-wrap;
  animation: sw-msg-in 0.25s ease;
}
@keyframes sw-msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.sw-msg.customer {
  align-self: flex-end;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff; border-bottom-right-radius: 6px;
}
.sw-msg.agent {
  align-self: flex-start;
  background: rgba(255,255,255,0.05);
  color: #e4e4e7;
  border: 1px solid rgba(255,255,255,0.06);
  border-bottom-left-radius: 6px;
}
.sw-msg-author { font-size: 10px; opacity: 0.5; margin-bottom: 3px; font-weight: 500; }

.sw-chat-input {
  padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.04);
  display: flex; gap: 8px; background: rgba(255,255,255,0.01);
}
.sw-chat-input input {
  flex: 1; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06); color: #f4f4f5;
  padding: 10px 14px; border-radius: 12px; font-size: 13px;
  font-family: "Inter", sans-serif; transition: all 0.2s;
}
.sw-chat-input input::placeholder { color: #3f3f46; }
.sw-chat-input input:focus {
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
}
.sw-chat-send {
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff; border: none; border-radius: 12px;
  padding: 10px 16px; cursor: pointer; font-weight: 600; font-size: 12px;
  font-family: "Inter", sans-serif; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  min-width: 44px;
}
.sw-chat-send:hover { box-shadow: 0 2px 12px rgba(99,102,241,0.3); }
.sw-chat-send:disabled { opacity: 0.4; cursor: not-allowed; }

.sw-empty {
  text-align: center; color: #3f3f46; padding: 40px 24px;
  font-size: 13px; line-height: 1.6;
}
.sw-empty-icon { font-size: 36px; opacity: 0.3; margin-bottom: 12px; }
.sw-login-msg {
  text-align: center; color: #52525b; padding: 40px 24px;
  font-size: 13px; line-height: 1.7;
}
.sw-login-msg strong { color: #a1a1aa; }

/* Toast from widget */
.sw-toast {
  position: absolute; top: 70px; left: 16px; right: 16px;
  background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.2);
  color: #34d399; padding: 10px 14px; border-radius: 10px;
  font-size: 12px; font-weight: 500; text-align: center; z-index: 10;
  animation: sw-toast-in 0.3s ease;
}
@keyframes sw-toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile responsive */
@media (max-width: 440px) {
  .sw-panel { width: calc(100vw - 16px); right: 8px; bottom: 80px; height: 70vh; border-radius: 16px; }
  .sw-fab { bottom: 16px; right: 16px; }
}

/* ══════════════════════════════════════
   SITE FOOTER
   ══════════════════════════════════════ */
.site-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.04);
  text-align: center;
}
.site-footer a {
  color: rgba(255,255,255,0.2);
  font-size: 11px;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: rgba(255,255,255,0.45);
}



/* ══════════════════════════════════════
   PREMIUM PROMPT (Paywall)
   ══════════════════════════════════════ */
.premium-overlay{
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: grid;
  place-items: center;
  padding: 18px;

  background: rgba(0,0,0,.55);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.premium-overlay.open{
  opacity: 1;
  pointer-events: auto;
}

.premium-modal{
  width: min(560px, calc(100vw - 28px));
  max-height: min(86vh, 760px);
  overflow: hidden;

  border-radius: 26px;
  background: rgba(10, 10, 14, 0.72);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 120px rgba(0,0,0,0.72), 0 0 0 1px rgba(255,255,255,0.05);

  opacity: 0;
  transform: translateY(14px) scale(.98);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), opacity 180ms ease;

  will-change: transform, opacity;
  contain: layout paint;
  position: relative;
}

.premium-modal::before{
  content:"";
  position:absolute;
  inset:-50% -50% auto -50%;
  height: 260px;
  background: radial-gradient(circle at 50% 50%, rgba(220,208,255,0.30), transparent 60%);
  filter: blur(24px);
  pointer-events:none;
}

.premium-overlay.open .premium-modal{
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: pmIn 220ms cubic-bezier(.2,.8,.2,1) both;
}

.premium-overlay.closing,
.premium-overlay.is-closing{
  opacity: 0;
  pointer-events: none;
}

.premium-overlay.closing .premium-modal,
.premium-overlay.is-closing .premium-modal{
  opacity: 0;
  transform: translateY(10px) scale(.99);
  animation: pmOut 220ms ease both;
}

/* ══════════════════════════════════════
   PREMIUM PROMPT (inner UI)
   ══════════════════════════════════════ */
.pm-close{
  position:absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.88);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 14px;
  transition: transform 160ms ease, background 160ms ease;
  z-index: 2;
}
.pm-close:hover{ background: rgba(255,255,255,0.10); transform: scale(1.03); }

.pm-head{ padding: 18px 18px 10px 18px; }
.pm-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 750;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  width: fit-content;
  margin-bottom: 10px;
}
.pm-title{
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.pm-sub{ font-size: 12px; opacity: 0.78; line-height: 1.35; }

.pm-compare{
  padding: 10px 18px 0 18px;
  display:flex;
  flex-direction: column;
  gap: 8px;
}

.pm-row{
  display:grid;
  grid-template-columns: 1fr 64px 74px;
  align-items:center;
  gap: 10px;
}

.pm-row-head{
  opacity: 0.72;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.pm-cell{
  padding: 10px 0;
}

.pm-feature{
  font-size: 12px;
  font-weight: 600;
  opacity: 0.92;
  padding-right: 10px;
}

.pm-row:not(.pm-row-head){
  border-top: 1px solid rgba(255,255,255,0.06);
}

.pm-no,
.pm-yes{
  text-align:center;
  font-size: 14px;
  font-weight: 800;
}
.pm-no{ opacity: 0.55; }
.pm-yes{ color: rgba(255,255,255,0.92); }

.pm-prem{ color: rgba(191,167,255,0.95); }

.pm-actions{
  padding: 14px 18px 18px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.pm-btn{
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  cursor:pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}
.pm-btn:hover{ background: rgba(255,255,255,0.10); transform: translateY(-1px); }

.pm-btn-primary{
  background: linear-gradient(135deg, rgba(99,102,241,0.95), rgba(124,58,237,0.95));
  border-color: rgba(255,255,255,0.10);
}
.pm-btn-primary:hover{ background: linear-gradient(135deg, rgba(99,102,241,1), rgba(124,58,237,1)); }

.pm-btn-ghost{
  background: rgba(255,255,255,0.04);
}

.pm-fineprint{ font-size: 11px; opacity: 0.68; text-align:center; }

@media (max-width: 420px){
  .pm-row{ grid-template-columns: 1fr 58px 66px; }
  .premium-modal{ border-radius: 22px; }
}

@keyframes pmIn{
  from{ transform: translateY(30px) scale(0.98); opacity:0; }
  to{ transform: translateY(0) scale(1); opacity:1; }
}
@keyframes pmOut{
  from{ transform: translateY(0) scale(1); opacity:1; }
  to{ transform: translateY(26px) scale(0.98); opacity:0; }
}

/* ══════════════════════════════════════
   LYRICS (LRCLIB test)
   ══════════════════════════════════════ */
.lyrics-wrap{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display:none;
  text-align:left;
}
.lyrics-wrap.visible{ display:block; }

.lyrics-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.lyrics-title{
  font-family: "Outfit", sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.55;
  text-transform: uppercase;
}
.lyrics-btn{
  padding: 8px 14px;
  font-size: 11px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.25);
  color:#fff;
  cursor:pointer;
  letter-spacing: 0.5px;
  width:auto;
}
.lyrics-btn:disabled{
  opacity: .5;
  cursor: not-allowed;
}
.lyrics-box{
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  background: rgba(0,0,0,0.18);
  overflow: hidden;
}
.lyrics-scroll{
  max-height: 220px;
  overflow: auto;
  padding: 10px 12px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  max-height: none;
  overscroll-behavior: contain;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.ly-line{
  padding: 6px 6px;
  border-radius: 10px;
  line-height: 1.35;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: background .15s ease, color .15s ease;
  white-space: pre-wrap;
}
.ly-line.active{
  background: rgba(220,208,255,0.10);
  color: rgba(255,255,255,0.92);
}
.ly-hint{
  padding: 10px 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  border-top: 1px solid rgba(255,255,255,0.08);
  line-height: 1.35;
}

body.lyrics-open{
  overflow: hidden; /* evita a página “subir”/scroll durante overlay */
}

/* Overlay */
.lyrics-overlay{
  position: fixed;
  inset: 0;
  --beat: 0;
  --hit: 0;
  --spin: 0;
  z-index: 10050;
  display: none;
  place-items: center;
  padding: 18px;
}

/* quando aberto */
.lyrics-overlay.is-open{
  display: grid;
}

/* Fundo com gradient animado */
.lyrics-bg{
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0;
}

/* Gradient base */
.lyrics-bg::before{
  content:"";
  position:absolute;
  inset:-35%;
  /* Apple Music-ish: layered radials + conic gradient */
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 98, 227, 0.55), transparent 55%),
    radial-gradient(circle at 82% 28%, rgba(99, 102, 241, 0.60), transparent 55%),
    radial-gradient(circle at 40% 92%, rgba(124, 58, 237, 0.55), transparent 58%),
    radial-gradient(circle at 92% 84%, rgba(16, 185, 129, 0.45), transparent 58%),
    conic-gradient(from calc(var(--spin,0)*1deg) at 50% 50%,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.00),
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.00),
      rgba(255, 255, 255, 0.06)
    );
  /* Aggressive reactive look */
  filter:
    blur(calc(28px - (var(--beat,0) * 10px)))
    saturate(calc(1.2 + (var(--beat,0) * 2.2)))
    contrast(calc(1.02 + (var(--beat,0) * 0.9)));
  transform:
    translate3d(0,0,0)
    scale(calc(1.04 + (var(--beat,0) * 0.28) + (var(--hit,0) * 0.18)))
    rotate(calc(var(--spin,0) * 1deg));
  transform-origin: 50% 50%;
  will-change: transform, filter;
  opacity: 0.98;
  animation: lyricsGradientDrift 8.5s ease-in-out infinite;
}

/* Vignette para dar profundidade */
.lyrics-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 50% 30%, rgba(0,0,0,0.20), rgba(0,0,0,0.78));
}

/* animação do background */
@keyframes lyricsGradientDrift{
  0%   { transform: translate3d(-2%, -2%, 0) scale(1.05); }
  50%  { transform: translate3d( 3%,  2%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, -2%, 0) scale(1.05); }
}

/* Sheet (conteúdo) */
.lyrics-sheet{
  position: relative;
  width: min(920px, calc(100vw - 24px));
  height: min(92vh, 860px);
  border-radius: 26px;
  overflow: hidden;
  overscroll-behavior: contain;

  /* glass leve por cima do gradient */
  background: rgba(10, 10, 14, 0.35);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 110px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.05);

  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Header */
.lyrics-topbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.lyrics-titlewrap{
  min-width: 0;
}
.lyrics-title{
  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.2px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lyrics-subtitle{
  margin-top: 3px;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Botões */
.lyrics-btn{
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  display:flex;
  align-items:center;
  gap: 8px;
  white-space: nowrap;
}
.lyrics-btn:hover{ background: rgba(255,255,255,0.12); transform: translateY(-1px); }
.lyrics-btn:active{ transform: scale(0.98); }

.lyrics-close{
  width: 40px;
  height: 40px;
  justify-content:center;
  padding: 0;
  border-radius: 14px;
}

/* Lista */
.lyrics-body{
  position: relative;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 26px 18px 26px 18px;
}

/* Texto das linhas */
.lyrics-line{
  position: relative;
  z-index: 1;

  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.2px;

  color: rgba(255,255,255,0.45);
  padding: 10px 6px;
  border-radius: 14px;
  transition: transform .18s ease, color .18s ease, background .18s ease, opacity .18s ease;
  opacity: 0.75;
  user-select: none;
}

.lyrics-line.active{
  color: rgba(255,255,255,0.98);

  /* glass pill (substitui o cinzento “flat”) */
  background: linear-gradient(90deg,
    rgba(255,255,255,0.10) 0%,
    rgba(255,255,255,0.05) 50%,
    rgba(255,255,255,0.08) 100%
  );
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px) saturate(1.25);
  -webkit-backdrop-filter: blur(10px) saturate(1.25);

  box-shadow:
    0 14px 34px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.14),
    inset 0 -1px 0 rgba(0,0,0,0.35);

  opacity: 1;
  transform: translateY(calc(var(--hit,0) * -1.5px)) scale(calc(1.02 + (var(--beat,0) * 0.05) + (var(--hit,0) * 0.06)));
  text-shadow:
    0 0 calc(14px + (var(--beat,0) * 22px)) rgba(255,255,255, calc(0.18 + (var(--beat,0) * 0.35))),
    0 0 calc(26px + (var(--beat,0) * 34px)) rgba(124,58,237, calc(0.12 + (var(--beat,0) * 0.35)));
  filter: brightness(calc(1.02 + (var(--beat,0) * 0.28)));
}

.lyrics-line.dim{
  opacity: 0.55;
}

/* Footer */
.lyrics-footer{
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

.lyrics-hint{
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}

/* Mobile: sheet full */
@media (max-width: 540px){
  .lyrics-sheet{
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    border-radius: 22px;
  }
  .lyrics-body{ padding: 22px 14px; }
}


/* ==============================
   PERFORMANCE (mobile / low power)
   ============================== */
@media (max-width: 600px){
  /* backdrop-filter is very expensive on many mobile GPUs */
  .card,
  .discord-panel,
  .upload-panel,
  .global-panel,
  .settings-panel,
  .friends-panel,
  #swPanel,
  .lyrics-sheet{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* soften heavy shadows */
  .card{
    box-shadow: 0 16px 30px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.04);
  }
  .bar-fill{ box-shadow: 0 0 6px var(--accent); }
  .bar-knob{ box-shadow: 0 1px 3px rgba(0,0,0,0.5); }
}

@media (prefers-reduced-motion: reduce){
  /* reduce animations/transitions to keep UI responsive */
  *{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


/* ══════════════════════════════════════
   TRANSPORT CONTROLS (Premium skip + lyrics)
   ══════════════════════════════════════ */
.transport-box{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  margin: 12px 0 6px 0;
}

.transport-btn{
  position: relative;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.92);
  padding: 10px 12px;
  border-radius: 14px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
  min-width: 44px;
  line-height: 1;
}

.transport-btn:hover{ background: rgba(255,255,255,0.08); transform: translateY(-1px); }
.transport-btn:active{ transform: scale(0.98); }

.transport-btn.is-locked{
  opacity: 0.68;
}

.transport-btn.is-locked::after{
  content:"🔒";
  position:absolute;
  right: 9px;
  top: 7px;
  font-size: 10px;
  opacity: 0.75;
  pointer-events:none;
}

.transport-lyrics{
  min-width: 118px;
}

.transport-btn.is-locked::after{
  content: "LOCK";
  right: 7px;
  top: 6px;
  font-size: 8px;
  letter-spacing: 0.4px;
}


/* ══════════════════════════════════════
   SUPPORT FAQ VIEW
   ══════════════════════════════════════ */
.sw-faq-title{
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.sw-faq-subtitle{
  font-size: 12px;
  opacity: 0.75;
  margin-bottom: 12px;
}

.sw-faq-item{
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(0,0,0,0.14);
  overflow: hidden;
}

.sw-faq-q{
  width: 100%;
  border: 0;
  background: transparent;
  color: #f4f4f5;
  cursor: pointer;
  text-align: left;
  padding: 12px 12px;
  font-weight: 650;
  font-size: 13px;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sw-faq-q:focus-visible{
  outline: 2px solid rgba(99,102,241,0.65);
  outline-offset: -2px;
}

.sw-faq-icon{
  margin-left: auto;
  opacity: 0.75;
  font-size: 16px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.sw-faq-a{
  max-height: 0;
  overflow: hidden;
  padding: 0 12px;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.86;
  transition: max-height 0.28s ease, padding 0.28s ease;
}

.sw-faq-item.open .sw-faq-a{
  max-height: 280px; /* suficiente para respostas longas */
  padding: 0 12px 12px 12px;
}

.sw-faq-item.open .sw-faq-icon{
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.95;
}

/* spacing entre cards (em vez de margin-bottom no item para não interferir com flex-gap) */
#swViewFaq .sw-body{ gap: 10px; }

.sw-faq-note{
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.75;
  line-height: 1.4;
}

.sw-faq-actions{
  display:flex;
  gap: 10px;
  margin-top: 12px;
}

.sw-faq-actions .sw-btn-cancel,
.sw-faq-actions .sw-btn-submit{
  flex: 1;
}


/* ══════════════════════════════════════
   LYRICS FULLSCREEN (Spotify/Apple Music style)
   ══════════════════════════════════════ */
/* defaults + interactive vars live on overlay */
.lyrics-overlay{
  --mx: 50%;
  --my: 35%;
  --h1: 265;
  --h2: 205;
  --h3: 315;
  --beat: 0;

  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  overflow: hidden;
}

.lyrics-overlay.is-open{
  display: block;
}

.lyrics-bg{
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.lyrics-bg::before{
  content:"";
  position:absolute;
  inset:-30%;
  background:
    conic-gradient(from 210deg at var(--mx) var(--my),
      hsl(var(--h1) 95% 62% / 0.22),
      hsl(var(--h2) 95% 62% / 0.18),
      hsl(var(--h3) 95% 62% / 0.22),
      hsl(var(--h1) 95% 62% / 0.22)),
    radial-gradient(1100px circle at var(--mx) var(--my), hsl(var(--h1) 90% 65% / 0.55), transparent 62%),
    radial-gradient(900px circle at calc(var(--mx) + 18%) calc(var(--my) - 10%), hsl(var(--h2) 90% 65% / 0.45), transparent 62%),
    radial-gradient(1000px circle at calc(var(--mx) - 22%) calc(var(--my) + 20%), hsl(var(--h3) 90% 65% / 0.40), transparent 64%),
    radial-gradient(900px circle at 60% 85%, rgba(255,255,255,0.10), transparent 65%);
  filter: blur(calc(40px - (var(--beat) * 10px))) saturate(calc(1.15 + (var(--beat) * 0.45)));
  transform: translate3d(0,0,0) rotate(calc(var(--beat) * 6deg)) scale(calc(1.05 + (var(--beat) * 0.10)));
  animation: lyricsDrift 14s ease-in-out infinite;
  will-change: transform;
}

.lyrics-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 50% 10%, rgba(0,0,0,0.10), rgba(0,0,0,0.88)),
    linear-gradient(180deg, rgba(0,0,0,0.30), rgba(0,0,0,0.65));
}

@keyframes lyricsDrift{
  0%   { transform: translate3d(-2%, -2%, 0) scale(1.05); }
  50%  { transform: translate3d( 3%,  2%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, -2%, 0) scale(1.05); }
}

.lyrics-ui{
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  /* true fullscreen + safe areas (iOS notch etc.) */
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.lyrics-header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 18px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lyrics-icon-btn{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  cursor:pointer;
  transition: transform .15s ease, background .15s ease;
  display:grid;
  place-items:center;
  font-size: 16px;
}

.lyrics-icon-btn:hover{ background: rgba(255,255,255,0.10); transform: translateY(-1px); }
.lyrics-icon-btn:active{ transform: scale(0.98); }

.lyrics-track{
  flex: 1;
  min-width: 0;
  text-align:center;
  padding: 0 6px;
}

.lyrics-track-title{
  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lyrics-track-subtitle{
  font-size: 12px;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lyrics-scroll{
  margin-top: 14px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;

  /*
    Apple Music-like centering:
    Big viewport-based padding so even the first lines can scroll to the center.
    This removes the "stuck at the top" feel.
  */
  padding:
    clamp(140px, 38vh, 360px)
    10px
    clamp(160px, 40vh, 420px)
    10px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}

/* quick Apple Music-like "pop" when a line becomes active (not slow; singing-friendly) */
@keyframes lyricPop{
  from{ opacity: 0.55; transform: translateY(6px) scale(0.995); }
  to  { opacity: 1;    transform: translateY(0)  scale(1.02); }
}

.lyrics-line{
  position: relative;
  padding: 10px 12px;
  border-radius: 18px;

  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(22px, 3.0vw, 40px);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: 0.2px;

  color: rgba(255,255,255,0.40);
  opacity: 0.70;
  transform: translateZ(0) scale(0.98);
  transition: transform 420ms cubic-bezier(.2,.8,.2,1), color 300ms ease, opacity 300ms ease;
  user-select: none;
}

.lyrics-line .lyrics-line-text{
  position: relative;
  z-index: 1;
}

/* ── Letter micro-animations (HYPE) ──────────────────────────────────── */
.lyrics-line .sp{ display:inline-block; width: 0.35em; }
.lyrics-line .ch{
  display: inline-block;
  white-space: pre;
  transform: translateY(0);
  opacity: 1;
  filter: blur(0px);
}

.lyrics-line.active .ch{
  opacity: 0;
  transform: translateY(0.14em);
  filter: blur(6px);
  animation: lyricCharIn 520ms cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--i, 0) * 12ms);
}

@keyframes lyricCharIn{
  0%   { opacity: 0; transform: translateY(0.22em) scale(0.98); filter: blur(10px); }
  60%  { opacity: 1; transform: translateY(-0.02em) scale(1.02); filter: blur(0px); }
  100% { opacity: 1; transform: translateY(0) scale(1.00); filter: blur(0px); }
}

.lyrics-line::before{
  content:"";
  position:absolute;
  /*
    Remove the old "grey pill/frame".
    This layer is now a soft blurred gradient glow that sits behind the active line.
    It feels on-theme (matches the animated background) and keeps text readable.
  */
  inset: -12px -18px;
  border-radius: 999px;
  background: radial-gradient(60% 120% at 30% 50%,
    hsla(var(--h1, 260), 90%, 65%, 0.22) 0%,
    hsla(var(--h2, 210), 90%, 60%, 0.14) 35%,
    rgba(255,255,255,0.00) 70%
  );
  filter: blur(18px);
  opacity: 0;
  transform: translateZ(0) scale(0.96);
  transition: opacity 260ms ease, transform 520ms cubic-bezier(.2,.8,.2,1);
}

.lyrics-line.active{
  color: rgba(255,255,255,0.96);
  opacity: 1;
  transform: translateZ(0) scale(1.02);
}

.lyrics-line.enter{
  animation: lyricPop 180ms ease-out;
}

.lyrics-line.active::before{
  opacity: 1;
  transform: translateZ(0) scale(1);
}

.lyrics-line.active::after{
  content:"";
  position:absolute;
  inset: 6px 8px;
  border-radius: 18px;
  z-index: 0;
  pointer-events:none;

  /* SHINE / shimmer */
  background: linear-gradient(110deg,
    rgba(255,255,255,0.00) 0%,
    rgba(255,255,255,0.12) 35%,
    rgba(255,255,255,0.28) 50%,
    rgba(255,255,255,0.12) 65%,
    rgba(255,255,255,0.00) 100%
  );
  background-size: 220% 100%;
  animation: lyricShimmer 1.45s linear infinite;

  filter: blur(12px);
  opacity: 0.92;

  /* progress reveal (usa --p) */
  clip-path: inset(0 calc(100% - (var(--p, 0) * 100%)) 0 0 round 18px);
}

/* ── HYPE bursts (flying repeated words like "nah nah") ─────────────── */
.lyric-burst-layer{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999999; /* above overlay */
}

.lyric-burst{
  position: absolute;
  font-family: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0;
  transform: translate3d(0,0,0) scale(0.92) rotate(0deg);
  filter: blur(0px);
  mix-blend-mode: screen;
  will-change: transform, opacity, filter;

  background: linear-gradient(90deg,
    hsla(var(--h1, 260), 95%, 70%, 0.95),
    hsla(var(--h2, 210), 95%, 65%, 0.95),
    hsla(var(--h3, 320), 95%, 70%, 0.95)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  text-shadow:
    0 8px 26px rgba(0,0,0,0.45),
    0 0 26px rgba(255,255,255,0.12);
}

@keyframes burstFloat{
  0%   { opacity: 0; transform: translate3d(0, 16px, 0) scale(0.88) rotate(var(--r, 0deg)); filter: blur(10px); }
  14%  { opacity: 1; filter: blur(0px); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--dx, 0px), calc(var(--dy, -120px)), 0) scale(1.10) rotate(calc(var(--r, 0deg) * 1.2)); filter: blur(2px); }
}

/* tiny beat punch (driven by --beat set in JS) */
.lyrics-line.active .lyrics-line-text{
  transform: translateZ(0);
  text-shadow:
    0 0 calc(10px + (var(--beat, 0) * 20px)) rgba(255,255,255,0.10),
    0 0 calc(18px + (var(--beat, 0) * 34px)) hsla(var(--h2, 210), 90%, 60%, 0.10);
}

/* ── Placeholder (no synced lyrics) ────────────────────────────────────── */
/*
  IMPORTANTE: este placeholder NÃO usa o "pill/frame" das linhas ativas.
  Em vez disso, usa um blob/gradiente com shimmer suave no fundo + texto com destaques.
*/
.lyrics-empty{
  position: relative;
  padding: 14px 8px;
  margin: 10px 0;
  text-align: center;
  border-radius: 18px;
  background: none;
}

/* blob colorido (sem caixa cinzenta) */
.lyrics-empty::before{
  content:"";
  position:absolute;
  left: 50%;
  top: 50%;
  width: min(900px, 92%);
  height: 1.9em;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events:none;

  background: radial-gradient(closest-side,
    rgba(255,255,255,0.14),
    rgba(180,120,255,0.10) 45%,
    rgba(90,220,255,0.08) 70%,
    rgba(255,255,255,0.00) 100%
  );
  filter: blur(18px);
  opacity: 0.95;
  animation: lyricsEmptyBreath 2.2s ease-in-out infinite;
}

/* shine/shimmer a "passar" por trás do texto */
.lyrics-empty::after{
  content:"";
  position:absolute;
  left: 50%;
  top: 50%;
  width: min(1000px, 96%);
  height: 2.2em;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events:none;

  background: linear-gradient(110deg,
    rgba(255,255,255,0.00) 0%,
    rgba(255,255,255,0.10) 35%,
    rgba(255,255,255,0.22) 50%,
    rgba(255,255,255,0.10) 65%,
    rgba(255,255,255,0.00) 100%
  );
  background-size: 240% 100%;
  animation: lyricShimmer 1.6s linear infinite;
  filter: blur(16px);
  opacity: 0.40;
}

.lyrics-empty-text{
  position: relative;
  z-index: 1;
  font-weight: 700;
  letter-spacing: 0;
  color: rgba(255,255,255,0.86);
  text-shadow: 0 6px 24px rgba(0,0,0,0.55);
}

/* destaque (texto com power) */
.lyrics-empty-text .em{
  background: linear-gradient(90deg,
    rgba(255,255,255,0.95),
    rgba(180,120,255,0.95),
    rgba(90,220,255,0.95),
    rgba(255,255,255,0.95)
  );
  background-size: 220% 100%;
  animation: lyricsEmptyGradient 2.8s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lyrics-empty-text .sub{
  opacity: 0.70;
  font-weight: 600;
}

@keyframes lyricsEmptyBreath{
  0%,100% { transform: translate(-50%, -50%) scaleY(1.00); opacity: 0.85; }
  50%     { transform: translate(-50%, -50%) scaleY(1.10); opacity: 1.00; }
}

@keyframes lyricsEmptyGradient{
  0%   { background-position: 0% 0; }
  100% { background-position: 220% 0; }
}

.lyrics-line.dim{
  opacity: 0.40;
}

.lyrics-bottom{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 18px;

  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lyrics-hint{
  font-size: 12px;
  opacity: 0.72;
}

#lyricsStatus{
  font-size: 12px;
  opacity: 0.78;
  white-space: nowrap;
}

@media (max-width: 540px){
  .lyrics-scroll{
    padding:
      clamp(110px, 36vh, 300px)
      2px
      clamp(130px, 38vh, 340px)
      2px;
  }
  .lyrics-line{ font-size: clamp(20px, 6vw, 34px); }
}

@media (max-width: 600px){
  /* backdrop-filter is expensive on low-end mobile GPUs */
  .lyrics-header,
  .lyrics-bottom{
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (prefers-reduced-motion: reduce){
  .lyrics-bg::before{ animation:none; }
  .lyrics-line,
  .lyrics-icon-btn{ transition:none !important; }
}



/* hide scrollbars inside lyrics */
.lyrics-scroll::-webkit-scrollbar{ width: 0; height: 0; }
.lyrics-scroll{ scrollbar-width: none; -ms-overflow-style: none; }


/* Beat pulse (quick, not distracting) */
.lyrics-overlay.beat-hit .lyrics-bg::before{
  animation-duration: 9s; /* keep drift but allow subtle snap */
}
.lyrics-overlay.beat-hit .lyrics-ui{
  animation: lyricsBeatPulse 220ms ease-out;
}
.lyrics-line.beat-hit{
  animation: lyricsLineBeat 200ms ease-out;
}
@keyframes lyricsBeatPulse{
  0%{ transform: scale(1); }
  45%{ transform: scale(1.06); }
  100%{ transform: scale(1); }
}
@keyframes lyricsLineBeat{
  0%{ transform: translateY(0) scale(1); filter: brightness(1); }
  50%{ transform: translateY(-2px) scale(1.075); filter: brightness(1.25); }
  100%{ transform: translateY(0) scale(1); filter: brightness(1); }
}
