/* Player Widget Styles */
.player-widget {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.player-title {
    font-size: 16px;
    color: var(--accent-amber);
    font-weight: 700;
}

#player-status {
    font-size: 12px;
    color: var(--text-muted);
}

/* Controls */
.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.player-controls button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: inherit;
}

.player-controls button:hover:not(:disabled) {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.player-controls button:disabled {
    opacity: 0.3;
    cursor: default;
}

.player-controls button.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

.volume-control label {
    font-size: 12px;
    color: var(--text-muted);
}

.volume-control input[type="range"] {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 2px;
    outline: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
}

/* Position info */
.player-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
    font-size: 12px;
}

.info-item {
    display: flex;
    gap: 6px;
    align-items: center;
}

.info-item .label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
}

.info-item .value {
    color: var(--accent-amber);
    font-weight: 700;
    min-width: 24px;
    text-align: right;
}

/* Channel bars (spectrum) */
#channels-view {
    display: flex;
    gap: 2px;
    height: 110px;
    align-items: flex-end;
    margin-bottom: 16px;
    padding: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    border: 1px solid var(--border);
    overflow-x: auto;
}

.channel-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 16px;
}

.channel-bar .meter {
    width: 100%;
    max-width: 32px;
    height: 0;
    border-radius: 2px 2px 0 0;
    transition: height 0.05s linear;
    background: var(--accent-blue);
}

.channel-bar .ch-note {
    font-size: 9px;
    height: 14px;
    color: var(--text-muted);
    margin-bottom: 2px;
    white-space: nowrap;
}

.channel-bar .ch-label {
    font-size: 8px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Pattern display */
.pattern-display {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    height: 240px;
    position: relative;
    overflow: hidden;
}

.pattern-display canvas {
    width: 100%;
    height: 100%;
}
