.add-btn,
.btn {
    transition: 
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.add-btn:hover,
.btn:hover {
    background-color: #00f0ff;
    color: #000;
    box-shadow:
        0 0 6px rgba(0, 240, 255, 0.6),
        0 0 12px rgba(0, 240, 255, 0.3);
}

.add-btn:active,
.btn:active {
    transform: scale(0.96);
    box-shadow:
        0 0 8px rgba(0, 240, 255, 0.8),
        0 0 16px rgba(0, 240, 255, 0.45);
}

:root {
    --cp-yellow: #fcee0a;
    --cp-pink: #ff003c;
    --cp-cyan: #00f0ff;
    --cp-dark: #080808;
    --cp-panel: #121212;
    --cp-panel-border: #2a2a2a;
    --text-main: #e0e0e0;
    --text-muted: #888;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--cp-dark);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

h1, h2, h3, h4, th {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
    color: #00f0ff;
}

header {
    position: sticky;
    z-index: 1000;
    top: 0;
    background-color: black;
    padding: 10px 15px;
}

.header-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
}

.header-title {
    color: cyan;
    margin: 5px 0 0 0;
    font-size: 24px;
    text-align: center;
}

.now-playing-banner {
    border: 2px solid #ff003c;
    padding: 8px 12px;
    background-color: cyan;
    color: #ff003c;
    animation: glow-cycle 8s linear infinite;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    box-sizing: border-box;
    text-align: center;
}

.cint, hr {
    border: none;
    height: 4px;
    background-color: #ff003c;
}
.cint {
    width: calc(100% - 30px);
    max-width: 1380px;
    margin: 20px auto;
}

.enter {
    background-color: black;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
    max-width: 1400px;
    margin: 10px auto 0 auto;
    box-sizing: border-box;
}

.player-section {
    width: 100%;
    border: 3px solid #ff003c;
    background: #000;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.player-container {
    position: relative;
    width: 100%; 
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

@keyframes glow-cycle {
    0%, 100% { border-color: #ff003c; box-shadow: 0 0 8px #ff003c, 0 0 11px #ff003c; }
    33% { border-color: #00ffff; box-shadow: 0 0 8px #00ffff, 0 0 11px #00ffff; }
    66% { border-color: #ffff00; box-shadow: 0 0 8px #ffff00, 0 0 11px #ffff00; }
}

.control-bar {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    background: #080808; 
    border-top: 2px solid #ff003c;
    color: white; 
}

.song-info {
    flex: 1;
    min-width: 0;
    margin-right: 15px;
}
.song-info h2 { 
    margin: 0 0 4px 0; 
    font-size: 18px; 
    color: #00f0ff;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.4);
}
.song-info p { 
    margin: 0; 
    color: #888; 
    font-size: 13px; 
    text-transform: uppercase;
    font-weight: bold;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
}

.controls-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.con { 
    background-color: #080808; 
    border: 3px solid #ff003c; 
    width: 100%; 
    padding: 15px 10px; 
    box-sizing: border-box;
}

.song-list, .queue-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 5px;
    max-height: 350px;
}

.queue-card, .song-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #080808;
    border: 1px solid cyan;
    transition: all 0.15s ease;
    height: 80px; 
    box-sizing: border-box;
    padding-right: 5px;
}
.song-card { border: 1px solid #ff003c; }

.queue-info, .song-info-card { 
    flex: 1; 
    min-width: 0; 
    overflow: hidden;
}

.queue-info h3, .song-info-card h3,
.queue-info p, .song-info-card p { 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-info h3, .song-info-card h3 { font-size: 14px; margin: 0 0 2px; text-transform: uppercase; font-weight: bold; }
.queue-info p, .song-info-card p { font-size: 11px; margin: 0; text-transform: uppercase; font-weight: bold; }

.queue-info h3, .queue-info p { color: #ff003c; }
.song-info-card h3, .song-info-card p { color: yellow; }

.queue-card img, .song-card img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border: 1px solid cyan;
    flex-shrink: 0; 
    margin-left: 5px;
}

.add-btn, .btn {
    background-color: #ff003c;
    color: #000;
    border: none;
    padding: 10px 16px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    flex-shrink: 0; 
    font-size: 13px;
}
.controls-right .add-btn { padding: 10px 14px; }

input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--cp-panel-border);
    border-bottom: 2px solid var(--cp-cyan);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    box-sizing: border-box;
    color: white;
}
input:focus { outline: none; border-bottom: 2px solid var(--cp-pink); }

.enter2 { background-color: yellow; color: black; margin: 0; padding: 5px; font-size: 16px; }

.queue { 
    margin: 20px 15px; 
    border: 3px solid cyan; 
    padding: 10px; 
    background-color: yellow; 
    color: black; 
    width: calc(100% - 30px); 
    max-width: 1370px;
    box-sizing: border-box;
}

/* Download Modal Styles */
.download-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.download-modal {
    background: #121212;
    border: 2px solid #ff003c;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    color: #e0e0e0;
    font-family: 'Rajdhani', sans-serif;
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.3);
}

.download-modal-title {
    font-family: 'Orbitron', sans-serif;
    color: #00f0ff;
    margin: 0 0 20px 0;
    font-size: 24px;
    text-transform: uppercase;
}

.download-track-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #080808;
    border: 1px solid #2a2a2a;
}

.download-track-info p:first-child {
    color: #00f0ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    margin-bottom: 5px;
}

.download-track-info p:last-child {
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
}

.download-format-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.download-format-btn {
    flex: 1;
    padding: 15px;
    background: #ff003c;
    color: #000;
    border: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.download-format-btn:hover {
    transform: translateY(-2px);
}

.mp3-btn:hover {
    background: #00f0ff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.mp4-btn:hover {
    background: #fcee0a;
    box-shadow: 0 0 15px rgba(252, 238, 10, 0.5);
}

.format-icon {
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
}

.quality-select {
    margin-bottom: 20px;
    display: none;
}

.quality-select label {
    color: #00f0ff;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    display: block;
    margin-bottom: 8px;
}

.quality-select select {
    width: 100%;
    padding: 12px;
    background: #080808;
    border: 1px solid #ff003c;
    color: #e0e0e0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    cursor: pointer;
}

.quality-select select option {
    background: #121212;
    color: #e0e0e0;
}

.download-action-buttons {
    margin-bottom: 20px;
    display: none;
}

.download-progress {
    margin-bottom: 20px;
    display: none;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #2a2a2a;
    margin-bottom: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: #00f0ff;
    transition: width 0.3s;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.progress-text {
    text-align: center;
    color: #888;
    font-size: 13px;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
}

.download-message {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 0;
    text-align: center;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    display: none;
}

.download-message.success {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid #00ff00;
    display: block;
}

.download-message.error {
    background: rgba(255, 0, 0, 0.1);
    color: #ff003c;
    border: 1px solid #ff003c;
    display: block;
}

.close-modal-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #888;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.close-modal-btn:hover {
    border-color: #ff003c;
    color: #ff003c;
}

#downloadTrackBtn {
    background-color: #ff003c;
    color: #000;
}

#downloadTrackBtn:hover {
    background-color: #00f0ff;
    color: #000;
}

@media (min-width: 992px) {
    .header-container { flex-direction: row; align-items: center; justify-content: space-between; }
    .header-title { text-align: left; min-width: 250px; margin: 0; }
    .now-playing-banner { text-align: left; flex: 1; }
    
    .enter { flex-direction: row; align-items: stretch; }
    .player-section { flex: 1; height: 510px; }
    .player-container { flex: 1; aspect-ratio: auto; }
    .control-bar { padding: 20px 25px; }
    
    .song-info h2 { font-size: 24px; }
    .song-info p { font-size: 15px; }
    
    .con { width: 420px; height: 510px; display: flex; flex-direction: column;}
    .song-list { flex: 1; max-height: none; }
    
    .queue { margin: 20px auto; }
    .queue-card, .song-card { height: 90px; gap: 15px; }
    .queue-card img, .song-card img { width: 100px; height: 70px; margin-left: 10px; }
    .queue-info h3, .song-info-card h3 { font-size: 15px; }
    .queue-info p, .song-info-card p { font-size: 12px; }
  }
#playerA, #playerB {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#playerA {
    z-index: 2;
}

#playerB {
    z-index: 1;
}
