/* Separador de instrumentos — contenido dentro del shell público (landing-main) */
.stem-page-content {
    width: 100%;
}

.stem-badge {
    display: inline-block;
    margin: 0 0 10px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #b8f5c8;
    background: color-mix(in srgb, #34c759 18%, transparent);
    border: 1px solid color-mix(in srgb, #34c759 45%, transparent);
}

.stem-title {
    font-size: clamp(1.6rem, 5vw, 2.1rem);
    margin: 0 0 10px;
    color: var(--accent-color, #34c759);
}

.stem-lead {
    margin: 0 0 20px;
    line-height: 1.55;
    color: var(--text-dim, #a1a1a6);
}

.stem-alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.stem-alert-warn {
    background: color-mix(in srgb, #ff9500 15%, #1c1c1e);
    border: 1px solid #ff9500;
    color: #ffd60a;
}

.stem-status {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.stem-panel {
    background: color-mix(in srgb, var(--section-bg) 55%, transparent);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px 16px;
    margin-bottom: 16px;
}

.stem-panel-title {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.stem-hint {
    margin: 0 0 14px;
    font-size: 0.88rem;
    color: var(--text-dim);
}

.stem-file-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.stem-file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.stem-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--accent-color, #34c759);
    color: #000;
    font-weight: 600;
    font-size: 0.95rem;
}

.stem-file-name {
    font-size: 0.9rem;
    color: var(--text-dim);
    word-break: break-all;
}

.stem-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.stem-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.stem-btn-primary {
    width: 100%;
    background: var(--accent-color, #34c759);
    color: #000;
}

.stem-btn-secondary {
    margin-top: 14px;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.stem-progress-wrap {
    margin-top: 16px;
}

.stem-progress-bar {
    height: 10px;
    border-radius: 6px;
    background: #2a2a2e;
    overflow: hidden;
}

.stem-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-color, #34c759);
    transition: width 0.25s ease;
}

.stem-progress-text {
    margin: 8px 0 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.stem-log {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-dim);
    max-height: 120px;
    overflow-y: auto;
}

.stem-player-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent-color) 10%, #111);
    border: 1px solid var(--border-color);
}

.stem-model-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.stem-model-label-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
}

.stem-model-select {
    width: 100%;
    max-width: 420px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--section-bg);
    color: var(--text-main);
    font-size: 0.9rem;
}

.stem-model-hint {
    margin-top: -4px;
    margin-bottom: 14px;
}

.stem-player-play {
    flex-shrink: 0;
    min-width: 140px;
}

.stem-download-mix {
    flex-shrink: 0;
    width: auto;
    max-width: 100%;
}

.stem-player-timeline {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stem-player-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}

.stem-player-seek {
    width: 100%;
    accent-color: var(--accent-color, #34c759);
}

.stem-stems-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 8px;
}

.stem-stem-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--accent-color) 8%, #111);
    border: 1px solid var(--border-color);
}

.stem-stem-head strong {
    font-size: 0.95rem;
}

.stem-stem-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.stem-solo-btn,
.stem-mute-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--section-bg, #1c1c1e);
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.stem-solo-btn:hover,
.stem-mute-btn:hover {
    border-color: var(--accent-color);
}

.stem-solo-letter {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
}

.stem-solo-btn.is-solo {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.stem-mute-btn.is-muted {
    color: var(--text-dim);
    opacity: 0.65;
}

.stem-vol-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 140px;
}

.stem-vol-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    flex-shrink: 0;
}

.stem-vol-slider {
    flex: 1;
    min-width: 80px;
    accent-color: var(--accent-color, #34c759);
}

.stem-download-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: var(--accent-color);
    color: #000;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
}

.stem-download-btn:hover {
    filter: brightness(1.08);
}

.stem-saved-panel {
    margin-top: 0;
}

.stem-saved-storage {
    margin: 0 0 10px;
    font-size: 0.82rem;
    color: var(--accent-color, #34c759);
}

.stem-saved-empty {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-dim);
}

.stem-saved-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stem-saved-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--section-bg) 80%, transparent);
    border: 1px solid var(--border-color);
}

.stem-saved-item__meta {
    flex: 1 1 180px;
    min-width: 0;
}

.stem-saved-item__title {
    display: block;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stem-saved-item__sub {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.stem-saved-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stem-btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
}

.stem-saved-delete {
    opacity: 0.85;
}

.stem-save-actions {
    margin: 12px 0 4px;
}

.stem-practice-btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid #6c5ce7;
    background: color-mix(in srgb, #6c5ce7 20%, var(--section-bg));
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stem-practice-btn:hover {
    border-color: #a29bfe;
    background: color-mix(in srgb, #6c5ce7 30%, var(--section-bg));
}

.stem-mix-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.stem-app-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.stem-app-hint {
    margin-top: 10px;
    font-size: 0.85rem;
}

.stem-faq {
    margin-top: 8px;
}

.stem-faq-item {
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--section-bg);
}

.stem-faq-item summary {
    cursor: pointer;
    font-weight: 600;
}

.stem-faq-item p {
    margin: 10px 0 0;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.45;
}

.stem-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
}
