:root {
  --navy: #1d2b64;
  --plum: #482c54;
  --accent: #a5b4fc;
  --live: #86efac;
  --glass: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.16);
  --text-2: rgba(255, 255, 255, 0.78);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Unbounded', 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background: linear-gradient(135deg, var(--navy) 0%, var(--plum) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: #fff;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--accent); color: var(--navy); }
a { color: inherit; }
button { font-family: inherit; }

/* ===== Fundal ===== */
.bg-layer { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.background-art {
  position: absolute; inset: -40px;
  width: calc(100% + 80px); height: calc(100% + 80px);
  object-fit: cover;
  opacity: 0.55;
  filter: blur(36px) saturate(1.2);
  transform: translateY(calc(var(--py, 0px) * -1)) scale(1.1);
  transition: opacity 1s ease;
}
.bg-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,43,100,0.45) 0%, rgba(72,44,84,0.75) 70%, rgba(29,20,50,0.92) 100%); }
.grain {
  position: absolute; inset: 0; opacity: 0.08; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Bara de sus ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: flex-end;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 4vw, 40px) 14px;
  background: linear-gradient(180deg, rgba(20, 22, 60, 0.55), transparent);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}
body.scrolled .topbar {
  background: rgba(29, 30, 80, 0.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 10px; object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; }
.topnav { display: flex; align-items: center; gap: 10px; }
.nav-pill {
  text-decoration: none; font-size: 0.85rem; font-weight: 600;
  padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: var(--navy);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(165,180,252,0.35); }

.menu-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.3s ease, transform 0.3s var(--ease);
}
.menu-btn:hover { background: rgba(255,255,255,0.18); transform: rotate(90deg); }
.install-top:hover { transform: translateY(-2px); }

.social-menu {
  position: fixed; top: calc(max(14px, env(safe-area-inset-top)) + 58px); right: clamp(16px, 4vw, 40px); z-index: 60;
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px; border-radius: 18px; min-width: 200px;
  background: rgba(30, 32, 80, 0.7); border: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  opacity: 0; transform: translateY(-10px) scale(0.98); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.social-menu.active { opacity: 1; transform: none; pointer-events: auto; }
.social-link {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding: 11px 12px; border-radius: 12px;
  transition: background-color 0.25s ease, transform 0.25s var(--ease);
}
.social-link:hover { background: rgba(255,255,255,0.1); transform: translateX(4px); }
.social-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav-link { font-weight: 600; }
.nav-ico { width: 20px; height: 20px; display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.social-link .nav-ico svg { width: 18px; height: 18px; }
.menu-sep { height: 1px; margin: 6px 8px; background: var(--line); }

/* ===== Chat ===== */
.chat-box {
  border-radius: 24px; border: 1px solid var(--line); padding: 10px;
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.chat-list { list-style: none; height: 380px; overflow-y: auto; overscroll-behavior: contain; padding: 8px; display: flex; flex-direction: column; gap: 10px; }
.chat-item { max-width: 82%; align-self: flex-start; padding: 10px 14px; border-radius: 4px 16px 16px 16px; background: rgba(255,255,255,0.1); animation: rise 0.4s var(--ease) both; }
.chat-item.mine { align-self: flex-end; border-radius: 16px 4px 16px 16px; background: rgba(165,180,252,0.25); }
.chat-meta { display: flex; gap: 10px; align-items: baseline; margin-bottom: 2px; }
.chat-meta b { font-size: 0.85rem; color: var(--accent); }
.chat-meta time { font-size: 0.72rem; color: var(--text-2); }
.chat-item p { font-size: 0.95rem; line-height: 1.45; overflow-wrap: anywhere; }
.chat-form { display: flex; gap: 8px; padding: 8px; border-top: 1px solid rgba(255,255,255,0.08); }
.chat-form input:not(.hp) {
  font: inherit; font-size: 16px; color: #fff; min-width: 0;
  padding: 12px 14px; border-radius: 999px; outline: none;
  background: rgba(10, 12, 40, 0.35); border: 1px solid var(--line);
  transition: border-color 0.2s ease;
}
.chat-form input::placeholder { color: rgba(255,255,255,0.5); }
.chat-form input:focus { border-color: var(--accent); }
.chat-name { width: 140px; flex-shrink: 0; }
.chat-msg { flex: 1; }
.chat-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.chat-send { width: 48px; height: 48px; flex-shrink: 0; border: none; border-radius: 50%; cursor: pointer; display: grid; place-items: center; background: var(--accent); color: var(--navy); transition: transform 0.3s var(--ease); }
.chat-send:hover { transform: scale(1.08); }
.chat-send:disabled { opacity: 0.6; }
.chat-status { padding: 0 12px 4px; }
.reactions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.react-btn {
  display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 3px 10px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06);
  color: #fff; font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s ease, border-color 0.2s ease;
}
.react-btn:hover { background: rgba(255,255,255,0.14); transform: translateY(-1px); }
.react-btn.on { background: rgba(165,180,252,0.25); border-color: var(--accent); }
.react-btn .re { font-size: 0.95rem; line-height: 1; }
.react-btn .rc:empty { display: none; }
.react-btn.pop .re { animation: pop 0.45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.5) rotate(-10deg); } 100% { transform: none; } }
.chat-item .reactions { margin-top: 6px; }
.chat-item .react-btn { min-height: 26px; padding: 2px 8px; }
/* ===== Istoric ===== */
.hist-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hist-head .req-title { margin-bottom: 0; }
.hist-sub { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.hist {
  border-radius: 24px; border: 1px solid var(--line); overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(10,10,40,0.35);
}
.hist-now[hidden] { display: none; }
.hist-now {
  display: flex; gap: 18px; align-items: center; padding: 20px;
  background: linear-gradient(90deg, rgba(165,180,252,0.22), rgba(165,180,252,0.04));
  border-bottom: 1px solid var(--line);
}
.hist-now .hist-art { width: 88px; height: 88px; border-radius: 18px; flex-shrink: 0; }
.hist-now .hist-body { flex: 1; }
.hist-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--live); }
.hist-now .hist-title { font-size: 1.15rem; }
.hist-progress { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.15); overflow: hidden; margin-top: 6px; }
.hist-progress i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #fff); transition: width 1s linear; }
.hist-times { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.hist-now.over .hist-progress i { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.45; } }
.hist-list { list-style: none; padding: 6px; }
.hist-item {
  display: grid; grid-template-columns: 30px 56px minmax(0, 1fr) auto 40px; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 16px;
  animation: rise 0.6s var(--ease) both;
  transition: background-color 0.25s ease, transform 0.3s var(--ease);
}
.hist-item + .hist-item { border-top: 1px solid rgba(255,255,255,0.06); }
.hist-item:hover { background: rgba(255,255,255,0.08); transform: translateX(4px); }
.hist-num { font-family: var(--display); font-weight: 700; font-size: 0.85rem; color: var(--accent); }
.hist-art { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; box-shadow: 0 8px 20px rgba(0,0,0,0.3); background: #111; }
.hist-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hist-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-meta { font-size: 0.82rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-req { align-self: flex-start; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: var(--accent); color: var(--navy); }
.hist-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; }
.hist-clock { font-weight: 700; font-size: 0.95rem; }
.hist-ago { font-size: 0.75rem; color: var(--text-2); }
.hist-yt { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,0.08); transition: background-color 0.2s ease, transform 0.3s var(--ease); }
.hist-yt:hover { background: #ff0033; transform: scale(1.08); }

.seo-about {
  max-width: 640px;
}
/* ===== Top cereri ===== */
.top-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.top-item {
  display: grid; grid-template-columns: 34px 56px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 14px; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  animation: rise 0.6s var(--ease) both;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.top-item:hover { transform: translateY(-3px); border-color: rgba(165,180,252,0.5); }
.top-rank { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: rgba(255,255,255,0.5); text-align: center; }
.top-item.podium .top-rank { color: var(--accent); }
.top-item.podium:first-child { border-color: rgba(165,180,252,0.6); background: linear-gradient(145deg, rgba(165,180,252,0.25), rgba(255,255,255,0.04)); }
.top-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); margin-top: 6px; overflow: hidden; }
.top-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--accent), #fff); }
.top-count { display: flex; flex-direction: column; align-items: center; font-size: 0.7rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.06em; }
.top-count b { font-family: var(--display); font-size: 1.2rem; color: #fff; letter-spacing: 0; }
.top-empty { grid-column: 1 / -1; border-radius: 20px; border: 1px dashed var(--line); }
@media (max-width: 860px) { .top-grid { grid-template-columns: 1fr; } }
.seo-about { max-width: 640px; text-align: center; font-size: 0.85rem; line-height: 1.6; color: var(--text-2); }

/* ===== Hero / player ===== */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  padding: calc(max(14px, env(safe-area-inset-top)) + 84px) 20px 40px;
}

.player {
  width: 100%; max-width: 940px;
  display: flex; align-items: center; gap: clamp(28px, 5vw, 56px);
  padding: clamp(24px, 4vw, 44px);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.05));
  border: 1px solid var(--line);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(10, 10, 40, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
  animation: rise 1s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(0.98); } to { opacity: 1; transform: none; } }

.visualizer-container {
  position: relative; flex-shrink: 0;
  width: clamp(220px, 32vw, 330px); aspect-ratio: 1;
  perspective: 900px;
}
.art-wrap {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}
.album-art {
  position: absolute; inset: 9%;
  width: 82%; height: 82%;
  border-radius: 50%; object-fit: cover;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
  transform: translateZ(40px);
}
.album-art.swap { animation: swap 0.8s var(--ease); }
@keyframes swap { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: none; } }
body.playing .album-art { animation: spin 24s linear infinite; }
@keyframes spin { to { transform: translateZ(40px) rotate(360deg); } }

.circle-visualizer, .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 40px rgba(165,180,252,0.15);
}
.ring-2 { inset: 4.5%; border-color: rgba(165,180,252,0.3); }
body.playing .circle-visualizer { animation: pulse 2s ease-in-out infinite; }
body.playing .ring-2 { animation: pulse 2s ease-in-out 0.4s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(0.97); opacity: 0.7; } 50% { transform: scale(1.04); opacity: 1; } }

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255,255,255,0.1); border: 1px solid var(--line);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 0 rgba(134,239,172,0.6);
  animation: ping 1.8s infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(134,239,172,0.6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(134,239,172,0); } }

.station-name { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.mask { display: block; overflow: hidden; padding-bottom: 0.08em; }
.line { display: block; animation: lineUp 1.1s var(--ease) both; animation-delay: 0.25s; }
.line:not(.line-sub) {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  background: linear-gradient(90deg, #fff 30%, var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.line-sub {
  font-size: clamp(0.85rem, 1.5vw, 1rem); font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-top: 10px; animation-delay: 0.4s;
}
@keyframes lineUp { from { transform: translateY(110%); } to { transform: none; } }

.now-playing { width: 100%; }
.np-label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
#songInfo {
  position: relative; width: 100%; overflow: hidden; white-space: nowrap;
  font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; line-height: 1.35;
}
.song-text { display: inline-block; white-space: nowrap; will-change: transform; }
#songInfo.run {
  text-align: left !important;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent 100%);
}
#songInfo.run .song-text { padding-left: 8px; animation: songScroll var(--dur, 10s) ease-in-out 1.2s infinite; }
@keyframes songScroll { 0%, 12% { transform: translateX(0); } 48%, 60% { transform: translateX(var(--dist, 0px)); } 96%, 100% { transform: translateX(0); } }
#songInfo:hover .song-text { animation-play-state: paused; }

.controls { display: flex; align-items: center; gap: 18px; width: 100%; }
.play-btn {
  position: relative; flex-shrink: 0;
  width: 72px; height: 72px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center;
  background: #fff; color: var(--navy);
  box-shadow: 0 12px 30px rgba(165,180,252,0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.play-btn:hover { transform: scale(1.07); box-shadow: 0 16px 40px rgba(165,180,252,0.5); }
.play-btn:active { transform: scale(0.95); }
.play-btn svg { grid-area: 1 / 1; transition: opacity 0.2s ease, transform 0.3s var(--ease); }
.icon-pause { opacity: 0; transform: scale(0.6); }
body.playing .icon-play { opacity: 0; transform: scale(0.6); }
body.playing .icon-pause { opacity: 1; transform: none; }
.spinner {
  position: absolute; inset: -5px; border-radius: 50%;
  border: 3px solid transparent; border-top-color: var(--accent);
  opacity: 0; transition: opacity 0.2s ease;
}
body.loading .spinner { opacity: 1; animation: rot 0.8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; flex-shrink: 0; }
.eq i { width: 4px; height: 4px; border-radius: 2px; background: var(--accent); transition: height 0.3s ease; }
body.playing .eq i { animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: 0.15s !important; }
.eq i:nth-child(3) { animation-delay: 0.3s !important; }
.eq i:nth-child(4) { animation-delay: 0.45s !important; }
.eq i:nth-child(5) { animation-delay: 0.6s !important; }
@keyframes eq { 0%, 100% { height: 5px; } 50% { height: 22px; } }

.volume-control { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.mute-btn { background: none; border: none; cursor: pointer; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; transition: background-color 0.2s ease; }
.mute-btn:hover { background: rgba(255,255,255,0.1); }
body.muted .mute-btn { opacity: 0.5; }
.volume-slider {
  --fill: 100%;
  flex: 1; min-width: 0; height: 6px; border-radius: 3px; outline: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: linear-gradient(90deg, var(--accent) var(--fill), rgba(255,255,255,0.2) var(--fill));
}
.volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.3); transition: transform 0.2s var(--ease); }
.volume-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.volume-slider::-moz-range-thumb { width: 18px; height: 18px; border: none; border-radius: 50%; background: #fff; }
.volume-percentage { font-size: 0.85rem; color: var(--text-2); min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }

.up-next {
  display: flex; align-items: center; gap: 10px; width: 100%;
  margin-top: 12px; padding: 8px 12px; border-radius: 12px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line);
  font-size: 0.85rem; animation: dedIn 0.6s var(--ease) both;
}
@media (max-width: 860px) { .up-next { justify-content: center; } }
.up-next[hidden], .np-ded[hidden] { display: none; }
.np-ded {
  display: flex; flex-direction: column; gap: 4px; width: 100%; text-decoration: none;
  padding: 12px 14px 12px 16px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(165,180,252,0.2), rgba(165,180,252,0.06));
  border-left: 3px solid var(--accent);
  transition: transform 0.3s var(--ease), background-color 0.3s ease;
  animation: rise 0.6s var(--ease) both;
}
.np-ded:hover { transform: translateX(3px); }
.np-ded.swap { animation: dedIn 0.7s var(--ease) both; }
@keyframes dedIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.np-ded-dots { display: flex; gap: 5px; margin-top: 4px; }
.np-ded-dots:empty, .np-ded-dots:has(i:only-child) { display: none; }
.np-ded-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.3); transition: width 0.4s var(--ease), background-color 0.3s ease; }
.np-ded-dots i.on { width: 18px; background: var(--accent); }
.np-ded-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.np-ded-label b { color: #fff; letter-spacing: 0.04em; }
.np-ded-msg { font-size: 0.92rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.np-ded-msg::before { content: '„'; }
.np-ded-msg::after { content: '”'; }
.un-label { flex-shrink: 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); background: var(--accent); padding: 3px 8px; border-radius: 6px; }
.up-next.is-request .un-label::after { content: ' · cerere'; }
.un-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }

.scroll-cue {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.3s ease, transform 0.3s var(--ease);
  animation: rise 1s var(--ease) 0.6s both;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.req-cue { background: #fff !important; color: var(--navy) !important; border-color: transparent !important; }
.req-cue svg, .install-cue svg { animation: none !important; }
.hero-actions .scroll-cue { animation: none; }
button.scroll-cue { color: #fff; font-family: inherit; cursor: pointer; }
.install-cue { background: var(--accent) !important; color: var(--navy) !important; border-color: transparent !important; }
.install-cue svg { animation: none !important; }
body.standalone [data-install] { display: none !important; }
button.store-btn { color: #fff; font-family: inherit; cursor: pointer; }
.install-steps { list-style: none; counter-reset: s; text-align: left; display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.install-steps[hidden] { display: none; }
.install-steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.08); font-size: 0.92rem; line-height: 1.45; }
.install-steps li::before { content: counter(s); flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--navy); font-weight: 700; font-size: 0.8rem; }
.install-btn[hidden] { display: none; }
.scroll-cue:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.scroll-cue svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ===== Marquee ===== */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(20, 22, 60, 0.35);
  padding: 18px 0;
}
.marquee-track { display: inline-flex; gap: 28px; align-items: center; animation: marquee 50s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 500; font-size: clamp(1rem, 2.2vw, 1.5rem); text-transform: uppercase; letter-spacing: 0.02em; }
.marquee-track span:nth-of-type(2n) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.7); }
.marquee-track b { color: var(--accent); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Cereri ===== */
.block { scroll-margin-top: 80px; max-width: 1000px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) 20px 0; }
.block:last-of-type { padding-bottom: clamp(48px, 8vw, 90px); }
.block .req-title { margin-bottom: 22px; }

.ded-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
.ded-form, .ded-list {
  border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.ded-form { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.ded-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-2); }
.ded-form input, .ded-form textarea {
  font: inherit; font-size: 16px; font-weight: 500; color: #fff;
  padding: 12px 14px; border-radius: 12px; resize: vertical;
  background: rgba(10, 12, 40, 0.35); border: 1px solid var(--line); outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.ded-form input::placeholder, .ded-form textarea::placeholder { color: rgba(255,255,255,0.45); }
.ded-form input:focus, .ded-form textarea:focus { border-color: var(--accent); background: rgba(10, 12, 40, 0.5); }
.ded-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ded-submit {
  padding: 14px 20px; border: none; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--navy); font-weight: 700; font-size: 0.95rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.2s ease;
}
.ded-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(165,180,252,0.4); }
.ded-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.ded-status { min-height: 1.2em; font-size: 0.85rem; color: var(--live); }
.ded-status.err { color: #fca5a5; }

.ded-list { list-style: none; padding: 8px; max-height: 430px; overflow-y: auto; overscroll-behavior: contain; }
.ded-item { padding: 14px; border-radius: 16px; animation: rise 0.6s var(--ease) both; }
.ded-item + .ded-item { border-top: 1px solid rgba(255,255,255,0.08); }
.ded-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ded-name { font-weight: 700; }
.ded-time { font-size: 0.75rem; color: var(--text-2); flex-shrink: 0; }
.ded-song { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin-bottom: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(165,180,252,0.16); color: var(--accent); font-size: 0.8rem; font-weight: 600; }
.ded-song span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ded-msg { font-size: 0.92rem; line-height: 1.55; color: rgba(255,255,255,0.9); overflow-wrap: anywhere; }
.ded-empty { padding: 24px; text-align: center; color: var(--text-2); font-size: 0.9rem; }
.req-head { max-width: 680px; }
.eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.req-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 18px; }
.req-desc { font-size: clamp(0.95rem, 1.6vw, 1.08rem); line-height: 1.65; color: var(--text-2); }
.req-desc strong { color: #fff; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 36px 0 28px; }
.steps li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), background-color 0.3s ease;
}
.steps li:hover { transform: translateY(-4px); background: rgba(255,255,255,0.12); }
.num { font-family: var(--display); font-weight: 700; font-size: 0.85rem; color: var(--navy); background: var(--accent); border-radius: 10px; padding: 6px 8px; flex-shrink: 0; }
.steps b { display: block; font-size: 1rem; margin-bottom: 4px; }
.steps p { font-size: 0.85rem; line-height: 1.5; color: var(--text-2); }

.req-frame {
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(10,10,40,0.45);
  padding: 8px;
  color-scheme: normal;
}
.frame-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(90deg, var(--navy), var(--plum));
  border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.dots i:first-child { background: var(--accent); }
.frame-title { font-weight: 600; font-size: 0.9rem; flex: 1; }
.frame-auto { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.12); }
.req-frame iframe { display: block; }
.req-note { margin-top: 18px; font-size: 0.85rem; color: var(--text-2); text-align: center; }

/* Reveal la scroll: conținutul e vizibil fără JS */
.js-reveal .reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .steps.reveal.in li { animation: rise 0.8s var(--ease) both; }
.js-reveal .steps.reveal.in li:nth-child(2) { animation-delay: 0.1s; }
.js-reveal .steps.reveal.in li:nth-child(3) { animation-delay: 0.2s; }

/* ===== Footer ===== */
.footer {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 30px 20px max(30px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.app-store-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
body.standalone .app-store-buttons { display: none; }
.store-btn {
  display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 0.9rem;
  padding: 10px 18px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line);
  transition: background-color 0.3s ease, transform 0.3s var(--ease);
}
.store-btn:hover { background: rgba(255,255,255,0.18); transform: translateY(-3px); }
.store-btn svg { width: 20px; height: 20px; }
.copy { font-size: 0.8rem; color: var(--text-2); }

/* ===== Toast ===== */
.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 10000;
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
  background: #4caf50; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease;
}
.toast.warn { background: #ff9800; }
.toast.out { opacity: 0; }

/* ===== Modal instalare ===== */
.install-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 10, 30, 0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.install-modal.visible { opacity: 1; pointer-events: auto; }
.install-modal.hidden { display: none; }
.install-modal-content {
  position: relative; width: 90%; max-width: 380px; text-align: center;
  padding: 40px 28px 26px; border-radius: 24px;
  background: linear-gradient(145deg, rgba(60, 64, 130, 0.9), rgba(72, 44, 84, 0.9));
  border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,0.4);
  transform: scale(0.95); transition: transform 0.3s var(--ease);
}
.install-modal.visible .install-modal-content { transform: none; }
.install-modal-logo { width: 80px; height: 80px; border-radius: 20px; margin-bottom: 18px; object-fit: cover; }
.install-modal-title { font-family: var(--display); font-size: 1.3rem; margin-bottom: 12px; }
.install-modal-description { color: var(--text-2); line-height: 1.55; margin-bottom: 24px; font-size: 0.95rem; }
.install-modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.1); color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background-color 0.2s ease, transform 0.3s var(--ease);
}
.install-modal-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.install-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 20px; border: none; border-radius: 14px; cursor: pointer;
  background: var(--accent); color: var(--navy); font-weight: 700; font-size: 1rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.install-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(165,180,252,0.4); }
.dismiss-btn { margin-top: 12px; padding: 10px; border: none; background: none; cursor: pointer; color: var(--text-2); font-size: 0.9rem; }
.dismiss-btn:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .player { flex-direction: column; text-align: center; align-items: center; }
  .content { align-items: center; width: 100%; flex: none; }
  .visualizer-container { width: min(64vw, 260px); }
  .controls { flex-wrap: wrap; justify-content: center; }
  .volume-control { flex-basis: 100%; }
  .up-next { justify-content: center; }
  .hero-actions { justify-content: center; }
  .steps, .ded-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .nav-pill { display: none; }
  .hero { padding: calc(max(10px, env(safe-area-inset-top)) + 70px) 12px 24px; justify-content: flex-start; }
  .player { border-radius: 24px; padding: 18px 16px; gap: 14px; }
  .visualizer-container { width: min(40vw, 150px); }
  .content { gap: 12px; }
  .line:not(.line-sub) { font-size: 2.1rem; }
  .line-sub { margin-top: 6px; font-size: 0.72rem; }
  .np-label { margin-bottom: 2px; }
  .play-btn { width: 64px; height: 64px; }
  .controls { gap: 10px 14px; }
  .hero-actions .scroll-cue { flex: 1 1 0; justify-content: center; padding: 12px 10px; font-size: 0.82rem; }
  .chat-form { flex-wrap: wrap; }
  .chat-name { width: 100%; }
  .chat-list { height: 340px; }
  .chat-item { max-width: 92%; }
  .hide-sm { display: none; }
  .hist-item { grid-template-columns: 48px minmax(0, 1fr) auto 34px; gap: 10px; padding: 10px; }
  .hist-num { display: none; }
  .hist-yt { width: 34px; height: 34px; }
  .hist-art { width: 48px; height: 48px; }
  .hist-now { padding: 14px; gap: 12px; }
  .hist-now .hist-art { width: 64px; height: 64px; }
  .hist-now .hist-title { font-size: 1rem; }
  .hist-side { min-width: 0; }
  .hist-clock { font-size: 0.85rem; }
  .hist-ago { font-size: 0.68rem; }
  .top-item { grid-template-columns: 26px 48px minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .top-item .hist-art { width: 48px; height: 48px; }
  .top-rank { font-size: 1.15rem; }
  .ded-form { padding: 16px; }
  .ded-list { max-height: 380px; }
  .now-playing { min-width: 0; }
  #songInfo { font-size: 1.05rem; }
  .volume-control { gap: 8px; }
  .up-next { font-size: 0.8rem; padding: 8px 12px; }
  .marquee-track span { font-size: 0.95rem; }
  .req-frame { padding: 4px; }
  .req-frame iframe { min-height: 720px !important; height: 720px !important; }
  .block { padding-left: 14px; padding-right: 14px; }
  .req-frame { border-radius: 18px; }
}
@media (max-width: 360px) {
  .hist-side { display: none; }
  .hist-item { grid-template-columns: 44px minmax(0, 1fr) 34px; }
  .hist-art { width: 44px; height: 44px; }
  .volume-percentage { display: none; }
}
@media (hover: none) {
  .hist-item:hover, .top-item:hover, .np-ded:hover, .social-link:hover { transform: none; }
}

/* ===== FX: texte animate, aurora, flash ===== */
.aurora { position: absolute; inset: 0; overflow: hidden; filter: blur(70px); opacity: 0.55; }
.aurora i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; mix-blend-mode: screen; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: radial-gradient(circle, rgba(165,180,252,0.55), transparent 65%); top: -12%; left: -8%; }
.aurora i:nth-child(2) { background: radial-gradient(circle, rgba(236,72,153,0.35), transparent 65%); bottom: -18%; right: -10%; animation-duration: 28s; animation-delay: -6s; }
.aurora i:nth-child(3) { background: radial-gradient(circle, rgba(56,189,248,0.3), transparent 65%); top: 30%; left: 40%; animation-duration: 34s; animation-delay: -12s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8vw, 6vh) scale(1.15); } 100% { transform: translate(-6vw, -4vh) scale(0.95); } }

.scroll-prog { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), #f0abfc, #fff); box-shadow: 0 0 12px rgba(165,180,252,0.8); }

.hero { position: relative; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), rgba(165,180,252,0.16), transparent 70%);
}
.player { position: relative; z-index: 1; }

.line:not(.line-sub) {
  background: linear-gradient(100deg, #fff 0%, #fff 35%, var(--accent) 45%, #fff 50%, #f0abfc 58%, #fff 70%, var(--accent) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: lineUp 1.1s var(--ease) 0.25s both, shimmer 5s linear 1.4s infinite;
  filter: drop-shadow(0 0 0 rgba(165,180,252,0));
}
.station-name { animation: flash 5s ease-in-out 1.4s infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes flash { 0%, 86%, 100% { filter: drop-shadow(0 0 0 rgba(165,180,252,0)); } 90% { filter: drop-shadow(0 0 22px rgba(165,180,252,0.9)); } 94% { filter: drop-shadow(0 0 6px rgba(240,171,252,0.6)); } }

.caret { display: inline-block; width: 2px; height: 1em; margin-left: 4px; vertical-align: -2px; background: var(--accent); animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

#songInfo { font-variant-ligatures: none; }

.live-badge { animation: badgeGlow 2.4s ease-in-out infinite; }
@keyframes badgeGlow { 50% { box-shadow: 0 0 18px rgba(134,239,172,0.45); border-color: rgba(134,239,172,0.6); } }

.fx-word { display: inline-block; white-space: nowrap; }
.fx-title .fx-ch { display: inline-block; opacity: 0; transform: translateY(0.6em) rotate(8deg); filter: blur(6px); }
.fx-title.fx-in .fx-ch { animation: chIn 0.7s var(--ease) calc(var(--i) * 28ms) forwards, chFlash 0.5s ease-out calc(var(--i) * 28ms + 0.35s) 1; }
@keyframes chIn { to { opacity: 1; transform: none; filter: none; } }
@keyframes chFlash { 0% { color: #fff; text-shadow: 0 0 0 transparent; } 40% { color: var(--accent); text-shadow: 0 0 18px rgba(165,180,252,0.95); } 100% { color: #fff; text-shadow: none; } }
.fx-title { transition: text-shadow 0.4s ease; }
.fx-title:hover .fx-ch { animation: wave 0.6s ease-in-out calc(var(--i) * 22ms) 1 both; }
@keyframes wave { 0%, 100% { transform: none; opacity: 1; } 40% { transform: translateY(-0.18em); color: var(--accent); opacity: 1; } }

.scroll-cue { position: relative; overflow: hidden; isolation: isolate; }
.scroll-cue::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg); animation: shine 3.6s ease-in-out infinite;
}
.install-cue::after { animation-delay: 1.8s; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.play-btn::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(165,180,252,0.6); opacity: 0; }
body.playing .play-btn::after { animation: ripple 1.8s ease-out infinite; }
@keyframes ripple { from { transform: scale(0.9); opacity: 0.9; } to { transform: scale(1.5); opacity: 0; } }

.marquee { padding: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.marquee-track.rev { animation-direction: reverse; animation-duration: 60s; }
.marquee-track.rev span { font-size: clamp(0.85rem, 1.6vw, 1.1rem); color: var(--accent); -webkit-text-stroke: 0; }
.marquee-track.rev span:nth-of-type(2n) { color: transparent; -webkit-text-stroke: 1px rgba(165,180,252,0.8); }
.marquee-track.rev b { color: #f0abfc; font-size: 0.6rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }

.hist-sub { background: linear-gradient(90deg, var(--accent), #f0abfc, var(--accent)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 6s linear infinite; }
.top-item.podium:first-child .top-rank { animation: flash 3s ease-in-out infinite; }

/* ===== Cereri (listă proprie) ===== */
.rq {
  border-radius: 24px; border: 1px solid var(--line); padding: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(10,10,40,0.35);
}
.rq-search { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 999px; background: rgba(10,12,40,0.4); border: 1px solid var(--line); color: var(--text-2); transition: border-color 0.2s ease; }
.rq-search:focus-within { border-color: var(--accent); color: var(--accent); }
.rq-search input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: #fff; padding: 14px 0; background: none; border: none; outline: none; }
.rq-search input::placeholder { color: rgba(255,255,255,0.5); }
.rq-hint { font-size: 0.82rem; color: var(--text-2); margin: 12px 6px 6px; line-height: 1.5; }
.rq-hint b { color: #fff; }
.rq-list { list-style: none; max-height: 560px; overflow-y: auto; overscroll-behavior: contain; padding: 4px; }
.rq-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; animation: rise 0.5s var(--ease) both; transition: background-color 0.2s ease; }
.rq-item + .rq-item { border-top: 1px solid rgba(255,255,255,0.06); }
.rq-item:hover { background: rgba(255,255,255,0.07); }
.rq-item .hist-art { width: 48px; height: 48px; }
.rq-btn { min-width: 76px; padding: 10px 16px; border: none; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.85rem; background: var(--accent); color: var(--navy); transition: transform 0.25s var(--ease), opacity 0.2s ease; }
.rq-btn:hover { transform: scale(1.05); }
.rq-btn:disabled { cursor: default; transform: none; }
.rq-btn.done { background: var(--live); opacity: 0.9; }
.rq-more { display: block; margin: 10px auto 2px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.rq-more[hidden] { display: none; }

/* ===== Melodia mea (în player) ===== */
.my-req[hidden], .vote[hidden] { display: none; }
.my-req { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.mr-item { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px; background: linear-gradient(90deg, rgba(134,239,172,0.18), rgba(134,239,172,0.04)); border-left: 3px solid var(--live); animation: dedIn 0.6s var(--ease) both; }
.mr-item.playing { background: linear-gradient(90deg, rgba(134,239,172,0.35), rgba(134,239,172,0.08)); animation: badgeGlow 2.4s ease-in-out infinite; }
.mr-item.done { opacity: 0.6; border-left-color: var(--text-2); }
.mr-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--live); }
.mr-title { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-status { font-size: 0.82rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mr-item.playing .mr-status, .mr-item.next .mr-status { color: #fff; font-weight: 600; }
.mr-notify { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: none; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.88rem; background: var(--live); color: #0b3b1f; transition: transform 0.25s var(--ease); }
.mr-notify:hover { transform: translateY(-2px); }

/* ===== Vot piesă ===== */
.vote { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vote-q { font-size: 0.8rem; color: var(--text-2); margin-right: 4px; }
.vote-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); color: #fff; font: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; font-variant-numeric: tabular-nums; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease); }
.vote-btn:hover { transform: translateY(-2px); }
.vote-btn.up.on { background: rgba(134,239,172,0.25); border-color: var(--live); color: var(--live); }
.vote-btn.down.on { background: rgba(252,165,165,0.2); border-color: #fca5a5; color: #fca5a5; }
.vote-btn.pop svg { animation: pop 0.45s var(--ease); }
.liked-count b { color: var(--live); }

/* ===== Harta ascultătorilor ===== */
.map-box { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; border-radius: 24px; border: 1px solid var(--line); padding: 10px; background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.map { height: 440px; border-radius: 18px; overflow: hidden; background: #1a1d3a; z-index: 0; }
.map .leaflet-tile-pane { filter: invert(1) hue-rotate(200deg) brightness(0.85) contrast(0.9) saturate(0.5); }
.map .leaflet-tooltip { background: rgba(20,22,60,0.92); color: #fff; border: 1px solid var(--line); border-radius: 10px; font-family: inherit; }
.map .leaflet-tooltip-top::before { border-top-color: rgba(20,22,60,0.92); }
.map .leaflet-control-attribution { background: rgba(20,22,60,0.85); color: #fff; font-size: 10px; }
.map .leaflet-control-attribution a { color: var(--accent); }
.map-pulse { animation: mapPulse 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes mapPulse { 50% { opacity: 0.35; transform: scale(1.35); } }
.map-cities { list-style: none; max-height: 440px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 4px; }
.mc-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: background-color 0.2s ease; }
.mc-item:hover { background: rgba(255,255,255,0.08); }
.mc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex-shrink: 0; }
.mc-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 0.9rem; }
.mc-count { font-family: var(--display); font-size: 0.95rem; }

@media (max-width: 860px) {
  .map-box { grid-template-columns: 1fr; }
  .map { height: 340px; }
  .map-cities { max-height: 260px; }
  .vote { justify-content: center; }
}
@media (max-width: 480px) {
  .rq { padding: 10px; border-radius: 18px; }
  .rq-list { max-height: 480px; }
  .rq-item { gap: 10px; padding: 8px 6px; }
  .rq-btn { min-width: 64px; padding: 9px 12px; }
  .map { height: 300px; }
  .vote-q { width: 100%; text-align: center; margin: 0; }
}

/* ===== Bare de sunet în cerc ===== */
.viz { position: absolute; inset: -14%; width: 128%; height: 128%; pointer-events: none; transform: translateZ(20px); }
.art-wrap { --beat: 0; }
.art-wrap::before {
  content: ''; position: absolute; inset: 6%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(165,180,252,0.35), transparent 70%);
  transform: scale(calc(1 + var(--beat) * 0.35)); opacity: calc(0.25 + var(--beat) * 1.2);
  transition: transform 0.08s linear, opacity 0.08s linear;
}
body.playing .album-art { box-shadow: 0 25px 60px rgba(0,0,0,0.45), 0 0 calc(20px + var(--beat) * 80px) rgba(165,180,252,0.45); }

/* ===== Distribuie ===== */
.share-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: none; background: #25d366; color: #063d1e; font: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: transform 0.25s var(--ease), opacity 0.2s ease; }
.share-btn:hover { transform: translateY(-2px); }
.share-btn.busy { opacity: 0.6; cursor: progress; }

/* ===== Ascultătorul lunii ===== */
.lm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px; border-radius: 24px; border: 1px solid var(--line); padding: 14px; background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.lm-hero { grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 32px 20px; border-radius: 18px; background: radial-gradient(circle at 50% 20%, rgba(252,211,77,0.3), rgba(252,211,77,0.05) 60%), rgba(10,12,40,0.35); border: 1px solid rgba(252,211,77,0.35); min-height: 240px; }
.lm-crown { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #3b2a00; background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 0 40px rgba(252,211,77,0.55); animation: lmFloat 3s ease-in-out infinite; }
@keyframes lmFloat { 50% { transform: translateY(-6px) rotate(-4deg); } }
.lm-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #fcd34d; }
.lm-name { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); overflow-wrap: anywhere; }
.lm-stats { color: var(--text-2); font-size: 0.9rem; }
.lm-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.lm-list:empty { display: none; }
.lm-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.05); animation: rise 0.5s var(--ease) both; }
.lm-rank { font-family: var(--display); font-weight: 800; color: rgba(255,255,255,0.5); text-align: center; }
.lm-item:nth-child(1) .lm-rank { color: #e5e7eb; }
.lm-item:nth-child(2) .lm-rank { color: #f0b27a; }
.lm-iname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-istats { font-size: 0.78rem; color: var(--text-2); white-space: nowrap; }
.lm-me { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: rgba(165,180,252,0.12); border: 1px dashed var(--accent); font-size: 0.88rem; }
.lm-btn { padding: 9px 16px; border-radius: 999px; border: none; background: var(--accent); color: var(--navy); font: inherit; font-weight: 700; font-size: 0.82rem; cursor: pointer; }

/* ===== Fereastră nume ===== */
.nm-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(5,6,25,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.25s ease; }
.nm-overlay.open { opacity: 1; }
.nm-overlay[hidden] { display: none; }
.nm-card { width: min(100%, 400px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 28px 24px 22px; border-radius: 24px; background: linear-gradient(160deg, #2a2e6e, #171a45); border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0,0,0,0.5); transform: translateY(16px) scale(0.97); transition: transform 0.3s var(--ease); }
.nm-overlay.open .nm-card { transform: none; }
.nm-card .nm-crown { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #3b2a00; background: linear-gradient(135deg, #fde68a, #f59e0b); }
.nm-card h3 { font-family: var(--display); font-size: 1.3rem; }
.nm-card p { color: var(--text-2); font-size: 0.9rem; line-height: 1.5; }
.nm-card p b { color: #fff; }
.nm-card input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(10,12,40,0.5); color: #fff; font: inherit; font-size: 16px; outline: none; text-align: center; }
.nm-card input:focus { border-color: var(--accent); }
.nm-err { min-height: 1em; color: #fca5a5; font-size: 0.82rem; }
.nm-actions { display: flex; gap: 10px; width: 100%; }
.nm-actions button { flex: 1; padding: 12px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.nm-skip { background: transparent; border: 1px solid var(--line); color: #fff; }
.nm-save { background: var(--accent); border: none; color: var(--navy); }

@media (max-width: 860px) {
  .lm { grid-template-columns: 1fr; }
  .lm-hero { grid-row: auto; min-height: 0; padding: 24px 16px; }
  .lm-me { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .lm { padding: 10px; border-radius: 18px; }
  .lm-istats { font-size: 0.72rem; }
  .vote { gap: 6px; }
  .vote-btn, .share-btn { padding: 6px 12px; }
}

/* ===== Bara de progres melodie ===== */
.pp { width: 100%; }
.pp[hidden] { display: none; }
.pp-track { position: relative; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: visible; box-shadow: inset 0 1px 2px rgba(0,0,0,0.3); }
.pp-fill {
  position: absolute; inset: 0; border-radius: inherit; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--c1, var(--accent)), var(--accent) 60%, #fff);
  box-shadow: 0 0 14px rgba(165,180,252,0.55);
  transition: transform 1s linear;
}
.pp-fill::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  background-size: 40% 100%; background-repeat: no-repeat;
  animation: ppShine 2.6s ease-in-out infinite;
}
@keyframes ppShine { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.pp.over .pp-fill { animation: breathe 2.4s ease-in-out infinite; }
.pp-times { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.78rem; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.pp-times span:last-child { color: var(--accent); }

@property --c1 { syntax: '<color>'; inherits: true; initial-value: rgba(165, 180, 252, 0.55); }
@property --c2 { syntax: '<color>'; inherits: true; initial-value: rgba(236, 72, 153, 0.35); }
@property --c3 { syntax: '<color>'; inherits: true; initial-value: rgba(56, 189, 248, 0.3); }
:root { transition: --c1 2.5s ease, --c2 2.5s ease, --c3 2.5s ease; }
.aurora i:nth-child(1) { background: radial-gradient(circle, var(--c1), transparent 65%) !important; }
.aurora i:nth-child(2) { background: radial-gradient(circle, var(--c2), transparent 65%) !important; }
.aurora i:nth-child(3) { background: radial-gradient(circle, var(--c3), transparent 65%) !important; }
.player { box-shadow: 0 30px 80px rgba(10, 10, 40, 0.45), 0 0 120px -30px var(--c1), inset 0 1px 0 rgba(255,255,255,0.15); transition: box-shadow 2.5s ease; }
#artistInfo { color: var(--accent); font-weight: 500; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
