.lars-tone-player {
    background: rgba(15, 23, 42, 0.9);
    color: #e2e8f0;
    border-radius: 18px;
    padding: 12px 12px 14px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3);
    margin: 0 auto 12px;
    width: 100%;
    max-width: none;
}

.lars-controls-collapsed .lars-tone-mixer-grid,
.lars-controls-collapsed .lars-tone-links,
.lars-controls-collapsed .lars-tone-fallback,
.lars-controls-collapsed .lars-player-note {
    display: none !important;
}

.lars-tone-player-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 10px;
}

.lars-tone-analysis-wrapper {
    width: 100%;
    margin: 6px 0 12px;
    padding: 4px 0;
}

.lars-tone-analysis {
    width: 100%;
    height: clamp(180px, 45vw, 260px);
    min-height: 180px;
    display: block;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 10px;
}
.lars-tone-analysis-wrapper {
    position: relative;
    width: 100%;
}
.lars-loudness-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 70px;
    width: 100%;
    pointer-events: none;
}

.lars-tone-spectrum-wrapper {
    width: 100%;
    margin: 6px 0 12px;
    padding: 4px 0;
    position: relative;
}

.lars-spectrum-flex {
    display: flex;
    align-items: stretch;
    gap: 8px;
    position: relative;
}

.lars-tone-spectrum {
    flex: 1;
    width: 100%;
    height: clamp(220px, 52vw, 300px);
    min-height: 220px;
    display: block;
    margin: 0 auto;
    background: linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(15, 23, 42, 0.9));
    border-radius: 10px;
}

.lars-visual-flex {
    display: block;
    width: 100%;
    gap: 0;
}
.lars-visual-left {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 900px) {
    .lars-visual-flex {
        flex-direction: column;
        flex-wrap: wrap;
    }
    .lars-visual-left,
    .lars-visual-right {
        flex: 1 0 100%;
        max-width: 100%;
    }
}

.lars-spectrum-tips {
    margin-top: 6px;
    font-size: 12px;
    color: #e2e8f0;
}

.lars-spectrum-tips details {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 8px;
    padding: 8px 10px;
}

.lars-spectrum-tips summary {
    cursor: pointer;
    font-weight: 700;
    color: #e5e7eb;
}

.lars-spectrum-tips ul {
    margin: 6px 0 0 14px;
    padding: 0;
    color: #cbd5e1;
}


.lars-spectrum-tips li {
    margin-bottom: 4px;
}

.lars-tone-meta h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #f8fafc;
}

.lars-tone-meta p {
    margin: 4px 0 0;
    font-size: 0.95rem;
    color: #e2e8ff;
}

.lars-tone-status {
    font-size: 0.9rem;
    color: #38bdf8;
}
.lars-tone-latency {
    font-size: 0.8rem;
    color: #e2e8f0;
    margin-left: 10px;
}

.lars-tone-transport-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}
.lars-tone-record-timer {
    min-width: 110px;
    font-size: 0.95rem;
    color: #38bdf8;
    align-self: center;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.1);
}

.lars-tone-btn {
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lars-tone-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.lars-tone-btn.is-hidden {
    display: none !important;
}

.lars-tone-download {
    background: #22c55e;
    color: #0b172a;
    font-weight: 700;
}
.lars-tone-download:hover {
    background: #16a34a;
}

.lars-tone-btn:not(:disabled):hover {
    background: #2563eb;
}

.lars-tone-btn.lars-recording {
    background: #dc2626;
}
.lars-tone-btn.lars-ab-toggle {
    background: #0f766e;
    color: #e2f9f6;
}
.lars-tone-btn.lars-ab-toggle.is-active {
    background: #22d3ee;
    color: #0b1b2b;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
}

.lars-tone-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.lars-tone-progress input[type="range"] {
    flex: 1;
    height: 10px;
    background: rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    appearance: none;
    outline: none;
}

.lars-tone-progress input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #38bdf8;
    border: 2px solid rgba(15, 23, 42, 0.8);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
}

.lars-tone-progress input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #38bdf8;
    border: 2px solid rgba(15, 23, 42, 0.8);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
}

.lars-tone-progress input[type="range"]::-ms-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #38bdf8;
    border: 2px solid rgba(15, 23, 42, 0.8);
    cursor: pointer;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
}

.lars-tone-volume-inline {
    margin-bottom: 20px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 10px 16px;
}

.lars-tone-volume-inline label {
    width: 100%;
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    gap: 6px;
}

.lars-tone-volume-inline .lars-volume-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.lars-tone-volume-inline .lars-volume-label::before {
    content: '\1F50A';
    font-size: 1rem;
    line-height: 1;
}

.lars-tone-volume-inline input[type="range"] {
    width: 100%;
}

.lars-tone-mixer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.lars-tone-channel[data-channel="track"] {
    grid-column: span 2;
}
@media (max-width: 960px) {
    .lars-tone-channel[data-channel="track"] {
        grid-column: span 1;
    }
}

.lars-tone-channel {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lars-mic-channel {
    border-color: rgba(248, 250, 252, 0.2);
    background: rgba(30, 41, 59, 0.65);
    text-align: center;
}

.lars-mic-hint {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 6px 0 12px;
    text-align: left;
}

.lars-mic-channel .lars-tone-btn {
    margin-bottom: 8px;
    width: 100%;
}

.lars-mic-status {
    color: #f97316;
    font-weight: 600;
}

.lars-mic-channel.armed .lars-mic-status {
    color: #4ade80;
}

.lars-tone-channel-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.lars-tone-channel label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.lars-tone-channel label span {
    display: block;
    margin-bottom: 4px;
}

.lars-tone-master-actions {
      margin-top: 16px;
      display: flex;
      justify-content: flex-end;
  }
.lars-tone-track-footer {
      margin-top: 12px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
  }

.lars-tone-eq-block {
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.lars-tone-eq-title {
    margin: 0 0 8px;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.lars-tone-eq {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px 12px;
}

.lars-tone-shaping-block {
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.lars-tone-shaping-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.lars-shape-item span {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.lars-shape-item {
    text-align: center;
}

.lars-mic-channel label {
    text-align: left;
}

.lars-tone-channel input[type="range"] {
    width: 100%;
}

.lars-tone-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.lars-pan-visual {
    display: none;
}

.lars-pan-indicator {
    display: none;
}

.lars-tone-links {
    text-align: center;
    margin-bottom: 10px;
}

.lars-tone-platform-link {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.15);
    color: #e0f2fe;
    text-decoration: none;
    transition: background 0.2s ease;
}

.lars-tone-platform-link:hover {
    background: rgba(56, 189, 248, 0.3);
}

.lars-tone-fallback {
    margin-top: 15px;
    text-align: center;
}

.lars-tone-meter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 8px 0 6px;
    font-size: 0.95rem;
}

.lars-meter-label {
    display: none;
}

.lars-channel-meter,
.lars-master-meter {
    display: none;
}

.lars-tone-channel .lars-channel-value {
    display: none;
}

.lars-peak-hold-control {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lars-peak-hold-control select {
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.9rem;
}
.lars-tone-spectrum-wrap {
    margin-top: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    padding: 8px;
}

.lars-tone-spectrum {
    width: 100%;
    height: 120px;
    display: block;
    background: linear-gradient(to bottom, rgba(255,255,255,0.08), rgba(15,23,42,0.9));
    border-radius: 8px;
}

.lars-tone-analysis-wrapper {
    position: relative;
}
.lars-loudness-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 70px;
    width: 100%;
    pointer-events: none;
}
.lars-spectrum-flex {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.lars-tone-spectrum {
    flex: 1;
}
.lars-correlation-mini {
    width: 120px;
    min-width: 110px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    color: #e2e8f0;
}
.lars-correlation-meter {
    width: 100%;
    height: 8px;
    background: rgba(51, 65, 85, 0.7);
    border-radius: 6px;
    overflow: hidden;
}
.lars-correlation-bar {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    transform: scaleX(0.5);
    background: #10b981;
}
