/* Karaoke Station - Cyberpunk Style with Idle Animations */

@font-face {
    font-family: 'KaraokeFont';
    src: url('/content/font/font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Galter';
    src: url('/content/font/galter.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 18px; /* bigger base font for everything */
}

body {
    font-family: 'Galter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
    cursor: default;
}

/* Decorative titles use KaraokeFont */
/* Titles use the funky KaraokeFont */
h1, h2, h3,
.menu-title,
.login-title,
.queue-title,
.modal-content > h2,
.admin-modal h2,
.admin-tab-content h3 {
    font-family: 'KaraokeFont', 'Galter', system-ui, sans-serif;
    letter-spacing: 0.08em;
}



.hidden {
    display: none !important;
}

/* Crazy Mode Button */
.crazy-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: rgba(138, 61, 212, 0.8);
    border: 2px solid #f73;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(255, 119, 51, 0.5);
    font-family: 'Galter', Arial, sans-serif;
}

/* Hide when parent idle screen is hidden */
#idle-screen.hidden .crazy-button {
    display: none;
}

.crazy-button:hover {
    background: rgba(138, 61, 212, 1);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 119, 51, 0.8);
}

/* Debug Button */
/* Debug button - HIDDEN
.debug-button {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 999;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background: rgba(0, 150, 136, 0.7);
    border: 2px solid #00bcd4;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.4);
    font-family: 'KaraokeFont', Arial, sans-serif;
}

.debug-button:hover {
    background: rgba(0, 150, 136, 1);
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 188, 212, 0.6);
}
*/

/* Screen Containers */
.screen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Idle Screen */
#idle-screen {
    background: url('/content/wallpaper/splash.png') center center no-repeat;
    background-size: cover;
    cursor: pointer;
}

/* Menu Screen - start at top */
#menu-screen {
    align-items: flex-start;
    overflow-y: auto;
}

.idle-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.idle-content > * {
    pointer-events: none;
}

/* Start text - HIDDEN (removed from UI)
.start-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 20, 147, 0.8), 0 0 40px rgba(255, 20, 147, 0.6);
    z-index: 10;
    animation: pulse-text 1.5s ease-in-out infinite;
    font-family: 'Galter', Arial, sans-serif;
}

@keyframes pulse-text {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.05);
    }
}
*/

/* Splash images */
.splash-display {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#splash2-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform-origin: center center;
    animation: splash2Zoom 1.5s ease-in-out infinite;
}

@keyframes splash2Zoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

#splash5-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 3;
    opacity: 0;
    transform-origin: center center;
    pointer-events: none;
}

#splash5-image.heart-pop {
    opacity: 1;
    animation: heartVibrate 0.55s ease-out;
}

@keyframes heartVibrate {
    0%   { transform: translate(0, 0) scale(1.0); }
    20%  { transform: translate(-3px, 2px) scale(1.04); }
    40%  { transform: translate(3px, -2px) scale(1.05); }
    60%  { transform: translate(-2px, 1px) scale(1.03); }
    80%  { transform: translate(2px, -1px) scale(1.04); }
    100% { transform: translate(0, 0) scale(1.0); }
}

/* Particle Canvas */
.particle-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* CRAZY MODE */
body.crazy-mode #splash2-image {
    animation: splash2CrazyZoom 0.4s ease-in-out infinite;
}

@keyframes splash2CrazyZoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

body.crazy-mode .start-text {
    animation: pulse-text-crazy 0.3s ease-in-out infinite;
}

@keyframes pulse-text-crazy {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1) rotate(2deg);
    }
}

/* Menu Screen */
#menu-screen {
    background: linear-gradient(135deg, #1a0033 0%, #330033 50%, #0a0a2e 100%);
    overflow-y: auto;
}

.menu-content {
    width: 90%;
    max-width: 1400px;
    padding: 40px 20px;
}

.menu-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #ff1493, #00ffff, #ff1493);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
    font-family: 'KaraokeFont', 'Galter', Arial, sans-serif;
    text-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.menu-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid rgba(255, 20, 147, 0.7);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    font-family: 'Galter', Arial, sans-serif; /* was KaraokeFont */
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.3);
}

.control-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(255, 20, 147, 0.5);
}


.add-btn {
    background: rgba(255, 20, 147, 0.2);
    color: #ff1493;
}

.add-btn:hover {
    background: rgba(255, 20, 147, 0.4);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.6);
    transform: scale(1.05);
}

.category-btn {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border-color: #ffa500;
}

.category-btn:hover {
    background: rgba(255, 165, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.6);
    transform: scale(1.05);
}

.batch-btn {
    background: rgba(138, 43, 226, 0.2);
    color: #8a2be2;
    border-color: #8a2be2;
}

.batch-btn:hover {
    background: rgba(138, 43, 226, 0.4);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
    transform: scale(1.05);
}

.admin-btn {
    background: rgba(255, 140, 0, 0.2);
    color: #ff8c00;
    border-color: #ff8c00;
}

.admin-btn:hover {
    background: rgba(255, 140, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.6);
    transform: scale(1.05);
}

.back-btn {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    border-color: #00ffff;
}

.back-btn:hover {
    background: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
    transform: scale(1.05);
}

/* Categories Tabs */
.categories-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding: 10px 0;
}

.category-tab {
    padding: 12px 24px;
    background: rgba(138, 61, 212, 0.2);
    border: 2px solid #8a3dd4;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-weight: bold;
}

.category-tab:hover {
    background: rgba(138, 61, 212, 0.4);
    box-shadow: 0 0 15px rgba(138, 61, 212, 0.6);
}

.category-tab.active {
    background: rgba(255, 20, 147, 0.4);
    border-color: #ff1493;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.8);
}

.category-tab.drag-over {
    transform: scale(1.15);
    background: rgba(0, 255, 255, 0.4);
    border-color: #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.9);
    z-index: 10;
}

/* Queue Display */
.queue-display {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #ff1493;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.queue-display h3 {
    color: #ff1493;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.queue-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    cursor: pointer;
}

.toggle-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.queue-btn-clear {
    padding: 8px 16px;
    background: rgba(255, 0, 0, 0.3);
    border: 2px solid #ff0000;
    border-radius: 5px;
    color: #ff0000;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.queue-btn-clear:hover {
    background: rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}

.queue-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.queue-item {
    background: rgba(255, 20, 147, 0.1);
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 3px solid #ff1493;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.queue-item-name {
    flex: 1;
    color: #fff;
}

.queue-item-remove {
    background: rgba(255, 0, 0, 0.3);
    border: 1px solid #ff0000;
    color: #ff0000;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.queue-item-remove:hover {
    background: rgba(255, 0, 0, 0.5);
    transform: scale(1.1);
}

/* Song List */
/* Song List – simple vertical list */

.song-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* each song is a row */
.song-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: rgba(10, 0, 30, 0.85);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
    transform: none;
    cursor: grab;
    font-family: 'Galter', Arial, sans-serif;
    font-size: 0.92rem;
}
.song-meta {
    font-size: 0.8rem;
    opacity: 0.7;
}
/* keep drag visual but not too “cardy” */
.song-item.dragging {
    opacity: 0.6;
    transform: scale(0.99);
}

.song-item:hover {
    background: rgba(40, 0, 70, 0.95);
    border-color: rgba(255, 105, 180, 0.6);
    box-shadow: 0 0 8px rgba(255, 105, 180, 0.4);
}

/* song title on the left, truncated if too long */
.song-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f7d9ff;
    flex: 1;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    
}

/* buttons compact on the right */
.song-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.song-btn {
    min-width: auto;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.play-btn {
    background: rgba(0, 255, 0, 0.3);
    color: #0f0;
    border: 1px solid #0f0;
}

.play-btn:hover {
    background: rgba(0, 255, 0, 0.5);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.queue-btn {
    background: rgba(255, 165, 0, 0.3);
    color: #ffa500;
    border: 1px solid #ffa500;
}

.queue-btn:hover {
    background: rgba(255, 165, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.8);
}

.remove-category-btn {
    background: rgba(255, 20, 147, 0.2);
    color: #ff1493;
    border: 1px solid #ff1493;
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: bold;
    min-width: auto;
    width: 40px;
}

.remove-category-btn:hover {
    background: rgba(255, 20, 147, 0.4);
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.8);
    transform: scale(1.1);
}

.delete-btn {
    background: rgba(255, 0, 0, 0.3);
    color: #f00;
    border: 1px solid #f00;
}

.delete-btn:hover {
    background: rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: linear-gradient(135deg, #1a0033 0%, #330033 100%);
    border: 3px solid #ff1493;
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 50px rgba(255, 20, 147, 0.8);
}

.modal-content h2 {
    color: #ff1493;
    margin-bottom: 20px;
    font-size: 2rem;
    text-align: center;
}

.modal-content p {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content input {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #8a3dd4;
    border-radius: 8px;
    color: #fff;
    margin-bottom: 20px;
    font-family: 'Galter', Arial, sans-serif;

}

.modal-content input:focus {
    outline: none;
    border-color: #ff1493;
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
}

.modal-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #fff;
    cursor: pointer;
}

.modal-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.modal-buttons {
    display: flex;
    gap: 15px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Galter', Arial, sans-serif;

}

.confirm-btn {
    background: rgba(0, 255, 0, 0.2);
    color: #0f0;
    border-color: #0f0;
}

.confirm-btn:hover {
    background: rgba(0, 255, 0, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.8);
}

.cancel-btn {
    background: rgba(255, 0, 0, 0.2);
    color: #f00;
    border-color: #f00;
}

.cancel-btn:hover {
    background: rgba(255, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}

/* Category Manager Side Panel */
.category-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: linear-gradient(135deg, #1a0a1a 0%, #2a0a2a 100%);
    border-left: 3px solid #ff1493;
    box-shadow: -10px 0 40px rgba(255, 20, 147, 0.6);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
}

.category-panel.show {
    right: 0;
}

.category-manager {
    padding: 30px 20px;
}

.category-manager h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #ff1493;
    text-shadow: 0 0 15px rgba(255, 20, 147, 0.8);
    font-size: 1.8em;
}

.close-panel-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: 2px solid #ff1493;
    color: #ff1493;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
}

.close-panel-btn:hover {
    background: #ff1493;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 20, 147, 1);
    transform: rotate(90deg);
}

.category-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.category-input-row input {
    flex: 1;
    padding: 12px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #00ffff;
    color: #fff;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.category-input-row input:focus {
    outline: none;
    border-color: #ff1493;
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.5);
    background: rgba(0, 0, 0, 0.8);
}

.category-input-row .confirm-btn {
    padding: 12px 20px;
    white-space: nowrap;
}

.categories-manager-list {
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 5px;
}

/* Custom scrollbar for category list */
.categories-manager-list::-webkit-scrollbar {
    width: 8px;
}

.categories-manager-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.categories-manager-list::-webkit-scrollbar-thumb {
    background: #ff1493;
    border-radius: 4px;
}

.categories-manager-list::-webkit-scrollbar-thumb:hover {
    background: #ff69b4;
}

.category-manager-item {
    background: rgba(138, 61, 212, 0.15);
    border: 2px solid #8a3dd4;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.category-manager-item:hover {
    background: rgba(138, 61, 212, 0.25);
    border-color: #ff1493;
    transform: translateX(-5px);
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.4);
}

.category-manager-name {
    color: #fff;
    font-weight: bold;
    flex: 1;
    font-size: 1.1em;
}

.category-manager-delete {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff0000;
    color: #ff0000;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.category-manager-delete:hover:not(:disabled) {
    background: rgba(255, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
    transform: scale(1.05);
}

.category-manager-delete:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}


.category-manager-delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.download-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.download-status.downloading {
    background: rgba(255, 165, 0, 0.2);
    border: 2px solid #ffa500;
    color: #ffa500;
}

.download-status.success {
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid #0f0;
    color: #0f0;
}

.download-status.error {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #f00;
    color: #f00;
}

/* Video Player Screen */
#player-screen {
    background: #000;
    flex-direction: column;
}

#video-player {
    max-width: 90%;
    max-height: 70vh;
    border: 3px solid #ff1493;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 20, 147, 0.8);
}

.player-controls {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.player-btn {
    padding: 15px 30px;
    font-size: 1.3rem;
    font-weight: bold;
    background: rgba(138, 61, 212, 0.3);
    border: 2px solid #8a3dd4;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Galter', Arial, sans-serif;

}

.player-btn:hover {
    background: rgba(138, 61, 212, 0.6);
    box-shadow: 0 0 20px rgba(138, 61, 212, 0.8);
    transform: scale(1.05);
}

.exit-player-btn {
    background: rgba(255, 20, 147, 0.3);
    border-color: #ff1493;
}

.exit-player-btn:hover {
    background: rgba(255, 20, 147, 0.6);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.8);
}

.now-playing {
    margin-top: 20px;
    font-size: 1.5rem;
    color: #00ffff;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* Loading Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ff1493;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.3rem;
}

/* ========== SEARCH BAR ========== */
.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 0 10px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #ff1493;
    border-radius: 25px;
    color: white;
    font-family: 'Galter', Arial, sans-serif;
    transition: all 0.3s;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #ff1493;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.4);
}

.clear-search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 20, 147, 0.2);
    border: 2px solid #ff1493;
    color: #ff1493;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search-btn:hover {
    background: rgba(255, 20, 147, 0.4);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.6);
}

.search-results {
    font-size: 0.95rem;
    color: #00ffff;
    min-width: 120px;
    text-align: right;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

/* ========== BATCH DOWNLOAD MODAL ========== */
.batch-modal {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.batch-input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.batch-input-section input {
    flex: 1;
    padding: 12px 20px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #8a2be2;
    border-radius: 8px;
    color: white;
    font-family: 'Galter', Arial, sans-serif;

}

.batch-input-section input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.batch-input-section input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

.add-to-batch-btn {
    background: rgba(138, 43, 226, 0.2);
    border-color: #8a2be2;
    color: #8a2be2;
    padding: 12px 25px;
    white-space: nowrap;
}

.add-to-batch-btn:hover {
    background: rgba(138, 43, 226, 0.4);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.6);
    transform: translateY(-2px);
}

.batch-queue-container {
    margin: 20px 0;
}

.batch-queue-container h3 {
    color: #8a2be2;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.batch-queue {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 10px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    min-height: 100px;
}

.batch-queue::-webkit-scrollbar {
    width: 8px;
}

.batch-queue::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.batch-queue::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.5);
    border-radius: 4px;
}

.batch-queue::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 43, 226, 0.7);
}

.empty-queue {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    padding: 30px;
    font-style: italic;
}

.batch-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.batch-item.pending {
    border-color: rgba(255, 255, 255, 0.2);
}

.batch-item.downloading {
    border-color: #8a2be2;
    background: rgba(138, 43, 226, 0.1);
    animation: pulse 1.5s ease-in-out infinite;
}

.batch-item.success {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.05);
}

.batch-item.failed {
    border-color: #ff0000;
    background: rgba(255, 0, 0, 0.05);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

.batch-status-icon {
    font-size: 1.3rem;
    min-width: 30px;
    text-align: center;
}

.batch-name {
    flex: 1;
    color: white;
    font-size: 0.95rem;
    word-break: break-word;
}

.batch-remove-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid rgba(255, 0, 0, 0.5);
    color: #ff0000;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.batch-remove-btn:hover {
    background: rgba(255, 0, 0, 0.4);
    transform: scale(1.1);
}

.batch-status {
    margin: 15px 0;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.batch-status.downloading {
    background: rgba(138, 43, 226, 0.2);
    color: #8a2be2;
    border: 2px solid rgba(138, 43, 226, 0.4);
}

.batch-status.success {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 2px solid rgba(0, 255, 0, 0.3);
}

.start-batch-btn {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
    color: #00ff00;
}

.start-batch-btn:hover {
    background: rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
}

.clear-batch-btn {
    background: rgba(255, 165, 0, 0.2);
    border-color: #ffa500;
    color: #ffa500;
}

.clear-batch-btn:hover {
    background: rgba(255, 165, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.6);
}

/* ========== EQ CONTROLS ========== */
.eq-panel {
    position: absolute;
    bottom: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid #ff1493;
    border-radius: 15px;
    padding: 20px;
    min-width: 300px;
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.4);
}

.eq-panel h4 {
    color: #ff1493;
    margin: 0 0 15px 0;
    text-align: center;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.6);
}

.eq-controls-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 15px;
}

.eq-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eq-control label {
    color: #00ffff;
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
}

.eq-control input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
}

.eq-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff1493;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.8);
    transition: all 0.2s;
}

.eq-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255, 20, 147, 1);
}

.eq-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff1493;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.8);
    transition: all 0.2s;
}

.eq-control input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255, 20, 147, 1);
}

.eq-value {
    color: white;
    font-size: 0.85rem;
    text-align: center;
    font-weight: bold;
    min-width: 50px;
}

.reset-eq-btn {
    width: 100%;
    padding: 10px;
    background: rgba(255, 20, 147, 0.2);
    border: 2px solid #ff1493;
    border-radius: 8px;
    color: #ff1493;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Galter', Arial, sans-serif;

}

.reset-eq-btn:hover {
    background: rgba(255, 20, 147, 0.4);
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.6);
    transform: translateY(-2px);
}

/* ========== MICROPHONE PANEL ========== */
.mic-panel {
    position: absolute;
    bottom: 80px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid #00ffff;
    border-radius: 15px;
    padding: 20px;
    min-width: 300px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}

.mic-panel h4 {
    color: #00ffff;
    margin: 0 0 15px 0;
    text-align: center;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.mic-controls-grid {
    display: grid;
    gap: 15px;
}

.mic-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mic-control label {
    color: #ff1493;
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 20, 147, 0.6);
}

.mic-control input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
}

.mic-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00ffff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    transition: all 0.2s;
}

.mic-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 1);
}

.mic-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00ffff;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    transition: all 0.2s;
}

.mic-control input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 1);
}

.effect-value {
    color: white;
    font-size: 0.85rem;
    text-align: center;
    font-weight: bold;
    min-width: 50px;
}

.mic-toggle-btn {
    width: 100%;
    padding: 15px;
    background: rgba(0, 255, 255, 0.3);
    border: 2px solid #00ffff;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.mic-toggle-btn:hover {
    background: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

.mic-toggle-btn.active {
    background: rgba(255, 0, 0, 0.5);
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    animation: pulse-mic 1.5s ease-in-out infinite;
}

.mic-toggle-btn.muted {
    background: rgba(128, 128, 128, 0.3);
    border-color: #808080;
    box-shadow: none;
    animation: none;
}

@keyframes pulse-mic {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.8); }
    50% { box-shadow: 0 0 40px rgba(255, 0, 0, 1); }
}

.tv-mic-toggle-btn {
    padding: 15px 30px;
    background: rgba(0, 255, 255, 0.3);
    border: 2px solid #00ffff;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px 0;
}

.tv-mic-toggle-btn:hover {
    background: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

.tv-mic-toggle-btn.active {
    background: rgba(255, 0, 0, 0.5);
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    animation: pulse-mic 1.5s ease-in-out infinite;
}

.tv-mic-toggle-btn.muted {
    background: rgba(128, 128, 128, 0.3);
    border-color: #808080;
    box-shadow: none;
    animation: none;
}

/* Phone Control Mic Effects */
.control-mic-effects {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.mic-effect-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mic-effect-item label {
    min-width: 70px;
    color: #00ffff;
    font-weight: bold;
}

.mic-effect-item input[type="range"] {
    flex: 1;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
}

.mic-effect-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00ffff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.mic-effect-item input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00ffff;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.mic-effect-item span {
    min-width: 60px;
    color: white;
    font-size: 0.9rem;
    text-align: right;
}

/* ========== ADMIN PANEL ========== */
.admin-modal {
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.admin-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 140, 0, 0.3);
    padding-bottom: 5px;
}

.admin-tab {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid transparent;
    border-radius: 8px 8px 0 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Galter', Arial, sans-serif;

}

.admin-tab:hover {
    background: rgba(255, 140, 0, 0.1);
    color: #ff8c00;
}

.admin-tab.active {
    background: rgba(255, 140, 0, 0.2);
    border-color: #ff8c00;
    color: #ff8c00;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
}

.admin-tab-content {
    display: none;
    overflow-y: auto;
    max-height: 60vh;
    padding: 10px;
}

.admin-tab-content.active {
    display: block;
}

.admin-tab-content h3 {
    color: #ff8c00;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.admin-tab-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

/* Bulk Download Tab */
#bulk-textarea {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 140, 0, 0.4);
    border-radius: 8px;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 15px;
}

#bulk-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#bulk-textarea:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
}

.bulk-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.bulk-actions button {
    flex: 1;
}

.bulk-progress {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.bulk-progress:empty {
    display: none;
}

.bulk-item {
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.bulk-item.downloading {
    background: rgba(255, 140, 0, 0.1);
    color: #ff8c00;
    border-left: 3px solid #ff8c00;
}

.bulk-item.success {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border-left: 3px solid #00ff00;
}

.bulk-item.failed {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    border-left: 3px solid #ff0000;
}

.bulk-summary {
    color: #00ff00;
    text-align: center;
    padding: 15px;
    margin-top: 10px;
    background: rgba(0, 255, 0, 0.1);
    border-radius: 8px;
}

/* Categories Tab */
.admin-categories-list {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.admin-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 8px;
    transition: all 0.3s;
}

.admin-category-item:hover {
    background: rgba(255, 140, 0, 0.1);
    border-color: #ff8c00;
}

.category-name {
    color: white;
    font-weight: bold;
    flex: 1;
}

.category-count {
    color: #ff8c00;
    font-size: 0.9rem;
    margin: 0 15px;
}

.delete-category-btn {
    padding: 8px 15px;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid rgba(255, 0, 0, 0.5);
    border-radius: 6px;
    color: #ff0000;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.delete-category-btn:hover {
    background: rgba(255, 0, 0, 0.4);
    transform: scale(1.05);
}

/* Delete Songs Tab */
.delete-search {
    margin-bottom: 15px;
}

.delete-search input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 140, 0, 0.4);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.delete-search input:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
}

.admin-delete-list {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.delete-song-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
}

.delete-song-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 140, 0, 0.4);
}

.delete-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ff8c00;
}

.delete-song-item .song-name {
    flex: 1;
    color: white;
    font-size: 0.95rem;
}

.song-size {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.delete-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.delete-actions button {
    flex: 1;
    min-width: 150px;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-title {
        font-size: 2.5rem;
    }
    
    .start-text {
        font-size: 2rem;
    }
    .song-list {
        width: 100%;
    }

    .control-btn {
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    /* Search responsive */
    .search-input {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .search-results {
        font-size: 0.85rem;
        min-width: 90px;
    }
    
    /* Batch modal responsive */
    .batch-modal {
        max-width: 95%;
        padding: 20px 15px;
    }
    
    .batch-input-section {
        flex-direction: column;
    }
    
    .add-to-batch-btn {
        width: 100%;
    }
    
    .batch-queue {
        max-height: 200px;
    }
    
    /* EQ responsive */
    .eq-panel {
        bottom: 60px;
        right: 10px;
        left: 10px;
        min-width: auto;
        padding: 15px;
    }
    
    .eq-panel h4 {
        font-size: 1rem;
    }
    
    .eq-controls-grid {
        gap: 10px;
    }
    
    /* Admin panel responsive */
    .admin-modal {
        max-width: 95%;
        padding: 20px 15px;
    }
    
    .admin-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .admin-tab {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
    
    #bulk-textarea {
        min-height: 200px;
        font-size: 0.85rem;
    }
    
    .bulk-actions {
        flex-direction: column;
    }
    
    .delete-actions {
        flex-direction: column;
    }
    
    .delete-actions button {
        min-width: 100%;}
}

/* ========== LOGIN SCREEN ========== */
#login-screen {
    background: linear-gradient(135deg, #0a0015 0%, #1a0033 50%, #2a0055 100%);
    overflow: hidden;
}

.login-content {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 20, 147, 0.3);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(255, 20, 147, 0.3);
    position: relative;
    animation: loginFadeIn 0.8s ease-out;
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.login-title {
    font-size: 5rem;
    margin: 0;
    animation: floatMic 3s ease-in-out infinite;
}

@keyframes floatMic {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.login-subtitle {
    font-size: 2rem;
    margin: 10px 0 0 0;
    background: linear-gradient(90deg, #ff1493, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.login-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 20, 147, 0.3) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: #ff1493;
    font-size: 0.95rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 20, 147, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #ff1493;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.4);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.login-error {
    color: #ff0000;
    font-size: 0.9rem;
    text-align: center;
    min-height: 20px;
    padding: 10px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 5px;
    display: none;
}

.login-error:not(:empty) {
    display: block;
}

.login-btn {
    padding: 15px 30px;
    background: linear-gradient(90deg, #ff1493, #ff69b4);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.6);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.login-btn:hover .login-btn-icon {
    transform: translateX(5px);
}

.login-footer {
    text-align: center;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Login background animations */
.login-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.login-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.login-circle-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ff1493, #00ffff);
    top: -200px;
    left: -200px;
    animation: floatCircle1 20s ease-in-out infinite;
}

.login-circle-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #00ffff, #ff1493);
    bottom: -150px;
    right: -150px;
    animation: floatCircle2 15s ease-in-out infinite;
}

.login-circle-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #ff69b4, #8a2be2);
    top: 50%;
    right: -125px;
    animation: floatCircle3 18s ease-in-out infinite;
}

@keyframes floatCircle1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
}

@keyframes floatCircle2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, -50px) scale(1.15); }
}

@keyframes floatCircle3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, 30px) rotate(180deg); }
}

.login-particle-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* ========== IDLE ANIMATIONS ========== */
.idle-animations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1; /* Behind splash images */
}

.music-note {
    position: absolute;
    font-size: 3rem;
    color: #ff1493;
    text-shadow: 0 0 20px rgba(255, 20, 147, 0.8);
    animation: floatNote 4s ease-in-out infinite;
    opacity: 0.7;
}

.note-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 5s;
}

.note-2 {
    top: 25%;
    right: 15%;
    animation-delay: 1s;
    animation-duration: 6s;
}

.note-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
    animation-duration: 4.5s;
}

.note-4 {
    top: 60%;
    right: 10%;
    animation-delay: 1.5s;
    animation-duration: 5.5s;
}

.note-5 {
    bottom: 15%;
    right: 25%;
    animation-delay: 0.5s;
    animation-duration: 4s;
}

@keyframes floatNote {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
        opacity: 0.8;
    }
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid #ff1493;
    border-radius: 50%;
    animation: pulseRing 3s ease-out infinite;
}

.pulse-ring-1 {
    width: 200px;
    height: 200px;
    animation-delay: 0s;
}

.pulse-ring-2 {
    width: 200px;
    height: 200px;
    animation-delay: 1s;
}

.pulse-ring-3 {
    width: 200px;
    height: 200px;
    animation-delay: 2s;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Responsive login */
@media (max-width: 768px) {
    .login-box {
        padding: 40px 25px;
    }
    
    .login-title {
        font-size: 3.5rem;
    }
    
    .login-subtitle {
        font-size: 1.5rem;
    }
    
    .login-circle-1,
    .login-circle-2,
    .login-circle-3 {
        display: none;
    }
}

/* ========== TV PLAYBACK MODE ========== */
#playback-mode-screen {
    background: #000;
}

.playback-mode-content {
    position: relative;
    width: 100%;
    height: 100%;
}

#playback-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.playback-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
}

.playback-status {
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    pointer-events: auto;
}

.status-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.status-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ffff;
    margin: 0;
}

.status-subtext {
    font-size: 1rem;
    color: #ff1493;
    margin: 5px 0 0 0;
}

.playback-now-playing {
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
}

#playback-song-name {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 20px rgba(255, 20, 147, 0.8);
}

.playback-exit-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    background: rgba(255, 0, 0, 0.8);
    border: 2px solid #ff0000;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: auto;
}

.playback-exit-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.05);
}

/* ========== PHONE CONTROL MODE ========== */
#control-mode-screen {
    background: linear-gradient(135deg, #0a0015 0%, #1a0033 50%, #2a0055 100%);
    align-items: flex-start;
    overflow-y: auto;
}

.control-mode-content {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff1493;
}

.control-header h1 {
    font-size: 2rem;
    margin: 0;
    color: #00ffff;
}

.control-exit-btn {
    padding: 10px 20px;
    background: rgba(255, 0, 0, 0.8);
    border: 2px solid #ff0000;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.control-exit-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.05);
}

.control-status {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #ff1493;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff0000;
    animation: pulse 1.5s ease-in-out infinite;
}

.connection-status.connected .status-dot {
    background: #00ff00;
    animation: none;
}

.connection-status .status-text {
    color: #fff;
    font-weight: bold;
}

.current-playing {
    color: #00ffff;
    font-size: 1.1rem;
}

.current-playing p {
    margin: 0;
}

.control-section {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(138, 61, 212, 0.5);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.control-section h3 {
    margin: 0 0 15px 0;
    color: #ff1493;
    font-size: 1.3rem;
}

.control-search-input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #8a3dd4;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.control-search-input:focus {
    outline: none;
    border-color: #ff1493;
}

.control-search-results {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.control-song-item {
    background: rgba(138, 61, 212, 0.2);
    border: 2px solid #8a3dd4;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.control-song-item:hover {
    background: rgba(138, 61, 212, 0.4);
    transform: translateX(5px);
}

.control-song-item p {
    margin: 0;
    color: #00ffff;
}

.control-queue-list {
    max-height: 200px;
    overflow-y: auto;
}

.control-queue-item {
    background: rgba(255, 165, 0, 0.2);
    border: 2px solid #ffa500;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-queue-item p {
    margin: 0;
    color: #fff;
}

.control-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.control-action-btn {
    padding: 15px;
    background: rgba(255, 20, 147, 0.3);
    border: 2px solid #ff1493;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.control-action-btn:hover {
    background: rgba(255, 20, 147, 0.5);
    transform: scale(1.05);
}

.control-eq {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.eq-control-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eq-control-item label {
    min-width: 50px;
    color: #00ffff;
    font-weight: bold;
}

.eq-control-item input[type="range"] {
    flex: 1;
    accent-color: #ff1493;
}

.eq-control-item span {
    min-width: 60px;
    color: #fff;
    text-align: right;
}

.empty-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* ========== TV NAME MODAL ========== */
#tv-name-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

#tv-name-modal .modal-content {
    background: linear-gradient(135deg, #1a0033 0%, #2a0055 100%);
    border: 3px solid #ff1493;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 50px rgba(255, 20, 147, 0.5);
}

#tv-name-modal h2 {
    color: #00ffff;
    margin: 0 0 15px 0;
    text-align: center;
    font-size: 2rem;
}

#tv-name-modal p {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.tv-name-input {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #8a3dd4;
    border-radius: 10px;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.tv-name-input:focus {
    outline: none;
    border-color: #ff1493;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 15px 30px;
    background: rgba(255, 20, 147, 0.3);
    border: 2px solid #ff1493;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn:hover {
    background: rgba(255, 20, 147, 0.5);
    transform: scale(1.05);
}

.modal-btn.cancel-btn {
    background: rgba(138, 61, 212, 0.3);
    border-color: #8a3dd4;
}

.modal-btn.cancel-btn:hover {
    background: rgba(138, 61, 212, 0.5);
}

/* ========== TV SELECTOR ========== */
.tv-selector-section {
    border: 2px solid #ff1493 !important;
    background: rgba(255, 20, 147, 0.1) !important;
}

.tv-selector-dropdown {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #ff1493;
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    margin-bottom: 10px;
}

.tv-selector-dropdown:focus {
    outline: none;
    border-color: #00ffff;
}

.tv-selector-dropdown option {
    background: #1a0033;
    color: white;
}

/* Control mode song list items */
.control-song-item {
    background: rgba(138, 61, 212, 0.15);
    border: 2px solid rgba(138, 61, 212, 0.5);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important;
}

.control-song-item:hover {
    background: rgba(138, 61, 212, 0.3);
    border-color: #8a3dd4;
    transform: translateX(5px);
}

.control-song-item .song-name {
    flex: 1;
    color: #00ffff;
    margin: 0;
}

.control-song-item .song-controls {
    display: flex;
    gap: 10px;
}

.control-song-item .song-btn {
    padding: 8px 15px;
    background: rgba(255, 20, 147, 0.3);
    border: 2px solid #ff1493;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.control-song-item .song-btn:hover {
    background: rgba(255, 20, 147, 0.5);
    transform: scale(1.05);
}

.control-queue-item {
    background: rgba(255, 165, 0, 0.2);
    border: 2px solid #ffa500;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-queue-item p {
    margin: 0;
    color: #fff;
}

.control-queue-item button {
    padding: 5px 10px;
    background: rgba(255, 0, 0, 0.5);
    border: 1px solid #ff0000;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
}

.control-queue-item button:hover {
    background: rgba(255, 0, 0, 0.7);
}

/* ========== MENU PLAYBACK STATUS ========== */
.menu-playback-status {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.2), rgba(138, 61, 212, 0.2));
    border: 2px solid #ff1493;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    animation: pulse-glow 2s ease-in-out infinite;
}

.menu-playback-status.hidden {
    display: none;
}

.playback-status-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.status-label {
    font-weight: bold;
    color: #00ffff;
    font-size: 1.1rem;
}

#menu-current-song {
    flex: 1;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

.status-btn {
    padding: 8px 16px;
    background: rgba(255, 20, 147, 0.5);
    border: 2px solid #ff1493;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.status-btn:hover {
    background: rgba(255, 20, 147, 0.7);
    transform: scale(1.05);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 20, 147, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 20, 147, 0.8); }
}

/* Responsive for control mode */
@media (max-width: 768px) {
    .control-mode-content {
        padding: 15px;
    }
    
    .control-header h1 {
        font-size: 1.5rem;
    }
    
    #playback-song-name {
        font-size: 1.8rem;
    }
    
    #tv-name-modal .modal-content {
        padding: 30px 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .playback-status-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

.admin-quick-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
}

.modal-btn.primary-btn {
    background: linear-gradient(135deg, #ff1493, #ff6bd5);
    border: none;
    font-family: 'Galter', system-ui, sans-serif;
    font-weight: 600;
}
.mic-volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;              /* pushes it to the right if inside a flex row */
    padding: 6px 12px;
    background: rgba(10, 0, 40, 0.8);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.2);
    font-family: 'Galter', system-ui, sans-serif;
    font-size: 0.9rem;
}

.mic-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    opacity: 0.85;
}

/* slider itself */
.mic-volume-control input[type="range"] {
    -webkit-appearance: none;
    width: 130px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

/* track */
.mic-volume-control input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff1493, #00ffff);
}

.mic-volume-control input[type="range"]::-moz-range-track {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff1493, #00ffff);
}

/* thumb */
.mic-volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.7);
    margin-top: -5px;
    cursor: pointer;
}

.mic-volume-control input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 20, 147, 0.7);
    cursor: pointer;
}
