/* =========================
   TRACK LIST
========================= */

.track-row{
  display:flex;
  gap:14px;
  align-items:center;
  padding:12px;
  border-radius: 14px;
}

.track-card{
  transition: .15s ease;
}

.track-card.is-playing{
  border-color: rgba(255,255,255,.45) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 10px 28px rgba(0,0,0,.45);
}

.track-card.is-playing .track-row{
  background: linear-gradient(90deg, rgba(255,255,255,.09), rgba(255,255,255,0));
}

.track-card.is-playing .track-title{
  color: rgba(255,255,255,.98);
}

.track-cover-btn{
  width:72px;
  height:72px;
  border-radius:14px;
  flex:0 0 72px;
  position:relative;
  border:1px solid rgba(255,255,255,.14);
  overflow:hidden;
  background: rgba(255,255,255,.06);
  cursor:pointer;
}

.track-cover-btn img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.track-cover-btn .playbadge{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45));
  opacity:0;
  transition:.15s ease;
}

.track-cover-btn:hover .playbadge{ opacity:1; }
.track-cover-btn[data-state="playing"] .playbadge{ opacity:1; }

.playbadge .icon{
  width:34px;
  height:34px;
  border-radius:999px;
  background: rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.25);
  display:flex;
  align-items:center;
  justify-content:center;
  backdrop-filter: blur(6px);
}

.playbadge .icon svg{
  width:18px;
  height:18px;
}

.track-meta{
  min-width:0;
  flex:1 1 auto;
}

.track-title{
  font-size:1rem;
  margin:8px 0 6px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.track-subnote{
  opacity:.75;
}

/* =========================
   MINI PLAYER (BOTTOM)
========================= */

body{
  padding-bottom: 140px;
}

.mini-player{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  padding: 10px 14px 12px;
  background: rgba(0,0,0,.92);
  border-top: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
}

/* --- TOP SEEK BAR --- */

.mp-top{
  display:flex;
  align-items:center;
  gap: 10px;
  max-width: 980px;
  margin: 0 auto;
}

.mp-time{
  font-variant-numeric: tabular-nums;
  font-size: .85rem;
  color: rgba(255,255,255,.72);
  width: 44px;
  text-align: center;
}

.mp-seek{
  -webkit-appearance:none;
  appearance:none;
  flex: 1 1 auto;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  outline: none;
}

.mp-seek::-webkit-slider-thumb{
  -webkit-appearance:none;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  border: 2px solid rgba(0,0,0,.65);
  cursor:pointer;
}

.mp-seek::-moz-range-thumb{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  border: 2px solid rgba(0,0,0,.65);
  cursor:pointer;
}

/* --- CONTROL ROW --- */

.mp-bottom{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 14px;
  padding-top: 10px;
  max-width: 980px;
  margin: 0 auto;
  position: relative; /* for EQ popover */
}

.mp-iconbtn{
  width: 34px;
  height: 34px;
  aspect-ratio: 1 / 1;
  flex: 0 0 34px;

  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,.78);

  display:flex;
  align-items:center;
  justify-content:center;

  padding: 0;
  line-height: 0;

  transition: .12s ease;
}

.mp-iconbtn svg{
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.mp-iconbtn:hover{
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.96);
}

.mp-iconbtn.is-on{
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.98);
  box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset;
}

/* === FIXED ROUND PLAY BUTTON === */

.mp-playbtn{
  width: 44px;
  height: 44px;
  aspect-ratio: 1 / 1;
  flex: 0 0 44px;

  border-radius: 9999px;
  border: 0;

  padding: 0;
  line-height: 0;
  font-size: 0;

  background: rgba(255,255,255,.95);
  color: rgba(0,0,0,.92);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  -webkit-appearance: none;
  appearance: none;

  transition: .12s ease;
}

.mp-playbtn:hover{
  transform: scale(1.05);
}

.mp-playbtn svg{
  width: 22px;
  height: 22px;
  display: block;
  fill: rgba(0,0,0,.92);
}

/* --- VOLUME --- */

.mp-vol{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-left: 8px;
}

.mp-volbtn{
  width: 34px;
  height: 34px;
  aspect-ratio: 1 / 1;
  flex: 0 0 34px;

  border: 0;
  background: transparent;
  color: rgba(255,255,255,.78);

  display:flex;
  align-items:center;
  justify-content:center;

  padding: 0;
  line-height: 0;
}

.mp-volrange{
  -webkit-appearance:none;
  appearance:none;
  width: 110px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  outline: none;
}

.mp-volrange::-webkit-slider-thumb{
  -webkit-appearance:none;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  border: 2px solid rgba(0,0,0,.65);
  cursor:pointer;
}

.mp-volrange::-moz-range-thumb{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  border: 2px solid rgba(0,0,0,.65);
  cursor:pointer;
}

/* --- NOW PLAYING --- */

.mp-now{
  max-width: 980px;
  margin: 10px auto 0;
  display:flex;
  align-items:center;
  gap: 10px;
  opacity: .92;
}

.mp-now-cover{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  flex: 0 0 34px;
}

.mp-now-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.mp-cover-ph{
  width:100%;
  height:100%;
  background: rgba(255,255,255,.06);
}

.mp-now-title{
  font-size: .95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 78vw;
}

.mp-now-sub{
  font-size: .82rem;
  color: rgba(255,255,255,.62);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 520px){
  body{ padding-bottom: 160px; }

  .mp-volrange{ width: 80px; }
  .mp-time{ width: 40px; }

  .track-cover-btn{
    width:60px;
    height:60px;
    flex-basis:60px;
  }
}

/* =========================
   CABINET RESPONSIVE
========================= */

.cab-mobile { display: none; }
.cab-desktop { display: block; }

.cab-card{
  display: flex;
  gap: 12px;
  padding: 12px;
  align-items: flex-start;
}

.cab-cover{
  width: 72px;
  height: 72px;
  border-radius: 14px;
  flex: 0 0 72px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

.cab-cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cab-cover-ph{
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,.06);
}

.cab-info{ min-width: 0; flex: 1 1 auto; }

.cab-title{
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cab-note{
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

@media (max-width: 768px){
  .cab-mobile { display: block; }
  .cab-desktop { display: none; }
}

/* =========================
   EQ (popover + button)
========================= */

.mp-eqbtn{
  font-weight: 800;
  letter-spacing: .06em;
  font-size: .78rem;
}

.mp-eq-pop{
  position: absolute;
  left: 0;
  bottom: 48px;
  width: min(420px, 92vw);
  background: rgba(10,10,10,.96);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  padding: 12px;
  display: none;
  backdrop-filter: blur(10px);
}

.mp-eq-pop.is-open{
  display: block;
}

.mp-eq-head{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 10px;
}

.mp-eq-title{
  font-weight: 900;
  letter-spacing: .04em;
}

.mp-eq-close{
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.8);
  font-size: 22px;
  line-height: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: .12s ease;
}

.mp-eq-close:hover{
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.95);
}

.mp-eq-presets{
  display:flex;
  flex-direction: column;
  gap: 8px;
}

.mp-eq-item{
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  border-radius: 12px;
  padding: 10px 10px;
  display:flex;
  flex-direction: column;
  gap: 4px;
  transition: .12s ease;
}

.mp-eq-item:hover{
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
}

.mp-eq-item.is-active{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset;
}

.mp-eq-name{
  font-weight: 800;
  font-size: .92rem;
}

.mp-eq-bands{
  font-size: .78rem;
  color: rgba(255,255,255,.62);
}

.mp-eq-foot{
  margin-top: 10px;
  font-size: .75rem;
  opacity: .85;
}

.mp-eq-switch{
  display:flex;
  align-items:center;
  gap: 8px;
  user-select: none;
  cursor: pointer;
  margin-left: 6px;
}

.mp-eq-switch input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mp-eq-slider{
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.14);
  position: relative;
  transition: .12s ease;
}

.mp-eq-slider:after{
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  transition: .12s ease;
}

.mp-eq-switch input:checked + .mp-eq-slider{
  background: rgba(255,255,255,.26);
}

.mp-eq-switch input:checked + .mp-eq-slider:after{
  transform: translateX(18px);
}

.mp-eq-switch-label{
  font-size: .82rem;
  color: rgba(255,255,255,.72);
}

/* =========================
   VOTING
========================= */

.vote-row .vote-btn{
  border-radius: 5px;
}

.vote-row .vote-btn:focus{
  box-shadow: 0 0 0 2px rgba(255,193,7,.22);
}


/* =========================
   PREMIUM STREAMING THEME PATCH
   (append to end of style.css)
========================= */

/* --- design tokens --- */
:root{
  --bg0: #07090c;
  --bg1: #0b0f14;
  --card: rgba(255,255,255,.035);
  --card2: rgba(255,255,255,.055);
  --stroke: rgba(255,255,255,.10);
  --stroke2: rgba(255,255,255,.16);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.62);

  --shadow1: 0 10px 30px rgba(0,0,0,.45);
  --shadow2: 0 18px 60px rgba(0,0,0,.55);

  --r12: 12px;
  --r14: 14px;
  --r18: 18px;

  /* premium “neutral” accent (not neon) */
  --accent: rgba(255,255,255,.88);
  --accentSoft: rgba(255,255,255,.18);

  --glass: rgba(10,12,16,.78);
  --glass2: rgba(10,12,16,.86);
}

/* --- page background: richer than plain bootstrap bg-dark --- */
body.bg-dark{
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(900px 500px at 15% 10%, rgba(255,255,255,.04), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 55%, #070a0d);
  color: var(--text);
}

/* --- navbar: tighter, more premium --- */
.navbar.bg-black{
  background: rgba(0,0,0,.78) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

.navbar .navbar-brand{
  letter-spacing: .06em;
  font-weight: 800;
}

/* Bootstrap buttons polishing (no markup changes) */
.btn{
  border-radius: 999px;
  padding: .35rem .75rem;
  border-color: rgba(255,255,255,.14) !important;
}

.btn-outline-light{
  color: rgba(255,255,255,.86);
  background: transparent;
}
.btn-outline-light:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18) !important;
}
.btn-warning{
  border: 0 !important;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}
.btn-danger{
  border: 0 !important;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

/* container spacing a bit more premium */
.container.py-4{ padding-top: 28px !important; padding-bottom: 28px !important; }

/* --- track cards: glass + depth --- */
.track-card{
  background: var(--card) !important;
  border: 1px solid rgba(255,255,255,.085) !important;
  border-radius: var(--r18);
  box-shadow: var(--shadow1);
  overflow: hidden;
  transform: translateZ(0);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.track-row{
  padding: 14px;
  border-radius: var(--r18);
}

.track-card:hover{
  /* SAFE: убираем физическое смещение карточки,
     из-за которого курсор терял hover на границе */
  transform: translateZ(0);
  box-shadow: var(--shadow2);
  border-color: rgba(255,255,255,.14) !important;
  background: var(--card2) !important;
}

/* premium active state: subtle glow + left accent line */
.track-card.is-playing{
  border-color: rgba(255,255,255,.18) !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 18px 60px rgba(0,0,0,.55);
}

.track-card.is-playing .track-row{
  background:
    linear-gradient(90deg, rgba(255,255,255,.09), rgba(255,255,255,0) 65%);
  position: relative;
}
.track-card.is-playing .track-row:before{
  content:"";
  position:absolute;
  left:0; top:10px; bottom:10px;
  width:3px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  box-shadow: 0 0 18px rgba(255,255,255,.22);
}

.badge.bg-danger{
  background: rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 700;
  letter-spacing: .02em;
}

/* typography */
.track-title{
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: .01em;
  margin: 8px 0 6px;
  color: rgba(255,255,255,.92);
}
.text-secondary, small.text-secondary{
  color: rgba(255,255,255,.55) !important;
}

/* cover button: more premium (less “boxy”) */
.track-cover-btn{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

.track-cover-btn .playbadge{
  background: radial-gradient(60% 70% at 50% 40%, rgba(0,0,0,.10), rgba(0,0,0,.68));
}

.playbadge .icon{
  width: 38px;
  height: 38px;
  background: rgba(10,12,16,.55);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}

/* --- mini player: glass dock, tighter, premium controls --- */
.mini-player{
  background: rgba(10,12,16,.78);
  border-top: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(18px);
  box-shadow: 0 -18px 60px rgba(0,0,0,.55);
}

/* seek bar: thicker + nicer thumb */
.mp-seek{
  height: 6px;
  background: rgba(255,255,255,.14);
}
.mp-seek::-webkit-slider-thumb{
  width: 12px;
  height: 12px;
  border: 2px solid rgba(10,12,16,.85);
  box-shadow: 0 8px 22px rgba(0,0,0,.45);
}
.mp-seek::-moz-range-thumb{
  width: 12px;
  height: 12px;
  border: 2px solid rgba(10,12,16,.85);
  box-shadow: 0 8px 22px rgba(0,0,0,.45);
}

.mp-bottom{
  gap: 12px;
}

/* icon buttons: less boxy, more “Apple-like” */
.mp-iconbtn{
  border-radius: 12px;
  color: rgba(255,255,255,.78);
}
.mp-iconbtn:hover{
  background: rgba(255,255,255,.08);
}
.mp-iconbtn:active{
  transform: translateY(1px);
}
.mp-iconbtn.is-on{
  background: rgba(255,255,255,.10);
  box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset;
}

/* play button: matte white pill */
.mp-playbtn{
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
.mp-playbtn:hover{
  transform: scale(1.06);
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
}
.mp-playbtn:active{
  transform: scale(1.02);
}

/* volume slider: match seek style */
.mp-volrange{
  height: 6px;
  background: rgba(255,255,255,.14);
}
.mp-volrange::-webkit-slider-thumb{
  width: 12px;
  height: 12px;
  border: 2px solid rgba(10,12,16,.85);
  box-shadow: 0 8px 22px rgba(0,0,0,.45);
}
.mp-volrange::-moz-range-thumb{
  width: 12px;
  height: 12px;
  border: 2px solid rgba(10,12,16,.85);
  box-shadow: 0 8px 22px rgba(0,0,0,.45);
}

/* now playing: nicer cover + text */
.mp-now{
  opacity: 1;
}
.mp-now-cover{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.mp-now-title{
  font-weight: 800;
  letter-spacing: .01em;
}
.mp-now-sub{
  color: rgba(255,255,255,.58);
}

/* --- EQ popover: premium sheet --- */
.mp-eq-pop{
  background: rgba(10,12,16,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: 0 26px 80px rgba(0,0,0,.65);
}

.mp-eq-item{
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
}
.mp-eq-item.is-active{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}

/* voting button: make it premium, not square */
.vote-row .vote-btn{
  border-radius: 999px;
  padding: .35rem .8rem;
  border-width: 1px;
}

/* mobile: keep premium spacing */
@media (max-width: 520px){
  .track-row{ padding: 12px; }
  .mp-now-cover{ width: 38px; height: 38px; }
}

/* =========================
   PREMIUM VOTING MODAL (Bootstrap)
========================= */

/* backdrop a bit softer */
.modal-backdrop.show{
  opacity: .72;
}

/* modal panel: glass + premium border */
#voteModal .modal-dialog{
  padding: 10px;
}

#voteModal .modal-content{
  background: rgba(10,12,16,.92) !important;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.70);
  overflow: hidden;
}

/* header / footer separators softer */
#voteModal .modal-header,
#voteModal .modal-footer{
  border-color: rgba(255,255,255,.10) !important;
}

#voteModal .modal-title{
  font-weight: 850;
  letter-spacing: .01em;
}

/* close button: nicer hit area */
#voteModal .btn-close{
  opacity: .9;
  filter: none;
}
#voteModal .btn-close:focus{
  box-shadow: 0 0 0 3px rgba(255,255,255,.12);
}

/* track title line */
#voteModal #voteModalTrackTitle{
  color: rgba(255,255,255,.68) !important;
}

/* "Your choice" badge = premium neutral */
#voteModal #voteMyChoice.badge{
  background: rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 750;
  letter-spacing: .01em;
}

/* grid buttons: looks like streaming UI */
#voteModal #voteRankGrid{
  gap: 10px !important;
}

#voteModal #voteRankGrid .btn{
  border-radius: 12px;
  min-width: 44px;
  height: 38px;
  padding: 0 12px;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: none !important;
}

/* available rank */
#voteModal #voteRankGrid .btn-outline-warning{
  border-color: rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.86) !important;
  background: rgba(255,255,255,.04) !important;
}
#voteModal #voteRankGrid .btn-outline-warning:hover{
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.18) !important;
  transform: translateY(-1px);
}

/* selected rank */
#voteModal #voteRankGrid .btn-warning{
  background: rgba(255,255,255,.92) !important;
  border-color: rgba(255,255,255,.92) !important;
  color: rgba(0,0,0,.92) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.45) !important;
}

/* taken rank (disabled) */
#voteModal #voteRankGrid .btn-outline-secondary{
  border-color: rgba(255,255,255,.10) !important;
  color: rgba(255,255,255,.36) !important;
  background: rgba(255,255,255,.02) !important;
  opacity: 1 !important;
}
#voteModal #voteRankGrid .btn-outline-secondary:disabled{
  cursor: not-allowed;
  filter: grayscale(20%);
}

/* remove vote button */
#voteModal #voteRemoveBtn{
  border-radius: 999px;
  border-color: rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.78) !important;
}
#voteModal #voteRemoveBtn:hover{
  background: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.92) !important;
}

/* footer close button */
#voteModal .modal-footer .btn-outline-light{
  border-radius: 999px;
  border-color: rgba(255,255,255,.14) !important;
}
#voteModal .modal-footer .btn-outline-light:hover{
  background: rgba(255,255,255,.10) !important;
}

/* ok / err messages: pill feel */
#voteModal #voteErr,
#voteModal #voteOk{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
#voteModal #voteErr{
  border-color: rgba(255,90,90,.22);
  background: rgba(255,90,90,.06);
}
#voteModal #voteOk{
  border-color: rgba(120,255,170,.18);
  background: rgba(120,255,170,.06);
}

/* mobile: better width */
@media (max-width: 420px){
  #voteModal .modal-dialog{
    margin: 0.75rem;
  }
  #voteModal #voteRankGrid .btn{
    min-width: 42px;
  }
}

/* =========================
   PREMIUM VOTING BUTTON (Neutral)
========================= */

/* Карточка: кнопка голосования */
.vote-row .vote-btn{
  border-radius: 999px;
  padding: .38rem .9rem;
  font-weight: 750;
  letter-spacing: .01em;
  transition: .15s ease;
}

/* состояние "Голосовать" (outline) */
.vote-row .vote-btn.btn-outline-warning{
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.86) !important;
}

.vote-row .vote-btn.btn-outline-warning:hover{
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.18) !important;
  color: rgba(255,255,255,.96) !important;
  transform: translateY(-1px);
}

/* состояние "Проголосовал" */
.vote-row .vote-btn.btn-warning{
  background: rgba(255,255,255,.92) !important;
  border-color: rgba(255,255,255,.92) !important;
  color: rgba(0,0,0,.92) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}

.vote-row .vote-btn.btn-warning:hover{
  background: rgba(255,255,255,.98) !important;
  border-color: rgba(255,255,255,.98) !important;
  transform: translateY(-1px);
}

/* badge с номером места */
.vote-row .vote-btn .vote-rank-badge{
  background: rgba(0,0,0,.82) !important;
  color: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  font-weight: 700;
  padding: 2px 8px;
}

/* фокус — мягкое свечение */
.vote-row .vote-btn:focus{
  box-shadow: 0 0 0 3px rgba(255,255,255,.18) !important;
}

/* =========================
   MODAL GRID — убрать жёлтый полностью
========================= */

/* выбранное место в модалке */
#voteModal #voteRankGrid .btn-warning{
  background: rgba(255,255,255,.92) !important;
  border-color: rgba(255,255,255,.92) !important;
  color: rgba(0,0,0,.92) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.45) !important;
}

/* доступное место */
#voteModal #voteRankGrid .btn-outline-warning{
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.86) !important;
}

#voteModal #voteRankGrid .btn-outline-warning:hover{
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.18) !important;
  transform: translateY(-1px);
}

/* "Твой выбор" badge в модалке */
#voteModal #voteMyChoice.badge{
  background: rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(255,255,255,.14);
}

/* =========================
   ACTIVE TRACK TITLE – WARM ACCENT
========================= */

.track-card.is-playing .track-title{
  color: #ff9a3c; /* тёплый оранжевый */
  text-shadow:
    0 0 8px rgba(255,154,60,.35),
    0 0 18px rgba(255,154,60,.18);
  transition: color .2s ease, text-shadow .2s ease;
}

/* лёгкая анимация “живого” свечения */
@keyframes warmPulse {
  0%   { text-shadow: 0 0 6px rgba(255,154,60,.25); }
  50%  { text-shadow: 0 0 14px rgba(255,154,60,.45); }
  100% { text-shadow: 0 0 6px rgba(255,154,60,.25); }
}

.track-card.is-playing .track-title{
  animation: warmPulse 2.8s ease-in-out infinite;
}

/* =========================
   PREMIUM FORMS / UPLOAD PAGE
========================= */

.mr-sheet{
  background: rgba(10,12,16,.92) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.65);
  backdrop-filter: blur(18px);
}

.mr-sheet .card-body{
  padding: 18px;
}

@media (min-width: 768px){
  .mr-sheet .card-body{ padding: 22px; }
}

/* Title block a bit more premium */
.container h1{
  font-weight: 900;
  letter-spacing: .01em;
}

/* Labels / helper text */
.form-label{
  font-weight: 750;
  letter-spacing: .01em;
  color: rgba(255,255,255,.86);
  margin-bottom: 6px;
}

.form-text{
  margin-top: 8px;
  color: rgba(255,255,255,.55) !important;
}

/* Inputs: premium glass fields */
.form-control{
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.92) !important;
  border-radius: 5px;
  padding: .72rem .9rem;
  box-shadow: none !important;
}

.form-control::placeholder{
  color: rgba(255,255,255,.40);
}

.form-control:focus{
  border-color: rgba(255,255,255,.22) !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,.14) !important;
  background: rgba(255,255,255,.055) !important;
}

/* File input button styling */
.form-control[type="file"]{
  padding: .55rem .75rem;
}

.form-control[type="file"]::file-selector-button{
  margin-right: 12px;
  border: 0;
  border-radius: 999px;
  padding: .45rem .85rem;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  transition: .15s ease;
}

.form-control[type="file"]::file-selector-button:hover{
  background: rgba(255,255,255,.18);
}

/* Neutral premium primary action button */
.mr-sheet .btn.btn-danger.btn-lg{
  border: 0 !important;
  border-radius: 999px;
  padding: .9rem 1.1rem;
  font-weight: 850;
  letter-spacing: .02em;

  background: rgba(255,255,255,.92) !important;
  color: rgba(0,0,0,.92) !important;

  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.mr-sheet .btn.btn-danger.btn-lg:hover{
  background: rgba(255,255,255,.98) !important;
  transform: translateY(-1px);
  box-shadow: 0 24px 70px rgba(0,0,0,.62);
}

.mr-sheet .btn.btn-danger.btn-lg:active{
  transform: translateY(0px);
  box-shadow: 0 16px 45px rgba(0,0,0,.50);
}

.mr-sheet .btn.btn-danger.btn-lg:focus{
  box-shadow:
    0 0 0 4px rgba(255,255,255,.16),
    0 18px 50px rgba(0,0,0,.55) !important;
}

/* Premium alerts (instead of bootstrap red/green blocks) */
.mr-alert{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  margin-bottom: 14px;
}

.mr-alert--danger{
  border-color: rgba(255,90,90,.22);
  background: rgba(255,90,90,.06);
  color: rgba(255,235,235,.92);
}

.mr-alert--success{
  border-color: rgba(120,255,170,.18);
  background: rgba(120,255,170,.06);
  color: rgba(230,255,242,.92);
}

/* Optional: make the container look more centered and premium */
@media (min-width: 992px){
  .container[style*="max-width:820px"]{
    max-width: 860px !important;
  }
}

/* =========================
   BRAND ACCENT – GRIND
========================= */

.brand-accent{
  color: #ff9a3c; /* тёплый оранжевый */
  text-shadow:
    0 0 10px rgba(255,154,60,.35),
    0 0 22px rgba(255,154,60,.18);
  transition: color .2s ease, text-shadow .2s ease;
}

/* лёгкое “дыхание” как у активного трека */
@keyframes brandWarmGlow{
  0%   { text-shadow: 0 0 8px rgba(255,154,60,.25); }
  50%  { text-shadow: 0 0 16px rgba(255,154,60,.45); }
  100% { text-shadow: 0 0 8px rgba(255,154,60,.25); }
}

.brand-accent{
  animation: brandWarmGlow 3s ease-in-out infinite;
}

/* =========================
   ARTIST PAGE
========================= */

.artist-hero{
  background: rgba(10,12,16,.70);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  backdrop-filter: blur(14px);
  padding: 16px;
}

.artist-hero-row{
  display:flex;
  gap: 14px;
  align-items: flex-start;
}

/* =========================
   ROUND ARTIST AVATAR (YouTube style)
========================= */

.artist-avatar{
  width: 110px;
  height: 110px;
  border-radius: 9999px; /* круг */
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  flex: 0 0 110px;
  box-shadow:
    0 18px 50px rgba(0,0,0,.55),
    0 0 0 4px rgba(255,255,255,.04) inset;
  position: relative;
}

.artist-avatar img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* fallback */
.artist-avatar-ph{
  width:100%;
  height:100%;
  background:
    radial-gradient(60px 60px at 40% 35%, rgba(255,154,60,.25), transparent 60%),
    radial-gradient(100px 100px at 70% 80%, rgba(255,255,255,.06), transparent 60%),
    rgba(255,255,255,.04);
}

/* mobile */
@media (max-width: 520px){
  .artist-avatar{
    width: 88px;
    height: 88px;
    flex-basis: 88px;
  }
}

.artist-meta{ min-width:0; flex: 1 1 auto; }

.artist-name{
  font-weight: 900;
  letter-spacing: .01em;
  margin: 2px 0 6px;
  line-height: 1.05;
}

.artist-stats{
  display:flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.artist-stat{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 10px 12px;
  min-width: 120px;
}

.artist-stat-val{
  font-weight: 900;
  letter-spacing: .01em;
}

.artist-stat-lab{
  font-size: .82rem;
}

.artist-actions .btn{
  margin-right: 6px;
}

@media (max-width: 520px){
  .artist-avatar{ width: 78px; height: 78px; flex-basis: 78px; border-radius: 16px; }
  .artist-hero{ padding: 14px; }
  .artist-stat{ min-width: 110px; }
}

/* =========================
   PROFILE PAGE
========================= */

.profile-head{
  display:flex;
  gap: 14px;
  align-items: flex-start;
}

.profile-ava{
  width: 96px;
  height: 96px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  flex: 0 0 96px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.profile-ava img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.profile-ava-ph{
  width:100%;
  height:100%;
  background:
    radial-gradient(50px 50px at 40% 35%, rgba(255,154,60,.18), transparent 60%),
    radial-gradient(80px 80px at 70% 80%, rgba(255,255,255,.06), transparent 60%),
    rgba(255,255,255,.04);
}

.profile-name{
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: .01em;
  margin-top: 2px;
}

@media (max-width: 520px){
  .profile-ava{ width: 78px; height: 78px; flex-basis: 78px; border-radius: 16px; }
}

/* =========================
   PREMIUM MODAL (upload)
========================= */

.mr-modal{
  background: rgba(10,12,16,.92) !important;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.70);
  overflow: hidden;
}

.mr-modal .modal-header,
.mr-modal .modal-footer{
  border-color: rgba(255,255,255,.10) !important;
}

.mr-modal .modal-title{
  font-weight: 900;
  letter-spacing: .01em;
}

.mr-modal .btn-close{
  opacity: .9;
  filter: none;
}

.mr-modal .btn-close:focus{
  box-shadow: 0 0 0 3px rgba(255,255,255,.12);
}


/* =====================================================
   SOCIAL MODULE – ARTIST PAGE
   ===================================================== */

/* Чтобы страница не уходила под mini-player */
body{
  padding-bottom: 190px;
}

@media (min-width: 992px){
  body{
    padding-bottom: 150px;
  }
}

/* ---- Track layout fix ---- */

.track-row{
  display:flex;
  gap:14px;
  align-items:center;
  padding:12px;
}

.track-meta{
  min-width:0;
  flex:1 1 auto;
}



/* =========================
   ALBUMS
========================= */
.album-card { border-radius: 18px; overflow: hidden; }
.album-card-inner { display:flex; gap:14px; padding:12px; align-items:center; }
.album-card-cover { width:72px; height:72px; border-radius:14px; overflow:hidden; flex:0 0 72px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.album-card-cover img { width:100%; height:100%; object-fit:cover; display:block; }
.album-card-cover-ph { width:100%; height:100%; background: rgba(255,255,255,.06); }

.album-card-meta { flex:1; min-width:0; }
.album-card-title { font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.album-card-wrap{
  position:relative;
  height:100%;
}

.album-card-wrap .album-card{
  padding-right:42px;
}

.album-share-btn{
  position:absolute;
  top:12px;
  right:12px;
  z-index:3;
}

.album-private-badge{
  margin-right:36px;
}

@media (max-width: 575.98px){
  .album-card-wrap .album-card{
    padding-right:38px;
  }

  .album-share-btn{
    top:10px;
    right:10px;
  }
}

/* album header cover (album.php) */
.album-cover { width:120px; height:120px; border-radius:18px; overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.album-cover img { width:100%; height:100%; object-fit:cover; display:block; }
.album-cover-ph { width:100%; height:100%; background: rgba(255,255,255,.06); }


.artist-avatar--sm { width:34px; height:34px; border-radius:50%; overflow:hidden; }
.artist-avatar--sm img { width:100%; height:100%; object-fit:cover; display:block; }

.track-genre{
  display:inline-block;
  margin-top:6px;
  margin-bottom:4px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#ff8a3d;
  font-size:.78rem;
  font-weight:700;
  line-height:1;
}

.track-genre-inline{
  color:#ff8a3d;
  font-weight:600;
  margin-left:1px;
}

/* =========================
   TRACK ACTIONS POPUP MENU
========================= */

.track-card,
.track-row{
  overflow: visible !important;
}

.track-actions{
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
  flex: 0 0 auto;
  gap: 0;
}

.track-actions-pop{
  position: absolute;
  top: 50%;
  right: 48px;
  transform: translateY(-50%);
  display: none;
  flex-direction: row;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(16,18,22,.96);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  z-index: 30;
}

.track-actions.is-open .track-actions-pop{
  display: flex;
}

.track-delete-btn,
.track-move-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: .18s ease;
}

.track-delete-btn:hover,
.track-move-btn:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
}

.track-more-fab{
  position: relative;
  z-index: 31;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.track-more-fab:hover{
  background: rgba(255,255,255,.12);
}

.track-more-fab:active{
  transform: translateY(1px);
}

@media (max-width:768px){
  .track-actions-pop{
    right: 46px;
    gap: 6px;
    padding: 6px;
  }

  .track-delete-btn,
  .track-move-btn{
    font-size: 12px;
    padding: 7px 10px;
  }

  .track-more-fab{
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }
}

/* ===== RADIO GRIND NAVBAR ===== */
.rg-navbar{
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,.92) !important;
}

.rg-navbar .navbar-brand{
  letter-spacing: .04em;
}

.rg-navbar .nav-link{
  color: rgba(255,255,255,.82);
  font-weight: 600;
  padding: .55rem .9rem;
  border-radius: 10px;
  transition: .18s ease;
}

.rg-navbar .nav-link:hover,
.rg-navbar .nav-link:focus{
  color: #fff;
  background: rgba(255,255,255,.08);
}

.rg-navbar-toggler{
  border-color: rgba(255,255,255,.18);
  box-shadow: none !important;
}

.rg-navbar-toggler:focus{
  border-color: rgba(255,138,61,.75);
  box-shadow: 0 0 0 .18rem rgba(255,138,61,.18) !important;
}

@media (max-width: 991.98px){
  .rg-navbar .navbar-collapse{
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .rg-navbar .navbar-nav{
    gap: 4px;
  }

  .rg-navbar .btn{
    width: 100%;
  }
}

.track-subline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}

.track-subline-text{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.track-fav-inline{
  flex:0 0 auto;
  border:none;
  background:transparent;
  color:rgba(255,255,255,.62);
  font-size:20px;
  line-height:1;
  padding:0 0 0 6px;
  cursor:pointer;
  transition:.18s ease;
}

.track-fav-inline:hover,
.track-fav-inline:focus{
  color:#fff;
  outline:none;
  transform:scale(1.08);
}

.track-fav-inline.is-active{
  color:#ff8a3d;
}

/* =========================
   BOARD AUTHORS CAROUSEL
========================= */

.board-authors-wrap{
  margin-top: 18px;
}

.board-authors-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.board-authors-title{
  font-size:.95rem;
  font-weight:800;
  color:rgba(255,255,255,.92);
  letter-spacing:.01em;
}

.board-authors-controls{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}

.board-authors-btn{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.92);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  line-height:1;
  font-size:20px;
  cursor:pointer;
  transition:.18s ease;
}

.board-authors-btn:hover,
.board-authors-btn:focus{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.20);
  outline:none;
}

.board-authors-carousel{
  display:flex;
  align-items:flex-start;
  gap:18px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.18) transparent;
  padding:4px 2px 8px;
}

.board-authors-carousel::-webkit-scrollbar{
  height:8px;
}

.board-authors-carousel::-webkit-scrollbar-track{
  background:transparent;
}

.board-authors-carousel::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.18);
  border-radius:999px;
}

.board-author-item{
  flex:0 0 auto;
  width:86px;
}

.board-author-link{
  display:block;
  text-decoration:none;
  color:inherit;
  text-align:center;
}

.board-author-avatar{
  width:68px;
  height:68px;
  margin:0 auto 8px;
  padding:3px;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(255,138,61,.95), rgba(255,184,108,.92));
  box-shadow:
    0 10px 24px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.06);
  transition:transform .18s ease, box-shadow .18s ease;
}

.board-author-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:999px;
  background:rgba(255,255,255,.06);
}

.board-author-link:hover .board-author-avatar,
.board-author-link:focus .board-author-avatar{
  transform:translateY(-2px) scale(1.03);
  box-shadow:
    0 14px 30px rgba(0,0,0,.42),
    0 0 0 1px rgba(255,255,255,.10);
}

.board-author-name{
  font-size:.88rem;
  color:rgba(255,255,255,.72);
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  transition:color .18s ease;
}

.board-author-link:hover .board-author-name,
.board-author-link:focus .board-author-name{
  color:#fff;
}

@media (max-width: 520px){
  .board-authors-head{
    align-items:flex-end;
  }

  .board-author-item{
    width:78px;
  }

  .board-author-avatar{
    width:62px;
    height:62px;
  }

  .board-author-name{
    font-size:.82rem;
  }
}

/* =========================
   NEW TRACKS PAGED CAROUSEL
========================= */

.new-tracks-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.new-tracks-pager{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

.new-tracks-page-btn{
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.92);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  line-height:1;
  font-size:20px;
  cursor:pointer;
  transition:.18s ease;
}

.new-tracks-page-btn:hover,
.new-tracks-page-btn:focus{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.20);
  outline:none;
}

.new-tracks-page-btn:disabled{
  opacity:.38;
  cursor:default;
  pointer-events:none;
}

.new-tracks-page-indicator{
  min-width:54px;
  text-align:center;
  font-size:.92rem;
  font-weight:700;
  color:rgba(255,255,255,.92);
}

@media (max-width: 576px){
  .new-tracks-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .new-tracks-pager{
    align-self:flex-end;
  }
}

/* =========================
   BEST TRACK BUTTON (LEADER)
========================= */

.btn-best-track{
  position: relative;
  border: 1px solid rgba(255, 170, 60, 0.35);
  background: linear-gradient(135deg, rgba(255,170,60,0.18), rgba(255,120,0,0.08));
  color: #ffb36e;
  font-weight: 700;
  letter-spacing: .02em;

  box-shadow:
    0 0 0 1px rgba(255,170,60,0.15),
    0 8px 22px rgba(0,0,0,0.35);

  transition: all .18s ease;
}

/* glow */
.btn-best-track::before{
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,170,60,.4), transparent 60%);
  opacity: .25;
  pointer-events: none;
}

/* hover */
.btn-best-track:hover{
  color: #fff;
  border-color: rgba(255,170,60,0.6);

  background: linear-gradient(135deg, rgba(255,170,60,0.28), rgba(255,120,0,0.18));

  box-shadow:
    0 0 0 1px rgba(255,170,60,0.35),
    0 12px 28px rgba(0,0,0,0.45),
    0 0 18px rgba(255,170,60,0.25);

  transform: translateY(-1px);
}

/* active */
.btn-best-track:active{
  transform: scale(0.96);
}


/* =========================
   TRACK SHARE BUTTON
========================= */

.track-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}

.track-topline-left,
.track-topline-right{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.track-topline-left{
  flex:1 1 0;
  overflow:hidden;
}

.track-topline-right{
  flex:0 0 auto;
  margin-left:auto;
}

.track-share-btn{
  width:32px;
  height:32px;
  flex:0 0 32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.78);
  border-radius:999px;
  padding:0;
  line-height:0;
  white-space:nowrap;
  transition:.18s ease, transform .18s ease;
}

.track-share-btn:hover,
.track-share-btn:focus{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.18);
  color:#fff;
  outline:none;
  transform:translateY(-1px);
}

.track-share-btn.is-copied{
  color:#ff8a3d;
  border-color:rgba(255,138,61,.28);
  background:rgba(255,138,61,.10);
  box-shadow:0 0 0 1px rgba(255,138,61,.08) inset;
}

.track-share-btn-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
}

.track-share-btn-icon svg{
  width:16px;
  height:16px;
  display:block;
  fill:currentColor;
}

.track-genre-inline{
  display:inline-block;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  vertical-align:middle;
}

.track-page-hero{
  position:relative;
  overflow:hidden;
}

.track-page-hero::before{
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(900px 320px at 10% 0%, rgba(255,154,60,.10), transparent 55%);
  pointer-events:none;
}

.track-page-hero > *{
  position:relative;
  z-index:1;
}

.track-page-title{
  font-size:clamp(1.7rem, 4vw, 2.6rem);
  font-weight:900;
  line-height:1.08;
  letter-spacing:.01em;
  margin:0;
}

.track-page-author-link{
  color:rgba(255,255,255,.72);
  text-decoration:none;
  font-size:1rem;
  font-weight:600;
  transition:.18s ease;
}

.track-page-author-link:hover,
.track-page-author-link:focus{
  color:#fff;
}

.track-page-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.track-page-meta-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.78);
  font-size:.82rem;
  font-weight:700;
}

.track-page-backlink{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:rgba(255,255,255,.70);
  text-decoration:none;
  font-weight:600;
  transition:.18s ease;
}

.track-page-backlink:hover,
.track-page-backlink:focus{
  color:#fff;
}

@media (max-width: 576px){
  .track-topline{
    align-items:center;
    gap:8px;
  }

  .track-topline-left,
  .track-topline-right{
    gap:8px;
  }

  .track-share-btn{
    padding:3px 8px;
    font-size:.7rem;
  }
}
/* =========================
   TRACK ACTIONS / CONTEXT MENU
========================= */

.track-card,
.track-row{
  overflow: visible !important;
}

.track-actions{
  display:flex;
  align-items:center;
  margin-left:auto;
  flex:0 0 auto;
}

.track-more-fab{
  position:relative;
  z-index:2;
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.35);
  color:rgba(255,255,255,.92);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  user-select:none;
  transition:background .18s ease, transform .18s ease, border-color .18s ease;
}

.track-more-fab:hover{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.2);
}

.track-more-fab:active{
  transform:translateY(1px);
}

.track-more-fab-dots{
  font-size:22px;
  line-height:1;
  transform:translateY(-1px);
}

.track-context-menu{
  position:fixed;
  left:0;
  top:0;
  width:min(280px, calc(100vw - 16px));
  padding:10px 0;
  border-radius:18px;
  background:#f4f4f4;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 18px 46px rgba(0,0,0,.30);
  z-index:1065;
}

.track-context-menu[hidden]{
  display:none !important;
}

.track-context-item{
  width:100%;
  display:flex;
  align-items:center;
  gap:14px;
  padding:13px 18px;
  border:0;
  background:transparent;
  color:#111;
  text-align:left;
  font-size:1.02rem;
  line-height:1.15;
  cursor:pointer;
  transition:background .16s ease;
}

.track-context-item:hover{
  background:rgba(0,0,0,.06);
}

.track-context-item.is-danger{
  color:#111;
}

.track-context-icon{
  width:24px;
  height:24px;
  flex:0 0 24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#444;
}

.track-context-icon svg{
  width:22px;
  height:22px;
  fill:currentColor;
  display:block;
}

@media (max-width:768px){
  .track-more-fab{
    width:40px;
    height:40px;
    border-radius:14px;
  }

  .track-context-menu{
    width:min(290px, calc(100vw - 12px));
    border-radius:18px;
  }

  .track-context-item{
    padding:14px 18px;
    font-size:1rem;
  }
}

/* ===== RADIO GRIND NAVBAR ===== */
/* ===== RADIO GRIND NAVBAR ===== */
.rg-navbar{
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,.92) !important;
}

.rg-navbar .navbar-brand{
  letter-spacing: .04em;
}

.rg-navbar .nav-link{
  color: rgba(255,255,255,.82);
  font-weight: 600;
  padding: .55rem .9rem;
  border-radius: 10px;
  transition: .18s ease;
}

.rg-navbar .nav-link:hover,
.rg-navbar .nav-link:focus{
  color: #fff;
  background: rgba(255,255,255,.08);
}

.rg-navbar-toggler{
  border-color: rgba(255,255,255,.18);
  box-shadow: none !important;
}

.rg-navbar-toggler:focus{
  border-color: rgba(255,138,61,.75);
  box-shadow: 0 0 0 .18rem rgba(255,138,61,.18) !important;
}

@media (max-width: 991.98px){
  .rg-navbar .navbar-collapse{
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .rg-navbar .navbar-nav{
    gap: 4px;
  }

  .rg-navbar .btn{
    width: 100%;
  }
}

.track-subline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}

.track-subline-text{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.track-fav-inline{
  flex:0 0 auto;
  border:none;
  background:transparent;
  color:rgba(255,255,255,.62);
  font-size:20px;
  line-height:1;
  padding:0 0 0 6px;
  cursor:pointer;
  transition:.18s ease;
}

.track-fav-inline:hover,
.track-fav-inline:focus{
  color:#fff;
  outline:none;
  transform:scale(1.08);
}

.track-fav-inline.is-active{
  color:#ff8a3d;
}

/* =========================
   BOARD AUTHORS CAROUSEL
========================= */

.board-authors-wrap{
  margin-top: 18px;
}

.board-authors-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.board-authors-title{
  font-size:.95rem;
  font-weight:800;
  color:rgba(255,255,255,.92);
  letter-spacing:.01em;
}

.board-authors-controls{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}

.board-authors-btn{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.92);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  line-height:1;
  font-size:20px;
  cursor:pointer;
  transition:.18s ease;
}

.board-authors-btn:hover,
.board-authors-btn:focus{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.20);
  outline:none;
}

.board-authors-carousel{
  display:flex;
  align-items:flex-start;
  gap:18px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.18) transparent;
  padding:4px 2px 8px;
}

.board-authors-carousel::-webkit-scrollbar{
  height:8px;
}

.board-authors-carousel::-webkit-scrollbar-track{
  background:transparent;
}

.board-authors-carousel::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.18);
  border-radius:999px;
}

.board-author-item{
  flex:0 0 auto;
  width:86px;
}

.board-author-link{
  display:block;
  text-decoration:none;
  color:inherit;
  text-align:center;
}

.board-author-avatar{
  width:68px;
  height:68px;
  margin:0 auto 8px;
  padding:3px;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(255,138,61,.95), rgba(255,184,108,.92));
  box-shadow:
    0 10px 24px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.06);
  transition:transform .18s ease, box-shadow .18s ease;
}

.board-author-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:999px;
  background:rgba(255,255,255,.06);
}

.board-author-link:hover .board-author-avatar,
.board-author-link:focus .board-author-avatar{
  transform:translateY(-2px) scale(1.03);
  box-shadow:
    0 14px 30px rgba(0,0,0,.42),
    0 0 0 1px rgba(255,255,255,.10);
}

.board-author-name{
  font-size:.88rem;
  color:rgba(255,255,255,.72);
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  transition:color .18s ease;
}

.board-author-link:hover .board-author-name,
.board-author-link:focus .board-author-name{
  color:#fff;
}

@media (max-width: 520px){
  .board-authors-head{
    align-items:flex-end;
  }

  .board-author-item{
    width:78px;
  }

  .board-author-avatar{
    width:62px;
    height:62px;
  }

  .board-author-name{
    font-size:.82rem;
  }
}

/* =========================
   NEW TRACKS PAGED CAROUSEL
========================= */

.new-tracks-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.new-tracks-pager{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

.new-tracks-page-btn{
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.92);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  line-height:1;
  font-size:20px;
  cursor:pointer;
  transition:.18s ease;
}

.new-tracks-page-btn:hover,
.new-tracks-page-btn:focus{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.20);
  outline:none;
}

.new-tracks-page-btn:disabled{
  opacity:.38;
  cursor:default;
  pointer-events:none;
}

.new-tracks-page-indicator{
  min-width:54px;
  text-align:center;
  font-size:.92rem;
  font-weight:700;
  color:rgba(255,255,255,.92);
}

@media (max-width: 576px){
  .new-tracks-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .new-tracks-pager{
    align-self:flex-end;
  }
}

/* =========================
   BEST TRACK BUTTON (LEADER)
========================= */

.btn-best-track{
  position: relative;
  border: 1px solid rgba(255, 170, 60, 0.35);
  background: linear-gradient(135deg, rgba(255,170,60,0.18), rgba(255,120,0,0.08));
  color: #ffb36e;
  font-weight: 700;
  letter-spacing: .02em;

  box-shadow:
    0 0 0 1px rgba(255,170,60,0.15),
    0 8px 22px rgba(0,0,0,0.35);

  transition: all .18s ease;
}

/* glow */
.btn-best-track::before{
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,170,60,.4), transparent 60%);
  opacity: .25;
  pointer-events: none;
}

/* hover */
.btn-best-track:hover{
  color: #fff;
  border-color: rgba(255,170,60,0.6);

  background: linear-gradient(135deg, rgba(255,170,60,0.28), rgba(255,120,0,0.18));

  box-shadow:
    0 0 0 1px rgba(255,170,60,0.35),
    0 12px 28px rgba(0,0,0,0.45),
    0 0 18px rgba(255,170,60,0.25);

  transform: translateY(-1px);
}

/* active */
.btn-best-track:active{
  transform: scale(0.96);
}


/* =========================
   TRACK SHARE BUTTON
========================= */

.track-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}

.track-topline-left,
.track-topline-right{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.track-topline-left{
  flex:1 1 0;
  overflow:hidden;
}

.track-topline-right{
  flex:0 0 auto;
  margin-left:auto;
}

.track-share-btn{
  width:32px;
  height:32px;
  flex:0 0 32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.78);
  border-radius:999px;
  padding:0;
  line-height:0;
  white-space:nowrap;
  transition:.18s ease, transform .18s ease;
}

.track-share-btn:hover,
.track-share-btn:focus{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.18);
  color:#fff;
  outline:none;
  transform:translateY(-1px);
}

.track-share-btn.is-copied{
  color:#ff8a3d;
  border-color:rgba(255,138,61,.28);
  background:rgba(255,138,61,.10);
  box-shadow:0 0 0 1px rgba(255,138,61,.08) inset;
}

.track-share-btn-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
}

.track-share-btn-icon svg{
  width:16px;
  height:16px;
  display:block;
  fill:currentColor;
}

.track-genre-inline{
  display:inline-block;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  vertical-align:middle;
}

.track-page-hero{
  position:relative;
  overflow:hidden;
}

.track-page-hero::before{
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(900px 320px at 10% 0%, rgba(255,154,60,.10), transparent 55%);
  pointer-events:none;
}

.track-page-hero > *{
  position:relative;
  z-index:1;
}

.track-page-title{
  font-size:clamp(1.7rem, 4vw, 2.6rem);
  font-weight:900;
  line-height:1.08;
  letter-spacing:.01em;
  margin:0;
}

.track-page-author-link{
  color:rgba(255,255,255,.72);
  text-decoration:none;
  font-size:1rem;
  font-weight:600;
  transition:.18s ease;
}

.track-page-author-link:hover,
.track-page-author-link:focus{
  color:#fff;
}

.track-page-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.track-page-meta-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.78);
  font-size:.82rem;
  font-weight:700;
}

.track-page-backlink{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:rgba(255,255,255,.70);
  text-decoration:none;
  font-weight:600;
  transition:.18s ease;
}

.track-page-backlink:hover,
.track-page-backlink:focus{
  color:#fff;
}

@media (max-width: 576px){
  .track-topline{
    align-items:center;
    gap:8px;
  }

  .track-topline-left,
  .track-topline-right{
    gap:8px;
  }

  .track-share-btn{
    padding:3px 8px;
    font-size:.7rem;
  }
}


/* Mini-player: fixed right-side actions */
.mp-now{
  display:flex;
  align-items:center;
  gap:10px;
}

.mp-now-cover{
  flex:0 0 auto;
}

.mp-now-text{
  flex:1 1 auto;
  min-width:0;
  padding-right:4px;
}

.mp-now-actions{
  flex:0 0 auto;
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:max-content;
}

.mp-fav{
  flex:0 0 auto;
  margin-left:0 !important;
  transform:none !important;
}

.mp-fav:disabled{
  opacity:.42;
  cursor:default;
}

/* Premium button: hide current track from New tracks */
.mp-hide-new-track{
  position:relative;
  flex:0 0 auto;
  width:34px;
  height:34px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  background:
    radial-gradient(circle at 30% 15%, rgba(255,255,255,.15), rgba(255,255,255,0) 35%),
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  color:rgba(255,255,255,.78);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 8px 22px rgba(0,0,0,.24);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  cursor:pointer;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    color .16s ease,
    box-shadow .16s ease,
    opacity .16s ease;
}

.mp-hide-new-track__icon{
  width:18px;
  height:18px;
  display:block;
  fill:currentColor;
}

.mp-hide-new-track__slash{
  fill:rgba(255,92,92,.95);
}

.mp-hide-new-track:hover,
.mp-hide-new-track:focus-visible{
  color:#fff;
  border-color:rgba(255,92,92,.72);
  background:
    radial-gradient(circle at 30% 15%, rgba(255,255,255,.18), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, rgba(255,76,76,.18), rgba(255,76,76,.075));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.13),
    0 10px 28px rgba(255,60,60,.12),
    0 8px 22px rgba(0,0,0,.26);
  outline:none;
  transform:translateY(-1px);
}

.mp-hide-new-track:active{
  transform:translateY(0) scale(.98);
}

.mp-hide-new-track:disabled{
  opacity:.34;
  cursor:default;
  pointer-events:none;
  transform:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}

.rg-hidden-by-preference{
  opacity:0;
  transform:scale(.98);
  transition:opacity .18s ease, transform .18s ease;
}

.rg-hide-new-modal{
  position:fixed;
  inset:0;
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.rg-hide-new-modal.is-open{
  display:flex;
}

.rg-hide-new-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.62);
  backdrop-filter:blur(8px);
}

.rg-hide-new-modal__dialog{
  position:relative;
  width:min(420px, 100%);
  border:1px solid rgba(255,255,255,.14);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(24,24,28,.98), rgba(10,10,12,.98));
  color:#fff;
  box-shadow:0 24px 80px rgba(0,0,0,.55);
  padding:20px;
}

.rg-hide-new-modal__title{
  font-weight:800;
  font-size:1.05rem;
  margin-bottom:8px;
}

.rg-hide-new-modal__text{
  color:rgba(255,255,255,.72);
  font-size:.94rem;
  line-height:1.45;
  margin-bottom:18px;
}

.rg-hide-new-modal__actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
}

.rg-hide-new-modal__btn{
  border:0;
  border-radius:14px;
  padding:10px 14px;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

.rg-hide-new-modal__btn--ghost{
  background:rgba(255,255,255,.09);
}

.rg-hide-new-modal__btn--danger{
  background:linear-gradient(180deg, #f04a5b, #c92838);
  box-shadow:0 10px 26px rgba(220,53,69,.22);
}

.rg-hide-new-modal__btn:disabled{
  opacity:.6;
  cursor:default;
}

@media (max-width:575.98px){
  .mp-now{
    gap:8px;
  }

  .mp-now-text{
    padding-right:0;
  }

  .mp-now-actions{
    gap:6px;
  }

  .mp-hide-new-track{
    width:31px;
    height:31px;
    border-radius:12px;
  }

  .mp-hide-new-track__icon{
    width:17px;
    height:17px;
  }

  .mp-fav{
    min-width:45px;
  }

  .rg-hide-new-modal{
    align-items:flex-end;
    padding:12px;
  }

  .rg-hide-new-modal__dialog{
    border-radius:20px;
  }

  .rg-hide-new-modal__actions{
    flex-direction:column-reverse;
  }
}


/* Hidden-new-track disabled state */
.mp-hide-track.is-disabled,
.mp-hide-track:disabled {
  opacity: .42;
  cursor: default;
  pointer-events: none;
  filter: grayscale(1);
  transform: none !important;
}

/* Uploaded today genre chip — premium minimal */
.active-genre-chip.btn-today-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  background: rgba(255, 255, 255, .045) !important;
  color: rgba(255, 255, 255, .9) !important;
  font-weight: 650;
  letter-spacing: .15px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.active-genre-chip.btn-today-filter:hover,
.active-genre-chip.btn-today-filter:focus {
  border-color: rgba(255, 255, 255, .26) !important;
  background: rgba(255, 255, 255, .075) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.active-genre-chip.btn-today-filter.is-active,
.active-genre-chip.btn-today-filter.btn-danger {
  border-color: rgba(255, 255, 255, .34) !important;
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .10) inset, 0 10px 24px rgba(0, 0, 0, .18);
}

.btn-today-filter__label,
.btn-today-filter__count {
  position: relative;
  z-index: 1;
}

.btn-today-filter__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .92);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
}

.active-genre-chip.btn-today-filter.is-active .btn-today-filter__count,
.active-genre-chip.btn-today-filter.btn-danger .btn-today-filter__count {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.active-genre-chip.btn-today-filter::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .16s ease;
}

.active-genre-chip.btn-today-filter.is-active::after,
.active-genre-chip.btn-today-filter.btn-danger::after {
  transform: scaleX(1);
}


/* =====================================================
   TRACK.PHP PREMIUM HERO — SAFE OVERRIDES
   Added last on purpose. Does not remove or change old CSS.
   Scoped to .track-premium-* so regular track cards and mini-player
   buttons keep their own styles.
===================================================== */

.track-premium-shell{
  max-width: 1320px;
}

.track-premium-hero{
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(720px 420px at 4% 5%, rgba(255,138,61,.18), transparent 62%),
    radial-gradient(680px 360px at 62% 0%, rgba(255,255,255,.055), transparent 58%),
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow:
    0 28px 90px rgba(0,0,0,.58),
    inset 0 1px 0 rgba(255,255,255,.055);
  backdrop-filter: blur(18px);
}

.track-premium-hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(255,138,61,.055), transparent 38%),
    radial-gradient(560px 280px at 100% 0%, rgba(255,255,255,.045), transparent 62%);
}

.track-premium-inner{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  min-height: 410px;
  padding: clamp(28px, 4vw, 48px);
}

.track-premium-cover-wrap{
  position: relative;
  display: block;
  width: min(340px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  isolation: isolate;
  overflow: hidden;
  box-shadow:
    0 28px 70px rgba(0,0,0,.56),
    0 0 0 1px rgba(255,255,255,.10);
}

.track-premium-cover-wrap::before{
  content:"";
  position:absolute;
  inset:-1px;
  z-index: 2;
  pointer-events:none;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,138,61,.52), rgba(255,255,255,.12) 42%, rgba(0,0,0,.16));
  opacity: .85;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  padding: 1px;
  mask-composite: exclude;
  -webkit-mask-composite: xor;
}

.track-premium-cover-wrap:hover{
  box-shadow:
    0 34px 90px rgba(0,0,0,.62),
    0 0 0 1px rgba(255,138,61,.18);
}

/* IMPORTANT:
   track.php button has both classes:
   .track-premium-cover.track-cover-btn
   This override prevents global .track-cover-btn card styles from shrinking
   or moving the premium cover/play overlay.
*/
.track-premium-cover.track-cover-btn{
  position: relative;
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  flex: none !important;
  flex-basis: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0;
  border-radius: inherit;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  box-shadow: none;
  cursor: pointer;
  transform: none !important;
  appearance: none;
  -webkit-appearance: none;
}

.track-premium-cover.track-cover-btn img,
.track-premium-cover-placeholder{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-premium-cover-placeholder{
  background:
    radial-gradient(90px 90px at 38% 30%, rgba(255,138,61,.24), transparent 64%),
    radial-gradient(160px 160px at 72% 76%, rgba(255,255,255,.07), transparent 64%),
    rgba(255,255,255,.045);
}

.track-premium-cover.track-cover-btn::after{
  content:"";
  position:absolute;
  inset:0;
  z-index: 1;
  pointer-events:none;
  background:
    radial-gradient(140px 140px at 50% 48%, rgba(0,0,0,.14), transparent 72%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.40));
  opacity: .58;
  transition: opacity .18s ease;
}

.track-premium-cover.track-cover-btn:hover::after,
.track-premium-cover.track-cover-btn[data-state="playing"]::after{
  opacity: .78;
}

.track-premium-cover.track-cover-btn .playbadge{
  position:absolute;
  inset:0;
  z-index: 3;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  opacity:1;
  background: transparent;
  transform: none !important;
  transition: none;
  pointer-events:none;
}

.track-premium-cover.track-cover-btn .playbadge .icon{
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at 32% 20%, rgba(255,255,255,.18), rgba(255,255,255,0) 40%),
    rgba(8,10,13,.62);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow:
    0 18px 38px rgba(0,0,0,.46),
    inset 0 1px 0 rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  transform: scale(1);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.track-premium-cover.track-cover-btn:hover .playbadge .icon{
  transform: scale(1.06);
  background:
    radial-gradient(circle at 32% 20%, rgba(255,255,255,.22), rgba(255,255,255,0) 42%),
    rgba(8,10,13,.74);
  border-color: rgba(255,255,255,.30);
}

.track-premium-cover.track-cover-btn .playbadge .icon svg{
  width: 22px;
  height: 22px;
  display:block;
  fill: #fff;
}

.track-premium-info{
  min-width: 0;
}

.track-premium-back{
  display: inline-flex;
  align-items:center;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255,255,255,.66);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 650;
  transition: color .16s ease;
}

.track-premium-back:hover,
.track-premium-back:focus{
  color: #fff;
}

.track-premium-label{
  margin-bottom: 10px;
  color: #ff9a3c;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 850;
}

.track-premium-title{
  max-width: 860px;
  margin: 0 0 12px;
  color: rgba(255,255,255,.96);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 760;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 18px 54px rgba(0,0,0,.46);
}

.track-premium-authors{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255,255,255,.76);
  font-size: .98rem;
  font-weight: 720;
}

.track-premium-author{
  color: rgba(255,255,255,.90);
  text-decoration:none;
  transition: color .16s ease;
}

.track-premium-author:hover,
.track-premium-author:focus{
  color:#fff;
}

.track-premium-coauthor{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color: rgba(255,255,255,.72);
}

.track-premium-coauthor::before{
  content:"×";
  color:#ff9a3c;
  font-weight:850;
}

.track-premium-pills{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap: 10px;
  margin-bottom: 24px;
}

.track-premium-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height: 34px;
  padding: 7px 13px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.82);
  font-size: .85rem;
  font-weight: 720;
  line-height:1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

.track-premium-pill.is-accent{
  border-color: rgba(255,138,61,.42);
  background: rgba(255,138,61,.105);
  color: #ffae70;
}

.track-premium-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap: 10px;
}

.track-premium-share{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 13px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.045);
  color: rgba(255,255,255,.78);
  font-size: .84rem;
  font-weight: 520;
  line-height:1;
  box-shadow: none;
  cursor:pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.track-premium-share:hover,
.track-premium-share:focus{
  background: rgba(255,255,255,.085);
  border-color: rgba(255,255,255,.20);
  color: #fff;
  outline:none;
  transform: translateY(-1px);
}

.track-premium-share .track-share-btn-icon{
  width: 15px;
  height: 15px;
}

.track-premium-share .track-share-btn-icon svg{
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.track-premium-fav{
  min-height: 34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 5px;
  padding: 6px 10px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.72);
  font-size: .92rem;
  line-height:1;
}

.track-premium-fav:hover,
.track-premium-fav:focus{
  background: rgba(255,255,255,.08);
  color:#fff;
  transform: translateY(-1px);
}

.track-premium-fav.is-active{
  color:#ff8a3d;
  border-color: rgba(255,138,61,.28);
  background: rgba(255,138,61,.08);
}

.track-premium-fav.is-readonly{
  cursor: default;
  pointer-events: none;
}

/* Protect mini-player hide button from generic .btn / page button changes */
.mp-now-actions .mp-hide-new-track,
.mini-player .mp-hide-new-track{
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  min-height:34px !important;
  flex:0 0 34px !important;
  padding:0 !important;
  border:1px solid rgba(255,255,255,.14) !important;
  border-radius:14px !important;
  background:
    radial-gradient(circle at 30% 15%, rgba(255,255,255,.15), rgba(255,255,255,0) 35%),
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035)) !important;
  color:rgba(255,255,255,.78) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 8px 22px rgba(0,0,0,.24) !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 !important;
  line-height:0 !important;
  font-size:0 !important;
  transform:none;
}

.mp-now-actions .mp-hide-new-track:hover,
.mp-now-actions .mp-hide-new-track:focus-visible,
.mini-player .mp-hide-new-track:hover,
.mini-player .mp-hide-new-track:focus-visible{
  color:#fff !important;
  border-color:rgba(255,92,92,.72) !important;
  background:
    radial-gradient(circle at 30% 15%, rgba(255,255,255,.18), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, rgba(255,76,76,.18), rgba(255,76,76,.075)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.13),
    0 10px 28px rgba(255,60,60,.12),
    0 8px 22px rgba(0,0,0,.26) !important;
  outline:none;
  transform:translateY(-1px);
}

.mp-now-actions .mp-hide-new-track:disabled,
.mini-player .mp-hide-new-track:disabled{
  opacity:.34 !important;
  cursor:default !important;
  pointer-events:none !important;
  transform:none !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.mp-now-actions .mp-hide-new-track__icon,
.mini-player .mp-hide-new-track__icon{
  width:18px !important;
  height:18px !important;
  display:block !important;
  fill:currentColor !important;
}

.mp-now-actions .mp-hide-new-track__slash,
.mini-player .mp-hide-new-track__slash{
  fill:rgba(255,92,92,.95) !important;
}

@media (max-width: 768px){
  .track-premium-inner{
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 24px;
    padding: 24px;
  }

  .track-premium-cover-wrap{
    width: min(320px, 100%);
    margin: 0 auto;
  }

  .track-premium-info{
    text-align: left;
  }

  .track-premium-title{
    font-size: clamp(2rem, 11vw, 3.15rem);
  }
}

@media (max-width: 575.98px){
  .track-premium-shell{
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .track-premium-hero{
    border-radius: 22px;
  }

  .track-premium-inner{
    padding: 18px;
  }

  .track-premium-cover-wrap{
    border-radius: 22px;
  }

  .track-premium-cover.track-cover-btn .playbadge .icon{
    width: 52px;
    height: 52px;
  }

  .track-premium-title{
    font-size: clamp(1.4rem, 7vw, 2rem);
    letter-spacing: -.04em;
  }

  .track-premium-pills{
    gap: 8px;
  }

  .track-premium-pill{
    min-height: 32px;
    padding: 7px 11px;
    font-size: .8rem;
  }

  .mp-now-actions .mp-hide-new-track,
  .mini-player .mp-hide-new-track{
    width:31px !important;
    height:31px !important;
    min-width:31px !important;
    min-height:31px !important;
    flex-basis:31px !important;
    border-radius:12px !important;
  }

  .mp-now-actions .mp-hide-new-track__icon,
  .mini-player .mp-hide-new-track__icon{
    width:17px !important;
    height:17px !important;
  }
}

/* ===== Album track reorder SAFE ===== */
.album-reorder-note{
  color: rgba(255,255,255,.62);
}
.album-reorder-note.is-disabled{
  color: rgba(255,193,7,.82);
}
.album-reorder-status{
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 100000;
  max-width: min(520px, calc(100vw - 32px));
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(8,8,10,.94);
  box-shadow: 0 18px 42px rgba(0,0,0,.45);
  color: rgba(255,255,255,.86);
  transform: translateX(-50%);
  pointer-events: none;
}
.album-reorder-status[data-state="error"]{
  color: rgba(255,160,160,.98);
  border-color: rgba(255,80,80,.24);
}
.album-track-grid.is-saving-order{
  opacity: .94;
}
[data-album-track-list][data-reorder-enabled="1"] [data-album-track-item]{
  cursor: grab;
}
[data-album-track-list][data-reorder-enabled="1"] [data-album-track-item] .track-card{
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
[data-album-track-list][data-reorder-enabled="1"] [data-album-track-item]:hover .track-card{
  border-color: rgba(255,255,255,.3) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}
.rg-album-drag-active,
.rg-album-drag-active body{
  cursor: grabbing !important;
  user-select: none !important;
}
.album-track-grid.is-album-reordering{
  user-select: none;
}
.album-track-grid.is-album-reordering .track-cover-btn,
.album-track-grid.is-album-reordering .track-row{
  pointer-events: none;
}
[data-album-track-item].is-album-drag-source{
  display: none !important;
}
[data-album-track-item].is-album-drag-settled .track-card{
  animation: rgAlbumSettle .16s ease-out;
}
.album-track-placeholder{
  pointer-events: none;
  animation: rgAlbumPlaceholderIn .12s ease-out;
}
.album-track-placeholder-inner{
  min-height: 100%;
  height: 100%;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,.28);
  background:
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}
.album-track-ghost{
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99999;
  pointer-events: none;
  margin: 0 !important;
  will-change: transform;
  transform: translate3d(0,0,0) scale(1.018);
  transition: none !important;
  filter: drop-shadow(0 22px 40px rgba(0,0,0,.52));
}
.album-track-ghost .track-card{
  height: 100%;
  border-color: rgba(255,255,255,.5) !important;
  background: rgba(10,10,10,.98) !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.1) inset,
    0 20px 54px rgba(0,0,0,.62);
  transform: translateY(-2px);
}
.album-track-ghost .track-row{
  pointer-events: none !important;
}
@keyframes rgAlbumPlaceholderIn{
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes rgAlbumSettle{
  from { transform: translateY(-2px) scale(1.006); }
  to { transform: translateY(0) scale(1); }
}

[data-album-track-list][data-reorder-enabled="1"] [data-album-track-item]{
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.rg-album-drag-active,
.rg-album-drag-active body{
  overscroll-behavior: none;
}
.rg-album-drag-active [data-album-track-list][data-reorder-enabled="1"]{
  touch-action: none;
}

@media (hover: none){
  [data-album-track-list][data-reorder-enabled="1"] [data-album-track-item]{
    cursor: default;
  }
}

/* ===== RADIO GRIND NAVBAR ACTIONS — rectangular premium SAFE override ===== */
.rg-navbar .rg-navbar-search{
  align-items: stretch;
}

.rg-navbar .rg-navbar-search .form-control{
  min-height: 42px;
  border-radius: 6px !important;
  border-color: rgba(255,255,255,.18) !important;
  background: rgba(8,9,11,.78) !important;
  color: rgba(255,255,255,.92) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

.rg-navbar .rg-navbar-search .form-control:focus{
  border-color: rgba(255,255,255,.42) !important;
  box-shadow:
    0 0 0 .12rem rgba(255,255,255,.08),
    inset 0 1px 0 rgba(255,255,255,.06) !important;
}

.rg-navbar .rg-navbar-search .btn,
.rg-navbar .btn-warning,
.rg-navbar .btn-danger,
.rg-navbar .btn-outline-light{
  min-height: 42px;
  padding: .52rem 1.05rem;
  border-radius: 6px !important;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1;
  border-width: 1px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    0 10px 24px rgba(0,0,0,.24);
  transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease, color .14s ease;
}

.rg-navbar .rg-navbar-search .btn,
.rg-navbar .btn-outline-light{
  color: #f7f7f7 !important;
  border-color: rgba(255,255,255,.24) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.045)) !important;
}

.rg-navbar .rg-navbar-search .btn:hover,
.rg-navbar .rg-navbar-search .btn:focus,
.rg-navbar .btn-outline-light:hover,
.rg-navbar .btn-outline-light:focus{
  color: #fff !important;
  border-color: rgba(255,255,255,.44) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.07)) !important;
  transform: translateY(-1px);
}

.rg-navbar .btn-warning{
  color: #ffb23d !important;
  border-color: rgba(255,154,38,.72) !important;
  background: linear-gradient(180deg, rgba(255,154,38,.13), rgba(255,154,38,.045)) !important;
  text-shadow: 0 0 14px rgba(255,154,38,.18);
}

.rg-navbar .btn-warning:hover,
.rg-navbar .btn-warning:focus{
  color: #ffc46a !important;
  border-color: rgba(255,172,54,.95) !important;
  background: linear-gradient(180deg, rgba(255,154,38,.20), rgba(255,154,38,.07)) !important;
  transform: translateY(-1px);
}

.rg-navbar .btn-danger{
  color: #ff5d77 !important;
  border-color: rgba(255,64,99,.72) !important;
  background: linear-gradient(180deg, rgba(255,64,99,.13), rgba(255,64,99,.045)) !important;
  text-shadow: 0 0 14px rgba(255,64,99,.18);
}

.rg-navbar .btn-danger:hover,
.rg-navbar .btn-danger:focus{
  color: #ff8297 !important;
  border-color: rgba(255,82,114,.95) !important;
  background: linear-gradient(180deg, rgba(255,64,99,.20), rgba(255,64,99,.07)) !important;
  transform: translateY(-1px);
}

.rg-navbar .rg-navbar-search .btn:active,
.rg-navbar .btn-warning:active,
.rg-navbar .btn-danger:active,
.rg-navbar .btn-outline-light:active{
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 6px 16px rgba(0,0,0,.22);
}

@media (min-width: 992px){
  .rg-navbar .rg-navbar-search .form-control{
    min-width: 210px;
  }
}

@media (max-width: 991.98px){
  .rg-navbar .rg-navbar-search .form-control,
  .rg-navbar .rg-navbar-search .btn,
  .rg-navbar .btn-warning,
  .rg-navbar .btn-danger,
  .rg-navbar .btn-outline-light{
    min-height: 44px;
  }
}

/* ===== RADIO GRIND NAVBAR ACTIONS — premium restore + login alignment SAFE ===== */
.rg-navbar .rg-navbar-search{
  align-items: stretch;
}

.rg-navbar .rg-navbar-search .form-control{
  min-height: 44px;
  height: 44px;
  border-radius: 7px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background: linear-gradient(180deg, rgba(18,20,24,.92), rgba(8,9,12,.96)) !important;
  color: rgba(255,255,255,.94) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.055),
    0 10px 28px rgba(0,0,0,.20);
}

.rg-navbar .rg-navbar-search .form-control::placeholder{
  color: rgba(255,255,255,.46);
}

.rg-navbar .rg-navbar-search .form-control:focus{
  border-color: rgba(255,142,42,.52) !important;
  box-shadow:
    0 0 0 .14rem rgba(255,142,42,.13),
    0 0 24px rgba(255,142,42,.08),
    inset 0 1px 0 rgba(255,255,255,.07) !important;
}

.rg-navbar .rg-premium-btn,
.rg-navbar .rg-navbar-search .rg-premium-btn,
.rg-navbar .btn-outline-light{
  min-height: 44px;
  height: 44px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 1.18rem !important;
  border-radius: 7px !important;
  border-width: 1px !important;
  border-style: solid !important;
  font-weight: 900 !important;
  font-size: .9rem;
  letter-spacing: .01em;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap;
  opacity: 1 !important;
  filter: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(0,0,0,.22),
    0 12px 28px rgba(0,0,0,.30);
  transition:
    transform .14s ease,
    border-color .14s ease,
    background .14s ease,
    box-shadow .14s ease,
    color .14s ease;
}

.rg-navbar .rg-premium-btn-search,
.rg-navbar .btn-outline-light{
  color: #ffffff !important;
  border-color: rgba(255,255,255,.32) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.055)) !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}

.rg-navbar .rg-premium-btn-search:hover,
.rg-navbar .rg-premium-btn-search:focus,
.rg-navbar .btn-outline-light:hover,
.rg-navbar .btn-outline-light:focus{
  color: #ffffff !important;
  border-color: rgba(255,255,255,.55) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.19), rgba(255,255,255,.075)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 0 26px rgba(255,255,255,.08),
    0 14px 32px rgba(0,0,0,.34);
  transform: translateY(-1px);
}

.rg-navbar .rg-premium-btn-admin{
  color: #171009 !important;
  border-color: rgba(255,178,58,.82) !important;
  background:
    linear-gradient(180deg, #ffc257 0%, #f59a1f 52%, #b7670d 100%) !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.36),
    inset 0 -1px 0 rgba(84,39,0,.32),
    0 0 22px rgba(255,141,27,.18),
    0 12px 28px rgba(0,0,0,.34);
}

.rg-navbar .rg-premium-btn-admin:hover,
.rg-navbar .rg-premium-btn-admin:focus{
  color: #120c05 !important;
  border-color: rgba(255,205,96,.95) !important;
  background:
    linear-gradient(180deg, #ffd06f 0%, #ffa733 52%, #c87512 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    0 0 30px rgba(255,145,24,.28),
    0 14px 34px rgba(0,0,0,.38);
  transform: translateY(-1px);
}

.rg-navbar .rg-premium-btn-logout{
  color: #ffffff !important;
  border-color: rgba(255,76,109,.80) !important;
  background:
    linear-gradient(180deg, #d93a5c 0%, #a91839 56%, #651021 100%) !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.30);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.20),
    inset 0 -1px 0 rgba(50,0,11,.36),
    0 0 22px rgba(255,48,88,.17),
    0 12px 28px rgba(0,0,0,.34);
}

.rg-navbar .rg-premium-btn-logout:hover,
.rg-navbar .rg-premium-btn-logout:focus{
  color: #ffffff !important;
  border-color: rgba(255,112,137,.95) !important;
  background:
    linear-gradient(180deg, #ec4a6d 0%, #bd1d43 56%, #741126 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.24),
    0 0 30px rgba(255,55,92,.28),
    0 14px 34px rgba(0,0,0,.38);
  transform: translateY(-1px);
}

.rg-navbar .rg-premium-btn:active,
.rg-navbar .btn-outline-light:active{
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    inset 0 2px 10px rgba(0,0,0,.18),
    0 7px 18px rgba(0,0,0,.28);
}

@media (min-width: 992px){
  .rg-navbar .rg-navbar-search .form-control{
    min-width: 225px;
  }
}

@media (max-width: 991.98px){
  .rg-navbar .rg-premium-btn,
  .rg-navbar .rg-navbar-search .form-control,
  .rg-navbar .btn-outline-light{
    width: 100%;
  }
}

/* RADIO GRIND artist.php SPA-safe styles
   Moved from public/social-pages/artist.php so rg-shell.js SPA navigation keeps the layout. */
.upload-loading-overlay{
    position:absolute;
    inset:0;
    z-index:30;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,.78);
    backdrop-filter:blur(3px);
    border-radius:inherit;
  }

  .upload-loading-box{
    width:min(92%, 360px);
    padding:24px 20px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:18px;
    background:rgba(17,17,17,.96);
    box-shadow:0 12px 40px rgba(0,0,0,.45);
    text-align:center;
  }

  .upload-loading-title{
    font-size:1.05rem;
    font-weight:800;
    margin-top:14px;
    margin-bottom:8px;
  }

  .upload-loading-text{
    font-size:.92rem;
    color:rgba(255,255,255,.72);
    line-height:1.45;
  }

  .upload-loading-spinner{
    width:52px;
    height:52px;
    margin:0 auto;
    border-radius:50%;
    border:4px solid rgba(255,255,255,.14);
    border-top-color:#dc3545;
    animation:rgSpin .85s linear infinite;
  }

  .btn-spinner{
    width:16px;
    height:16px;
    display:inline-block;
    vertical-align:-2px;
    margin-left:8px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.35);
    border-top-color:#fff;
    animation:rgSpin .8s linear infinite;
  }

  @keyframes rgSpin{
    to{ transform:rotate(360deg); }
  }

  .modal-content.mr-modal{
    position:relative;
    overflow:hidden;
  }

  body.upload-in-progress #uploadModal .btn-close,
  body.upload-in-progress #uploadModal [data-bs-dismiss="modal"]{
    pointer-events:none;
    opacity:.55;
  }


  .owned-artists-grid{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-start}
  .owned-artist-tile{width:96px;text-align:center;text-decoration:none;color:#f8f9fa;display:block}
  .owned-artist-card{position:relative;width:110px;text-align:center}
  .owned-artist-avatar{width:74px;height:74px;margin:0 auto 8px;border-radius:50%;overflow:hidden;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center}
  .owned-artist-avatar img{width:100%;height:100%;object-fit:cover;display:block}
  .owned-artist-name{font-size:.82rem;font-weight:700;line-height:1.2;word-break:break-word}
  .owned-artist-create{width:96px;border:1px dashed rgba(255,255,255,.25);border-radius:16px;background:rgba(255,255,255,.04);color:#f8f9fa;padding:12px 8px;min-height:112px}
  .owned-artist-create:hover{background:rgba(255,255,255,.08)}
  .owned-artist-plus{width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 8px;background:rgba(220,53,69,.18);font-weight:900;font-size:1.6rem}
  .owned-artist-actions{display:flex;justify-content:center;gap:6px;margin-top:8px}
  .owned-artist-action{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.05);color:#f8f9fa;border-radius:999px;padding:4px 9px;font-size:.72rem;line-height:1}
  .owned-artist-action:hover{background:rgba(255,255,255,.11)}
  .owned-artist-action.is-danger{border-color:rgba(220,53,69,.55);color:#ffb3bd;background:rgba(220,53,69,.1)}

/* === RADIO GRIND: About modal SAFE === */
.rg-about-modal .modal-dialog{max-width:min(860px,calc(100vw - 24px))}
.rg-about-modal-content{background:linear-gradient(145deg,#07090d 0%,#10131a 56%,#08090c 100%);border:1px solid rgba(255,255,255,.12);border-radius:14px;color:#f8fafc;box-shadow:0 28px 80px rgba(0,0,0,.72);overflow:hidden}
.rg-about-modal-header{border-bottom:1px solid rgba(255,255,255,.10);padding:22px 24px;background:radial-gradient(circle at 12% 0%,rgba(250,204,21,.12),transparent 34%),linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,0))}
.rg-about-kicker{font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:#facc15;font-weight:800;margin-bottom:6px}
.rg-about-title{font-size:clamp(1.45rem,3vw,2.15rem);line-height:1.08;font-weight:850;letter-spacing:-.035em;margin:0}
.rg-about-modal-body{padding:24px;background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,0))}
.rg-about-modal .modal-body{scrollbar-width:thin;scrollbar-color:rgba(250,204,21,.72) rgba(255,255,255,.055)}
.rg-about-modal .modal-body::-webkit-scrollbar{width:10px}
.rg-about-modal .modal-body::-webkit-scrollbar-track{background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.018));border-left:1px solid rgba(255,255,255,.06)}
.rg-about-modal .modal-body::-webkit-scrollbar-thumb{background:linear-gradient(180deg,rgba(250,204,21,.9),rgba(250,204,21,.48));border:2px solid #10131a;border-radius:999px;box-shadow:0 0 14px rgba(250,204,21,.16)}
.rg-about-modal .modal-body::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,rgba(250,204,21,1),rgba(250,204,21,.68))}
.rg-about-section{position:relative;padding:20px;border:1px solid rgba(255,255,255,.10);border-radius:12px;background:rgba(255,255,255,.035);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.rg-about-section+.rg-about-section{margin-top:16px}
.rg-about-section-legal{background:rgba(250,204,21,.045);border-color:rgba(250,204,21,.16)}
.rg-about-section-label{display:inline-flex;align-items:center;gap:8px;margin-bottom:12px;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.12em;color:#facc15}
.rg-about-copy{font-size:1rem;line-height:1.72;color:rgba(248,250,252,.92);white-space:normal}
.rg-about-copy-legal{font-size:.94rem;color:rgba(248,250,252,.82)}
@media (max-width: 575.98px){.rg-about-modal-header,.rg-about-modal-body{padding:18px}.rg-about-section{padding:16px;border-radius:10px}.rg-about-copy{font-size:.96rem;line-height:1.65}}

/* === RADIO GRIND: Admin collapsible blocks SAFE === */
.rg-admin-collapse-card{overflow:hidden}
.rg-admin-collapse-summary{display:flex;cursor:pointer;list-style:none;user-select:none}
.rg-admin-collapse-summary::-webkit-details-marker{display:none}
.rg-admin-collapse-summary::marker{content:""}
.rg-admin-collapse-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border:1px solid rgba(255,255,255,.16);border-radius:8px;background:rgba(255,255,255,.05);color:rgba(255,255,255,.82);font-size:1.1rem;line-height:1;transition:transform .18s ease,background .18s ease,border-color .18s ease}
.rg-admin-collapse-card[open] .rg-admin-collapse-icon{transform:rotate(180deg);background:rgba(255,255,255,.09);border-color:rgba(250,204,21,.35)}
.rg-admin-collapse-summary:hover .rg-admin-collapse-icon{background:rgba(255,255,255,.1)}

/* PATCH_STAGE_5_1_PREMIUM_UPLOAD_SURFACE_SAFE */
#uploadModal .modal-dialog{
  max-width: 540px;
}

#uploadModal .mr-modal{
  border-radius: 18px;
  background:
    radial-gradient(520px 260px at 50% -70px, rgba(220,53,69,.16), transparent 60%),
    rgba(8,10,14,.96) !important;
}

#uploadModal .modal-header{
  padding: 20px 22px 16px;
}

#uploadModal .modal-title{
  font-size: 1.18rem;
}

.rg-upload-premium-body{
  padding: 20px 22px 18px;
}

.rg-upload-premium-body .form-label{
  margin-bottom: 8px;
  color: rgba(255,255,255,.86);
  font-size: .88rem;
  font-weight: 800;
}

.rg-upload-premium-body .form-control,
.rg-upload-premium-body .form-select{
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background-color: rgba(255,255,255,.045);
  color: rgba(255,255,255,.94);
  box-shadow: none;
}

.rg-upload-premium-body .form-control::placeholder{
  color: rgba(255,255,255,.36);
}

.rg-upload-premium-body .form-control:focus,
.rg-upload-premium-body .form-select:focus{
  border-color: rgba(255,255,255,.32);
  background-color: rgba(255,255,255,.07);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(220,53,69,.18);
}

.rg-upload-premium-body .form-select option{
  color: #111;
}

.rg-upload-cover-shell{
  margin-bottom: 22px;
}

.rg-upload-cover{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 210px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 10px;
  border: 1px dashed rgba(255,255,255,.22);
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    radial-gradient(160px 120px at 50% 20%, rgba(220,53,69,.18), transparent 72%);
}

.rg-upload-cover:hover{
  border-color: rgba(255,255,255,.36);
  background:
    linear-gradient(135deg, rgba(255,255,255,.095), rgba(255,255,255,.035)),
    radial-gradient(180px 135px at 50% 20%, rgba(220,53,69,.22), transparent 72%);
}

.rg-upload-cover-preview{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rg-upload-cover-empty{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.rg-upload-cover-kicker,
.rg-upload-section-label{
  color: rgba(255,255,255,.46);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rg-upload-cover-title{
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.rg-upload-cover-note{
  color: rgba(255,255,255,.54);
  font-size: .82rem;
  font-weight: 700;
}

.rg-upload-section-label{
  margin: 2px 0 14px;
}

.rg-upload-section-label-audio{
  margin-top: 18px;
}

.rg-upload-visibility{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 18px;
  padding: 14px 14px;
  cursor: pointer;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}

.rg-upload-visibility-title,
.rg-upload-visibility-text{
  display: block;
}

.rg-upload-visibility-title{
  color: #fff;
  font-weight: 900;
}

.rg-upload-visibility-text{
  margin-top: 2px;
  color: rgba(255,255,255,.54);
  font-size: .82rem;
  line-height: 1.25;
}

.rg-upload-switch-wrap{
  flex: 0 0 auto;
  position: relative;
  width: 48px;
  height: 28px;
}

.rg-upload-switch-input{
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.rg-upload-switch{
  display: block;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.13);
  transition: background .18s ease, border-color .18s ease;
}

.rg-upload-switch::after{
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}

.rg-upload-switch-input:checked + .rg-upload-switch{
  border-color: rgba(220,53,69,.74);
  background: rgba(220,53,69,.86);
}

.rg-upload-switch-input:checked + .rg-upload-switch::after{
  transform: translateX(20px);
}

.rg-upload-audio-card{
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px 14px;
  cursor: pointer;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.045);
}

.rg-upload-audio-card:hover{
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.065);
}

.rg-upload-audio-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(220,53,69,.18);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
}

.rg-upload-audio-main{
  min-width: 0;
  flex: 1;
}

.rg-upload-audio-title,
.rg-upload-audio-meta{
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rg-upload-audio-title{
  color: #fff;
  font-weight: 900;
}

.rg-upload-audio-meta{
  margin-top: 2px;
  color: rgba(255,255,255,.54);
  font-size: .82rem;
}

.rg-upload-audio-action{
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 8px;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.08);
  font-size: .82rem;
  font-weight: 800;
}

.rg-upload-file-native{
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#uploadModal .modal-footer{
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 10px;
  padding: 16px 22px;
}

#uploadModal .modal-footer .btn{
  min-height: 46px;
  border-radius: 8px;
  font-weight: 900;
}

#uploadModal .modal-footer .btn-danger{
  background: #dc3545;
  border-color: #dc3545;
}

@media (max-width: 575.98px){
  #uploadModal .modal-dialog{
    margin: 10px;
  }
  .rg-upload-premium-body{
    padding: 18px 16px 16px;
  }
  .rg-upload-cover{
    min-height: 180px;
  }
  #uploadModal .modal-header,
  #uploadModal .modal-footer{
    padding-left: 16px;
    padding-right: 16px;
  }
}


/* PATCH_STAGE_5_1_1_UPLOAD_MODAL_VIEWPORT_FIX_SAFE */
#uploadModal .modal-dialog{
  max-height: calc(100vh - 24px);
}

#uploadModal .modal-content.mr-modal{
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
  overflow: hidden;
}

#uploadModal .modal-header{
  flex: 0 0 auto;
}

#uploadModal #artistUploadForm{
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

#uploadModal .rg-upload-premium-body{
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(220,53,69,.72) rgba(255,255,255,.045);
}

#uploadModal .rg-upload-premium-body::-webkit-scrollbar{
  width: 9px;
}

#uploadModal .rg-upload-premium-body::-webkit-scrollbar-track{
  background: rgba(255,255,255,.035);
}

#uploadModal .rg-upload-premium-body::-webkit-scrollbar-thumb{
  background: rgba(220,53,69,.64);
  border: 2px solid rgba(8,10,14,.96);
  border-radius: 999px;
}

#uploadModal .modal-footer{
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  background: rgba(8,10,14,.98);
  box-shadow: 0 -14px 34px rgba(0,0,0,.28);
}

#uploadModal .rg-upload-cover{
  min-height: 154px;
}

#uploadModal .rg-upload-cover-shell{
  margin-bottom: 18px;
}

#uploadModal .rg-upload-section-label{
  margin-bottom: 12px;
}

@media (max-width: 575.98px){
  #uploadModal .modal-dialog{
    max-height: calc(100vh - 20px);
  }
  #uploadModal .modal-content.mr-modal{
    max-height: calc(100vh - 20px);
  }
  #uploadModal .rg-upload-cover{
    min-height: 132px;
  }
}

/* PATCH_STAGE_5_1_2_PREMIUM_EDIT_TRACK_MODAL_SAFE */
#editTrackModal .modal-header{
  padding: 20px 22px 16px;
}

#editTrackModal .modal-title{
  font-size: 1.18rem;
}

#editTrackModal .modal-dialog{
  max-height: calc(100vh - 24px);
}

#editTrackModal .modal-content.mr-modal{
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 32px);
  overflow: hidden;
}

#editTrackModal .modal-header{
  flex: 0 0 auto;
}

#editTrackModal #editTrackForm{
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

#editTrackModal .rg-upload-premium-body{
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(220,53,69,.72) rgba(255,255,255,.045);
}

#editTrackModal .rg-upload-premium-body::-webkit-scrollbar{
  width: 9px;
}

#editTrackModal .rg-upload-premium-body::-webkit-scrollbar-track{
  background: rgba(255,255,255,.035);
}

#editTrackModal .rg-upload-premium-body::-webkit-scrollbar-thumb{
  background: rgba(220,53,69,.64);
  border: 2px solid rgba(8,10,14,.96);
  border-radius: 999px;
}

#editTrackModal .modal-footer{
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 10px;
  padding: 16px 22px;
  position: relative;
  z-index: 2;
  background: rgba(8,10,14,.98);
  box-shadow: 0 -14px 34px rgba(0,0,0,.28);
}

#editTrackModal .modal-footer .btn{
  min-height: 46px;
  border-radius: 8px;
  font-weight: 900;
}

#editTrackModal .modal-footer .btn-danger{
  background: #dc3545;
  border-color: #dc3545;
}

#editTrackModal .rg-upload-cover{
  min-height: 154px;
}

#editTrackModal .rg-upload-cover-shell{
  margin-bottom: 18px;
}

#editTrackModal .rg-upload-section-label{
  margin-bottom: 12px;
}

@media (max-width: 575.98px){
  #editTrackModal .modal-dialog{
    margin: 10px;
    max-height: calc(100vh - 20px);
  }

  #editTrackModal .modal-content.mr-modal{
    max-height: calc(100vh - 20px);
  }

  #editTrackModal .modal-header,
  #editTrackModal .modal-footer{
    padding-left: 16px;
    padding-right: 16px;
  }

  #editTrackModal .rg-upload-cover{
    min-height: 132px;
  }
}


/* === RADIO GRIND: Lyrics Modal SAFE === */
.mp-lyrics-btn{
  min-width:54px;
  height:34px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:7px;
  background:rgba(255,255,255,.045);
  color:#f8fafc;
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.01em;
  padding:0 10px;
}
.mp-lyrics-btn:hover:not(:disabled){background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.24)}
.mp-lyrics-btn:disabled{opacity:.42;cursor:not-allowed}
.rg-lyrics-editor{min-height:150px;resize:vertical;white-space:pre-wrap}
.rg-lyrics-modal{position:fixed;inset:0;z-index:1095;display:none;align-items:center;justify-content:center;padding:18px;color:#f8fafc}
.rg-lyrics-modal.is-open{display:flex}
.rg-lyrics-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(14px)}
.rg-lyrics-modal__dialog{position:relative;width:min(680px,100%);max-height:min(78vh,760px);display:flex;flex-direction:column;border:1px solid rgba(255,255,255,.13);border-radius:10px;background:linear-gradient(145deg,rgba(12,14,18,.98),rgba(3,4,6,.98));box-shadow:0 28px 90px rgba(0,0,0,.72);overflow:hidden}
.rg-lyrics-modal__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px 14px;border-bottom:1px solid rgba(255,255,255,.09);background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,0))}
.rg-lyrics-modal__kicker{margin-bottom:4px;color:rgba(255,255,255,.46);font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.12em}
.rg-lyrics-modal__title{font-size:1.08rem;font-weight:900;letter-spacing:-.02em;line-height:1.22}
.rg-lyrics-modal__artist{margin-top:4px;color:rgba(255,255,255,.58);font-size:.9rem}
.rg-lyrics-modal__close{width:34px;height:34px;flex:0 0 auto;border:1px solid rgba(255,255,255,.13);border-radius:7px;background:rgba(255,255,255,.045);color:#fff;font-size:1.3rem;line-height:1}
.rg-lyrics-modal__close:hover{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.24)}
.rg-lyrics-modal__body{overflow:auto;padding:20px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.28) rgba(255,255,255,.06)}
.rg-lyrics-modal__text{font-size:1rem;line-height:1.72;white-space:normal;color:rgba(248,250,252,.93)}
.rg-lyrics-modal__empty{padding:22px;border:1px solid rgba(255,255,255,.10);border-radius:8px;background:rgba(255,255,255,.045);color:rgba(255,255,255,.62);text-align:center}
.rg-lyrics-modal__rights{margin-top:22px;padding:13px 14px;border-top:1px solid rgba(255,255,255,.10);background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.018));color:rgba(255,255,255,.50);font-size:.78rem;line-height:1.45}
.rg-lyrics-modal__rights-title{margin-bottom:4px;color:rgba(255,255,255,.66);font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.12em}
.rg-lyrics-modal__rights-owner{margin-top:4px;color:rgba(255,255,255,.58)}
@media(max-width:575.98px){.rg-lyrics-modal{align-items:flex-end;padding:10px}.rg-lyrics-modal__dialog{max-height:82vh;border-radius:10px}.rg-lyrics-modal__head{padding:16px}.rg-lyrics-modal__body{padding:16px}.rg-lyrics-modal__text{font-size:.97rem;line-height:1.66}.rg-lyrics-modal__rights{margin-top:18px;padding:12px}}

/* =====================================================
   Track page lyrics block — Stage Lyrics Track Page SAFE
   Scoped only to track.php body content.
===================================================== */
.track-page-lyrics{
  position:relative;
  overflow:hidden;
  margin:0 0 34px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:14px;
  background:
    radial-gradient(520px 260px at 0% 0%, rgba(255,138,61,.10), transparent 62%),
    linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  box-shadow:0 20px 70px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.045);
}
.track-page-lyrics__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:22px 24px 16px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.track-page-lyrics__kicker{
  margin-bottom:5px;
  color:#ff9a3c;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.20em;
  text-transform:uppercase;
}
.track-page-lyrics__title{
  margin:0;
  color:rgba(255,255,255,.95);
  font-size:1.22rem;
  font-weight:850;
  letter-spacing:-.025em;
}
.track-page-lyrics__body{
  max-width:860px;
  padding:22px 24px 10px;
  color:rgba(248,250,252,.90);
  font-size:1.02rem;
  line-height:1.75;
}
.track-page-lyrics__section{
  display:inline-flex;
  margin:16px 0 8px;
  padding:4px 8px;
  border:1px solid rgba(255,138,61,.28);
  border-radius:7px;
  background:rgba(255,138,61,.08);
  color:#ffb06f;
  font-size:.74rem;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.track-page-lyrics__line{
  min-height:1.55em;
}
.track-page-lyrics__gap{
  height:14px;
}
.track-page-lyrics__empty{
  margin:22px 24px 24px;
  padding:18px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  background:rgba(255,255,255,.035);
  color:rgba(255,255,255,.58);
}
.track-page-lyrics__rights{
  margin:16px 24px 24px;
  padding:13px 14px;
  border-top:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg,rgba(255,255,255,.032),rgba(255,255,255,.016));
  color:rgba(255,255,255,.50);
  font-size:.78rem;
  line-height:1.45;
}
.track-page-lyrics__rights-title{
  margin-bottom:4px;
  color:rgba(255,255,255,.66);
  font-size:.68rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
}
.track-page-lyrics__rights-owner{
  margin-top:4px;
  color:rgba(255,255,255,.58);
}
@media(max-width:575.98px){
  .track-page-lyrics{border-radius:12px;margin-bottom:24px}
  .track-page-lyrics__head{padding:18px 16px 14px}
  .track-page-lyrics__body{padding:18px 16px 8px;font-size:.98rem;line-height:1.68}
  .track-page-lyrics__empty{margin:18px 16px;padding:16px}
  .track-page-lyrics__rights{margin:14px 16px 18px;padding:12px}
}


/* =====================================================
   Track page unified hero + lyrics — Stage Track Lyrics Merge SAFE
   Keeps lyrics inside the main track surface only on track.php.
===================================================== */
.track-premium-hero-with-lyrics{
  margin-bottom:34px;
}
.track-premium-hero-with-lyrics .track-premium-inner{
  min-height:390px;
}
.track-premium-lyrics-divider{
  position:relative;
  z-index:1;
  height:1px;
  margin:0 clamp(28px, 4vw, 48px);
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.13), transparent);
}
.track-page-lyrics--inside-hero{
  position:relative;
  z-index:1;
  margin:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.track-page-lyrics--inside-hero .track-page-lyrics__head{
  padding:24px clamp(28px, 4vw, 48px) 16px;
  border-bottom:1px solid rgba(255,255,255,.075);
}
.track-page-lyrics--inside-hero .track-page-lyrics__body{
  max-width:920px;
  padding:22px clamp(28px, 4vw, 48px) 10px;
}
.track-page-lyrics--inside-hero .track-page-lyrics__empty{
  margin:22px clamp(28px, 4vw, 48px) 28px;
}
.track-page-lyrics--inside-hero .track-page-lyrics__rights{
  margin:18px clamp(28px, 4vw, 48px) 32px;
  max-width:920px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;
}
@media(max-width:575.98px){
  .track-premium-hero-with-lyrics{margin-bottom:24px}
  .track-premium-lyrics-divider{margin:0 16px}
  .track-page-lyrics--inside-hero .track-page-lyrics__head{padding:18px 16px 14px}
  .track-page-lyrics--inside-hero .track-page-lyrics__body{padding:18px 16px 8px}
  .track-page-lyrics--inside-hero .track-page-lyrics__empty{margin:18px 16px 22px}
  .track-page-lyrics--inside-hero .track-page-lyrics__rights{margin:14px 16px 22px}
}


/* =========================
   Lyrics badge on track cards — Stage Lyrics Badge SAFE
========================= */
.rg-lyrics-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:20px;
  padding:3px 7px;
  border:1px solid rgba(255,138,61,.30);
  border-radius:6px;
  background:rgba(255,138,61,.075);
  color:rgba(255,206,170,.88);
  font-size:.68rem;
  font-weight:800;
  line-height:1;
  letter-spacing:.02em;
  white-space:nowrap;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}
.rg-lyrics-badge::before{
  content:'▤';
  font-size:.72rem;
  line-height:1;
  opacity:.82;
}
.rg-lyrics-badge:hover{
  background:rgba(255,138,61,.13);
  border-color:rgba(255,138,61,.46);
  color:#ffd1ad;
}
.rg-lyrics-badge:focus-visible{
  outline:2px solid rgba(255,138,61,.42);
  outline-offset:2px;
}
.rg-lyrics-badge--sub{
  width:max-content;
  margin-top:3px;
  padding:3px 6px;
  font-size:.66rem;
}

.rg-lyrics-badge--playlist-icon{
  width:20px;
  min-width:20px;
  height:20px;
  min-height:20px;
  justify-content:center;
  gap:0;
  margin-left:6px;
  padding:0;
  border-radius:5px;
  vertical-align:middle;
}
.rg-lyrics-badge--playlist-icon::before{
  font-size:.70rem;
}
.rg-lyrics-badge--playlist-icon:empty::after{
  content:none;
}
.track-topline-left .rg-lyrics-badge{
  flex:0 0 auto;
}
.track-subline .rg-lyrics-badge--inline-action{
  flex:0 0 auto;
  margin-left:auto;
}
@media(max-width:575.98px){
  .rg-lyrics-badge{padding:3px 6px;font-size:.65rem}
}

/* === RADIO GRIND Home Hero quick actions — SAFE === */
.rg-hero-topline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
}
.rg-hero-copy{min-width:0;flex:1 1 auto;}
.rg-hero-actions{
  flex:0 0 auto;
  width:auto;
  max-width:min(560px, 52%);
  display:flex;
  align-items:stretch;
  justify-content:flex-end;
  gap:12px;
}
.rg-hero-radio,
.rg-hero-apk{
  min-width:0;
  border-radius:15px;
  background:linear-gradient(135deg, rgba(255,255,255,.048), rgba(255,255,255,.016));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.065), 0 12px 30px rgba(0,0,0,.16);
}
.rg-hero-radio{
  flex:0 1 210px;
  max-width:220px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 14px;
  color:#fff;
  text-decoration:none;
  transition:transform .16s ease, box-shadow .16s ease, filter .16s ease, border-color .16s ease;
}
.rg-hero-radio:hover,
.rg-hero-radio:focus{
  color:#fff;
  transform:translateY(-1px);
  filter:brightness(1.03);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 14px 28px rgba(34,197,94,.16);
}
.rg-hero-radio-icon{
  position:relative;
  width:44px;
  height:44px;
  flex:0 0 44px;
  border-radius:50%;
  background:radial-gradient(circle at 30% 30%, rgba(80,255,170,.25), rgba(33,123,255,.08));
  box-shadow:inset 0 0 0 1px rgba(109,233,255,.18);
}
.rg-hero-radio-icon::before,
.rg-hero-radio-icon::after{
  content:"";
  position:absolute;
  inset:50% auto auto 50%;
  border:2px solid rgba(106,218,255,.9);
  border-left-color:transparent;
  border-bottom-color:transparent;
  border-radius:50%;
  transform:translate(-50%, -50%) rotate(45deg);
}
.rg-hero-radio-icon::before{
  width:22px;
  height:22px;
}
.rg-hero-radio-icon::after{
  width:32px;
  height:32px;
  opacity:.7;
}
.rg-hero-radio-text{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.rg-hero-radio-title,
.rg-hero-apk-title{
  color:rgba(255,255,255,.94);
  font-size:.96rem;
  font-weight:900;
  line-height:1.08;
  white-space:nowrap;
}
.rg-hero-radio-meta,
.rg-hero-apk-meta{
  display:flex;
  align-items:center;
  gap:8px;
  color:rgba(255,255,255,.54);
  font-size:.73rem;
  white-space:nowrap;
}
.rg-hero-radio-meta{
  letter-spacing:.08em;
  text-transform:uppercase;
}
.rg-hero-apk{
  flex:1 1 0;
  width:auto;
  max-width:330px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 13px;
}
.rg-hero-apk-text{
  min-width:0;
  flex:0 1 auto;
}
.rg-hero-apk-note{display:none;}
.rg-hero-apk-meta{
  margin-top:7px;
}
.rg-hero-apk-meta span{display:inline-flex;align-items:center;min-height:17px;padding:2px 7px;border-radius:999px;background:rgba(134,239,79,.16);color:#9cff63;font-weight:900;line-height:1;}
.rg-hero-apk-meta em{font-style:normal;}
.rg-hero-apk-button{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  margin-left:8px;
  padding:8px 15px;
  border-radius:10px;
  background:linear-gradient(135deg, rgba(53,183,255,.92), rgba(29,143,222,.92));
  color:#fff;
  font-size:.84rem;
  font-weight:900;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
  box-shadow:0 10px 22px rgba(21,143,222,.18), inset 0 1px 0 rgba(255,255,255,.24);
  transition:transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.rg-hero-apk-button:hover,.rg-hero-apk-button:focus{color:#fff;filter:brightness(1.06);transform:translateY(-1px);box-shadow:0 13px 26px rgba(21,143,222,.25), inset 0 1px 0 rgba(255,255,255,.30);}
@media (max-width:1199.98px){
  .rg-hero-actions{max-width:min(520px, 52%);}
  .rg-hero-radio{flex-basis:196px;max-width:208px;}
  .rg-hero-apk{max-width:300px;}
}
@media (max-width:991.98px){
  .rg-hero-topline{flex-direction:column;gap:18px;}
  .rg-hero-actions{width:100%;max-width:100%;justify-content:flex-start;}
  .rg-hero-radio{max-width:240px;}
  .rg-hero-apk{max-width:520px;}
}
@media (max-width:767.98px){
  .rg-hero-actions{flex-direction:column;align-items:stretch;}
  .rg-hero-radio{flex:0 0 auto;}
  .rg-hero-radio,
  .rg-hero-apk{max-width:none;width:100%;}
}
@media (max-width:575.98px){
  .rg-hero-radio{padding:12px;}
  .rg-hero-radio-icon{width:42px;height:42px;flex-basis:42px;}
  .rg-hero-apk{display:grid;grid-template-columns:1fr;gap:10px;padding:12px;}
  .rg-hero-apk-button{width:100%;min-height:38px;margin-left:0;}
}

/* PATCH_STAGE_UPLOAD_MODAL_MOBILE_SCROLL_FIX_SAFE
   Fixes mobile browser viewport bars hiding the upload footer.
   Scope: upload modal only. No API/player/layout logic touched. */
#uploadModal .modal-dialog{
  height: calc((var(--rg-upload-vh, 1vh) * 100) - 20px);
  max-height: calc((var(--rg-upload-vh, 1vh) * 100) - 20px);
  display: flex;
  align-items: stretch;
}

#uploadModal .modal-content.mr-modal{
  width: 100%;
  height: 100%;
  max-height: 100%;
}

#uploadModal .rg-upload-premium-body{
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

#uploadModal .modal-footer{
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

@supports (height: 100dvh){
  #uploadModal .modal-dialog{
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
  }
}

@media (max-width: 575.98px){
  #uploadModal .modal-dialog{
    margin: 10px;
    height: calc((var(--rg-upload-vh, 1vh) * 100) - 20px);
    max-height: calc((var(--rg-upload-vh, 1vh) * 100) - 20px);
  }

  @supports (height: 100dvh){
    #uploadModal .modal-dialog{
      height: calc(100dvh - 20px);
      max-height: calc(100dvh - 20px);
    }
  }
}


body.rg-theme-cyber-metal .rg-navbar .nav-link[href*="grindmedia.ru"]::before,
body.rg-theme-cyber-metal .rg-navbar .rg-nav-link-grind::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238899ac'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 14.5c-2.49 0-4.5-2.01-4.5-4.5S9.51 7.5 12 7.5s4.5 2.01 4.5 4.5-2.01 4.5-4.5 4.5zm0-5.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1z'/%3E%3C/svg%3E");
}


.rg-navbar .nav-link[href*="grindmedia.ru"]::before,
.rg-navbar .rg-nav-link-grind::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238899ac'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 14.5c-2.49 0-4.5-2.01-4.5-4.5S9.51 7.5 12 7.5s4.5 2.01 4.5 4.5-2.01 4.5-4.5 4.5zm0-5.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1z'/%3E%3C/svg%3E");
}

