* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background-image: 
        radial-gradient(circle, rgba(128, 128, 128, 0.4) 1px, transparent 1px),
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('assets/bg.webp');
    background-size: 20px 20px, cover, cover;
    background-position: top;
    background-repeat: repeat, no-repeat, no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.player-container {
    background: linear-gradient(180deg, #b8b8b8 0%, #8a8a8a 100%);
    border: 2px solid #5a5a5a;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 650px;
}

.title-bar {
    background: linear-gradient(180deg, #e0e0e0 0%, #a8a8a8 100%);
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.title-bar .icon {
    background: #f0b020;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.title-bar .title {
    flex: 1;
    font-weight: bold;
    color: #1a1a1a;
    font-size: 13px;
}

.title-bar .controls {
    display: flex;
    gap: 5px;
}

.title-bar button {
    width: 24px;
    height: 24px;
    border: none;
    background: #c0c0c0;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background 0.2s;
}

.title-bar button:hover {
    background: #d0d0d0;
}

.display {
    background: #000;
    padding: 20px;
    border: 3px solid #4a4a4a;
    border-radius: 5px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.8);
}

.display-text {
    font-family: 'Courier New', 'Lucida Console', monospace;
    color: #00ff00;
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff00;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.display-time {
    font-family: 'Courier New', 'Lucida Console', monospace;
    color: #00ff00;
    font-size: 48px;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff00;
    letter-spacing: 4px;
}

.display-listeners {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #00ff00;
    font-size: 18px;
    text-shadow: 0 0 8px #00ff00;
}

.play-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 25px solid #00ff00;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    filter: drop-shadow(0 0 8px #00ff00);
    opacity: 0;
    transition: opacity 0.3s;
}

.play-indicator.active {
    opacity: 1;
}

.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.tab {
    background: #a0a0a0;
    border: 1px solid #707070;
    padding: 8px 20px;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-size: 13px;
    color: #2a2a2a;
    font-weight: 600;
    transition: background 0.2s;
}

.tab.active {
    background: #d0d0d0;
    border-bottom-color: #d0d0d0;
}

.tab:hover:not(.active) {
    background: #b0b0b0;
}

.control-panel {
    background: #d0d0d0;
    border: 2px solid #a0a0a0;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
}

.controls-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.button-group {
    display: flex;
    gap: 10px;
}

.control-btn {
    width: 70px;
    height: 70px;
    border: 3px solid #5a5a5a;
    border-radius: 8px;
    cursor: pointer;
    font-size: 32px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.control-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

#recordBtn {
    background: linear-gradient(180deg, #ff4444 0%, #cc0000 100%);
    color: white;
}

#pauseBtn {
    background: linear-gradient(180deg, #f0f0f0 0%, #c0c0c0 100%);
    color: #333;
}

#playBtn {
    background: linear-gradient(180deg, #44ff44 0%, #00cc00 100%);
    color: white;
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vu-meters {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vu-meter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vu-label {
    font-weight: bold;
    color: #2a2a2a;
    width: 15px;
    font-size: 13px;
}

.vu-bar {
    flex: 1;
    height: 28px;
    background: #1a1a1a;
    border: 2px solid #5a5a5a;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.vu-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00 0%, #88ff00 50%, #ffff00 80%, #ff0000 100%);
    width: 0%;
    transition: width 0.1s;
}

.vu-scale {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #2a2a2a;
    margin-top: 5px;
    padding: 0 25px;
}

.volume-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #a0a0a0;
}

.volume-label {
    font-weight: bold;
    color: #2a2a2a;
    font-size: 12px;
}

input[type="range"] {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: #5a5a5a;
    outline: none;
    -webkit-appearance: none;
    border: 1px solid #3a3a3a;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: linear-gradient(180deg, #e0e0e0 0%, #a0a0a0 100%);
    cursor: pointer;
    border: 2px solid #5a5a5a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: linear-gradient(180deg, #e0e0e0 0%, #a0a0a0 100%);
    cursor: pointer;
    border: 2px solid #5a5a5a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.volume-value {
    font-weight: bold;
    color: #2a2a2a;
    min-width: 45px;
    font-size: 12px;
}

.bottom-controls {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.bottom-btn {
    background: linear-gradient(180deg, #d0d0d0 0%, #a0a0a0 100%);
    border: 2px solid #7a7a7a;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #2a2a2a;
    font-size: 12px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.bottom-btn:hover {
    background: linear-gradient(180deg, #e0e0e0 0%, #b0b0b0 100%);
}

.bottom-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.info-panel {
    background: #f5f5f5;
    border: 2px solid #a0a0a0;
    border-radius: 5px;
    padding: 15px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    max-height: 180px;
    overflow-y: auto;
}

.info-row {
    display: flex;
    margin-bottom: 6px;
    color: #2a2a2a;
}

.info-label {
    font-weight: bold;
    min-width: 130px;
}

.info-value {
    color: #0066cc;
}

.mixer-label {
    font-size: 11px;
    text-align: center;
    color: #2a2a2a;
    margin-top: 5px;
    font-weight: 600;
}
