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

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    background: #1a1a1a;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #2a2a2a;
}

header h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-bar {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #262626;
    border-radius: 12px;
    border: 1px solid #333;
    text-align: center;
}

.status-text {
    font-size: 1rem;
    color: #cccccc;
    font-weight: 500;
    transition: color 0.3s ease;
}

.status-text.ready {
    color: #4ade80;
}

.status-text.error {
    color: #f87171;
}

.status-text.loading {
    color: #fbbf24;
}

.player-container {
    margin-bottom: 1.5rem;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.play-pause-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-pause-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.play-pause-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.play-pause-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.volume-label {
    font-size: 1.2rem;
}

.volume-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #333;
    outline: none;
    -webkit-appearance: none;
    transition: background 0.3s ease;
}

.volume-slider:hover {
    background: #444;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: #7c85ef;
    transform: scale(1.1);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.volume-value {
    font-size: 0.9rem;
    color: #ccc;
    min-width: 40px;
    text-align: center;
}

.quality-box {
    background: #262626;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #333;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.quality-box:hover {
    border-color: #444;
}

.quality-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quality-label {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: 500;
}

.quality-dots {
    display: flex;
    gap: 4px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
    transition: all 0.3s ease;
}

.dot.active {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.footer-info {
    text-align: center;
}

.time-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 0.8rem;
}

.powered-by {
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #333;
    padding-top: 0.8rem;
    transition: color 0.3s ease;
}

.powered-by:hover {
    color: #888;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .player-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .volume-container {
        width: 100%;
    }

    .time-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .quality-indicator {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
}

/* Loading animation */
.status-text.loading::after {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    margin-left: 8px;
    animation: loading 1.4s infinite;
}

@keyframes loading {
    0%,
    80%,
    100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}
