/* ==========================================================================
   Pulse — Joomla 6 music template
   ========================================================================== */

:root {
  --pulse-accent: #ff2e88;
  --pulse-accent-2: #00e5ff;
  --pulse-energy: 0;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1320px;
  --header-h: 68px;
  --player-h: 84px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --grad: linear-gradient(120deg, var(--pulse-accent), var(--pulse-accent-2));
}

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a12;
  --bg-2: #11111c;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .085);
  --surface-solid: #151522;
  --border: rgba(255, 255, 255, .09);
  --text: #ececf5;
  --muted: #9b9bb4;
  --shadow: 0 18px 50px rgba(0, 0, 0, .5);
  --glass: rgba(14, 14, 24, .72);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #d9e4f2;
  --bg-2: #cfdcee;
  --surface: rgba(255, 255, 255, .42);
  --surface-2: rgba(15, 45, 95, .07);
  --surface-solid: #e6eef8;
  --border: rgba(15, 45, 95, .12);
  --text: #132038;
  --muted: #4b5c78;
  --shadow: 0 18px 50px rgba(20, 50, 100, .14);
  --glass: rgba(222, 232, 245, .82);
}

/* --- Reset & base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  transition: padding-bottom .4s var(--ease), background-color .3s;
}

body.has-player { padding-bottom: var(--player-h); }

img, video, iframe { max-width: 100%; height: auto; }

a { color: var(--pulse-accent-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pulse-accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h2 a, h3 a { color: inherit; }
h2 a:hover, h3 a:hover { color: var(--pulse-accent); }

p { margin: 0 0 1.1em; }

::selection { background: var(--pulse-accent); color: #fff; }

:focus-visible { outline: 2px solid var(--pulse-accent-2); outline-offset: 3px; border-radius: 6px; }

.visually-hidden, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.pulse-skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 1000;
  background: var(--pulse-accent); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s;
}
.pulse-skip:focus { top: 1rem; color: #fff; }

.pulse-container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

/* --- Ambient background (reacts to music) -------------------------------- */
.pulse-ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.pulse-ambient span {
  position: absolute; border-radius: 50%; filter: blur(90px);
  opacity: calc(.16 + var(--pulse-energy) * .2);
  transform: scale(calc(1 + var(--pulse-energy) * .15));
  transition: opacity .15s linear, transform .15s linear;
}
.pulse-ambient span:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: var(--pulse-accent); animation: pulse-drift 22s ease-in-out infinite alternate; }
.pulse-ambient span:nth-child(2) { width: 40vw; height: 40vw; right: -10vw; top: 20vh; background: var(--pulse-accent-2); animation: pulse-drift 28s ease-in-out infinite alternate-reverse; }
.pulse-ambient span:nth-child(3) { width: 30vw; height: 30vw; left: 30vw; bottom: -18vw; background: #7b5cff; animation: pulse-drift 34s ease-in-out infinite alternate; }
[data-theme="light"] .pulse-ambient span { opacity: calc(.1 + var(--pulse-energy) * .12); }

@keyframes pulse-drift {
  to { translate: 6vw 5vh; }
}

/* --- Load bar (SPA navigation) ------------------------------------------- */
.pulse-loadbar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: var(--grad); box-shadow: 0 0 12px var(--pulse-accent);
  opacity: 0; transition: width .3s var(--ease), opacity .3s;
}
body.is-loading .pulse-loadbar { opacity: 1; width: 70%; transition: width 6s cubic-bezier(.1, .6, .1, 1), opacity .1s; }
body.is-loaded .pulse-loadbar { width: 100%; opacity: 0; transition: width .2s, opacity .4s .2s; }

/* --- Header --------------------------------------------------------------- */
.pulse-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
body.is-scrolled .pulse-header {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--border);
}
.pulse-header__inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }

.pulse-brand { display: flex; align-items: center; gap: .7rem; color: var(--text); flex-shrink: 0; }
.pulse-brand:hover { color: var(--text); }
.pulse-brand__logo { max-height: 42px; width: auto; }
.pulse-brand__mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; }
.pulse-brand__mark i {
  width: 4px; border-radius: 2px; background: var(--grad);
  animation: pulse-bar 1.1s ease-in-out infinite;
}
.pulse-brand__mark i:nth-child(1) { height: 40%; animation-delay: -.2s; }
.pulse-brand__mark i:nth-child(2) { height: 90%; animation-delay: -.5s; }
.pulse-brand__mark i:nth-child(3) { height: 60%; animation-delay: -.8s; }
.pulse-brand__mark i:nth-child(4) { height: 75%; animation-delay: -.35s; }
.pulse-brand__mark i:nth-child(5) { height: 50%; animation-delay: -.65s; }
body:not(.is-playing) .pulse-brand__mark i { animation-play-state: paused; }
.pulse-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.pulse-brand__name { font: 700 1.2rem/1.1 var(--font-head); letter-spacing: -.02em; }
.pulse-brand__tagline { font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

@keyframes pulse-bar {
  0%, 100% { transform: scaleY(.35); }
  50% { transform: scaleY(1); }
}
.pulse-brand__mark i, .pulse-hero__eq i, .pulse-eq i { transform-origin: bottom; }

/* Nav (mod_menu) */
.pulse-nav { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.pulse-nav ul { list-style: none; margin: 0; padding: 0; }
.pulse-nav > ul, .pulse-nav .mod-menu { display: flex; align-items: center; gap: .25rem; }
.pulse-nav li { position: relative; }
.pulse-nav a, .pulse-nav .nav-header, .pulse-nav .mod-menu__heading {
  display: block; padding: .5rem .85rem; border-radius: 999px;
  color: var(--muted); font-weight: 500; font-size: .95rem; white-space: nowrap;
  transition: color .2s, background .2s;
}
.pulse-nav a:hover { color: var(--text); background: var(--surface-2); }
.pulse-nav li.active > a, .pulse-nav li.current > a, .pulse-nav a[aria-current] {
  color: var(--text);
  background: var(--surface-2);
}
.pulse-nav > ul > li.active > a, .pulse-nav > ul > li.current > a { position: relative; }
.pulse-nav > ul > li.active > a::after, .pulse-nav > ul > li.current > a::after {
  content: ""; position: absolute; left: 30%; right: 30%; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad);
}
.pulse-nav .mod-menu__sub, .pulse-nav li ul {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .4rem; box-shadow: var(--shadow); display: block;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.pulse-nav li:hover > ul, .pulse-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.pulse-nav li ul a { border-radius: 8px; }
.pulse-nav li.parent > a::before, .pulse-nav li.deeper > a::before { content: none; }

.pulse-search input[type="search"], .pulse-search input[type="text"] { width: 180px; padding: .5rem .9rem; border-radius: 999px; }

.pulse-navtoggle {
  display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--surface); cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.pulse-navtoggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.pulse-navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pulse-navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pulse-navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.pulse-themetoggle {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center;
  transition: background .2s, transform .2s;
}
.pulse-themetoggle:hover { background: var(--surface-2); transform: rotate(-12deg); }
.pulse-themetoggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; grid-area: 1 / 1; }
.pulse-themetoggle .i-sun { display: none; }
[data-theme="light"] .pulse-themetoggle .i-sun { display: block; }
[data-theme="light"] .pulse-themetoggle .i-moon { display: none; }

/* --- Hero ------------------------------------------------------------------ */
.pulse-hero { padding: clamp(3rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 4rem); text-align: center; }
.pulse-hero__title {
  font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: 1; letter-spacing: -.045em; margin: 1.2rem 0 1rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 calc(10px + var(--pulse-energy) * 30px) color-mix(in srgb, var(--pulse-accent) 45%, transparent));
}
.pulse-hero__title { position: relative; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
.pulse-hero__fill {
  position: absolute; inset: 0; pointer-events: none; color: transparent; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; opacity: 0; transition: opacity .5s;
}
.pulse-hero.is-live .pulse-hero__fill { opacity: 1; }
.pulse-hero.is-live .pulse-hero__eq i { animation: none; transition: transform .08s linear; opacity: 1; }
/* Egalizator / Lichid: literele rămân stinse în spate */
.pulse-hero--eq.is-live .pulse-hero__title, .pulse-hero--liquid.is-live .pulse-hero__title {
  background: linear-gradient(120deg, color-mix(in srgb, var(--pulse-accent) 30%, transparent), color-mix(in srgb, var(--pulse-accent-2) 30%, transparent));
  -webkit-background-clip: text; background-clip: text;
}
/* Litere care dansează */
.pulse-hero .pulse-hero__letters { white-space: pre; background: none; opacity: 1; }
.pulse-hero__letters span { display: inline-block; transform-origin: 50% 85%; will-change: transform; transition: transform .06s linear; }
.pulse-hero--dance .pulse-hero__title, .pulse-hero--neondance .pulse-hero__title { -webkit-text-fill-color: transparent; background: none; }
.pulse-hero--dance .pulse-hero__letters span { -webkit-text-fill-color: currentColor; }
/* Neon */
.pulse-hero--neon .pulse-hero__title, .pulse-hero--neondance .pulse-hero__letters span {
  background: none; color: color-mix(in srgb, #fff 72%, var(--c, var(--pulse-accent))); -webkit-text-fill-color: currentColor;
  text-shadow: 0 0 .03em #fff,
    0 0 calc(.08em + var(--hb, 0) * .12em) var(--c, var(--pulse-accent)),
    0 0 calc(.2em + var(--hb, 0) * .35em) var(--c, var(--pulse-accent)),
    0 0 calc(.45em + var(--hb, 0) * .6em) var(--pulse-accent-2);
  opacity: var(--flick, 1); filter: none;
}
.pulse-hero--neondance .pulse-hero__letters span { opacity: 1; }
.pulse-hero--neondance .pulse-hero__title { opacity: var(--flick, 1); }
[data-theme="light"] .pulse-hero--neon .pulse-hero__title { color: var(--pulse-accent); }
/* Undă și particule: canvas peste titlu */
.pulse-hero__fx { position: absolute; pointer-events: none; }
.pulse-hero--wave .pulse-hero__fx { left: -10%; top: -20%; width: 120%; height: 140%; }
.pulse-hero--particles .pulse-hero__fx { left: -20%; top: -80%; width: 140%; height: 260%; }
.pulse-hero--wave.is-live .pulse-hero__title { opacity: .9; }
.pulse-hero__text { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 1.15rem; }
.pulse-hero__eq { display: flex; justify-content: center; align-items: flex-end; gap: 5px; height: 56px; }
.pulse-hero__eq i {
  width: 6px; height: 100%; border-radius: 3px; background: var(--grad);
  animation: pulse-bar 1.4s ease-in-out infinite; opacity: .85;
}
.pulse-hero__eq i:nth-child(3n) { animation-duration: 1.1s; }
.pulse-hero__eq i:nth-child(3n+1) { animation-duration: 1.7s; }
.pulse-hero__eq i:nth-child(4n) { animation-delay: -.6s; }
.pulse-hero__eq i:nth-child(5n) { animation-delay: -.3s; }
.pulse-hero__eq i:nth-child(7n) { animation-delay: -.9s; }

/* --- Layout ---------------------------------------------------------------- */
#pulse-swap { flex: 1; }
.pulse-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 2rem 4rem; }
body.has-sidebar .pulse-layout { grid-template-columns: minmax(0, 1fr) 380px; }
.pulse-main { outline: none; min-width: 0; }
.pulse-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.pulse-sidebar .pulse-card { position: static; }

#pulse-swap.is-entering { animation: pulse-enter .45s var(--ease) both; }
@keyframes pulse-enter { from { opacity: 0; transform: translateY(12px); } }

.pulse-bottom { padding-block: 0 4rem; }
.pulse-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }

/* --- Cards / modules ------------------------------------------------------ */
.pulse-card, .blog-item, .item-page, .category-list, .com-content-category, .contact, .login, .registration, .profile, .com-users,
.search-results, .com-finder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 1.8rem);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pulse-main > .pulse-card { margin-bottom: 1.5rem; }
.pulse-card__title {
  font-size: .78rem !important; text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
  display: flex; align-items: center; gap: .6rem;
}
.pulse-card__title::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--grad); }
.pulse-card ul { padding-left: 1.1rem; }
.pulse-card .mod-list, .pulse-card .latestnews, .pulse-card .mostread { list-style: none; padding: 0; margin: 0; }
.pulse-card .mod-list li, .pulse-card .latestnews li, .pulse-card .mostread li { border-top: 1px solid var(--border); }
.pulse-card .mod-list li:first-child, .pulse-card .latestnews li:first-child, .pulse-card .mostread li:first-child { border-top: 0; }
.pulse-card .mod-list a, .pulse-card .latestnews a, .pulse-card .mostread a { display: block; padding: .55rem 0; color: var(--text); }
.pulse-card .mod-list a:hover, .pulse-card .latestnews a:hover, .pulse-card .mostread a:hover { color: var(--pulse-accent); }

/* --- com_content ---------------------------------------------------------- */
.page-header h1, .page-header h2 { margin-bottom: .4em; }
.blog { display: flex; flex-direction: column; gap: 1.5rem; }
.blog-items { display: grid; gap: 1.5rem; }
.blog-items.columns-2, .blog-items.masonry-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-items.columns-3, .blog-items.masonry-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blog-items.columns-4, .blog-items.masonry-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.blog-item { transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; overflow: hidden; }
.blog-item:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--pulse-accent) 40%, var(--border)); box-shadow: var(--shadow); }
.blog-item .item-image, .item-page .item-image, figure.item-image { margin: calc(clamp(1.1rem, 3vw, 1.8rem) * -1) calc(clamp(1.1rem, 3vw, 1.8rem) * -1) 1.2rem; }
.blog-item .item-image img, .item-page .item-image img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.item-page .item-image { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }

.article-info, dl.article-info {
  display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: 0 0 1.2rem; padding: 0;
  color: var(--muted); font-size: .85rem;
}
.article-info dt { display: none; }
.article-info dd { margin: 0; }
.article-info .icon-calendar, .article-info [class^="icon-"], .article-info [class*=" icon-"] { display: none; }

.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags a, .tags .btn, a.btn-info {
  display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .8rem;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
}
.tags a:hover { border-color: var(--pulse-accent); color: var(--text); }

.readmore { margin-top: 1rem; }
.readmore .btn, .readmore a { display: inline-flex; align-items: center; gap: .4rem; }

.pagenavigation .pagination, .pagination {
  display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 2rem 0 0; justify-content: center;
}
.page-link, .pagination a, .pagination span {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .8rem; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.page-item.active .page-link, .pagination .active span { background: var(--grad); color: #fff; border-color: transparent; }
.page-item.disabled .page-link { opacity: .4; }
.counter { text-align: center; color: var(--muted); font-size: .85rem; }

.mod-breadcrumbs, .breadcrumb {
  display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 1.5rem; gap: .4rem; font-size: .85rem; color: var(--muted);
}
.mod-breadcrumbs__item + .mod-breadcrumbs__item::before, .breadcrumb-item + .breadcrumb-item::before { content: "›"; margin-right: .4rem; opacity: .6; }
.mod-breadcrumbs .float-start, .mod-breadcrumbs__here { display: none; }

blockquote {
  margin: 1.5rem 0; padding: 1rem 1.4rem; border-left: 3px solid var(--pulse-accent);
  background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic;
}

hr { border: 0; height: 1px; background: var(--border); margin: 2rem 0; }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
th, td { padding: .7rem .8rem; border-bottom: 1px solid var(--border); text-align: left; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
tbody tr:hover { background: var(--surface); }

code, pre { font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; font-size: .9em; }
pre { background: var(--surface-2); padding: 1rem; border-radius: var(--radius-sm); overflow: auto; }
:not(pre) > code { background: var(--surface-2); padding: .15em .4em; border-radius: 6px; }

iframe[src*="youtube"], iframe[src*="vimeo"], iframe[src*="spotify"], iframe[src*="soundcloud"], iframe[src*="bandcamp"] {
  width: 100%; border: 0; border-radius: var(--radius-sm);
}
iframe[src*="youtube"], iframe[src*="vimeo"] { aspect-ratio: 16 / 9; height: auto; }

/* --- Forms & buttons ------------------------------------------------------ */
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="tel"],
input[type="number"], input[type="date"], select, textarea, .form-control, .form-select {
  width: 100%; max-width: 100%; padding: .7rem .95rem; border-radius: 12px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  font: inherit; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus, .form-control:focus {
  outline: none; border-color: var(--pulse-accent-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pulse-accent-2) 22%, transparent);
}
label, .form-label { display: inline-block; margin-bottom: .35rem; font-weight: 500; font-size: .92rem; }
.control-group, .mb-3 { margin-bottom: 1rem; }
.form-check { display: flex; align-items: center; gap: .5rem; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--pulse-accent); width: 1.05em; height: 1.05em; }

.btn, button.btn, input[type="submit"], .button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem 1.25rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font: 600 .92rem/1.2 var(--font-body);
  cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover, input[type="submit"]:hover { transform: translateY(-1px); color: var(--text); }
.btn.btn-primary, input[type="submit"], .readmore .btn {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--pulse-accent) 35%, transparent);
}
.btn.btn-primary:hover, .readmore .btn:hover { color: #fff; box-shadow: 0 10px 30px color-mix(in srgb, var(--pulse-accent) 50%, transparent); }
.btn-secondary { background: var(--surface-2); }
.btn-sm { padding: .45rem .95rem; font-size: .85rem; }
.btn-danger { background: #e5484d; color: #fff; border-color: transparent; }
.btn-success { background: #30a46c; color: #fff; border-color: transparent; }

/* System messages (Joomla) */
joomla-alert, .alert {
  display: block; margin: 0 0 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--pulse-accent-2);
}
joomla-alert[type="success"], .alert-success { border-left-color: #30a46c; }
joomla-alert[type="warning"], .alert-warning { border-left-color: #f5a524; }
joomla-alert[type="danger"], joomla-alert[type="error"], .alert-danger { border-left-color: #e5484d; }
joomla-alert .joomla-alert--close, .alert .btn-close { float: right; background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.alert-heading { font-size: 1rem; margin-bottom: .3rem; }

/* --- Track cards (audio auto-detected in content) ------------------------- */
.pulse-tracklist { display: flex; flex-direction: column; gap: .4rem; margin: 1.25rem 0; }
.pulse-tracklist__head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.pulse-tracklist__head .count { color: var(--muted); font-size: .85rem; margin-left: auto; }

.pulse-track {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto auto auto auto; align-items: center; gap: .9rem;
  padding: .55rem .75rem .55rem .55rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  transition: background .2s, border-color .2s, transform .2s var(--ease);
  margin: .4rem 0;
}
.pulse-tracklist .pulse-track { margin: 0; }
.pulse-track:hover { background: var(--surface-2); }
.pulse-track.is-current {
  border-color: transparent;
  background: linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box, var(--grad) border-box;
  border: 1px solid transparent;
}
.pulse-track__play {
  width: 44px; height: 44px; border-radius: 12px; border: 0; cursor: pointer; position: relative;
  background: var(--grad); color: #fff; display: grid; place-items: center; overflow: hidden;
  background-size: cover; background-position: center;
}
.pulse-track__play.has-cover::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.pulse-track__play svg { width: 18px; height: 18px; fill: currentColor; position: relative; z-index: 1; }
.pulse-track__play .i-pause, .pulse-track.is-playing .pulse-track__play .i-play { display: none; }
.pulse-track.is-playing .pulse-track__play .i-pause { display: none; }
.pulse-track.is-playing .pulse-track__play .pulse-eq { display: flex; }
.pulse-track.is-playing .pulse-track__play:hover .pulse-eq { display: none; }
.pulse-track.is-playing .pulse-track__play:hover .i-pause { display: block; }
.pulse-track__meta { min-width: 0; display: flex; flex-direction: column; }
.pulse-track__title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse-track__artist { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse-track__dur { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .85rem; }
.pulse-track__icon {
  width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s;
}
.pulse-track__icon:hover { background: var(--surface-2); color: var(--text); }
.pulse-track__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pulse-eq { display: none; align-items: flex-end; gap: 2px; height: 16px; position: relative; z-index: 1; }
.pulse-eq i { width: 3px; height: 100%; background: #fff; border-radius: 2px; animation: pulse-bar .9s ease-in-out infinite; }
.pulse-eq i:nth-child(2) { animation-delay: -.3s; }
.pulse-eq i:nth-child(3) { animation-delay: -.6s; }

/* --- Player ---------------------------------------------------------------- */
.pulse-player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform .5s var(--ease);
}
.pulse-player:not([data-state="empty"]) { transform: none; }

.pulse-player__progress { position: absolute; left: 0; right: 0; top: -7px; height: 14px; }
.pulse-player__buffer {
  position: absolute; left: 0; top: 6px; height: 2px; width: 0; background: var(--surface-2);
  pointer-events: none; transition: width .3s;
}
.pulse-seek {
  -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; margin: 0;
  background: transparent; cursor: pointer; --p: 0%;
}
.pulse-seek::-webkit-slider-runnable-track {
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--pulse-accent), var(--pulse-accent-2)) 0 0 / var(--p) 100% no-repeat, var(--surface-2);
  transition: height .15s;
}
.pulse-seek::-moz-range-track { height: 2px; background: var(--surface-2); border-radius: 2px; }
.pulse-seek::-moz-range-progress { height: 2px; background: var(--grad); border-radius: 2px; }
.pulse-seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; margin-top: -5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px var(--pulse-accent), 0 0 12px var(--pulse-accent);
  opacity: 0; transition: opacity .15s;
}
.pulse-seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--pulse-accent); opacity: 0; }
.pulse-player__progress:hover .pulse-seek::-webkit-slider-thumb, .pulse-seek:focus-visible::-webkit-slider-thumb { opacity: 1; }
.pulse-player__progress:hover .pulse-seek::-moz-range-thumb { opacity: 1; }
.pulse-player__progress:hover .pulse-seek::-webkit-slider-runnable-track { height: 4px; }
.pulse-player__progress:hover .pulse-seek::-webkit-slider-thumb { margin-top: -4px; }

.pulse-player__inner {
  height: var(--player-h); width: min(100% - 2rem, 1400px); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem;
}
.pulse-player__track { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.pulse-player__cover {
  width: 54px; height: 54px; border-radius: 12px; flex-shrink: 0; overflow: hidden; position: relative;
  background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 0 calc(var(--pulse-energy) * 28px) color-mix(in srgb, var(--pulse-accent) 70%, transparent);
  transition: box-shadow .1s linear;
}
.pulse-player__cover img { width: 100%; height: 100%; object-fit: cover; grid-area: 1 / 1; }
.pulse-player__initial { font: 700 1.4rem var(--font-head); color: #fff; grid-area: 1 / 1; }
body.is-playing .pulse-player__cover { animation: pulse-breathe 2.4s ease-in-out infinite; }
@keyframes pulse-breathe { 50% { transform: scale(1.04); } }
.pulse-player__meta { min-width: 0; display: flex; flex-direction: column; }
.pulse-player__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.pulse-player__title.is-marquee { overflow: visible; text-overflow: clip; animation: pulse-marquee 12s linear infinite; }
@keyframes pulse-marquee { 0%, 15% { transform: translateX(0); } 85%, 100% { transform: translateX(var(--shift, 0)); } }
.pulse-player__meta { overflow: hidden; }
.pulse-player__artist { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pulse-player__controls { display: flex; align-items: center; gap: .35rem; }
.pulse-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0;
  background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center;
  transition: color .2s, background .2s, transform .15s;
}
.pulse-btn:hover { color: var(--text); background: var(--surface-2); }
.pulse-btn:active { transform: scale(.92); }
.pulse-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; }
.pulse-btn svg .fill { fill: currentColor; stroke: none; }
.pulse-btn[aria-pressed="true"], .pulse-btn[data-mode="all"], .pulse-btn[data-mode="one"] { color: var(--pulse-accent); }
.pulse-btn[aria-pressed="true"]::after, .pulse-btn[data-mode="all"]::after, .pulse-btn[data-mode="one"]::after {
  content: ""; position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: currentColor;
}
.pulse-btn__badge {
  position: absolute; top: 4px; right: 3px; font-size: .6rem; font-weight: 700; line-height: 1;
  background: var(--pulse-accent); color: #fff; border-radius: 6px; padding: 2px 3px; display: none;
}
.pulse-btn[data-mode="one"] .pulse-btn__badge { display: block; }
.pulse-btn__count {
  position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--surface-2); color: var(--text); font-size: .65rem; font-weight: 700; line-height: 17px; text-align: center;
}

.pulse-btn--main {
  width: 50px; height: 50px; background: var(--text); color: var(--bg); margin-inline: .3rem;
  box-shadow: 0 0 0 calc(var(--pulse-energy) * 8px) color-mix(in srgb, var(--pulse-accent) 35%, transparent);
  transition: box-shadow .1s linear, transform .15s;
}
.pulse-btn--main:hover { background: var(--text); color: var(--bg); transform: scale(1.06); }
.pulse-btn--main svg { width: 22px; height: 22px; }
.pulse-btn--main .i-pause, body.is-playing .pulse-btn--main .i-play { display: none; }
body.is-playing .pulse-btn--main .i-pause { display: block; }
.pulse-spinner {
  grid-area: 1 / 1; width: 54px; height: 54px; border-radius: 50%; border: 2px solid transparent;
  border-top-color: var(--pulse-accent); border-right-color: var(--pulse-accent-2);
  animation: pulse-spin .8s linear infinite; display: none;
}
.pulse-player[data-state="loading"] .pulse-spinner { display: block; }
@keyframes pulse-spin { to { transform: rotate(360deg); } }

.pulse-player__extra { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; }
.pulse-time { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pulse-time .sep { margin: 0 .3rem; opacity: .5; }
.pulse-viz { width: 140px; height: 34px; }
.pulse-volume { display: flex; align-items: center; }
.pulse-btn .wave { transition: opacity .2s; }
.pulse-btn .x { display: none; }
.pulse-player.is-muted .pulse-btn .wave { display: none; }
.pulse-player.is-muted .pulse-btn .x { display: block; }
.pulse-vol {
  -webkit-appearance: none; appearance: none; width: 90px; height: 4px; border-radius: 4px; cursor: pointer;
  background: linear-gradient(90deg, var(--text), var(--text)) 0 0 / var(--v, 90%) 100% no-repeat, var(--surface-2);
}
.pulse-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--text); }
.pulse-vol::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--text); }

/* Queue panel */
.pulse-queue {
  position: absolute; right: 1rem; bottom: calc(100% + 12px); width: min(380px, calc(100vw - 2rem));
  max-height: min(60vh, 520px); display: flex; flex-direction: column;
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; animation: pulse-pop .25s var(--ease);
}
.pulse-queue[hidden] { display: none; }
@keyframes pulse-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.pulse-queue__head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); }
.pulse-queue__list { list-style: none; margin: 0; padding: .4rem; overflow: auto; counter-reset: q; }
.pulse-queue__list li {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: .6rem; align-items: center;
  padding: .5rem .6rem; border-radius: 10px; cursor: pointer; counter-increment: q;
}
.pulse-queue__list li::before { content: counter(q); color: var(--muted); font-size: .8rem; text-align: center; font-variant-numeric: tabular-nums; }
.pulse-queue__list li:hover { background: var(--surface-2); }
.pulse-queue__list li.is-current { background: color-mix(in srgb, var(--pulse-accent) 14%, transparent); }
.pulse-queue__list li.is-current::before { content: "♪"; color: var(--pulse-accent); }
.pulse-queue__list .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.pulse-queue__list .t small { display: block; color: var(--muted); font-size: .78rem; }
.pulse-queue__list .rm { opacity: 0; }
.pulse-queue__list li:hover .rm, .pulse-queue__list .rm:focus-visible { opacity: 1; }
.pulse-queue__empty { padding: 2rem 1rem; text-align: center; color: var(--muted); }
.pulse-link { background: none; border: 0; color: var(--pulse-accent-2); cursor: pointer; font: inherit; font-size: .85rem; padding: 0; }
.pulse-link:hover { color: var(--pulse-accent); }

/* Toast */
.pulse-toast {
  position: fixed; left: 50%; bottom: calc(var(--player-h) + 1.2rem); z-index: 300;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--surface-solid); color: var(--text); border: 1px solid var(--border);
  padding: .6rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow); font-size: .9rem;
  transition: opacity .25s, transform .25s var(--ease);
}
.pulse-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
body:not(.has-player) .pulse-toast { bottom: 1.5rem; }

/* --- Footer ---------------------------------------------------------------- */
.pulse-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; color: var(--muted); font-size: .9rem; }
.pulse-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.pulse-footer__copy { margin: 0; }
.pulse-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; padding: 0; margin: 0; }
.pulse-footer a { color: var(--muted); }
.pulse-footer a:hover { color: var(--text); }

/* --- Error page & component ---------------------------------------------- */
.pulse-error { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.pulse-error__code {
  font: 700 clamp(5rem, 22vw, 11rem)/1 var(--font-head); margin: 1rem 0 0; letter-spacing: -.06em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pulse-error__msg { color: var(--muted); max-width: 520px; }
.pulse-error__debug { margin-top: 2rem; text-align: left; max-width: 100%; overflow: auto; }
.pulse-component { padding: 1.5rem; }

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .pulse-viz { display: none; }
  .blog-items.columns-4, .blog-items.masonry-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  body.has-sidebar .pulse-layout { grid-template-columns: minmax(0, 1fr); }
  .blog-items.columns-3, .blog-items.masonry-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .pulse-navtoggle { display: flex; }
  .pulse-themetoggle { margin-left: 0; }
  .pulse-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; padding: 1rem;
    flex-direction: column; align-items: stretch; gap: .5rem;
    background: var(--surface-solid); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h)); overflow: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  body.nav-open .pulse-nav { opacity: 1; visibility: visible; transform: none; }
  .pulse-nav > ul, .pulse-nav .mod-menu { flex-direction: column; align-items: stretch; }
  .pulse-nav a { border-radius: 10px; padding: .8rem 1rem; }
  .pulse-nav .mod-menu__sub, .pulse-nav li ul {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; background: transparent; padding: 0 0 0 1rem; min-width: 0;
  }
  .pulse-search input[type="search"], .pulse-search input[type="text"] { width: 100%; }

  .pulse-player__inner { grid-template-columns: minmax(0, 1fr) auto; }
  .pulse-player__inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: .5rem; }
  .pulse-time, .pulse-volume { display: none; }
  .pulse-player__controls [data-act="shuffle"], .pulse-player__controls [data-act="repeat"] { display: none; }
}

@media (max-width: 640px) {
  :root { --player-h: 72px; --header-h: 60px; }
  .blog-items.columns-2, .blog-items.masonry-2, .blog-items.columns-3, .blog-items.masonry-3 { grid-template-columns: minmax(0, 1fr); }
  .pulse-player__cover { width: 44px; height: 44px; }
  .pulse-btn--main { width: 44px; height: 44px; }
  .pulse-player__controls [data-act="prev"] { display: none; }
  .pulse-track { grid-template-columns: 44px minmax(0, 1fr) auto auto auto auto; gap: .25rem; }
  .pulse-track__dur { display: none; }
  .pulse-brand__tagline { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .pulse-header, .pulse-player, .pulse-ambient, .pulse-footer, .pulse-sidebar, .pulse-toast { display: none !important; }
  body { background: #fff; color: #000; }
}

/* --- Like-uri (plugin Ajax - Pulse) -------------------------------------- */
.pulse-like { display: none; }
body.has-likes .pulse-like { display: grid; }
body.has-likes .pulse-track__icon.pulse-like { display: inline-flex; align-items: center; justify-content: center; gap: .25rem; width: auto; min-width: 34px; padding: 0 .45rem; }
.pulse-like svg { fill: none; stroke: currentColor; stroke-width: 2; transition: fill .2s, transform .2s; }
.pulse-like[aria-pressed="true"] { color: var(--pulse-accent); }
.pulse-like[aria-pressed="true"] svg { fill: currentColor; }
.pulse-like__n { font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pulse-like__n:empty { display: none; }
.pulse-like.is-pop svg { animation: pulse-heart .45s var(--ease); }
@keyframes pulse-heart { 30% { transform: scale(1.45); } 60% { transform: scale(.9); } }
.pulse-player__track .pulse-like { flex-shrink: 0; width: 36px; height: 36px; }
.pulse-player__track .pulse-like svg { width: 18px; height: 18px; }
.pulse-btn.pulse-like::after { content: none; }

/* --- Pagina de album ------------------------------------------------------ */
.pulse-album__head { display: grid; grid-template-columns: minmax(160px, 260px) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem); align-items: end; margin-bottom: 1.8rem; }
.pulse-album__cover {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 calc(var(--pulse-energy) * 50px) color-mix(in srgb, var(--pulse-accent) 55%, transparent);
}
.pulse-album__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.pulse-album__cover:hover img { transform: scale(1.04); }
.pulse-album__initial { font: 700 clamp(3rem, 9vw, 6rem)/1 var(--font-head); color: #fff; }
.pulse-album__cover.has-image .pulse-album__initial { display: none; }
.pulse-album__play {
  position: absolute; right: 12px; top: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: #0a0a12; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .2s var(--ease), box-shadow .2s;
}
.pulse-album__play:hover { transform: scale(1.08); }
.pulse-album__play svg { width: 20px; height: 20px; fill: currentColor; grid-area: 1 / 1; }
.pulse-album__play .i-pause, .pulse-album.is-playing .pulse-album__play .i-play { display: none; }
.pulse-album.is-playing .pulse-album__play .i-pause { display: block; }
.pulse-album__info { min-width: 0; }
.pulse-album__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 600; }
.pulse-album__info .page-header h1, .pulse-album__info .page-header h2 { font-size: clamp(2rem, 5vw, 3.4rem); margin: .25rem 0 .5rem; line-height: 1.05; }
.pulse-album__meta { color: var(--muted); margin: 0 0 .9rem; font-variant-numeric: tabular-nums; }
.pulse-album__info .article-info { margin: 0 0 1rem; }
.pulse-album__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.pulse-album .pulse-tracklist__head { display: none; }

/* --- Top piese (bara laterală) ------------------------------------------- */
.pulse-top-wrap { counter-reset: top; }
.pulse-top-wrap .pulse-tracklist { margin: 0; }
.pulse-top-wrap .pulse-tracklist__head .count { display: none; }
.pulse-top-wrap .pulse-track { position: relative; counter-increment: top; }
.pulse-top-wrap .pulse-track::before {
  content: counter(top); position: absolute; left: -7px; top: -7px; z-index: 2; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--surface-solid); border: 1px solid var(--border); color: var(--text);
  font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center;
}
.pulse-top-wrap .pulse-track:nth-of-type(-n+3)::before { background: var(--grad); border-color: transparent; color: #fff; }
.pulse-top__empty { color: var(--muted); margin: 0; font-size: .92rem; }
.pulse-sidebar .pulse-track, .pulse-bottom .pulse-track { grid-template-columns: 40px minmax(0, 1fr) auto; gap: .65rem; padding: .45rem .5rem .45rem .45rem; }
.pulse-sidebar .pulse-track > [data-comments], .pulse-bottom .pulse-track > [data-comments],
.pulse-sidebar .pulse-track > .pulse-track__dur, .pulse-sidebar .pulse-track > [data-enqueue], .pulse-sidebar .pulse-track > span:empty, .pulse-sidebar .pulse-track > a.pulse-track__icon,
.pulse-bottom .pulse-track > .pulse-track__dur, .pulse-bottom .pulse-track > [data-enqueue], .pulse-bottom .pulse-track > span:empty, .pulse-bottom .pulse-track > a.pulse-track__icon { display: none; }
.pulse-sidebar .pulse-track__play, .pulse-bottom .pulse-track__play { width: 40px; height: 40px; }
.pulse-sidebar .pulse-track__title { font-size: .92rem; }
body:not(.has-likes) .pulse-sidebar .pulse-track, body:not(.has-likes) .pulse-bottom .pulse-track { grid-template-columns: 40px minmax(0, 1fr); }

/* --- Aplicație pe telefon (PWA) ------------------------------------------ */
.pulse-install[hidden] { display: none; }
.pulse-player { padding-bottom: env(safe-area-inset-bottom, 0px); }
body.has-player { padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom, 0px)); }
.pulse-header__inner, .pulse-player__inner { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
html.is-app { overscroll-behavior-y: none; }
html.is-app body { -webkit-tap-highlight-color: transparent; }

@media (max-width: 640px) {
  .pulse-album__head { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .pulse-album__cover { width: min(72vw, 300px); }
  .pulse-album__info .article-info, .pulse-album__actions { justify-content: center; }
}

/* --- Versuri și share ----------------------------------------------------- */
.pulse-btn[hidden] { display: none; }
.pulse-player__track .pulse-share { flex-shrink: 0; width: 36px; height: 36px; }
.pulse-player__track .pulse-share svg { width: 18px; height: 18px; }
.pulse-lyrics {
  position: absolute; right: 1rem; bottom: calc(100% + 12px); width: min(460px, calc(100vw - 2rem));
  height: min(64vh, 560px); display: flex; flex-direction: column;
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; animation: pulse-pop .25s var(--ease);
}
.pulse-lyrics[hidden] { display: none; }
.pulse-lyrics .pulse-queue__head > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse-lyrics__title { color: var(--muted); }
.pulse-lyrics__body { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem 2.5rem; scroll-behavior: smooth; outline: none; overscroll-behavior: contain; }
.pulse-lyrics__body p { margin: 0; padding: .22rem 0; font-size: 1.05rem; line-height: 1.5; color: var(--text); }
.pulse-lyrics__body p.gap { height: .9rem; padding: 0; }
.pulse-lyrics__body p.section { margin-top: .5rem; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--pulse-accent-2); }
.pulse-lyrics.is-synced .pulse-lyrics__body { padding-block: 35% 45%; }
.pulse-lyrics.is-synced p[data-i] { color: var(--muted); cursor: pointer; border-radius: 8px; transition: color .25s, transform .25s var(--ease), font-size .25s; transform-origin: left center; }
.pulse-lyrics.is-synced p[data-i]:hover { color: var(--text); }
.pulse-lyrics.is-synced p.is-active { color: var(--text); font-weight: 700; transform: scale(1.06); text-shadow: 0 0 18px color-mix(in srgb, var(--pulse-accent) 55%, transparent); }
.pulse-track.is-linked { animation: pulse-linked 1s ease-in-out 3; }
@keyframes pulse-linked { 50% { box-shadow: 0 0 0 3px var(--pulse-accent), 0 0 30px color-mix(in srgb, var(--pulse-accent) 60%, transparent); } }
.pulse-folder__empty { color: var(--muted); font-size: .92rem; border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: .8rem 1rem; }

@media (max-width: 640px) {
  .pulse-lyrics { left: .5rem; right: .5rem; width: auto; height: min(70vh, 620px); }
  .pulse-player__track .pulse-like { display: none !important; }
  .pulse-player__inner { gap: .25rem; }
}

.pulse-player__cover img:not([hidden]) + .pulse-player__initial { display: none; }

.pulse-album__cover img.is-swap { animation: pulse-coverswap .5s var(--ease); }
@keyframes pulse-coverswap { from { opacity: 0; transform: scale(1.06); } }

.blog-item.pulse-album:hover { transform: none; }
.blog-item .pulse-album__info .page-header h2 a { color: inherit; }
.blog-item .pulse-album__info .page-header h2 a:hover { color: var(--pulse-accent); }

.pulse-album__info .item-title { font-size: clamp(1.8rem, 4.2vw, 3rem); margin: .25rem 0 .5rem; line-height: 1.05; }
.pulse-album__info .item-title a { color: inherit; }
.pulse-album__info .item-title a:hover { color: var(--pulse-accent); }

/* --- Comentarii pe piesă ---------------------------------------------------- */
.pulse-cmt { display: none; }
body.has-comments .pulse-cmt { display: grid; }
body.has-comments .pulse-track__icon.pulse-cmt { display: inline-flex; align-items: center; justify-content: center; gap: .25rem; width: auto; min-width: 34px; padding: 0 .45rem; }
.pulse-cmt__n { font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pulse-cmt__n:empty { display: none; }
.pulse-player__track .pulse-cmt { flex-shrink: 0; width: auto; min-width: 36px; height: 36px; padding: 0 .4rem; gap: .2rem; grid-auto-flow: column; }
.pulse-player__track .pulse-cmt svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.pulse-player__track .pulse-cmt[aria-expanded="true"] { color: var(--pulse-accent-2); }
.pulse-comments {
  position: fixed; z-index: 60; right: 1rem; top: calc(var(--header-h) + 1rem); bottom: 1rem; width: min(420px, calc(100vw - 2rem));
  display: flex; flex-direction: column; background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; animation: pulse-pop .25s var(--ease);
}
body.has-player .pulse-comments { bottom: calc(var(--player-h) + 1.4rem); }
.pulse-comments[hidden] { display: none; }
.pulse-comments .pulse-queue__head > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse-comments__title { color: var(--muted); }
.pulse-comments__list { flex: 1; overflow-y: auto; padding: 1rem 1.1rem; overscroll-behavior: contain; outline: none; }
.pulse-comments__empty { color: var(--muted); text-align: center; margin: 2rem 0; }
.pulse-cmt-item { padding: .7rem .85rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); margin-bottom: .6rem; }
.pulse-cmt-item p { margin: .3rem 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.pulse-cmt-item__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; }
.pulse-cmt-item__head small { color: var(--muted); font-size: .76rem; margin-left: auto; }
.pulse-cmt-item.is-pending { opacity: .7; border-style: dashed; }
.pulse-cmt-item.is-artist { border-color: transparent; background: linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box, var(--grad) border-box; }
.pulse-cmt-badge { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .1rem .5rem; border-radius: 999px; background: var(--grad); color: #fff; }
.pulse-cmt-replies { margin: -.2rem 0 .6rem 1.2rem; padding-left: .7rem; border-left: 2px solid var(--border); }
.pulse-comments__form { display: grid; gap: .5rem; padding: .8rem 1rem 1rem; border-top: 1px solid var(--border); background: var(--surface); }
.pulse-comments__form input, .pulse-comments__form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface-solid); border: 1px solid var(--border); border-radius: 10px; padding: .55rem .7rem; resize: vertical;
}
.pulse-comments__form input:focus, .pulse-comments__form textarea:focus { outline: none; border-color: var(--pulse-accent); }
.pulse-comments__form.is-artist input[name="name"] { display: none; }
.pulse-comments__form.is-busy { opacity: .6; pointer-events: none; }
.pulse-comments__foot { display: flex; align-items: center; gap: .6rem; }
.pulse-comments__note { color: var(--muted); flex: 1; font-size: .8rem; }
.pulse-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
@media (max-width: 640px) {
  .pulse-comments { left: .5rem; right: .5rem; width: auto; top: auto; height: min(75vh, 640px); bottom: .5rem; }
  body.has-player .pulse-comments { bottom: calc(var(--player-h) + .8rem); }
}

/* --- Forma de undă și 🔥 -------------------------------------------------------- */
.pulse-wave { display: none; position: absolute; left: 0; right: 0; bottom: 7px; width: 100%; height: 30px; pointer-events: none; }
.pulse-player.has-wave .pulse-wave { display: block; }
.pulse-player.has-wave .pulse-player__progress { top: -31px; height: 38px; }
.pulse-player.has-wave .pulse-player__buffer { display: none; }
.pulse-player.has-wave .pulse-seek::-webkit-slider-runnable-track { background: transparent; height: 38px; }
.pulse-player.has-wave .pulse-seek::-moz-range-track { background: transparent; height: 38px; }
.pulse-player.has-wave .pulse-seek::-moz-range-progress { background: transparent; }
.pulse-player.has-wave .pulse-seek::-webkit-slider-thumb { opacity: 0 !important; height: 38px; width: 2px; margin-top: 0; border-radius: 0; box-shadow: none; }
.pulse-player.has-wave .pulse-seek::-moz-range-thumb { opacity: 0 !important; }
body.has-player.has-wave { padding-bottom: calc(var(--player-h) + 32px + env(safe-area-inset-bottom, 0px)); }
body.has-wave .pulse-comments { bottom: calc(var(--player-h) + 2.4rem + 24px); }
.pulse-wave__tip {
  position: absolute; bottom: 44px; transform: translateX(-50%); padding: .1rem .45rem; border-radius: 6px; font-size: .72rem; font-variant-numeric: tabular-nums;
  background: var(--surface-solid); border: 1px solid var(--border); color: var(--text); pointer-events: none; white-space: nowrap;
}
.pulse-wave__tip[hidden] { display: none; }
.pulse-fire { display: none; position: relative; flex-shrink: 0; width: 36px; height: 36px; }
body.has-likes .pulse-fire { display: grid; }
.pulse-player__track .pulse-fire svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.pulse-fire:hover, .pulse-fire:active { color: #ff9f1c; }
.pulse-fire__fly { position: absolute; left: 50%; top: 0; font-size: 1.1rem; pointer-events: none; animation: pulse-fire-fly .9s ease-out forwards; }
@keyframes pulse-fire-fly { from { transform: translate(-50%, 0) scale(.6); opacity: 1; } to { transform: translate(-50%, -46px) scale(1.4); opacity: 0; } }
@media (max-width: 640px) {
  .pulse-player.has-wave .pulse-player__progress { top: -25px; height: 30px; }
  .pulse-wave { height: 24px; bottom: 5px; }
  body.has-player.has-wave { padding-bottom: calc(var(--player-h) + 26px + env(safe-area-inset-bottom, 0px)); }
}
.pulse-player.has-wave .pulse-player__progress::before {
  content: ""; position: absolute; inset: 0 0 6px; pointer-events: none;
  background: linear-gradient(to top, color-mix(in srgb, var(--surface-solid) 92%, transparent), color-mix(in srgb, var(--surface-solid) 0%, transparent));
}

/* --- Tranziții între pagini (View Transitions) ------------------------------ */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .38s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
::view-transition-group(pulse-cover) { animation-duration: .55s; animation-timing-function: cubic-bezier(.5, 0, .2, 1); z-index: 50; }
::view-transition-old(pulse-cover), ::view-transition-new(pulse-cover) { animation-duration: .55s; height: 100%; object-fit: cover; }
.pulse-fly { position: fixed; z-index: 90; pointer-events: none; border-radius: 18px; background: var(--grad) center / cover no-repeat; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); transform-origin: 0 0; will-change: transform; }
.pulse-player__cover.is-land { animation: pulse-land .45s var(--ease); }
@keyframes pulse-land { 40% { transform: scale(1.14); box-shadow: 0 0 0 3px var(--pulse-accent), 0 0 26px var(--pulse-accent); } }

/* --- NOU + Proaspăt din studio ------------------------------------------------ */
.pulse-new {
  display: inline-block; vertical-align: middle; margin-left: .35rem; padding: .05rem .45rem; border-radius: 999px;
  font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--grad);
  box-shadow: 0 0 12px color-mix(in srgb, var(--pulse-accent) 55%, transparent); animation: pulse-new-glow 2.4s ease-in-out infinite;
}
@keyframes pulse-new-glow { 50% { box-shadow: 0 0 20px color-mix(in srgb, var(--pulse-accent-2) 70%, transparent); } }
.pulse-fresh { margin: 0 0 2rem; padding: 1.1rem 1.1rem .6rem; border-radius: var(--radius); border: 1px solid transparent;
  background: linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box, var(--grad) border-box; }
.pulse-fresh__title { font-size: 1.15rem; margin: 0 0 .7rem; display: flex; align-items: center; gap: .5rem; }
.pulse-fresh__title span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.3em; }
.pulse-fresh__list .pulse-track { margin: 0 0 .45rem; }

/* --- Carduri 3D cu lumină ------------------------------------------------------ */
.pulse-track { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; }
.pulse-track::after, .pulse-album__cover::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .13), transparent 45%);
}
.pulse-album__cover::after { background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .28), transparent 55%); z-index: 1; }
.pulse-track.is-tilt::after, .pulse-album__cover.is-tilt::after { opacity: 1; }
.pulse-album__cover { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, box-shadow .25s; }
.pulse-album__cover.is-tilt { box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 40px color-mix(in srgb, var(--pulse-accent) 25%, transparent); }
[data-theme="light"] .pulse-track::after { background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--pulse-accent) 12%, transparent), transparent 45%); }

/* --- Micro-animații ---------------------------------------------------------------- */
.pulse-burst { position: fixed; z-index: 95; border-radius: 50%; pointer-events: none; }
.pulse-btn, .pulse-track__icon, .btn, .pulse-track__play { transition: transform .15s var(--ease), background .2s, color .2s; }
.pulse-btn:active, .pulse-track__icon:active, .btn:active, .pulse-track__play:active { transform: scale(.9); }
.pulse-btn--main:hover { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .pulse-new { animation: none; }
  .pulse-track, .pulse-album__cover { transform: none !important; }
}
body .pulse-sidebar .pulse-track > [data-comments], body .pulse-bottom .pulse-track > [data-comments] { display: none; }
/* Header-ul, player-ul și fundalul rămân pe loc în timpul tranziției */
.pulse-header { view-transition-name: pulse-header; }
.pulse-player { view-transition-name: pulse-player; }
::view-transition-group(pulse-header), ::view-transition-group(pulse-player) { animation: none; z-index: 60; }
::view-transition-old(pulse-header), ::view-transition-old(pulse-player) { display: none; }
::view-transition-new(pulse-header), ::view-transition-new(pulse-player) { animation: none; }

/* --- Trecere lină (crossfade) în lista de redare ------------------------------- */
.pulse-xfade { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; padding: .55rem 1rem .7rem; border-bottom: 1px solid var(--border); font-size: .82rem; color: var(--muted); }
.pulse-xfade[hidden] { display: none; }
.pulse-xfade output { min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.pulse-xfade input { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; cursor: pointer;
  background: linear-gradient(90deg, var(--pulse-accent), var(--pulse-accent-2)) 0 0 / var(--v, 0%) 100% no-repeat, var(--surface-2); }
.pulse-xfade input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--pulse-accent); }
.pulse-xfade input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--pulse-accent); }

/* --- Titlul piesei care cântă dansează --------------------------------------------- */
.pulse-dl { display: inline-block; transform-origin: 50% 90%; transition: transform .07s linear; will-change: transform; }
.pulse-dl.sp { width: .28em; }
.pulse-track.is-current .pulse-dl { color: var(--c, var(--text)); }

/* --- AZI / IERI / NOU + HOT / HIT ------------------------------------------------ */
.pulse-new { animation: none; box-shadow: none; opacity: .75; background: color-mix(in srgb, var(--pulse-accent-2) 35%, var(--surface-2)); }
.pulse-new.is-yesterday { opacity: .9; background: linear-gradient(120deg, color-mix(in srgb, var(--pulse-accent) 55%, var(--surface-2)), color-mix(in srgb, var(--pulse-accent-2) 55%, var(--surface-2))); }
.pulse-new.is-today { opacity: 1; background: var(--grad); box-shadow: 0 0 12px color-mix(in srgb, var(--pulse-accent) 55%, transparent); animation: pulse-new-glow 2.4s ease-in-out infinite; }
.pulse-tag {
  display: inline-block; vertical-align: middle; margin-left: .3rem; padding: .05rem .5rem; border-radius: 999px;
  font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: #fff;
}
.pulse-tag--hot { background: linear-gradient(120deg, #ff3d3d, #ff9f1c); box-shadow: 0 0 12px rgba(255, 106, 61, .55); }
.pulse-tag--hit { background: linear-gradient(120deg, #ffb703, #ffe066); color: #2b1a00; box-shadow: 0 0 12px rgba(255, 200, 61, .5); }
.pulse-player__title .pulse-tag { font-size: .58rem; }
@media (prefers-reduced-motion: reduce) { .pulse-new.is-today { animation: none; } }

/* --- Login doar cu passkey (setare din template) ----------------------------------- */
body.login-passkey .mod-login__password, body.login-passkey .mod-login__remember,
body.login-passkey .mod-login__options, body.login-passkey .mod-login__submit:has(button[type="submit"]) { display: none !important; }

.pulse-sidebar .pulse-new, .pulse-bottom .pulse-new { display: none; }

/* Doar iconița passkey; câmpul de utilizator apare doar la primul click (dacă nu e ținut minte) */
body.login-passkey .mod-login.has-passkey .mod-login__username, body.login-passkey .mod-login.has-passkey .mod-login__pretext, body.login-passkey .mod-login.has-passkey .mod-login__posttext { display: none; }
body.login-passkey .mod-login.has-passkey.show-user .mod-login__username { display: block; animation: pulse-pop .25s var(--ease); }
body.login-passkey .mod-login.show-user .mod-login__username { margin-bottom: .7rem; }



/* --- Logo care dansează pe muzică ------------------------------------------------ */
.pulse-brand__mark.is-live i { animation: none; height: 100%; transform-origin: 50% 100%; transition: transform .06s linear; }

/* --- Subsol ------------------------------------------------------------------------- */
.pulse-footer { padding: 3rem 0 2rem; position: relative; }
.pulse-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--pulse-accent), var(--pulse-accent-2), transparent); opacity: .7; }
.pulse-footer__grid { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1.5rem 2rem; }
.pulse-footer__brand .pulse-brand { gap: .6rem; }
.pulse-footer__brand .pulse-brand__name { font-size: 1.25rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pulse-footer__made { margin: .45rem 0 0; color: var(--muted); font-size: .9rem; }
.pulse-heart { display: inline-block; color: var(--pulse-accent); animation: pulse-heart 1.4s ease-in-out infinite; }
@keyframes pulse-heart { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1.05); } 45% { transform: scale(1.22); } }
.pulse-footer__social { display: flex; gap: .55rem; }
.pulse-social {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--text) !important;
  background: var(--surface-2); border: 1px solid var(--border); transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.pulse-social svg { width: 19px; height: 19px; fill: currentColor; }
.pulse-social--instagram svg { fill: none; }
.pulse-social:hover { transform: translateY(-3px); border-color: transparent; background: var(--grad); color: #fff !important; box-shadow: 0 10px 24px color-mix(in srgb, var(--pulse-accent) 35%, transparent); }
.pulse-install--footer {
  display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.15rem; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .92rem; color: #fff; background: var(--grad);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--pulse-accent) 30%, transparent); transition: transform .2s var(--ease), filter .2s;
}
.pulse-install--footer:hover { transform: translateY(-2px); filter: brightness(1.08); }
.is-app .pulse-install--footer { display: none; }
.pulse-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted); }
@media (max-width: 760px) {
  .pulse-footer__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .pulse-footer__brand .pulse-brand { justify-content: center; }
  .pulse-footer__bottom { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .pulse-heart { animation: none; } }

/* --- Undă sub titlu: titlul rămâne întreg, linia pulsează dedesubt ---------------- */
.pulse-hero__under {
  display: block; margin: -.6rem auto .4rem; max-width: 100%; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 55%, transparent 100%);
}

/* --- Analizor cu „căciulițe” + liniile meniului pe muzică ---------------------- */
.pulse-hero__eq { position: relative; }
.pulse-hero__caps { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-end; gap: 5px; pointer-events: none; }
.pulse-hero__caps b { display: block; width: 6px; height: 3px; border-radius: 2px; background: #fff; opacity: 0; box-shadow: 0 0 6px var(--pulse-accent-2); }
.pulse-hero.is-live .pulse-hero__caps b { opacity: .9; }
.pulse-hero.is-live .pulse-hero__eq i { transition: none; }
.pulse-brand__mark.is-live i { transition: none; }
.pulse-navtoggle.is-live span { transition: none; background: var(--grad); transform-origin: 50% 50%; }

/* =========================================================================
   Playlist: culorile copertei, vinil, „urmează”, unde pe rânduri, ecran complet, cascadă
   ========================================================================= */
.pulse-track { isolation: isolate; }
body.has-rc .pulse-track.is-current {
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--rc1) calc(12% + var(--rb, 0) * 30%), var(--surface-solid)),
      color-mix(in srgb, var(--rc2) calc(8% + var(--rb, 0) * 22%), var(--surface-solid))) padding-box,
    linear-gradient(90deg, var(--rc1), var(--rc2)) border-box;
  box-shadow: 0 0 calc(4px + var(--rb, 0) * 26px) color-mix(in srgb, var(--rc1) 45%, transparent);
}
body.has-rc .pulse-player__cover { box-shadow: 0 0 calc(var(--pulse-energy) * 28px + 4px) color-mix(in srgb, var(--rc1) 70%, transparent); }

/* forma de undă mică, ca o siluetă în partea de jos a rândului */
.pulse-track__wave {
  position: absolute; left: 62px; right: 14px; bottom: 3px; height: 9px; width: calc(100% - 76px);
  z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.pulse-sidebar .pulse-track__wave, .pulse-bottom .pulse-track__wave { left: 54px; width: calc(100% - 64px); height: 7px; bottom: 2px; }

/* discul de vinil */
.pulse-vinyl { position: relative; flex-shrink: 0; transition: margin-right .7s var(--ease), width .7s var(--ease); }
.pulse-vinyl > .pulse-player__cover, .pulse-vinyl > .pulse-album__cover, .pulse-vinyl > .pulse-np__cover { position: relative; z-index: 1; }
.pulse-vinyl__disc {
  position: absolute; top: 5%; left: 5%; width: 90%; height: 90%; border-radius: 50%; z-index: 0; pointer-events: none;
  background: #0b0b10; box-shadow: 0 8px 24px rgba(0, 0, 0, .55);
  transform: translateX(0) scale(.92); transition: transform .8s var(--ease);
}
.pulse-vinyl__disc i {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .055) 0 1px, transparent 1px 3px),
    radial-gradient(circle, #1c1c25 0, #09090d 72%);
}
.pulse-vinyl__disc i::before {
  content: ""; position: absolute; inset: 31%; border-radius: 50%;
  background: var(--vl, none) center / cover, var(--grad);
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.pulse-vinyl__disc i::after { content: ""; position: absolute; inset: 48%; border-radius: 50%; background: #050507; }
.pulse-vinyl__disc::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; z-index: 1;
  background: conic-gradient(from 35deg, transparent 0 8%, rgba(255, 255, 255, .13) 13%, transparent 20% 55%, rgba(255, 255, 255, .08) 61%, transparent 68%);
}
.pulse-player .pulse-vinyl.is-out { margin-right: 24px; }
.pulse-player .pulse-vinyl.is-out .pulse-vinyl__disc { transform: translateX(46%) scale(1); }
.pulse-album .pulse-vinyl { width: 100%; }
.pulse-album .pulse-vinyl.is-out { width: 80%; }
.pulse-album .pulse-vinyl.is-out .pulse-vinyl__disc { transform: translateX(30%) scale(1); }
.pulse-player__cover[role="button"] { cursor: zoom-in; }
.pulse-player__cover[role="button"]:focus-visible { outline: 2px solid var(--pulse-accent); outline-offset: 2px; }

/* „Urmează”: copertele următoarelor 3 piese, în evantai */
.pulse-upnext {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 0; background: none; padding: 0 .3rem;
  color: var(--muted); cursor: pointer; font: inherit;
}
.pulse-upnext[hidden] { display: none; }
.pulse-upnext__lbl { font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; }
.pulse-upnext__stack { display: flex; padding-left: 2px; }
.pulse-upnext__c {
  width: 30px; height: 30px; margin-left: -13px; position: relative; z-index: calc(3 - var(--k));
  transform: rotate(calc(var(--k) * 5deg)); opacity: calc(1 - var(--k) * .22); transition: transform .25s var(--ease);
}
.pulse-upnext__c:first-child { margin-left: 0; }
.pulse-upnext__c b {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 7px; overflow: hidden;
  background: var(--grad) center / cover; color: #fff; font: 700 .8rem var(--font-head);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .12);
}
.pulse-upnext:hover .pulse-upnext__c { transform: translateX(calc(var(--k) * 9px)) rotate(0deg); }
.pulse-upnext.is-shift .pulse-upnext__c { animation: pulse-upin .55s var(--ease) both; animation-delay: calc(var(--k) * 70ms); }
@keyframes pulse-upin { from { translate: 22px 0; opacity: 0; } }
@media (max-width: 1100px) { .pulse-upnext { display: none; } }

/* intrarea în cascadă */
.pulse-track.is-in { animation: pulse-rowin .55s var(--ease) both; animation-delay: calc(var(--ci, 0) * 45ms); }
@keyframes pulse-rowin { from { opacity: 0; translate: 0 14px; } }

/* ecranul complet „Now playing” */
html.np-open { overflow: hidden; }
.pulse-np {
  --npc: min(40vh, 400px);
  position: fixed; inset: 0; z-index: 3000; overflow: hidden; color: #fff; background: #07070c;
  opacity: 0; transform: scale(.985); transition: opacity .3s, transform .35s var(--ease);
}
.pulse-np[hidden] { display: none; }
.pulse-np.is-open { opacity: 1; transform: none; }
.pulse-np__bg { position: absolute; inset: 0; overflow: hidden; }
.pulse-np__bg img { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(70px) saturate(1.5) brightness(.5); transform: scale(1.1); }
.pulse-np__bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 15% 20%, color-mix(in srgb, var(--rc1, var(--pulse-accent)) 35%, transparent), transparent 70%),
              radial-gradient(60% 60% at 90% 85%, color-mix(in srgb, var(--rc2, var(--pulse-accent-2)) 30%, transparent), transparent 70%),
              linear-gradient(rgba(7, 7, 12, .25), rgba(7, 7, 12, .7));
}
.pulse-np__close {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .3); color: #fff; display: grid; place-items: center; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pulse-np__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pulse-np__body {
  position: relative; z-index: 2; height: 100%; max-width: 1180px; margin: 0 auto; padding: 4rem clamp(1rem, 4vw, 3rem) 8rem;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem);
}
.pulse-np .pulse-vinyl { width: var(--npc); margin-right: calc(var(--npc) * .36); }
.pulse-np .pulse-vinyl__disc { transform: translateX(38%) scale(1); }
.pulse-np__cover {
  width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 calc(var(--pulse-energy) * 70px) color-mix(in srgb, var(--rc1, var(--pulse-accent)) 60%, transparent);
}
.pulse-np__cover img { width: 100%; height: 100%; object-fit: cover; grid-area: 1 / 1; }
.pulse-np__cover img:not([hidden]) + .pulse-np__initial { display: none; }
.pulse-np__initial { grid-area: 1 / 1; font: 700 clamp(4rem, 12vw, 8rem) var(--font-head); }
.pulse-np__kicker { margin: 0 0 .4rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.pulse-np__title { margin: 0; font: 800 clamp(1.8rem, 4.2vw, 3.2rem)/1.05 var(--font-head); letter-spacing: -.02em; }
.pulse-np__artist { margin: .4rem 0 0; opacity: .7; font-size: 1.05rem; }
.pulse-np__lyrics { margin: 1.6rem 0 0; min-height: 6.6em; }
.pulse-np__lyrics p { margin: 0 0 .35rem; transition: opacity .3s, transform .3s var(--ease); }
.pulse-np__lyrics .was, .pulse-np__lyrics .soon { opacity: .35; font-size: 1rem; }
.pulse-np__lyrics .now { font: 700 clamp(1.2rem, 2.2vw, 1.6rem)/1.25 var(--font-head); animation: pulse-lyin .35s var(--ease); }
@keyframes pulse-lyin { from { opacity: 0; transform: translateY(8px); } }
.pulse-np__lyrics .plain { max-height: 28vh; overflow: auto; opacity: .75; line-height: 1.6; -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent); padding: .6rem 0; }
.pulse-np__time { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8rem; margin-top: 1.6rem; font-size: .8rem; font-variant-numeric: tabular-nums; opacity: .9; }
.pulse-np__bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .16); cursor: pointer; position: relative; touch-action: none; }
.pulse-np__bar::before { content: ""; position: absolute; inset: -10px 0; }
.pulse-np__bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, var(--rc1, var(--pulse-accent)), var(--rc2, var(--pulse-accent-2))); }
.pulse-np__ctrl { display: flex; align-items: center; gap: 1.2rem; margin-top: 1.2rem; }
.pulse-np__ctrl button { width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .15s var(--ease), background .2s; }
.pulse-np__ctrl button:hover { background: rgba(255, 255, 255, .2); }
.pulse-np__ctrl button:active { transform: scale(.94); }
.pulse-np__ctrl svg { width: 22px; height: 22px; fill: currentColor; }
.pulse-np__ctrl .big { width: 70px; height: 70px; background: #fff; color: #0a0a12; }
.pulse-np__ctrl .big:hover { background: #fff; transform: scale(1.05); }
.pulse-np__ctrl .big svg { width: 28px; height: 28px; }
.pulse-np__ctrl .big .i-pause, .pulse-np.is-playing .pulse-np__ctrl .big .i-play { display: none; }
.pulse-np.is-playing .pulse-np__ctrl .big .i-pause { display: block; }
.pulse-np__next { margin-top: 1.8rem; display: grid; gap: .45rem; max-width: 420px; }
.pulse-np__next .pulse-np__kicker { margin-bottom: .1rem; }
.pulse-np__next button { display: flex; align-items: center; gap: .7rem; padding: .35rem; border: 0; border-radius: 10px; background: none; color: #fff; text-align: left; cursor: pointer; font: inherit; }
.pulse-np__next button:hover { background: rgba(255, 255, 255, .08); }
.pulse-np__next b { flex-shrink: 0; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--grad) center / cover; font: 700 .9rem var(--font-head); }
.pulse-np__next span { min-width: 0; display: flex; flex-direction: column; font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse-np__next small { font-weight: 400; opacity: .6; font-size: .78rem; }
.pulse-np__viz { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; z-index: 1; pointer-events: none; }
@media (max-width: 760px) {
  .pulse-np { --npc: min(56vw, 260px); }
  .pulse-np__body { grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: center; text-align: center; gap: 1.6rem; padding-top: max(4.5rem, env(safe-area-inset-top)); overflow-y: auto; }
  .pulse-np .pulse-vinyl { margin-right: calc(var(--npc) * .3); margin-left: 0; }
  .pulse-np .pulse-vinyl__disc { transform: translateX(32%) scale(1); }
  .pulse-np__info { width: 100%; }
  .pulse-np__lyrics { min-height: 5.6em; margin-top: 1rem; }
  .pulse-np__ctrl { justify-content: center; }
  .pulse-np__next { margin: 1.2rem auto 0; text-align: left; }
  .pulse-np__viz { height: 80px; }
}
@media (prefers-reduced-motion: reduce) { .pulse-np__bg img { filter: blur(50px) brightness(.5); } }
@media (max-width: 640px) {
  .pulse-album .pulse-vinyl { width: min(72vw, 300px); }
  .pulse-album .pulse-vinyl > .pulse-album__cover { width: 100%; }
  .pulse-album .pulse-vinyl.is-out { width: min(60vw, 250px); margin-right: min(17vw, 72px); }
  .pulse-player .pulse-vinyl.is-out { margin-right: 0; }
  .pulse-player .pulse-vinyl__disc { display: none; }
  .pulse-np__body { padding-bottom: 6rem; }
  .pulse-np__viz { height: 64px; opacity: .8; }
}

/* titlul piesei care cântă: altă culoare, tremură pe ritm */
.pulse-track.is-current .pulse-track__title { color: var(--pulse-accent); will-change: transform; }
body.has-rc .pulse-track.is-current .pulse-track__title { color: color-mix(in srgb, var(--rc1) 75%, #fff); }
[data-theme="light"] body.has-rc .pulse-track.is-current .pulse-track__title { color: color-mix(in srgb, var(--rc1) 80%, #000); }

/* etichete doar ca pictograme: 🔝 TOP, 🎵 HIT, ✨ NEW */
.pulse-new, .pulse-tag {
  display: inline-block; padding: 0; margin-left: .2em; background: none !important; box-shadow: none !important; border: 0;
  font-size: .95em; line-height: 1; letter-spacing: 0; text-transform: none; vertical-align: baseline; opacity: 1; cursor: default;
  animation: none;
}
.pulse-tag--hot { text-shadow: 0 0 8px rgba(61, 170, 255, .85); }
.pulse-tag--hit { text-shadow: 0 0 8px color-mix(in srgb, var(--pulse-accent) 85%, transparent); }
.pulse-new { text-shadow: 0 0 7px color-mix(in srgb, var(--pulse-accent-2) 80%, transparent); opacity: .9; }
.pulse-new.is-today { opacity: 1; animation: pulse-spark 2.2s ease-in-out infinite; }
@keyframes pulse-spark { 50% { transform: scale(1.18) rotate(8deg); text-shadow: 0 0 12px var(--pulse-accent); } }
.pulse-player__title .pulse-tag { font-size: .9em; }
@media (prefers-reduced-motion: reduce) { .pulse-new.is-today { animation: none; } }

/* Grilaj compact de albume / playlisturi: {pulse albums}, {pulse playlists} */
.pulse-agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: clamp(1.4rem, 3vw, 2.2rem); margin: 1.2rem 0 2rem; }
.pulse-agrid__item { display: flex; flex-direction: column; gap: .25rem; color: inherit; text-decoration: none; min-width: 0; transition: transform .35s var(--ease); }
.pulse-agrid__item:hover { transform: translateY(-6px); }
.pulse-agrid__cover { position: relative; display: block; aspect-ratio: 1; margin-bottom: .55rem; border-radius: 14px; box-shadow: 0 14px 34px -14px #000; z-index: 1; }
.pulse-agrid__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.pulse-agrid__initial { position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(135deg, var(--pulse-accent), var(--pulse-accent-2)); display: grid; place-items: center; font: 700 3.4rem/1 var(--font-head); color: #fff; }
.pulse-agrid__disc { position: absolute; z-index: -1; top: 5%; right: -9%; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #5a5a66 0 7%, #111 8% 32%, #1c1c24 33% 34%, #0b0b10 35% 62%, #1c1c24 63% 64%, #0b0b10 65%); transition: transform .5s var(--ease); }
.pulse-agrid__item:hover .pulse-agrid__disc { transform: translateX(8%) rotate(40deg); }
.pulse-agrid__item strong { font: 700 1.05rem/1.25 var(--font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pulse-agrid__item small { color: var(--muted); }
@media (max-width: 640px) { .pulse-agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pulse-agrid__disc { right: -8%; } }

/* Buton ▶ direct pe coperta din grilaj */
.pulse-agrid__item { position: relative; }
.pulse-agrid__link { display: block; color: inherit; text-decoration: none; min-width: 0; }
.pulse-agrid__top { position: relative; }
.pulse-agrid__item > .pulse-agrid__link { display: flex; flex-direction: column; gap: .25rem; }
.pulse-agrid__play { position: absolute; z-index: 2; right: .7rem; top: .7rem; bottom: auto; left: auto; width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; background: var(--grad); box-shadow: 0 8px 22px -6px color-mix(in srgb, var(--pulse-accent) 70%, #000); transition: transform .25s var(--ease); }
.pulse-agrid__play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 2px; }
.pulse-agrid__item:hover .pulse-agrid__play, .pulse-agrid__play:focus-visible { transform: scale(1.12); }
.pulse-agrid__tracks[hidden] { display: none; }

/* „Just released” în sidebar, deasupra Top piese */
.pulse-sidebar .pulse-fresh { margin: 0; padding: .9rem .8rem .4rem; }
.pulse-sidebar .pulse-fresh__title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }

/* „Ascultă acum” */
.pulse-listen { margin: 0 0 1.5rem; display: grid; gap: .9rem; }
.pulse-listen__go { display: flex; align-items: center; gap: 1.1rem; width: 100%; padding: 1.1rem 1.4rem; border: 0; border-radius: var(--radius); cursor: pointer; text-align: left; color: #fff; background: var(--grad); box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--pulse-accent) 75%, #000); transition: transform .25s var(--ease); }
.pulse-listen__go:hover { transform: translateY(-2px); }
.pulse-listen__go svg { flex: none; width: 52px; height: 52px; padding: 14px; border-radius: 50%; background: rgba(255,255,255,.22); fill: currentColor; }
.pulse-listen__go span { display: grid; gap: .15rem; }
.pulse-listen__go strong { font-size: 1.4rem; line-height: 1.1; }
.pulse-listen__go small { font-size: .92rem; opacity: .92; }
.pulse-listen__moods { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pulse-listen__moods > span { font-size: .85rem; opacity: .7; margin-right: .2rem; }
.pulse-listen__chip { padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--pulse-border, rgba(255,255,255,.18)); background: var(--surface-solid); color: inherit; font: inherit; font-weight: 600; cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.pulse-listen__chip:hover { transform: translateY(-1px); border-color: var(--pulse-accent); }

/* Ce cântă, pe butonul „Ascultă acum” */
.pulse-listen__go span { min-width: 0; }
.pulse-listen__go > span { min-width: 0; flex: 1; }
.pulse-listen__now { margin-top: .45rem; padding-top: .45rem; border-top: 1px solid rgba(255,255,255,.28); display: grid; gap: .25rem; max-width: 100%; }
.pulse-listen__row { display: flex; align-items: center; gap: .6rem; min-width: 0; font-size: .92rem; font-weight: 700; }
.pulse-listen__row > i { flex: none; min-width: 4.6rem; font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.pulse-listen__row.is-next.is-scroll .pulse-listen__mq > span { animation-direction: reverse; }
.pulse-listen__mq { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.pulse-listen__mq > span { display: inline-block; white-space: nowrap; }
.pulse-listen__mq > span > b { display: inline-block; font-weight: inherit; padding-right: 3rem; }
.pulse-listen__row.is-scroll .pulse-listen__mq > span { animation: pulse-listen-scroll var(--dur, 12s) linear infinite; }
@keyframes pulse-listen-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .pulse-listen__row.is-scroll .pulse-listen__mq > span { animation: none; } }

/* Inima de pe „Ascultă acum”: apreciezi ce cântă acum */
.pulse-listen__card { position: relative; }
.pulse-listen__card.has-like .pulse-listen__go { padding-right: 6.2rem; }
.pulse-listen__like { position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); min-width: 52px; height: 52px; padding: 0 .85rem; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; border: 0; border-radius: 999px; cursor: pointer; color: #fff; background: rgba(255,255,255,.22); font: inherit; font-weight: 700; transition: transform .2s var(--ease), background .2s; }
.pulse-listen__like[hidden] { display: none; }
.pulse-listen__like:hover { background: rgba(255,255,255,.34); }
.pulse-listen__like svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.pulse-listen__like[aria-pressed="true"] { background: #fff; color: #e0245e; }
.pulse-listen__like[aria-pressed="true"] svg { fill: currentColor; }
.pulse-listen__like .pulse-like__n:empty { display: none; }
.pulse-listen__like.is-pop svg { animation: pulse-heart .45s var(--ease); }

/* Crossfade pe „Ascultă acum” (același reglaj ca în lista de redare) */
.pulse-listen__xf { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: 0 .3rem; font-size: .85rem; color: var(--muted); }
.pulse-listen__xf output { min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.pulse-listen__xf input { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; cursor: pointer; background: linear-gradient(90deg, var(--pulse-accent), var(--pulse-accent-2)) 0 0 / var(--v, 0%) 100% no-repeat, var(--surface-2); }
.pulse-listen__xf input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--pulse-accent); }
.pulse-listen__xf input::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--pulse-accent); }

/* Cardul „Ascultă acum”: gradientul e pe card, iar butonul, crossfade-ul și inima stau în el */
.pulse-listen__card { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; padding-right: 1.1rem; border-radius: var(--radius); color: #fff; background: var(--grad); box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--pulse-accent) 75%, #000); }
.pulse-listen__card .pulse-listen__go { flex: 1 1 300px; width: auto; background: none; box-shadow: none; }
.pulse-listen__card .pulse-listen__go:hover { transform: none; }
.pulse-listen__card.has-like .pulse-listen__go { padding-right: 1.4rem; }
.pulse-listen__card .pulse-listen__like { position: static; transform: none; flex: none; }
.pulse-listen__card .pulse-listen__xf { flex: 0 1 230px; color: rgba(255,255,255,.92); padding: 0; }
.pulse-listen__card .pulse-listen__xf output { color: #fff; }
.pulse-listen__card .pulse-listen__xf input { background: linear-gradient(90deg, #fff, #fff) 0 0 / var(--v, 0%) 100% no-repeat, rgba(255,255,255,.32); }
.pulse-listen__card .pulse-listen__xf input::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.3); }
.pulse-listen__card .pulse-listen__xf input::-moz-range-thumb { box-shadow: 0 0 0 3px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.3); }
@media (max-width: 640px) {
  .pulse-listen__card { gap: 0; padding-right: 0; }
  .pulse-listen__card .pulse-listen__go { flex: 1 1 100%; }
  .pulse-listen__card .pulse-listen__xf { flex: 1 1 0; min-width: 0; order: 2; padding: 0 0 1.1rem 1.4rem; }
  .pulse-listen__card .pulse-listen__like { order: 3; margin: 0 1.1rem 1.1rem 1rem; min-width: 48px; height: 48px; }
}

/* Confirmare înainte să scoți o inimioară */
.pulse-confirm { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 1rem; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); }
.pulse-confirm__box { width: min(92vw, 380px); display: grid; gap: 1.1rem; padding: 1.4rem; border-radius: var(--radius); background: var(--surface-solid); color: var(--text); border: 1px solid var(--border); box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); }
.pulse-confirm__box p { margin: 0; font-weight: 600; line-height: 1.4; white-space: pre-line; }
.pulse-confirm__btns { display: flex; gap: .7rem; }
.pulse-confirm__btns button { flex: 1; min-height: 46px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
.pulse-confirm__btns .pulse-confirm__keep { border: 0; color: #fff; background: var(--grad); }

/* „Toate albumele”: buton de întoarcere deasupra antetului albumului */
.pulse-album__back { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 1rem; padding: .45rem .95rem .45rem .7rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 600; font-size: .9rem; text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.pulse-album__back:hover { border-color: var(--pulse-accent); transform: translateX(-2px); }
.pulse-album__back:focus-visible { outline: 2px solid var(--pulse-accent); outline-offset: 2px; }
.pulse-album__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Titlu prea lung în rândul piesei: se derulează încet, doar cât e nevoie (translate se adună cu tremuratul pe ritm) */
.pulse-track__meta { overflow: hidden; }
.pulse-track__title { display: block; }
.pulse-track__title.is-scroll { overflow: visible; text-overflow: clip; animation: pulse-title-scroll var(--dur, 8s) ease-in-out infinite alternate; }
@keyframes pulse-title-scroll { 0%, 18% { translate: 0 0; } 82%, 100% { translate: var(--shift, 0) 0; } }
@media (prefers-reduced-motion: reduce) { .pulse-track__title.is-scroll { animation: none; overflow: hidden; text-overflow: ellipsis; } }


/* Fundal viu în culorile copertei (canvas fix, în spatele conținutului) */
.pulse-ambient { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; opacity: .85; }
.pulse-header, .pulse-layout, .pulse-main, main, .pulse-footer { position: relative; z-index: 1; }
[data-theme="light"] .pulse-ambient { opacity: .55; mix-blend-mode: multiply; }

/* Coperta albumului respiră pe ritm, cu strălucire în culorile ei */
.pulse-album.is-playing .pulse-album__cover {
  transform: scale(calc(1 + var(--pulse-energy, 0) * .045));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45),
    0 0 calc(18px + var(--pulse-energy, 0) * 70px) color-mix(in srgb, var(--cover-c1, var(--pulse-accent)) 65%, transparent),
    0 0 calc(var(--pulse-energy, 0) * 130px) color-mix(in srgb, var(--cover-c2, var(--pulse-accent-2)) 40%, transparent);
  transition: transform .09s linear, box-shadow .09s linear;
}
@media (prefers-reduced-motion: reduce) { .pulse-album.is-playing .pulse-album__cover { transform: none; } }

/* Pe telefoane coperta nu mai „respiră” (efect greu pe iPhone, poate afecta sunetul) */
.pulse-mobile .pulse-album.is-playing .pulse-album__cover { transform: none; transition: none; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }

/* Taburi de limbă în articole (fără <style> în articol — editorul îl șterge) */
.qtabs { margin-top: .5rem; }
.qtabs > input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.qtabs__bar { display: flex; gap: .55rem; flex-wrap: wrap; margin: 0 0 1.4rem; padding-bottom: .9rem; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
/* doar steagurile: textul etichetei rămâne pentru cititoarele de ecran, dar nu se vede */
.qtabs__bar label { display: inline-grid; place-items: center; cursor: pointer; padding: 5px; border-radius: 9px; border: 1px solid transparent; font-size: 0; line-height: 0; opacity: .55; filter: saturate(.7); transition: opacity .2s, filter .2s, border-color .2s, transform .2s; margin: 0; }
.qtabs__bar label:hover { opacity: .9; filter: none; transform: translateY(-1px); }
.qtabs__bar label::before { content: ""; width: 32px; height: 21px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.28), 0 4px 10px -4px rgba(0,0,0,.6); }
.qtabs__bar label[for="qt-ro"]::before { background: linear-gradient(90deg, #002B7F 0 33.33%, #FCD116 0 66.66%, #CE1126 0); }
.qtabs__bar label[for="qt-fr"]::before { background: linear-gradient(90deg, #0055A4 0 33.33%, #fff 0 66.66%, #EF4135 0); }
.qtabs__bar label[for="qt-en"]::before { background: linear-gradient(#3C3B6E, #3C3B6E) 0 0 / 40% 54% no-repeat, repeating-linear-gradient(#B22234 0 7.69%, #fff 0 15.38%); }
.qtabs__pane { display: none; }
#qt-ro:checked ~ .qtabs__bar label[for="qt-ro"], #qt-en:checked ~ .qtabs__bar label[for="qt-en"], #qt-fr:checked ~ .qtabs__bar label[for="qt-fr"] { opacity: 1; filter: none; border-color: var(--pulse-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--pulse-accent) 35%, transparent); }
#qt-ro:checked ~ .qtabs__pane--ro, #qt-en:checked ~ .qtabs__pane--en, #qt-fr:checked ~ .qtabs__pane--fr { display: block; }

/* Vinil mai vizibil (1.3.87): șanțuri, margine luminoasă, reflexie, iese mai mult din spatele copertei */
.pulse-vinyl__disc i {
  background:
    radial-gradient(circle, transparent 0 96.5%, rgba(255, 255, 255, .22) 97.2%, transparent 98.6%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .11) 0 1px, transparent 1px 3px),
    radial-gradient(circle, #2a2a36 0, #121219 55%, #08080c 74%);
}
.pulse-vinyl__disc::after { background: conic-gradient(from 35deg, transparent 0 7%, rgba(255, 255, 255, .26) 12%, transparent 19% 54%, rgba(255, 255, 255, .16) 60%, transparent 67%); }
.pulse-vinyl.is-out .pulse-vinyl__disc { box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 26px -4px color-mix(in srgb, var(--pulse-accent) 55%, transparent); }
.pulse-album .pulse-vinyl.is-out .pulse-vinyl__disc { transform: translateX(42%) scale(1); }
@media (min-width: 641px) {
  .pulse-player .pulse-vinyl.is-out { margin-right: 30px; }
  .pulse-player .pulse-vinyl.is-out .pulse-vinyl__disc { transform: translateX(52%) scale(1); }
}
@media (max-width: 640px) {
  .pulse-album .pulse-vinyl.is-out { width: min(54vw, 230px); margin-right: min(26vw, 110px); }
  .pulse-album .pulse-vinyl.is-out .pulse-vinyl__disc { transform: translateX(46%) scale(1); }
}

/* ==========================================================================
   1.4.0 — culoarea după copertă, ascultări, oprire automată, mod scenă,
   Canvas, premieră, abonare la album nou
   ========================================================================== */
@property --pulse-accent { syntax: "<color>"; inherits: true; initial-value: #ff2e88; }
@property --pulse-accent-2 { syntax: "<color>"; inherits: true; initial-value: #00e5ff; }
:root { transition: --pulse-accent 1.2s ease, --pulse-accent-2 1.2s ease; }
@media (prefers-reduced-motion: reduce) { :root { transition: none; } }

/* „▶ 1,2k” lângă artist */
.pulse-track__plays { font-variant-numeric: tabular-nums; opacity: .85; }

/* Oprire automată (în lista de redare și pe ecranul „Now playing”) */
.pulse-sleep { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; padding: .55rem 1rem .7rem; border-bottom: 1px solid var(--border); font-size: .82rem; color: var(--muted); margin: 0; }
.pulse-sleep select { justify-self: start; max-width: 100%; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: .2rem .7rem; font: inherit; cursor: pointer; }
.pulse-sleep output { min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.pulse-sleep.is-on output { color: var(--pulse-accent); }
.pulse-np__tools { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 70px; z-index: 3; display: flex; align-items: center; gap: 8px; transition: opacity .4s; }
.pulse-np__tools .pulse-sleep { padding: 0 .4rem 0 .8rem; height: 44px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(0, 0, 0, .3); color: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); grid-template-columns: auto auto auto; gap: .45rem; }
.pulse-sleep em { font-style: normal; }
.pulse-np__tools .pulse-sleep em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pulse-np__tools .pulse-sleep select { background: transparent; border: 0; color: #fff; padding: .2rem .2rem; color-scheme: dark; }
.pulse-np__tools .pulse-sleep output { color: #fff; min-width: 0; }
.pulse-np__tools .pulse-sleep output:empty { display: none; }
.pulse-np__stage { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .3); color: #fff; display: grid; place-items: center; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pulse-np__stage svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pulse-np__stage[aria-pressed="true"] { background: #fff; color: #0a0a12; }

/* Mod scenă: coperta și titlul mari, butoanele se ascund când nu miști mouse-ul */
.pulse-np.is-stage { --npc: min(62vh, 640px); }
.pulse-np.is-stage .pulse-np__title { font-size: clamp(2.2rem, 5.4vw, 4.6rem); }
.pulse-np.is-stage .pulse-np__lyrics .now { font-size: clamp(1.4rem, 2.8vw, 2.2rem); }
.pulse-np.is-stage .pulse-np__next { display: none; }
.pulse-np.is-stage .pulse-np__viz { height: 200px; }
.pulse-np__close, .pulse-np__ctrl, .pulse-np__time { transition: opacity .4s; }
.pulse-np.is-stage.is-idle { cursor: none; }
.pulse-np.is-stage.is-idle .pulse-np__close, .pulse-np.is-stage.is-idle .pulse-np__tools, .pulse-np.is-stage.is-idle .pulse-np__ctrl, .pulse-np.is-stage.is-idle .pulse-np__time { opacity: 0; pointer-events: none; }
@media (max-width: 760px) {
  .pulse-np.is-stage { --npc: min(62vw, 44vh); }
  .pulse-np__tools { right: 68px; }
}

/* Canvas: clip în buclă peste copertă */
.pulse-np__canvas { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; z-index: 1; background: #000; }
.pulse-np__canvas[hidden] { display: none; }

/* Premieră */
ul:has(> li > .pulse-premiere) { list-style: none; padding-left: 0; }
.pulse-premiere { display: grid; justify-items: center; text-align: center; gap: .3rem; padding: 2rem 1rem; margin: 1rem 0; border: 1px solid var(--border); border-radius: var(--radius); background: radial-gradient(80% 90% at 50% 0%, color-mix(in srgb, var(--pulse-accent) 18%, transparent), transparent 70%), var(--surface); }
.pulse-premiere__cover { width: min(260px, 70vw); aspect-ratio: 1; object-fit: cover; border-radius: 16px; margin-bottom: .8rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.pulse-premiere__k { margin: 0; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pulse-premiere__t { margin: 0; font: 700 clamp(2.2rem, 7vw, 3.6rem)/1.1 var(--font-head); font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pulse-premiere__d { margin: 0; color: var(--muted); }
.pulse-premiere__d::first-letter { text-transform: uppercase; }
.pulse-agrid__item.is-premiere .pulse-agrid__cover img { filter: saturate(.85) brightness(.8); }
.pulse-premiere-badge { color: var(--pulse-accent) !important; font-weight: 600; font-variant-numeric: tabular-nums; }

/* „Anunță-mă la album nou” */
.pulse-subscribe { grid-column: 1 / -1; width: 100%; max-width: 560px; justify-self: center; display: grid; gap: .55rem; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-align: left; }
.pulse-subscribe label { display: grid; gap: .15rem; margin: 0; }
.pulse-subscribe label strong { color: var(--text); font-size: .98rem; }
.pulse-subscribe label small { color: var(--muted); }
.pulse-subscribe__row { display: flex; gap: .5rem; }
.pulse-subscribe__row input[type="email"] { flex: 1; min-width: 0; padding: .55rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; }
.pulse-subscribe__row input[type="email"]:focus { outline: 2px solid var(--pulse-accent); outline-offset: 1px; }
.pulse-subscribe__row button { flex-shrink: 0; border-radius: 999px; }
.pulse-subscribe__note { min-height: 1.2em; font-size: .85rem; }
.pulse-subscribe__note:empty { display: none; }
.pulse-subscribe__note.is-ok { color: #3ddc97; }
.pulse-subscribe__note.is-err { color: #ff7a7a; }
[data-theme="light"] .pulse-subscribe__note.is-ok { color: #0d8a55; }
[data-theme="light"] .pulse-subscribe__note.is-err { color: #c22; }
@media (min-width: 1100px) {
  .pulse-footer__grid:has(> .pulse-subscribe) { grid-template-columns: 1fr minmax(320px, 440px) auto auto; }
  .pulse-footer__grid > .pulse-subscribe { grid-column: auto; }
}
