#karaoke-system {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.player-mode-indicator {
    text-align: center;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
}

.player-mode-indicator.primary {
    background: #4CAF50;
    color: white;
    border: 2px solid #45a049;
}

.player-mode-indicator.secondary {
    background: #2196F3;
    color: white;
    border: 2px solid #1976D2;
}

.karaoke-header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 2px solid #333;
    margin-bottom: 30px;
}

.karaoke-header h2 {
    margin: 0;
    font-size: 2.5em;
    color: #333;
}

.karaoke-name-input {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.karaoke-name-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1em;
}

#user-name {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.karaoke-search {
    position: relative;
    margin-bottom: 30px;
}

#song-search {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #333;
    border-radius: 8px;
}

#search-results {
    position: absolute;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border: 2px solid #333;
    border-top: none;
    z-index: 100;
    display: none;
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-result-item .song-details {
    flex: 1;
}

.search-result-item:hover {
    background: #f9f9f9;
}

.search-result-item strong {
    font-size: 1.1em;
    color: #333;
}

.format-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

.format-badge.video {
    background: #4CAF50;
    color: white;
}

.format-badge.cdg {
    background: #ff9800;
    color: white;
}

.search-result-item .artist,
.search-result-item .album {
    color: #666;
    font-size: 0.9em;
}

.add-to-queue-btn {
    padding: 8px 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.add-to-queue-btn:hover {
    background: #45a049;
}

.add-to-queue-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #666;
}

.karaoke-queue {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.karaoke-queue h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: #333;
}

#queue-list {
    max-height: 400px;
    overflow-y: auto;
}

.queue-item {
    background: white;
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid #2196F3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.queue-item .position {
    font-weight: bold;
    color: #2196F3;
    margin-right: 10px;
}

.queue-item .user-name {
    color: #666;
    font-style: italic;
    margin-left: 10px;
}

.delete-queue-btn {
    padding: 6px 12px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.delete-queue-btn:hover {
    background: #da190b;
}

.empty-queue {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
}

.karaoke-player {
    background: #2c3e50;
    padding: 30px;
    border-radius: 8px;
    color: white;
}

.karaoke-player h3 {
    margin-top: 0;
    font-size: 1.8em;
    text-align: center;
}

#player-container {
    text-align: center;
    margin: 20px 0;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 8px;
    padding: 20px;
}

#cdg-player-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#cdg-canvas {
    border: 2px solid #34495e;
    border-radius: 4px;
    background: #000;
    width: 100%;
    max-width: 600px;
    height: auto;
    image-rendering: pixelated;
}

#cdg-audio {
    width: 100%;
    max-width: 600px;
}

#no-song-message {
    font-size: 1.2em;
    color: #ecf0f1;
}

#no-song-message .song-info {
    font-size: 1.5em;
    margin: 20px 0;
}

#no-song-message .user-info {
    font-size: 1.1em;
    color: #bdc3c7;
    margin: 10px 0;
}

#no-song-message .format-notice {
    color: #f39c12;
    margin: 20px 0;
    font-size: 0.9em;
}

#no-song-message .button {
    margin-top: 15px;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

#no-song-message .button:hover {
    background: #2980b9;
}

.player-controls {
    text-align: center;
    margin-top: 20px;
}

#skip-btn {
    padding: 12px 30px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
}

#skip-btn:hover {
    background: #c0392b;
}

/* Scrollbar styling */
#search-results::-webkit-scrollbar,
#queue-list::-webkit-scrollbar {
    width: 8px;
}

#search-results::-webkit-scrollbar-track,
#queue-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#search-results::-webkit-scrollbar-thumb,
#queue-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#search-results::-webkit-scrollbar-thumb:hover,
#queue-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}