/* ═══════════════════════════════════════════════════════════════
   STUDIO BLOCK AUDIO CSS — Stiluri bloc audio
   Loaded: EVERYWHERE (editor + user view)
   ═══════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════
   BLOC AUDIO — container general
   ══════════════════════════════════════════ */

.studio-block-audio {
    width: 100%;
    margin: 0;
}

/* Aliniere stanga / centru / dreapta
   Folosim data-align direct pe player — asa functioneaza si in editor (wrapper .se-block-content)
   si in viewer (wrapper .studio-view-block), fara sa depindem de clasele wrapper-ului. */
.studio-audio-player                      { text-align: left; }
.studio-audio-player[data-align="left"]   { margin-left: 0;    margin-right: auto; }
.studio-audio-player[data-align="center"] { margin-left: auto; margin-right: auto; }
.studio-audio-player[data-align="right"]  { margin-left: auto; margin-right: 0;    }


/* ══════════════════════════════════════════
   PLAYER — card cu cover + controale
   ══════════════════════════════════════════ */

.studio-audio-player {
    position: relative;
    width: 100%;
    max-width: 720px;
    background: linear-gradient(135deg, #1e1b4b 0%, #1e293b 100%);
    border-radius: 14px;
    overflow: hidden;
    color: #f8fafc;
    box-shadow: 0 8px 24px -6px rgba(30, 27, 75, 0.3);
    display: flex;
    flex-direction: column;
}

/* Dimensiuni variabile (s/m/l/full) */
.studio-audio-player[data-size="s"]    { max-width: 420px; }
.studio-audio-player[data-size="m"]    { max-width: 560px; }
.studio-audio-player[data-size="l"]    { max-width: 680px; }
.studio-audio-player[data-size="full"] { max-width: 100%;  }

/* Glow decorativ */
.studio-audio-player::before {
    content: '';
    position: absolute;
    top: -40%; right: -20%;
    width: 60%; height: 180%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* Main: cover + body */
.studio-audio-main {
    display: flex;
    gap: 18px;
    padding: 18px 20px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Cover image */
.studio-audio-cover {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    flex: 0 0 auto;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}
.studio-audio-cover[data-cover="none"] {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #06b6d4 100%);
}
.studio-audio-cover[data-cover="none"]::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' opacity='0.85'><path d='M9 18V5l12-2v13'/><circle cx='6' cy='18' r='3'/><circle cx='18' cy='16' r='3'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
}

/* Dimensiuni cover pe size */
.studio-audio-player[data-size="s"]    .studio-audio-cover { width: 72px;  height: 72px;  }
.studio-audio-player[data-size="full"] .studio-audio-cover { width: 100px; height: 100px; }

/* Body: titlu + controale */
.studio-audio-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.studio-audio-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.studio-audio-title {
    font: 700 15px/1.3 'Fraunces', Georgia, serif;
    color: #f8fafc;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.studio-audio-artist {
    font: 500 12px/1.3 'Inter', -apple-system, sans-serif;
    color: rgba(248, 250, 252, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Progress bar + timp */
.studio-audio-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.studio-audio-time {
    font: 600 10.5px/1 'SF Mono', Menlo, Consolas, monospace;
    color: rgba(248, 250, 252, 0.65);
    min-width: 30px;
    letter-spacing: 0.02em;
}
.studio-audio-time.is-right { text-align: right; }

.studio-audio-progress {
    flex: 1;
    height: 4px;
    background: rgba(248, 250, 252, 0.15);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.studio-audio-progress-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 0;
    background: linear-gradient(90deg, #a78bfa, #8b5cf6);
    border-radius: 2px;
    transition: width 0.1s linear;
}
.studio-audio-progress-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3), 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Block skip: zona blocata cu hasuri */
.studio-audio-progress.is-locked::after {
    content: '';
    position: absolute;
    top: 0; left: var(--lock-start, 0%); right: 0; bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(234, 88, 12, 0.4),
        rgba(234, 88, 12, 0.4) 4px,
        rgba(234, 88, 12, 0.2) 4px,
        rgba(234, 88, 12, 0.2) 8px
    );
    pointer-events: none;
}

/* Rand controale: stanga + dreapta */
.studio-audio-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}
.studio-audio-controls-left,
.studio-audio-controls-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.studio-audio-ctrl {
    width: 32px;
    height: 32px;
    background: transparent;
    color: rgba(248, 250, 252, 0.7);
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 0;
}
.studio-audio-ctrl:hover {
    background: rgba(248, 250, 252, 0.1);
    color: #fff;
}
.studio-audio-ctrl svg { width: 14px; height: 14px; }

.studio-audio-ctrl.is-play {
    width: 38px;
    height: 38px;
    background: #fff;
    color: #1e1b4b;
}
.studio-audio-ctrl.is-play:hover {
    background: #fff;
    transform: scale(1.05);
}
.studio-audio-ctrl.is-play svg { width: 14px; height: 14px; margin-left: 2px; }
.studio-audio-ctrl.is-play.is-playing svg { margin-left: 0; }

.studio-audio-speed-chip {
    padding: 6px 10px;
    background: rgba(248, 250, 252, 0.1);
    color: rgba(248, 250, 252, 0.85);
    border: 0;
    border-radius: 15px;
    font: 700 10.5px/1 'Inter', -apple-system, sans-serif;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: background 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.studio-audio-speed-chip:hover { background: rgba(248, 250, 252, 0.18); }

/* Badge sursa (top-right) — doar in editor */
.studio-audio-badge {
    position: absolute;
    top: 12px; right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: rgba(248, 250, 252, 0.08);
    border: 1px solid rgba(248, 250, 252, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 5px;
    color: rgba(248, 250, 252, 0.8);
    font: 600 9.5px/1 'Inter', -apple-system, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    z-index: 3;
}
.studio-audio-badge svg { width: 10px; height: 10px; }

/* Badge-uri LMS (top-left) */
.studio-audio-lms-badges {
    position: absolute;
    top: 12px; left: 14px;
    display: flex;
    gap: 4px;
    z-index: 3;
}
.studio-audio-lms-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px;
    background: rgba(234, 88, 12, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 5px;
    color: #fff;
    font: 700 9px/1 'Inter', -apple-system, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.studio-audio-lms-badge.is-required {
    background: rgba(139, 92, 246, 0.9);
}
.studio-audio-lms-badge svg { width: 10px; height: 10px; }

/* Strip vizualizator */
.studio-audio-viz {
    height: 36px;
    padding: 0 18px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(248, 250, 252, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.studio-audio-viz[data-viz="off"] {
    height: 0;
    padding: 0 18px;
    border-top: 0;
    overflow: hidden;
}

/* Empty state (fara sursa) */
.studio-audio-empty {
    padding: 36px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    position: relative;
    z-index: 2;
}
.studio-audio-empty-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: rgba(248, 250, 252, 0.55);
}
.studio-audio-empty-icon svg { width: 26px; height: 26px; }
.studio-audio-empty-text {
    font: 600 14px/1.3 'Inter', -apple-system, sans-serif;
    color: #f8fafc;
}
.studio-audio-empty-hint {
    font: 400 12px/1.4 'Inter', -apple-system, sans-serif;
    color: rgba(248, 250, 252, 0.55);
    max-width: 300px;
}

/* Loading overlay in timpul upload-ului */
.se-block-wrap.se-audio-loading .studio-audio-player::after {
    content: 'Se incarca...';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    font: 600 14px/1 'Inter', -apple-system, sans-serif;
    z-index: 10;
}


/* ══════════════════════════════════════════
   VIZUALIZATOARE — 3 stiluri animate CSS
   ══════════════════════════════════════════ */

/* ---- BARS (EQ) ---- */
.studio-audio-viz-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 100%;
    width: 100%;
    justify-content: center;
}
.studio-audio-viz-bar {
    width: 3px;
    background: linear-gradient(to top, #6366f1, #a78bfa);
    border-radius: 2px;
    animation: studio-audio-bar-bounce 0.8s ease-in-out infinite alternate;
    will-change: height;
}
@keyframes studio-audio-bar-bounce {
    0%   { height: 18%; }
    100% { height: 85%; }
}
.studio-audio-viz-bar:nth-child(1)  { animation-duration: 0.70s; animation-delay: -0.10s; }
.studio-audio-viz-bar:nth-child(2)  { animation-duration: 0.55s; animation-delay: -0.30s; }
.studio-audio-viz-bar:nth-child(3)  { animation-duration: 0.90s; animation-delay: -0.50s; }
.studio-audio-viz-bar:nth-child(4)  { animation-duration: 0.60s; animation-delay:  0.00s; }
.studio-audio-viz-bar:nth-child(5)  { animation-duration: 0.75s; animation-delay: -0.20s; }
.studio-audio-viz-bar:nth-child(6)  { animation-duration: 0.50s; animation-delay: -0.40s; }
.studio-audio-viz-bar:nth-child(7)  { animation-duration: 0.85s; animation-delay: -0.10s; }
.studio-audio-viz-bar:nth-child(8)  { animation-duration: 0.65s; animation-delay: -0.35s; }
.studio-audio-viz-bar:nth-child(9)  { animation-duration: 0.80s; animation-delay: -0.15s; }
.studio-audio-viz-bar:nth-child(10) { animation-duration: 0.55s; animation-delay: -0.25s; }
.studio-audio-viz-bar:nth-child(11) { animation-duration: 0.70s; animation-delay: -0.40s; }
.studio-audio-viz-bar:nth-child(12) { animation-duration: 0.90s; animation-delay: -0.05s; }
.studio-audio-viz-bar:nth-child(13) { animation-duration: 0.60s; animation-delay: -0.30s; }
.studio-audio-viz-bar:nth-child(14) { animation-duration: 0.75s; animation-delay: -0.20s; }
.studio-audio-viz-bar:nth-child(15) { animation-duration: 0.50s; animation-delay: -0.35s; }
.studio-audio-viz-bar:nth-child(16) { animation-duration: 0.80s; animation-delay: -0.10s; }
.studio-audio-viz-bar:nth-child(17) { animation-duration: 0.65s; animation-delay: -0.45s; }
.studio-audio-viz-bar:nth-child(18) { animation-duration: 0.70s; animation-delay: -0.25s; }
.studio-audio-viz-bar:nth-child(19) { animation-duration: 0.85s; animation-delay: -0.15s; }
.studio-audio-viz-bar:nth-child(20) { animation-duration: 0.55s; animation-delay: -0.35s; }
.studio-audio-viz-bar:nth-child(21) { animation-duration: 0.75s; animation-delay: -0.05s; }
.studio-audio-viz-bar:nth-child(22) { animation-duration: 0.60s; animation-delay: -0.40s; }
.studio-audio-viz-bar:nth-child(23) { animation-duration: 0.80s; animation-delay: -0.20s; }
.studio-audio-viz-bar:nth-child(24) { animation-duration: 0.50s; animation-delay: -0.30s; }

/* ---- WAVE (sine) ---- */
.studio-audio-viz-wave {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.studio-audio-viz-wave svg {
    position: absolute;
    top: 0;
    height: 100%;
    width: 200%;
    overflow: visible;
}
.studio-audio-viz-wave-path-1 {
    stroke: #a78bfa;
    stroke-width: 2;
    fill: none;
    animation: studio-audio-wave-flow 3s linear infinite;
}
.studio-audio-viz-wave-path-2 {
    stroke: #6366f1;
    stroke-width: 1.5;
    fill: none;
    opacity: 0.65;
    animation: studio-audio-wave-flow 2.2s linear infinite;
}
.studio-audio-viz-wave-path-3 {
    stroke: #06b6d4;
    stroke-width: 1.2;
    fill: none;
    opacity: 0.4;
    animation: studio-audio-wave-flow 4s linear infinite reverse;
}
@keyframes studio-audio-wave-flow {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- PULSE (dots) ---- */
.studio-audio-viz-pulse {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: center;
}
.studio-audio-viz-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.5);
    animation: studio-audio-dot-pulse 1.4s ease-in-out infinite;
    transform-origin: center;
}
@keyframes studio-audio-dot-pulse {
    0%, 100% { transform: scale(0.55); opacity: 0.4; background: #6366f1; }
    50%      { transform: scale(1.5);  opacity: 1;   background: #a78bfa; }
}
.studio-audio-viz-dot:nth-child(1)  { animation-delay: 0.00s; }
.studio-audio-viz-dot:nth-child(2)  { animation-delay: 0.08s; }
.studio-audio-viz-dot:nth-child(3)  { animation-delay: 0.16s; }
.studio-audio-viz-dot:nth-child(4)  { animation-delay: 0.24s; }
.studio-audio-viz-dot:nth-child(5)  { animation-delay: 0.32s; }
.studio-audio-viz-dot:nth-child(6)  { animation-delay: 0.40s; }
.studio-audio-viz-dot:nth-child(7)  { animation-delay: 0.48s; }
.studio-audio-viz-dot:nth-child(8)  { animation-delay: 0.56s; }
.studio-audio-viz-dot:nth-child(9)  { animation-delay: 0.64s; }
.studio-audio-viz-dot:nth-child(10) { animation-delay: 0.72s; }
.studio-audio-viz-dot:nth-child(11) { animation-delay: 0.64s; }
.studio-audio-viz-dot:nth-child(12) { animation-delay: 0.56s; }
.studio-audio-viz-dot:nth-child(13) { animation-delay: 0.48s; }
.studio-audio-viz-dot:nth-child(14) { animation-delay: 0.40s; }
.studio-audio-viz-dot:nth-child(15) { animation-delay: 0.32s; }


/* ═══════════════════════════════════════════════════════════════
   TOOLBAR — specific blocului audio (doar in editor)
   Prefixul claselor: .se-tba-*
   ═══════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════
   BADGE "A" (teal)
   ══════════════════════════════════════════ */

.se-tba-badge {
    background: linear-gradient(180deg, #14b8a6, #0d9488) !important;
    color: #fff !important;
    box-shadow: 0 1px 2px rgba(13, 148, 136, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Iconite in dropdown-ul de surse */
.se-tba-dd-icon {
    background: linear-gradient(180deg, #475569, #334155);
    color: #fff;
    box-shadow: 0 1px 2px rgba(51, 65, 85, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.se-tba-dd-icon[data-src="link"] {
    background: linear-gradient(180deg, #06b6d4, #0891b2);
    box-shadow: 0 1px 2px rgba(8, 145, 178, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.se-tba-dd-icon[data-src="galerie"] {
    background: linear-gradient(180deg, #8b5cf6, #6d28d9);
    box-shadow: 0 1px 2px rgba(109, 40, 217, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.se-tba-dd-icon svg {
    stroke: #fff; fill: none; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}


/* ══════════════════════════════════════════
   SURSA — trigger + panel
   ══════════════════════════════════════════ */

.se-tba-src-wrap {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    height: 34px;
    flex: 0 0 auto;
}

.se-tba-src-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px 0 9px;
    background: rgba(255, 255, 255, 0.4);
    border: 0;
    border-radius: 8px;
    height: 34px;
    color: #0f172a;
    font: 600 12px/1 'Inter', -apple-system, sans-serif;
    letter-spacing: -0.005em;
    cursor: pointer;
    max-width: 220px;
    transition: background 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.se-tba-src-trigger:hover { background: rgba(255, 255, 255, 0.85); }

.se-tba-src-trigger-icon {
    width: 16px; height: 16px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(15, 23, 42, 0.55);
    flex: 0 0 auto;
}
.se-tba-src-trigger-icon svg { width: 14px; height: 14px; }

.se-tba-src-trigger-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}
.se-tba-src-trigger-text.is-placeholder {
    color: rgba(15, 23, 42, 0.35);
    font-style: italic;
    font-weight: 500;
}

.se-tba-src-trigger .se-tb-combo-type-chev { color: rgba(15, 23, 42, 0.35); }

/* Panel */
.se-tba-src-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 380px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.14), 0 20px 48px -8px rgba(15, 23, 42, 0.22);
    padding: 14px;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s cubic-bezier(0.22, 1, 0.36, 1), transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.se-tba-src-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.se-tba-src-panel::before {
    content: '';
    position: absolute;
    top: -5px; left: 22px;
    width: 10px; height: 10px;
    background: #ffffff;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    transform: rotate(45deg);
}

.se-tba-panel-hdr {
    font: 700 10px/1 'Inter', -apple-system, sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.45);
    margin-bottom: 10px;
}

.se-tba-panel-hint {
    font: 400 10.5px/1.4 'Inter', -apple-system, sans-serif;
    color: rgba(15, 23, 42, 0.45);
    padding: 8px 2px 0;
}


/* ── UPLOAD: dropzone + file info ── */

.se-tba-upload-zone {
    width: 100%;
    border: 1.5px dashed rgba(15, 23, 42, 0.18);
    border-radius: 10px;
    padding: 20px 14px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}
.se-tba-upload-zone:hover {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.06);
}
.se-tba-upload-icon {
    display: flex; align-items: center; justify-content: center;
    color: rgba(15, 23, 42, 0.55);
    margin-bottom: 2px;
}
.se-tba-upload-icon svg { width: 22px; height: 22px; }
.se-tba-upload-title {
    font: 600 13px/1.3 'Inter', -apple-system, sans-serif;
    color: #0f172a;
}
.se-tba-upload-sub {
    font: 400 11px/1.3 'Inter', -apple-system, sans-serif;
    color: rgba(15, 23, 42, 0.45);
}

.se-tba-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f1f5f9;
    border-radius: 10px;
    margin-bottom: 8px;
}
.se-tba-file-info-icon {
    width: 32px; height: 32px;
    border-radius: 7px;
    background: linear-gradient(180deg, #475569, #334155);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.se-tba-file-info-icon svg { width: 15px; height: 15px; }
.se-tba-file-info-text { flex: 1; min-width: 0; overflow: hidden; }
.se-tba-file-info-name {
    display: block;
    font: 600 12.5px/1.3 'Inter', -apple-system, sans-serif;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.se-tba-file-info-meta {
    display: block;
    font: 400 10.5px/1.3 'Inter', -apple-system, sans-serif;
    color: rgba(15, 23, 42, 0.45);
    margin-top: 1px;
}


/* ── LINK: input URL ── */

.se-tba-url-row {
    position: relative;
    margin-bottom: 10px;
}
.se-tba-url-icon {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: rgba(15, 23, 42, 0.55);
    display: flex;
}
.se-tba-url-icon svg { width: 15px; height: 15px; }
.se-tba-url-input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font: 500 12.5px/1 'Inter', -apple-system, sans-serif;
    color: #0f172a;
    background: #fff;
    outline: none;
    transition: border-color 0.15s cubic-bezier(0.22, 1, 0.36, 1);
    box-sizing: border-box;
}
.se-tba-url-input:focus { border-color: #2563eb; }

.se-tba-url-actions {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.se-tba-panel-btn {
    flex: 1;
    padding: 8px 12px;
    background: #2563eb;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font: 600 12px/1 'Inter', -apple-system, sans-serif;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.se-tba-panel-btn:hover { background: #1d4ed8; }
.se-tba-panel-btn.is-ghost {
    background: transparent;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    flex: 0 0 auto;
}
.se-tba-panel-btn.is-ghost:hover { background: rgba(239, 68, 68, 0.08); }

.se-tba-url-hint {
    font: 400 10.5px/1.4 'Inter', -apple-system, sans-serif;
    color: rgba(15, 23, 42, 0.45);
    padding: 0 2px;
}


/* ── GALERIE: lista cu tracks ── */

.se-tba-gallery-list {
    max-height: 280px;
    overflow-y: auto;
    margin: 0 -4px;
    padding: 0 4px;
}
.se-tba-gallery-list::-webkit-scrollbar { width: 6px; }
.se-tba-gallery-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.se-tba-gallery-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f8fafc;
    border: 1.5px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.12s cubic-bezier(0.22, 1, 0.36, 1);
    margin-bottom: 4px;
    text-align: left;
    width: 100%;
}
.se-tba-gallery-item:hover {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.2);
}
.se-tba-gallery-item.is-active {
    background: rgba(37, 99, 235, 0.1);
    border-color: #2563eb;
}

.se-tba-gallery-item-play {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex: 0 0 auto;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.3);
}
.se-tba-gallery-item-play svg { width: 11px; height: 11px; margin-left: 1px; }

.se-tba-gallery-item-text {
    flex: 1;
    min-width: 0;
}
.se-tba-gallery-item-name {
    font: 600 12.5px/1.3 'Inter', -apple-system, sans-serif;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.se-tba-gallery-item-meta {
    font: 400 10.5px/1.3 'Inter', -apple-system, sans-serif;
    color: rgba(15, 23, 42, 0.45);
    margin-top: 1px;
}

.se-tba-gallery-loading,
.se-tba-gallery-empty {
    padding: 24px 16px;
    text-align: center;
    font: 500 12px/1.4 'Inter', -apple-system, sans-serif;
    color: rgba(15, 23, 42, 0.55);
}


/* ══════════════════════════════════════════
   COVER — trigger + panel
   ══════════════════════════════════════════ */

.se-tba-cover-wrap {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    height: 34px;
    flex: 0 0 auto;
}
.se-tba-cover-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px 0 4px;
    background: rgba(255, 255, 255, 0.4);
    border: 0;
    border-radius: 8px;
    height: 34px;
    color: #0f172a;
    font: 600 12px/1 'Inter', -apple-system, sans-serif;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: background 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.se-tba-cover-trigger:hover { background: rgba(255, 255, 255, 0.85); }
.se-tba-cover-trigger .se-tb-combo-type-chev { color: rgba(15, 23, 42, 0.35); }

.se-tba-cover-preview {
    width: 26px; height: 26px;
    border-radius: 5px;
    flex: 0 0 auto;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.se-tba-cover-preview[data-opt="none"] {
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #06b6d4);
}
.se-tba-cover-preview[data-opt="custom"] {
    background: linear-gradient(135deg, #fb7185, #f59e0b);
}

/* Panel cover */
.se-tba-cover-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 280px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.14), 0 20px 48px -8px rgba(15, 23, 42, 0.22);
    padding: 10px;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s cubic-bezier(0.22, 1, 0.36, 1), transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.se-tba-cover-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.se-tba-cover-panel::before {
    content: '';
    position: absolute;
    top: -5px; left: 22px;
    width: 10px; height: 10px;
    background: #fff;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    transform: rotate(45deg);
}

.se-tba-cover-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s cubic-bezier(0.22, 1, 0.36, 1);
    margin-bottom: 2px;
}
.se-tba-cover-opt:last-child { margin-bottom: 0; }
.se-tba-cover-opt:hover { background: rgba(37, 99, 235, 0.06); }
.se-tba-cover-opt.is-active { background: rgba(37, 99, 235, 0.08); }
.se-tba-cover-opt.is-active .se-tba-cover-opt-name { color: #2563eb; }

.se-tba-cover-opt-preview {
    width: 44px; height: 44px;
    border-radius: 7px;
    flex: 0 0 auto;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}
.se-tba-cover-opt-preview[data-opt="none"] {
    background: linear-gradient(135deg, #8b5cf6, #6366f1, #06b6d4);
}
.se-tba-cover-opt-preview[data-opt="none"]::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 20px; height: 20px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M9 18V5l12-2v13'/><circle cx='6' cy='18' r='3'/><circle cx='18' cy='16' r='3'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.9;
}
.se-tba-cover-opt-preview[data-opt="custom"] {
    background: linear-gradient(135deg, #fb7185, #f59e0b);
}
.se-tba-cover-opt-preview[data-opt="custom"][data-filled="no"]::after {
    content: '+';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font: 800 20px/1 'Inter', -apple-system, sans-serif;
    color: rgba(255, 255, 255, 0.95);
}

.se-tba-cover-opt-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.se-tba-cover-opt-name {
    font: 600 12.5px/1.3 'Inter', -apple-system, sans-serif;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.se-tba-cover-opt-desc {
    font: 400 10.5px/1.3 'Inter', -apple-system, sans-serif;
    color: rgba(15, 23, 42, 0.45);
}


/* ══════════════════════════════════════════
   SIZE + VIZ — grupuri de iconite
   ══════════════════════════════════════════ */

.se-tba-icon-grp {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 9px;
    padding: 3px;
    gap: 2px;
    height: 34px;
    align-items: center;
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}
.se-tba-icon-grp.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}
.se-tba-icon {
    width: 30px;
    height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: rgba(15, 23, 42, 0.55);
    cursor: pointer;
    transition: all 0.12s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 0;
}
.se-tba-icon:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #0f172a;
}
.se-tba-icon.is-active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.04);
}
.se-tba-icon svg { width: 16px; height: 16px; display: block; }

/* Viz active: violet */
.se-tba-icon-grp[data-key="viz"] .se-tba-icon.is-active {
    background: linear-gradient(180deg, #8b5cf6, #7c3aed);
    color: #fff;
    box-shadow: 0 1px 2px rgba(124, 58, 237, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Mini-bar icon pentru viz */
.se-tba-viz-icon-bars {
    display: inline-flex;
    align-items: center;
    gap: 1.5px;
    height: 14px;
}
.se-tba-viz-icon-bars span {
    display: block;
    width: 2px;
    border-radius: 1px;
    background: currentColor;
}
.se-tba-viz-icon-bars span:nth-child(1) { height: 45%;  }
.se-tba-viz-icon-bars span:nth-child(2) { height: 85%;  }
.se-tba-viz-icon-bars span:nth-child(3) { height: 60%;  }
.se-tba-viz-icon-bars span:nth-child(4) { height: 100%; }
.se-tba-viz-icon-bars span:nth-child(5) { height: 55%;  }


/* ══════════════════════════════════════════
   TOGGLE-URI
   ══════════════════════════════════════════ */

.se-tba-toggle {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.4);
    color: rgba(15, 23, 42, 0.55);
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.22, 1, 0.36, 1);
    flex: 0 0 auto;
}
.se-tba-toggle:hover {
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
}
.se-tba-toggle.is-active {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.se-tba-toggle.is-lms.is-active {
    background: linear-gradient(180deg, #f97316, #ea580c);
    box-shadow: 0 1px 2px rgba(234, 88, 12, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.se-tba-toggle svg { width: 16px; height: 16px; }


/* ══════════════════════════════════════════
   SETTINGS DROPDOWN (optiuni avansate)
   ══════════════════════════════════════════ */

.se-tba-settings-wrap {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    height: 34px;
    flex: 0 0 auto;
}
.se-tba-settings-trigger {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.4);
    color: rgba(15, 23, 42, 0.55);
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.se-tba-settings-trigger:hover { background: rgba(255, 255, 255, 0.85); color: #0f172a; }
.se-tba-settings-trigger svg { width: 16px; height: 16px; }

.se-tba-settings-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.14), 0 20px 48px -8px rgba(15, 23, 42, 0.22);
    padding: 8px;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s cubic-bezier(0.22, 1, 0.36, 1), transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.se-tba-settings-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.se-tba-settings-panel::before {
    content: '';
    position: absolute;
    top: -5px; right: 12px;
    width: 10px; height: 10px;
    background: #fff;
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    transform: rotate(45deg);
}

.se-tba-settings-hdr {
    font: 700 10px/1 'Inter', -apple-system, sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.45);
    padding: 6px 10px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.se-tba-settings-hdr.is-lms::after {
    content: 'LMS';
    font: 800 8px/1 'Inter', -apple-system, sans-serif;
    letter-spacing: 0.1em;
    color: #fff;
    background: linear-gradient(180deg, #f97316, #ea580c);
    padding: 2.5px 5px;
    border-radius: 3px;
}

.se-tba-settings-divider {
    height: 1px;
    background: rgba(15, 23, 42, 0.06);
    margin: 6px 8px;
}

/* Speed chips in settings */
.se-tba-speed-row {
    display: flex;
    gap: 4px;
    padding: 6px 10px 8px;
}
.se-tba-speed-chip {
    flex: 1;
    padding: 6px 0;
    border: 0;
    border-radius: 6px;
    background: #f1f5f9;
    font: 700 11px/1 'Inter', -apple-system, sans-serif;
    color: rgba(15, 23, 42, 0.55);
    cursor: pointer;
    transition: all 0.12s cubic-bezier(0.22, 1, 0.36, 1);
    text-align: center;
}
.se-tba-speed-chip:hover { background: #e2e8f0; color: #0f172a; }
.se-tba-speed-chip.is-active { background: #2563eb; color: #fff; }

/* Slider %required */
.se-tba-slider-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
}
.se-tba-slider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.se-tba-slider-label {
    font: 600 12.5px/1.3 'Inter', -apple-system, sans-serif;
    color: #0f172a;
}
.se-tba-slider-value {
    font: 700 12px/1 'SF Mono', Menlo, Consolas, monospace;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    padding: 3px 7px;
    border-radius: 4px;
}
.se-tba-slider {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    cursor: pointer;
}
.se-tba-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.5);
    border: 2px solid #fff;
}
.se-tba-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.5);
}


/* ══════════════════════════════════════════
   CONTRAST PE FUNDAL NEUTRU (override)
   Stilurile initiale aveau fundal alb-semitransparent — se vedea bine pe fundal
   colorat, dar in editor (pe fundal deschis) butoanele erau aproape invizibile.
   Folosim aici gri solid deschis pentru vizibilitate buna, ca la blocul Divider.
   ══════════════════════════════════════════ */

/* Grupuri de iconite (Viz / Size / Align) + toggle + triggere */
.se-tba-toggle,
.se-tba-src-trigger,
.se-tba-cover-trigger,
.se-tba-settings-trigger {
    background: #f1f5f9;
}



/* Butoanele toggle (BlockSkip) */
.se-tba-toggle {
    color: #475569;
}
.se-tba-toggle:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Hover pentru triggerele de sursa / cover / settings */
.se-tba-src-trigger:hover,
.se-tba-cover-trigger:hover,
.se-tba-settings-trigger:hover {
    background: #e2e8f0;
}

.se-tba-settings-trigger {
    color: #475569;
}
.se-tba-settings-trigger:hover {
    color: #0f172a;
}


/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

@media (max-width: 768px) {
    .se-tba-src-panel,
    .se-tba-cover-panel,
    .se-tba-settings-panel {
        width: calc(100vw - 40px);
        max-width: 340px;
    }

    .studio-audio-cover { width: 72px; height: 72px; }
    .studio-audio-main { padding: 14px 16px; gap: 14px; }
    .studio-audio-title { font-size: 14px; }
}