/* ===========================================
   StemScribe - Results Section
   (Song card, track info, master transport,
    Neve console mixer, channel strips, VU meters,
    faders, LED meters, stem actions, practice CTA)
   =========================================== */

/* Results Section */
.results-section {
    display: none;
}

.results-section.active {
    display: block;
}

.results-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.results-header h2 {
    font-family: 'Righteous', cursive;
    font-size: 2rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.results-header h2 span {
    background: linear-gradient(135deg, var(--psych-green), var(--psych-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Song Card */
.song-card {
    background: rgba(26, 26, 36, 0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.song-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
}

.song-details h3 {
    font-family: 'Righteous', cursive;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.song-details p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.info-toggle-btn {
    margin-left: auto;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.info-toggle-btn:hover {
    background: rgba(198, 120, 221, 0.2);
    border-color: var(--psych-purple);
}

.info-toggle-btn.active {
    background: var(--psych-purple);
    border-color: var(--psych-purple);
}

/* Track Info Panel */
.track-info-panel {
    background: linear-gradient(180deg, rgba(30, 25, 40, 0.95) 0%, rgba(20, 18, 30, 0.98) 100%);
    border: 1px solid rgba(198, 120, 221, 0.2);
    border-radius: 16px;
    margin-bottom: 2rem;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(198, 120, 221, 0.1);
    border-bottom: 1px solid rgba(198, 120, 221, 0.2);
}

.info-header h3 {
    font-family: 'Righteous', cursive;
    font-size: 1rem;
    color: var(--psych-purple);
}

.info-close-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s;
}

.info-close-btn:hover {
    color: var(--text);
}

.info-content {
    padding: 1.5rem;
}

.info-loading {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dim);
    padding: 1rem;
}

.info-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(198, 120, 221, 0.3);
    border-top-color: var(--psych-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.info-section {
    margin-bottom: 1.5rem;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h4 {
    font-size: 0.85rem;
    color: var(--psych-teal);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-section p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-section a {
    color: var(--psych-purple);
    font-size: 0.85rem;
    text-decoration: none;
    margin-top: 0.5rem;
    display: inline-block;
}

.info-section a:hover {
    text-decoration: underline;
}

#membersList, #personnelList {
    display: grid;
    gap: 0.75rem;
}

.album-info, .era-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.album-name {
    font-family: 'Righteous', cursive;
    font-size: 1.1rem;
    color: var(--psych-yellow);
}

.album-year {
    background: var(--psych-yellow);
    color: var(--bg-dark);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.album-desc {
    font-style: italic;
    color: var(--text-dim);
}

.era-keyboardist {
    font-weight: 600;
    color: var(--psych-pink);
}

.era-years {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.era-notes {
    font-style: italic;
    color: var(--text-dim);
}

.personnel-item {
    background: rgba(229, 192, 123, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--psych-yellow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.personnel-item .name {
    font-weight: 600;
    color: var(--psych-yellow);
    font-size: 0.85rem;
}

.personnel-item .role {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.member-item {
    background: rgba(255,255,255,0.03);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--psych-orange);
}

.member-item .name {
    font-weight: 600;
    color: var(--psych-orange);
    font-size: 0.9rem;
}

.member-item .role {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

#stemTipsList {
    display: grid;
    gap: 0.5rem;
}

.stem-tip {
    background: rgba(152, 195, 121, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--psych-green);
}

.stem-tip .stem-name {
    font-weight: 600;
    color: var(--psych-green);
    font-size: 0.85rem;
    text-transform: capitalize;
}

.stem-tip .tip-text {
    color: var(--text);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Master Transport */
.master-transport {
    background: linear-gradient(180deg, rgba(26, 26, 36, 0.9) 0%, rgba(19, 19, 26, 0.95) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.transport-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--psych-orange), var(--psych-pink));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 107, 157, 0.4);
}

.skip-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-main);
    transition: all 0.2s;
}

.skip-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.skip-btn:active {
    transform: scale(0.95);
}

.timeline-container {
    flex: 1;
}

.timeline {
    width: 100%;
    height: 10px;
    background: rgba(0,0,0,0.4);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    margin-bottom: 0.5rem;
    /* Larger click area */
    padding: 8px 0;
    margin: -8px 0;
    box-sizing: content-box;
    background-clip: content-box;
}

.timeline-progress {
    height: 10px;
    background: linear-gradient(90deg, var(--psych-orange), var(--psych-pink));
    border-radius: 5px;
    width: 0%;
    pointer-events: none;
}

.timeline-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #fff 0%, #ddd 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    cursor: grab;
    border: 2px solid var(--psych-pink);
    transition: transform 0.1s, box-shadow 0.1s;
    z-index: 10;
}

.timeline-handle:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 3px 12px rgba(255, 107, 157, 0.5);
}

.timeline:hover .timeline-handle {
    transform: translate(-50%, -50%) scale(1.1);
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.master-volume {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.master-volume span {
    font-size: 1.2rem;
}

.volume-slider {
    -webkit-appearance: none;
    width: 100px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--psych-teal);
    border-radius: 50%;
    cursor: pointer;
}

/* ============================================
   VINTAGE NEVE CONSOLE MIXER
   ============================================ */

/* Neve Console Container */
.neve-console {
    background: linear-gradient(180deg, #2a2520 0%, #1e1a16 100%);
    border: 4px solid #3d352d;
    border-radius: 12px;
    padding: 1.5rem;
    padding-bottom: 2.5rem;
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.05),
        0 20px 60px rgba(0,0,0,0.5);
    position: relative;
    margin: 0 30px;
}

/* Leather Armrest - Bigger & Beefier */
.neve-armrest {
    position: absolute;
    bottom: -28px;
    left: -16px;
    right: -16px;
    height: 50px;
    background: linear-gradient(180deg,
        #5a4838 0%,
        #4a3828 10%,
        #3d2d1f 25%,
        #2a1f14 60%,
        #1f170f 85%,
        #15100a 100%
    );
    border-radius: 10px 10px 16px 16px;
    border: 3px solid #1a1410;
    box-shadow:
        inset 0 3px 6px rgba(255,255,255,0.12),
        inset 0 -3px 10px rgba(0,0,0,0.6),
        0 10px 30px rgba(0,0,0,0.6);
}

/* Leather stitching - double row */
.neve-armrest::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 30px;
    right: 30px;
    height: 12px;
    background:
        repeating-linear-gradient(90deg,
            #6a5a48 0px, #6a5a48 10px,
            transparent 10px, transparent 16px
        ),
        repeating-linear-gradient(90deg,
            #6a5a48 0px, #6a5a48 10px,
            transparent 10px, transparent 16px
        );
    background-size: 100% 1px;
    background-position: 0 0, 0 10px;
    background-repeat: repeat-x;
}

/* Leather texture/grain */
.neve-armrest::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.1;
    border-radius: 10px;
    pointer-events: none;
}

/* Armrest bolster ends - bigger */
.neve-armrest-end {
    position: absolute;
    top: 6px;
    bottom: 6px;
    width: 35px;
    background: linear-gradient(180deg, #4a3828 0%, #3d2d1f 30%, #2a1f14 70%, #1f170f 100%);
    border-radius: 8px;
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.08),
        inset 0 -2px 8px rgba(0,0,0,0.5);
}

.neve-armrest-end.left { left: 10px; }
.neve-armrest-end.right { right: 10px; }

/* Wood side panels */
.neve-console::before,
.neve-console::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, #4a3c2e 0%, #6b5a48 50%, #4a3c2e 100%);
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.neve-console::before { left: -24px; }
.neve-console::after { right: -24px; }

/* Console screws */
.neve-screw {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 30% 30%, #8a8278 0%, #4a4540 50%, #3d352d 100%);
    border-radius: 50%;
    border: 1px solid #2a2520;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.2);
}

.neve-screw::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 2px;
    right: 2px;
    height: 1px;
    background: #2a2520;
    transform: rotate(45deg);
}

/* Channel Strip Grid */
.stems-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    background: #1a1612;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #3d352d;
}

@media (max-width: 1100px) {
    .stems-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .stems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Neve Channel Strip */
.stem-card {
    background: linear-gradient(180deg, #d4cfc6 0%, #c4beb4 30%, #b8b2a8 100%);
    border-right: 1px solid #8a8278;
    border-left: 1px solid #f0ebe2;
    padding: 0.75rem 0.5rem 1rem;
    text-align: center;
    transition: all 0.2s;
    position: relative;
    min-height: 460px;
}

.stem-card:first-child {
    border-radius: 6px 0 0 6px;
}

.stem-card:last-child {
    border-radius: 0 6px 6px 0;
    border-right: none;
}

.stem-card::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.stem-card:hover {
    transform: none;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.1);
}

.stem-card.muted {
    opacity: 0.6;
}

.stem-card.muted .led-meter-fill {
    opacity: 0.3;
}

/* Cascaded Stem Styling */
.stem-card.cascaded-stem {
    background: linear-gradient(180deg, #e8e0f5 0%, #d8d0e5 30%, #c8c0d5 100%);
    border-color: rgba(198, 120, 221, 0.3);
    min-height: 420px;
}

.cascade-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.7rem;
    background: linear-gradient(135deg, var(--psych-purple), var(--psych-pink));
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 5;
}

.cascade-stems-header {
    background: linear-gradient(90deg, transparent, rgba(198,120,221,0.1), transparent);
}

/* Channel Label */
.stem-icon {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

.stem-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #2a2520;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.stem-original {
    font-size: 0.5rem;
    font-weight: 400;
    opacity: 0.7;
    display: block;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

/* LED Bar Meter (Neve Style) - Now beside fader */
.led-meter {
    width: 16px;
    height: 120px;
    background: linear-gradient(180deg, #0a0908 0%, #151310 100%);
    border-radius: 3px;
    border: 2px solid #3d352d;
    position: relative;
    box-shadow:
        inset 0 2px 8px rgba(0,0,0,0.9),
        0 2px 4px rgba(0,0,0,0.3);
    padding: 2px;
    flex-shrink: 0;
    margin-top: 8px;
}

/* LED segments container */
.led-meter-track {
    width: 100%;
    height: 100%;
    background: #0a0908;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
}

/* LED fill that animates */
.led-meter-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg,
        #ff2020 0%,
        #ff4040 5%,
        #ffaa00 15%,
        #ffcc00 25%,
        #44dd44 40%,
        #22cc22 100%
    );
    transition: height 0.05s linear;
    position: relative;
    border-radius: 1px;
}

/* LED segment lines overlay */
.led-meter-segments {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        180deg,
        transparent 0px,
        transparent 4px,
        #0a0908 4px,
        #0a0908 5px
    );
    pointer-events: none;
    z-index: 2;
}

/* Peak/Clip LED */
.peak-led {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 6px;
    background: #330808;
    border-radius: 2px;
    border: 1px solid #4a3030;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

.peak-led.active {
    background: #ff0000;
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.3),
        0 0 8px #ff0000,
        0 0 15px rgba(255, 0, 0, 0.5);
}

/* Scale markings next to meter */
.led-meter-scale {
    position: absolute;
    left: -14px;
    top: 3px;
    bottom: 3px;
    width: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.35rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: #6a625a;
}

.led-meter-scale span {
    line-height: 1;
}

/* VU Meter - Takes top half of channel */
.vu-meter {
    width: calc(100% - 8px);
    height: 90px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(180deg, #1a1816 0%, #0d0c0a 100%);
    border-radius: 6px;
    border: 2px solid #3d352d;
    position: relative;
    box-shadow:
        inset 0 2px 8px rgba(0,0,0,0.8),
        0 2px 4px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* Warm amber backlight glow */
.vu-meter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(255, 180, 100, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

/* Cream colored face */
.vu-face {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 6px;
    background: linear-gradient(180deg, #f5edd8 0%, #e8dfc8 50%, #ddd4bd 100%);
    border-radius: 4px 4px 2px 2px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.08);
}

/* Scale markings */
.vu-scale {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    height: 24px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

/* Black numbers (left side) */
.vu-scale::before {
    content: '-20  -10  -5  -3  0';
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0.45rem;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

/* Red numbers (right side) */
.vu-scale::after {
    content: '+3';
    position: absolute;
    top: 0;
    right: 4px;
    font-size: 0.45rem;
    color: #cc2020;
    font-weight: 800;
}

/* Red zone indicator */
.vu-red-zone {
    position: absolute;
    top: 12px;
    right: 5px;
    width: 22%;
    height: 16px;
    background: linear-gradient(90deg, transparent 0%, rgba(204, 32, 32, 0.15) 50%, rgba(204, 32, 32, 0.3) 100%);
    border-radius: 0 6px 0 0;
}

/* VU label */
.vu-label {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.5rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 2px;
}

/* The needle */
.vu-needle {
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 2px;
    height: 55px;
    background: linear-gradient(180deg,
        #ff3030 0%,
        #cc2020 60%,
        #991515 100%
    );
    transform-origin: bottom center;
    transform: rotate(-45deg);
    transition: transform 0.12s ease-out;
    border-radius: 1px 1px 0 0;
    z-index: 5;
    box-shadow: 0 0 6px rgba(255, 50, 50, 0.5);
}

/* Needle pivot */
.vu-needle::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: radial-gradient(circle at 35% 35%, #5a5a5a 0%, #2a2a2a 50%, #1a1a1a 100%);
    border-radius: 50%;
    border: 1px solid #3a3a3a;
}

/* Glow when active */
.vu-meter.lit .vu-face {
    background: linear-gradient(180deg, #fff8e8 0%, #f5ead0 50%, #e8dfc0 100%);
    box-shadow: inset 0 0 20px rgba(255, 200, 100, 0.2);
}

.stem-card.muted .vu-needle {
    transform: rotate(-45deg) !important;
    opacity: 0.4;
}

.stem-card.muted .vu-face {
    filter: brightness(0.6);
}

/* Fader section with LED beside it */
.fader-section {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: stretch;
}

/* Mixer Controls - Vintage Buttons */
.stem-mixer-controls {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.mute-btn, .solo-btn {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 2px solid #3d352d;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow:
        0 3px 0 #2a2520,
        0 4px 8px rgba(0,0,0,0.3);
    position: relative;
    top: 0;
}

.mute-btn:active, .solo-btn:active {
    top: 2px;
    box-shadow:
        0 1px 0 #2a2520,
        0 2px 4px rgba(0,0,0,0.2);
}

.mute-btn {
    background: linear-gradient(180deg, #6b6560 0%, #4a4540 100%);
    color: #c4beb4;
}

.mute-btn.active {
    background: linear-gradient(180deg, #c41e3a 0%, #8b1528 100%);
    color: white;
    box-shadow:
        0 3px 0 #5a0d18,
        0 4px 8px rgba(0,0,0,0.3),
        0 0 12px rgba(196, 30, 58, 0.5);
}

.solo-btn {
    background: linear-gradient(180deg, #6b6560 0%, #4a4540 100%);
    color: #c4beb4;
}

.solo-btn.active {
    background: linear-gradient(180deg, #e5c07b 0%, #c9a555 100%);
    color: #2a2520;
    box-shadow:
        0 3px 0 #8a7030,
        0 4px 8px rgba(0,0,0,0.3),
        0 0 12px rgba(229, 192, 123, 0.5);
}

/* Vertical Fader Track */
.stem-volume {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

.fader-track {
    width: 20px;
    height: 120px;
    background: linear-gradient(180deg, #1a1612 0%, #2a2520 100%);
    border-radius: 4px;
    border: 2px solid #3d352d;
    position: relative;
    box-shadow:
        inset 0 2px 8px rgba(0,0,0,0.8),
        0 2px 4px rgba(0,0,0,0.2);
}

/* Fader scale markings */
.fader-track::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: -8px;
    width: 6px;
    background: repeating-linear-gradient(
        180deg,
        #8a8278 0px,
        #8a8278 1px,
        transparent 1px,
        transparent 12px
    );
}

/* Fader groove */
.fader-groove {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: linear-gradient(180deg, #0d0c0a 0%, #1a1612 100%);
    border-radius: 2px;
}

/* The Fader Cap */
.fader-cap {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 24px;
    background: linear-gradient(180deg,
        #e8e2d6 0%,
        #c4beb4 20%,
        #a8a298 50%,
        #c4beb4 80%,
        #e8e2d6 100%
    );
    border-radius: 3px;
    border: 1px solid #8a8278;
    cursor: grab;
    box-shadow:
        0 2px 4px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.5);
    transition: top 0.05s linear;
}

.fader-cap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 4px;
    right: 4px;
    height: 1px;
    background: #6b5a48;
    box-shadow: 0 2px 0 #6b5a48;
}

.fader-cap:active {
    cursor: grabbing;
}

/* Hidden actual slider */
.stem-volume-slider {
    position: absolute;
    width: 120px;
    height: 20px;
    transform: rotate(-90deg);
    transform-origin: center;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

/* Stem Actions */
.stem-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.stem-btn {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.4rem 0.5rem;
    background: linear-gradient(180deg, #4a4540 0%, #3d352d 100%);
    border: 1px solid #5a524a;
    border-radius: 4px;
    color: #c4beb4;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stem-btn:hover {
    background: linear-gradient(180deg, #ff7b54 0%, #e56a45 100%);
    border-color: #ff7b54;
    color: white;
}

.stem-btn.midi {
    background: linear-gradient(180deg, #2a4a5a 0%, #1a3a4a 100%);
    border-color: #3a5a6a;
    color: #7ab8d4;
}

.stem-btn.midi:hover {
    background: linear-gradient(180deg, #56b6c2 0%, #3a9aa8 100%);
    border-color: #56b6c2;
    color: #1a1612;
}

.stem-btn.notation {
    background: linear-gradient(180deg, #5a3a6a 0%, #4a2a5a 100%);
    border-color: #7a5a8a;
    color: #d4a8e4;
}

.stem-btn.notation:hover {
    background: linear-gradient(180deg, #c678dd 0%, #a858c8 100%);
    border-color: #c678dd;
    color: white;
}

.stem-btn.enhanced {
    background: linear-gradient(180deg, #2a5a3a 0%, #1a4a2a 100%);
    border-color: #3a7a4a;
    color: #98c379;
}

.stem-btn.enhanced:hover {
    background: linear-gradient(180deg, #98c379 0%, #78a359 100%);
    border-color: #98c379;
    color: #1a1612;
}

.stem-btn.raw {
    background: linear-gradient(180deg, #4a4a3a 0%, #3a3a2a 100%);
    border-color: #5a5a4a;
    color: #a8a888;
    font-size: 0.6rem;
}

.stem-btn.raw:hover {
    background: linear-gradient(180deg, #6a6a5a 0%, #5a5a4a 100%);
    border-color: #7a7a6a;
    color: white;
}

.stem-audio {
    display: none;
}

/* Practice Mode CTA */
.practice-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(198, 120, 221, 0.1) 0%, rgba(97, 175, 239, 0.1) 100%);
    border: 1px solid rgba(198, 120, 221, 0.2);
    border-radius: 20px;
}

.practice-btn {
    font-family: 'Righteous', cursive;
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--psych-purple), var(--psych-blue));
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.practice-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(198, 120, 221, 0.3);
}
