/* ==========================================================================
   MCINTOSH HIGH FIDELITY AMPLIFIER & STEREO PRECISION TUNER MEDIA PLAYER
   Ported to Mistresses of Metal from 440Music.com
   ========================================================================== */

/* --------------------------------------------------------------------------
   Radio Station Player Layout & Track Meta
   -------------------------------------------------------------------------- */
.media-player-block,
.radio-station-player {
    margin-bottom: 1.5rem;
}

.radio-station-player-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.radio-station-player h2,
#radio-station-player-title,
.radio-station-player-title {
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.2rem;
    line-height: 1.35;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.now-stream-prefix {
    color: #00cc44;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.95rem;
}

.now-stream-text {
    color: #f8fafc;
    font-weight: 700;
}

.player-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Past 5 Songs Section: Side-by-Side Track Grid (Current Left + 4 Past Right)
   -------------------------------------------------------------------------- */
.media-tracks-layout {
    display: grid;
    grid-template-columns: minmax(110px, 140px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 1.25rem;
    background: rgba(10, 15, 26, 0.75);
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 14px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Primary Current Track Column: Artwork with Song & Artist directly beneath */
.current-track-col {
    width: 100%;
    max-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.current-art-wrap {
    position: relative;
    width: min(90px, 100%);
    max-width: 90px;
    height: auto;
    max-height: 90px;
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
    border: 1px solid #334155;
    background: #000;
    flex-shrink: 0;
}

.current-art-wrap .radio-station-art,
.radio-station-art {
    display: block;
    width: 100%;
    max-width: 90px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    background: #000;
}

.now-playing-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #00cc44;
    color: #000000;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.current-track-col .radio-station-track-info,
.radio-station-track-info {
    width: 100%;
    text-align: center;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 6px 8px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.radio-station-song-title {
    color: #ffff00;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.25;
    word-break: break-word;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.35);
}

.radio-station-artist-name {
    color: #cbd5e1;
    font-size: 0.75rem;
    margin-top: 3px;
    line-height: 1.2;
    word-break: break-word;
}

.radio-station-artist-name a,
#radio-station-artist-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.15s ease, text-decoration 0.15s ease;
}

.radio-station-artist-name a:hover,
#radio-station-artist-link:hover {
    color: #00e5ff;
    text-decoration: underline;
}

/* History Column: Next 4 Previous Tracks Sorted to Right Side */
.history-tracks-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 10px 12px;
    box-sizing: border-box;
}

.history-tracks-col .radio-recent-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid #334155;
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.history-tracks-col .radio-recent-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #00e5ff;
}

.history-tracks-col .radio-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.radio-recent-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 5px 8px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.6);
    border-radius: 6px;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.radio-recent-item:hover {
    background: rgba(51, 65, 85, 0.7);
    border-color: #00e5ff;
}

.radio-recent-num {
    font-size: 0.75rem;
    font-weight: 700;
    color: #00e5ff;
    min-width: 16px;
    flex-shrink: 0;
}

.radio-recent-text {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.radio-recent-song {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.radio-recent-sep {
    font-size: 0.75rem;
    color: #64748b;
    flex-shrink: 0;
}

.radio-recent-artist {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
    text-decoration: none;
    transition: color 0.15s ease, text-decoration 0.15s ease;
}

a.radio-recent-artist:hover,
.radio-recent-artist a:hover {
    color: #00e5ff;
    text-decoration: underline;
}

.radio-recent-thumb {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: #000;
    border: 1px solid #475569;
}

.radio-recent-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    text-align: left;
}

.radio-recent-empty {
    color: #64748b;
    font-size: 0.75rem;
    text-align: center;
    padding: 12px 8px;
    font-style: italic;
    margin: 0;
}

/* Fallback for legacy layout if present */
.radio-station-player-body {
    display: block;
}

.radio-station-art-col {
    width: 100%;
}

.radio-station-recent-box {
    width: 100%;
    margin-top: 10px;
}

.radio-station-controls {
    min-width: 0;
}

.radio-station-player audio {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
}

.radio-popout-btn-wrap {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   McIntosh Chassis & Faceplate
   -------------------------------------------------------------------------- */
.mcintosh-amp-chassis {
    background: #020509;
    border: 2px solid #1e2d3d;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    margin-bottom: 1.25rem;
    overflow: hidden;
    position: relative;
}

.mcintosh-amp-faceplate {
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 35%, rgba(0,0,0,0.5) 70%, rgba(0,0,0,0.85) 100%), #060a10;
    padding: 16px 20px 18px;
    position: relative;
    border: 1px solid #152230;
}

.mcintosh-screw {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #94a3b8 0%, #475569 60%, #1e293b 100%);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.6), 0 1px 2px rgba(0,0,0,0.8);
    z-index: 2;
}
.mcintosh-screw-tl { top: 8px; left: 8px; }
.mcintosh-screw-tr { top: 8px; right: 8px; }
.mcintosh-screw-bl { bottom: 8px; left: 8px; }
.mcintosh-screw-br { bottom: 8px; right: 8px; }

.mcintosh-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    padding-bottom: 8px;
}

.mcintosh-brand-title {
    color: #38bdf8;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tuner-brand-accent {
    color: #38bdf8;
}

.tuner-badges-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mcintosh-model-badge {
    color: #ff0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #334155;
    padding: 2px 8px;
    border-radius: 4px;
}

.mcintosh-model-badge.mcintosh-model-blue {
    color: #38bdf8 !important;
}

/* --------------------------------------------------------------------------
   3 Backlit VU Meters Row
   -------------------------------------------------------------------------- */
.mcintosh-meters-row {
    display: grid;
    grid-template-columns: 1fr 0.7fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
    align-items: end;
}

.mcintosh-meter-card {
    background: radial-gradient(ellipse at 50% 70%, rgba(0, 229, 255, 0.38) 0%, rgba(0, 140, 185, 0.22) 55%, rgba(2, 16, 28, 0.95) 100%);
    border: 2px solid #16384c;
    border-radius: 8px;
    padding: 10px 8px 6px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 229, 255, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 124px;
    height: 124px;
    box-sizing: border-box;
}

.mcintosh-meter-card.meter-left,
.mcintosh-meter-card.meter-right {
    min-height: 124px;
    height: 124px;
}

.mcintosh-meter-card.meter-gain {
    min-height: 87px;
    height: 87px;
    padding: 6px 6px 4px;
    background: radial-gradient(ellipse at 50% 70%, #0d131a 0%, #070a0e 70%, #020406 100%);
    border-color: #1e293b;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.95);
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.mcintosh-meter-card.meter-gain.is-lit,
.mcintosh-meter-card.meter-gain.is-active,
.mcintosh-meter-card.meter-gain.is-on {
    background: radial-gradient(ellipse at 50% 70%, rgba(234, 179, 8, 0.38) 0%, rgba(180, 110, 0, 0.22) 55%, rgba(28, 18, 2, 0.95) 100%);
    border-color: #713f12;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 16px rgba(234, 179, 8, 0.28);
}

.mcintosh-meter-bezel {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-height: 0;
}

.mcintosh-meter-dial-svg {
    width: 100%;
    height: 100%;
    max-height: 92px;
    overflow: visible;
    display: block;
}

.mcintosh-meter-card.meter-gain .mcintosh-meter-dial-svg {
    max-height: 62px;
}

.mcintosh-meter-card.meter-gain .mcintosh-gain-arc-main {
    stroke: rgba(148, 163, 184, 0.25);
    transition: stroke 0.35s ease;
}

.mcintosh-meter-card.meter-gain.is-lit .mcintosh-gain-arc-main,
.mcintosh-meter-card.meter-gain.is-active .mcintosh-gain-arc-main,
.mcintosh-meter-card.meter-gain.is-on .mcintosh-gain-arc-main {
    stroke: rgba(234, 179, 8, 0.45);
}

.mcintosh-meter-card.meter-gain .mcintosh-gain-tick {
    stroke: #64748b;
    transition: stroke 0.35s ease;
}

.mcintosh-meter-card.meter-gain.is-lit .mcintosh-gain-tick,
.mcintosh-meter-card.meter-gain.is-active .mcintosh-gain-tick,
.mcintosh-meter-card.meter-gain.is-on .mcintosh-gain-tick {
    stroke: #fef08a;
}

.mcintosh-meter-card.meter-gain .mcintosh-gain-text {
    fill: #94a3b8;
    transition: fill 0.35s ease;
}

.mcintosh-meter-card.meter-gain.is-lit .mcintosh-gain-text,
.mcintosh-meter-card.meter-gain.is-active .mcintosh-gain-text,
.mcintosh-meter-card.meter-gain.is-on .mcintosh-gain-text {
    fill: #fef08a;
}

.mcintosh-meter-card.meter-gain .mcintosh-gain-caption {
    fill: rgba(148, 163, 184, 0.55);
    transition: fill 0.35s ease;
}

.mcintosh-meter-card.meter-gain.is-lit .mcintosh-gain-caption,
.mcintosh-meter-card.meter-gain.is-active .mcintosh-gain-caption,
.mcintosh-meter-card.meter-gain.is-on .mcintosh-gain-caption {
    fill: rgba(254, 240, 138, 0.75);
}

.mcintosh-meter-card.meter-gain .mcintosh-gain-pivot-dot {
    fill: #64748b;
    transition: fill 0.35s ease;
}

.mcintosh-meter-card.meter-gain.is-lit .mcintosh-gain-pivot-dot,
.mcintosh-meter-card.meter-gain.is-active .mcintosh-gain-pivot-dot,
.mcintosh-meter-card.meter-gain.is-on .mcintosh-gain-pivot-dot {
    fill: #eab308;
}

.mcintosh-needle {
    transform-origin: 80px 94px;
    transition: transform 0.05s cubic-bezier(0.1, 0.9, 0.2, 1);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8));
}

.mcintosh-meter-label {
    font-size: 11px;
    font-weight: 800;
    color: #e0f2fe;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
    margin-top: 4px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.mcintosh-meter-card.meter-gain .mcintosh-meter-label {
    font-size: 9px;
    color: #64748b;
    text-shadow: none;
    margin-top: 2px;
    transition: color 0.35s ease, text-shadow 0.35s ease;
}

.mcintosh-meter-card.meter-gain.is-lit .mcintosh-meter-label,
.mcintosh-meter-card.meter-gain.is-active .mcintosh-meter-label,
.mcintosh-meter-card.meter-gain.is-on .mcintosh-meter-label {
    color: #fef08a;
    text-shadow: 0 0 6px rgba(234, 179, 8, 0.6);
}

/* --------------------------------------------------------------------------
   Vintage Toggle Switches Row
   -------------------------------------------------------------------------- */
.mcintosh-toggles-row {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap !important;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 10px 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.mcintosh-toggles-row::-webkit-scrollbar {
    display: none;
}

.mcintosh-toggle-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    background: transparent !important;
    border: none !important;
    padding: 4px 6px;
    flex-shrink: 0;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
}

.mcintosh-toggle-unit:hover,
.mcintosh-toggle-unit:focus,
.mcintosh-toggle-unit:active,
button.mcintosh-toggle-unit:hover,
button.mcintosh-toggle-unit:focus,
button.mcintosh-toggle-unit:active {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    outline: none !important;
}

.mcintosh-toggle-unit:hover .mcintosh-toggle-label,
button.mcintosh-toggle-unit:hover .mcintosh-toggle-label {
    color: #64748b;
}

.mcintosh-toggle-unit.is-on:hover .mcintosh-toggle-label,
button.mcintosh-toggle-unit.is-on:hover .mcintosh-toggle-label {
    color: #38bdf8;
}

.mcintosh-toggle-unit.is-on.toggle-gain:hover .mcintosh-toggle-label,
button.mcintosh-toggle-unit.is-on.toggle-gain:hover .mcintosh-toggle-label {
    color: #facc15;
}

.mcintosh-switch-lever {
    width: 24px;
    height: 38px;
    background: radial-gradient(circle at 50% 30%, #334155 0%, #0f172a 100%) !important;
    border: 1px solid #475569 !important;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.9), 0 2px 4px rgba(0,0,0,0.5) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mcintosh-switch-lever:hover,
.mcintosh-switch-lever:focus,
.mcintosh-switch-lever:active,
button.mcintosh-switch-lever:hover,
button.mcintosh-switch-lever:focus,
button.mcintosh-switch-lever:active {
    background: radial-gradient(circle at 50% 30%, #334155 0%, #0f172a 100%) !important;
    color: inherit !important;
    transform: none !important;
    outline: none !important;
}

.mcintosh-toggle-unit.is-on .mcintosh-switch-lever {
    border-color: #38bdf8;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.9), 0 0 10px rgba(56, 189, 248, 0.4);
}

.mcintosh-toggle-unit.is-on.toggle-gain .mcintosh-switch-lever {
    border-color: #facc15;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.9), 0 0 10px rgba(250, 204, 21, 0.45);
}

/* Polished Chrome Switch Bat - Down Position (OFF) */
.mcintosh-switch-bat {
    width: 10px;
    height: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 45%, #475569 85%, #cbd5e1 100%);
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.7);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, box-shadow 0.2s ease;
    transform: translateY(5px) rotate(18deg);
}

/* Polished Chrome Switch Bat - Up Position (ON) */
.mcintosh-toggle-unit.is-on .mcintosh-switch-bat {
    transform: translateY(-5px) rotate(-18deg);
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 45%, #64748b 85%, #f1f5f9 100%);
    box-shadow: 0 -2px 6px rgba(0,0,0,0.7);
}

.mcintosh-toggle-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: none;
    white-space: nowrap;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

/* Glow ON for standard toggles (Loudness, Noise) */
.mcintosh-toggle-unit.is-on .mcintosh-toggle-label {
    color: #38bdf8;
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.95), 0 0 16px rgba(56, 189, 248, 0.7);
}

/* Glow ON for Gain Boost toggle */
.mcintosh-toggle-unit.is-on .mcintosh-toggle-label.label-gain,
.mcintosh-toggle-unit.is-on.toggle-gain .mcintosh-toggle-label {
    color: #facc15;
    text-shadow: 0 0 6px rgba(250, 204, 21, 0.95), 0 0 18px rgba(234, 179, 8, 0.75);
}

/* --------------------------------------------------------------------------
   3-Position Preset & Amp Circuit Toggle Switches
   -------------------------------------------------------------------------- */
.mcintosh-preset-toggle,
.mcintosh-circuit-toggle {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.mcintosh-preset-switch-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mcintosh-preset-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 46px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #475569;
    user-select: none;
    text-align: right;
    line-height: 1;
}

.mcintosh-preset-label-item,
.mcintosh-circuit-label-item {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 1px 3px;
    border-radius: 2px;
}

.mcintosh-preset-label-item:hover,
.mcintosh-circuit-label-item:hover {
    background: transparent !important;
}

.mcintosh-preset-label-item.is-active {
    color: #38bdf8;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.95), 0 0 16px rgba(56, 189, 248, 0.7);
    font-weight: 900;
}

.mcintosh-circuit-label-item.is-active[data-circuit-target="tube"] {
    color: #facc15;
    text-shadow: 0 0 8px rgba(250, 204, 21, 0.95), 0 0 16px rgba(234, 179, 8, 0.7);
    font-weight: 900;
}

.mcintosh-circuit-label-item.is-active[data-circuit-target="mosfet"] {
    color: #38bdf8;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.95), 0 0 16px rgba(56, 189, 248, 0.7);
    font-weight: 900;
}

.mcintosh-circuit-label-item.is-active[data-circuit-target="clean"] {
    color: #86efac;
    text-shadow: 0 0 8px rgba(134, 239, 172, 0.95), 0 0 16px rgba(34, 197, 94, 0.7);
    font-weight: 900;
}

.mcintosh-switch-lever.three-way-lever {
    width: 26px;
    height: 46px;
    border-radius: 13px;
    cursor: pointer;
}

/* Position 1: High / Tube (Top) */
.mcintosh-switch-lever.three-way-lever.pos-high .mcintosh-switch-bat,
.mcintosh-preset-toggle[data-preset="high"] .three-way-lever .mcintosh-switch-bat,
.mcintosh-switch-lever.three-way-lever.pos-tube .mcintosh-switch-bat,
.mcintosh-circuit-toggle[data-circuit="tube"] .three-way-lever .mcintosh-switch-bat {
    transform: translateY(-9px) rotate(-24deg);
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 45%, #64748b 85%, #f1f5f9 100%);
    box-shadow: 0 -3px 6px rgba(0,0,0,0.8);
}

/* Position 2: Vocal / MOSFET (Middle / Center) */
.mcintosh-switch-lever.three-way-lever.pos-vocal .mcintosh-switch-bat,
.mcintosh-preset-toggle[data-preset="vocal"] .three-way-lever .mcintosh-switch-bat,
.mcintosh-switch-lever.three-way-lever.pos-mosfet .mcintosh-switch-bat,
.mcintosh-circuit-toggle[data-circuit="mosfet"] .three-way-lever .mcintosh-switch-bat {
    transform: translateY(0) rotate(0deg);
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 45%, #475569 85%, #cbd5e1 100%);
    box-shadow: 0 0 6px rgba(0,0,0,0.8);
}

/* Position 3: Low / Clean (Bottom) */
.mcintosh-switch-lever.three-way-lever.pos-low .mcintosh-switch-bat,
.mcintosh-preset-toggle[data-preset="low"] .three-way-lever .mcintosh-switch-bat,
.mcintosh-switch-lever.three-way-lever.pos-clean .mcintosh-switch-bat,
.mcintosh-circuit-toggle[data-circuit="clean"] .three-way-lever .mcintosh-switch-bat {
    transform: translateY(9px) rotate(24deg);
    background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 45%, #475569 85%, #cbd5e1 100%);
    box-shadow: 0 3px 6px rgba(0,0,0,0.8);
}

/* --------------------------------------------------------------------------
   7-Band Equalizer + Preamp Gain + Dominant Volume Section
   -------------------------------------------------------------------------- */
.mcintosh-eq-section {
    background: #090e17;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.mcintosh-eq-sliders-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 8px;
    margin-bottom: 12px;
    align-items: stretch;
}

.mcintosh-eq-channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-height: 180px;
    padding: 6px 2px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.mcintosh-slider-icon {
    font-size: 9px;
    color: #64748b;
    line-height: 1;
    user-select: none;
}

.mcintosh-slider-val {
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #e2e8f0;
    min-height: 14px;
    line-height: 1;
    text-align: center;
}

.mcintosh-slider-wrap {
    height: 100px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    overflow: visible;
    --eq-vu-val: 0;
    --eq-vu: 0%;
}

/* Recessed VU Meter Slot Groove */
.mcintosh-slider-wrap::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: #030712 linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.03) 0%,
        transparent 48%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 52%,
        rgba(0, 0, 0, 0.4) 100%
    );
    border: 1px solid #1e293b;
    border-radius: 4px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 1;
    pointer-events: none;
}

/* Real-Time Dynamic VU Meter LED Column */
.mcintosh-slider-wrap::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: calc((100% - 10px) * var(--eq-vu-val, 0));
    max-height: calc(100% - 10px);
    border-radius: 3px;
    background: linear-gradient(
        to top,
        #00e5ff 0%,
        #10b981 40%,
        #fbbf24 70%,
        #f59e0b 86%,
        #ef4444 100%
    );
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.75), 0 0 14px rgba(0, 229, 255, 0.45);
    z-index: 2;
    pointer-events: none;
    opacity: 0.95;
    transition: height 0.04s ease-out;
}

/* Gain Slider VU Meter Variation */
.gain-channel.is-disabled .mcintosh-slider-wrap::after {
    opacity: 0.1;
}

.gain-channel:not(.is-disabled) .mcintosh-slider-wrap::after {
    background: linear-gradient(to top, #f59e0b 0%, #facc15 65%, #ef4444 100%);
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.8), 0 0 16px rgba(245, 158, 11, 0.5);
}

/* Master Volume Slider VU Meter Variation */
.volume-channel .mcintosh-slider-wrap::after {
    background: linear-gradient(to top, #00e5ff 0%, #38bdf8 50%, #818cf8 80%, #ef4444 100%);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.8), 0 0 16px rgba(0, 229, 255, 0.5);
}

/* Vertical Sliders with Wolf Head Thumb */
.mcintosh-slider.mcintosh-slider-vertical {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 32px;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    outline: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    transform-origin: center center;
    z-index: 4;
    touch-action: none;
}

/* WebKit Track */
.mcintosh-slider.mcintosh-slider-vertical::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* WebKit Thumb: Mistresses of Metal Wolf Head */
.mcintosh-slider.mcintosh-slider-vertical::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: url('/img/wolf_thumb.png') no-repeat center center;
    background-size: contain;
    border: none;
    border-radius: 0;
    cursor: grab;
    margin-top: -10px;
    filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.75)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.95));
    transition: filter 0.15s ease, transform 0.1s ease;
    position: relative;
    z-index: 5;
}

.mcintosh-slider.mcintosh-slider-vertical::-webkit-slider-thumb:hover {
    filter: drop-shadow(0 0 9px rgba(239, 68, 68, 1)) drop-shadow(0 0 16px rgba(255, 0, 0, 0.85));
    cursor: grab;
}

.mcintosh-slider.mcintosh-slider-vertical::-webkit-slider-thumb:active {
    cursor: grabbing;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 18px rgba(239, 68, 68, 1));
}

/* Firefox Track */
.mcintosh-slider.mcintosh-slider-vertical::-moz-range-track {
    width: 100%;
    height: 8px;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Firefox Thumb: Mistresses of Metal Wolf Head */
.mcintosh-slider.mcintosh-slider-vertical::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: url('/img/wolf_thumb.png') no-repeat center center;
    background-size: contain;
    border: none;
    border-radius: 0;
    cursor: grab;
    filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.75)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.95));
    transition: filter 0.15s ease, transform 0.1s ease;
    position: relative;
    z-index: 5;
}

.mcintosh-slider.mcintosh-slider-vertical::-moz-range-thumb:hover {
    filter: drop-shadow(0 0 9px rgba(239, 68, 68, 1)) drop-shadow(0 0 16px rgba(255, 0, 0, 0.85));
    cursor: grab;
}

.mcintosh-slider.mcintosh-slider-vertical::-moz-range-thumb:active {
    cursor: grabbing;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 18px rgba(239, 68, 68, 1));
}

/* Gain Slider Wolf Head Variation (Amber/Gold aura when active) */
.mcintosh-gain-slider-box.is-active .mcintosh-gain-slider::-webkit-slider-thumb {
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.95)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.95));
}

.mcintosh-gain-slider-box.is-active .mcintosh-gain-slider::-moz-range-thumb {
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.95)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.95));
}

/* Master Volume Wolf Head (Dominant 32px x 32px with Cyan/Blue glow) */
.mcintosh-volume-slider::-webkit-slider-thumb {
    width: 32px;
    height: 32px;
    margin-top: -12px;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.95)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.95));
}

.mcintosh-volume-slider::-moz-range-thumb {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.95)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.95));
}

.mcintosh-volume-slider::-webkit-slider-thumb:hover,
.mcintosh-volume-slider::-moz-range-thumb:hover {
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 1)) drop-shadow(0 0 20px rgba(0, 229, 255, 0.8));
}

.mcintosh-eq-channel label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
}

.mcintosh-eq-channel.gain-channel {
    border-color: rgba(234, 179, 8, 0.25);
    background: rgba(28, 20, 2, 0.5);
}

.mcintosh-eq-channel.gain-channel label {
    color: #eab308;
    font-weight: 800;
}

.mcintosh-eq-channel.gain-channel .mcintosh-slider-val {
    color: #fef08a;
}

.mcintosh-gain-slider-box {
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.mcintosh-gain-slider-box.is-disabled {
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(0.85);
}

.mcintosh-gain-slider-box.is-active {
    opacity: 1;
    pointer-events: auto;
    filter: none;
}

.mcintosh-gain-slider-box.is-active label {
    color: #fde047;
    text-shadow: 0 0 8px rgba(253, 224, 71, 0.6);
}

/* Dominant Master Volume Channel with Standout Border */
.mcintosh-eq-channel.volume-channel {
    border: 2px solid #38bdf8;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.2) 0%, rgba(15, 23, 42, 0.95) 100%);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4), inset 0 0 10px rgba(56, 189, 248, 0.2);
    padding: 6px 4px;
    position: relative;
}

.mcintosh-eq-channel.volume-channel .mcintosh-slider-val {
    color: #38bdf8;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.mcintosh-volume-mute-btn {
    background: transparent;
    border: none;
    color: #38bdf8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: 2px 4px;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
}

.mcintosh-volume-mute-btn:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.9);
}

/* --------------------------------------------------------------------------
   Transport Controls, Digital VFD & Actions
   -------------------------------------------------------------------------- */
.mcintosh-bottom-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 12px;
    border-top: 1px solid #1e293b;
    padding-top: 10px;
}

.mcintosh-transport-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.mcintosh-transport-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mcintosh-vfd-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #030a10;
    border: 1px solid #16384c;
    border-radius: 6px;
    padding: 4px 10px;
    height: 34px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 229, 255, 0.15);
    min-width: 78px;
    box-sizing: border-box;
}

.mcintosh-vfd-countdown {
    color: #ff0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.6);
    user-select: none;
    line-height: 1;
}

.mcintosh-transport-btn {
    background: radial-gradient(circle at 50% 30%, #334155 0%, #0f172a 100%);
    border: 1px solid #475569;
    color: #38bdf8;
    border-radius: 6px;
    width: 42px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    user-select: none;
    padding: 0;
}

.mcintosh-transport-btn:hover {
    background: radial-gradient(circle at 50% 30%, #475569 0%, #1e293b 100%);
    border-color: #38bdf8;
    color: #ff0;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.mcintosh-transport-btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

.mcintosh-transport-btn.is-playing,
.mcintosh-transport-play.is-playing {
    background: radial-gradient(circle at 50% 30%, #0284c7 0%, #075985 100%);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mcintosh-transport-play.is-connecting {
    background: radial-gradient(circle at 50% 30%, #475569 0%, #1e293b 100%);
    border-color: #facc15;
    color: #facc15;
    box-shadow: 0 0 12px rgba(250, 204, 21, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: mcintosh-play-pulse 0.75s ease-in-out infinite alternate;
}

@keyframes mcintosh-play-pulse {
    from {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(250, 204, 21, 0.4);
    }
    to {
        transform: scale(1.05);
        box-shadow: 0 0 16px rgba(250, 204, 21, 0.9);
    }
}

.mcintosh-eq-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.mcintosh-reset-btn {
    background: #1e293b;
    border: 1px solid #475569;
    color: #cbd5e1;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mcintosh-reset-btn:hover {
    background: #334155;
    border-color: #94a3b8;
    color: #ffffff;
}

.is-hidden {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Responsive Layout
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .mcintosh-eq-sliders-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .media-tracks-layout {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .current-track-col {
        width: 100%;
        max-width: 140px;
    }

    .history-tracks-col {
        width: 100%;
    }

    .history-tracks-col .radio-recent-list {
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .radio-station-player-body {
        grid-template-columns: 1fr;
    }

    .current-art-wrap {
        width: min(90px, 100%);
        max-width: 90px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .radio-station-art {
        width: 100%;
        max-width: 90px;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 480px) {
    .current-art-wrap {
        width: min(90px, 100%);
        max-width: 90px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .current-art-wrap .radio-station-art {
        width: 100%;
        max-width: 90px;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 600px) {
    .mcintosh-meters-row {
        grid-template-columns: 1fr;
    }
    .mcintosh-toggles-row {
        gap: 4px;
        padding: 8px 4px;
        justify-content: space-between;
    }
    .mcintosh-toggle-unit {
        padding: 2px;
    }
    .mcintosh-toggle-label {
        font-size: 8.5px;
    }
    .mcintosh-preset-labels {
        font-size: 7px;
    }
    .mcintosh-eq-sliders-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .mcintosh-bottom-controls-row {
        flex-wrap: wrap;
        gap: 8px;
    }
}

