:root {
    --bg-color: #0b0c10;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent: #5865F2;
    /* Discord Blurple */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
}

.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

/* Background Liquid Blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(to right, #5865F2, #ff007a);
    top: -100px;
    left: -100px;
    border-radius: 50%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(to right, #00f2fe, #4facfe);
    bottom: -200px;
    right: -100px;
    border-radius: 50%;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(to right, #ff0844, #ffb199);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation-duration: 15s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.bot-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.pulse {
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    from {
        box-shadow: 0 0 10px rgba(88, 101, 242, 0.5);
    }

    to {
        box-shadow: 0 0 30px rgba(88, 101, 242, 1);
    }
}

#bot-name {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.stats-row {
    display: flex;
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-card h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 5px;
}

.stat-card small {
    font-size: 1rem;
    color: var(--text-secondary);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-left: 10px;
    border-left: 4px solid var(--accent);
}

/* Players Grid */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.player-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.guild-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.guild-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.guild-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.track-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.track-art {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.track-text {
    overflow: hidden;
    flex: 1;
}

.track-title {
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.track-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-container {
    width: 100%;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 1s linear;
}

.time-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(88, 101, 242, 0.2);
    color: #5865F2;
    border: 1px solid rgba(88, 101, 242, 0.5);
}

.status-paused {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
    border-color: rgba(255, 170, 0, 0.5);
}

/* Placeholder */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Modals and Overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-bg {
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background-size: cover;
    background-position: center;
    filter: blur(100px) saturate(200%) brightness(0.6);
    z-index: 0;
    transition: background-image 0.5s ease-in-out;
}

.modal-content {
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    background: rgba(10, 10, 12, 0.6);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-box {
    max-width: 400px;
    text-align: center;
}

.login-box h2 {
    margin-bottom: 10px;
}

.login-box p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.login-box .btn-secondary {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.login-box .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.nav-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    color: white;
    font-weight: 600;
}

/* Leaderboard */
.leaderboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .leaderboard-grid {
        grid-template-columns: 1fr;
    }
}

.lb-section {
    padding: 25px;
}

.lb-section h3 {
    margin-bottom: 20px;
    color: var(--accent);
}

.lb-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Player Detail Modal */
.player-modal-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.player-modal-header img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.player-modal-body {
    display: block;
    margin-top: 20px;
}

/* Modal Progress Bar */
.modal-progress-container {
    margin-bottom: 25px;
    cursor: pointer;
    position: relative;
    padding: 10px 0;
}

.modal-progress-container .progress-bar-bg {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    transition: 0.2s;
}

.modal-progress-container:hover .progress-bar-bg {
    height: 12px;
}

.modal-progress-container .progress-fill {
    background: linear-gradient(90deg, #ff007a, var(--accent));
    transition: width 0.1s linear;
}

/* Filters Row */
.filters-row {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal-tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px 10px;
    position: relative;
    transition: 0.3s;
}

.modal-tab-btn:hover {
    color: white;
}

.modal-tab-btn.active {
    color: white;
    font-weight: 600;
}

.modal-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
}

.modal-tab-content {
    display: none;
}

.modal-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Queue Drag and Drop */
.drag-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: grab;
    transition: transform 0.2s;
}

.drag-item:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.drag-item.drag-over {
    border-top: 2px solid var(--accent);
}

.btn-remove {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.btn-remove:hover {
    background: #ff4444;
    color: white;
}

.queue-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
}

.queue-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Karaoke Lyrics Styling */
.lyrics-text {
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 400px;
    overflow-y: auto;
    padding: 50px 10px;
    overflow-x: hidden;
    word-break: break-word;
    text-align: center;
    scroll-behavior: smooth;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    scrollbar-width: none; /* Firefox */
}

.lyrics-text::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.lyric-line {
    font-size: 1.1rem;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-bottom: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.95);
    cursor: pointer;
}

.lyric-line:hover {
    color: var(--accent);
    opacity: 0.8;
}

.lyric-line.active {
    opacity: 1;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Auth Box */
.user-auth-box {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-auth-box img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
}

.user-auth-box div {
    font-size: 0.95rem;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #5865F2, #4752c4);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 15px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
    background: linear-gradient(135deg, #4752c4, #3b45a6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 15px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* Controls Row */
.controls-row {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.controls-row button.btn-icon {
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.controls-row button.btn-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0 15px;
    height: 45px;
    border-radius: 22.5px;
    border: 1px solid var(--glass-border);
}

/* Search Row */
.search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.search-row input {
    flex: 1;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.search-row input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 0, 0, 0.5);
}

.search-row button {
    padding: 0 30px;
    background: linear-gradient(135deg, var(--accent), #ff007a);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(255, 0, 122, 0.3);
}

.search-row button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 122, 0.5);
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.setting-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-radius: 16px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-row select {
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-family: inherit;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    width: 180px;
    transition: 0.3s;
}

.setting-row select:focus {
    outline: none;
    border-color: var(--accent);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 26px;
    border: 1px solid var(--glass-border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked+.slider {
    background-color: var(--accent);
    border-color: var(--accent);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

/* Fullscreen Mode */
.fullscreen-btn {
    position: absolute;
    top: -10px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    z-index: 100;
    transition: 0.3s;
}

.fullscreen-btn:hover {
    background: var(--accent);
}

body.fullscreen-mode .modal-overlay {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}

body.fullscreen-mode .modal-content {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
}

body.fullscreen-mode .modal-bg {
    filter: blur(40px) saturate(150%) brightness(0.4);
}

body.fullscreen-mode .player-modal-header,
body.fullscreen-mode .controls-row,
body.fullscreen-mode .filters-row,
body.fullscreen-mode .search-row,
body.fullscreen-mode .modal-tabs,
body.fullscreen-mode .close-btn {
    display: none !important;
}

body.fullscreen-mode .lyrics-text {
    max-height: 80vh;
    font-size: 1.5rem;
    mask-image: none;
    -webkit-mask-image: none;
}

body.fullscreen-mode .lyric-line.active {
    font-size: 2.5rem;
}

body.fullscreen-mode .modal-progress-container {
    margin-top: auto;
    padding-bottom: 30px;
}

/* Playlists Grid */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.playlist-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.playlist-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.playlist-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.playlist-card p {
    color: var(--text-secondary);
    margin: 0;
}

.playlist-card .btn-play {
    background: linear-gradient(135deg, var(--accent), #ff007a);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
}

/* Dynamic Background */
#dynamic-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    filter: blur(80px) brightness(0.3);
    transition: background-image 1s ease-in-out;
}

/* Mini Player */
.mini-player {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(10, 10, 15, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { bottom: -100px; opacity: 0; } to { bottom: 20px; opacity: 1; } }
.mini-player-content {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 15px;
}
.mini-player img {
    width: 50px; height: 50px;
    border-radius: 10px;
}
.mini-info { flex: 1; overflow: hidden; white-space: nowrap; }
.mini-title { font-weight: 600; font-size: 1rem; text-overflow: ellipsis; overflow: hidden; }
.mini-author { font-size: 0.8rem; color: var(--text-secondary); text-overflow: ellipsis; overflow: hidden; }
.mini-controls { display: flex; gap: 10px; align-items: center; }
.btn-icon {
    width: 40px; height: 40px; font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); color: white;
    cursor: pointer; border-radius: 50%; transition: 0.3s;
    display: inline-flex; align-items: center; justify-content: center;
    backdrop-filter: blur(10px);
}
.btn-icon:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-2px); }
.mini-controls .btn-icon { border: none; background: transparent; }
.mini-controls .btn-icon:hover { background: rgba(255, 255, 255, 0.1); transform: none; }
.mini-progress-bg { width: 100%; height: 4px; background: rgba(255,255,255,0.1); }
.mini-progress-fill { height: 100%; background: linear-gradient(90deg, #ff007a, var(--accent)); transition: width 0.1s linear; }

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin-top: 5px;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}
.search-dropdown::-webkit-scrollbar { display: none; }
.search-result-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px; cursor: pointer; transition: 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.search-result-item:hover { background: rgba(255,255,255,0.1); }
.search-result-item img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.search-result-info { flex: 1; overflow: hidden; white-space: nowrap; }
.search-result-title { font-size: 0.95rem; font-weight: 600; text-overflow: ellipsis; overflow: hidden; }
.search-result-author { font-size: 0.8rem; color: var(--text-secondary); }

/* Audio Visualizer (Redesigned to a subtle glowing orb effect) */
.audio-visualizer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 150px;
    background: radial-gradient(ellipse at center, var(--accent) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    opacity: 0.5;
    animation: glowPulse 2s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes glowPulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
}
body.fullscreen-mode .audio-visualizer { display: block !important; }
.audio-visualizer.paused { animation-play-state: paused; opacity: 0.2; transform: translate(-50%, -50%) scale(0.9); transition: 0.5s; }

/* Global buttons */
.btn-discord {
    background: linear-gradient(135deg, var(--accent), #ff007a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-discord:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(88, 101, 242, 1), rgba(255, 0, 122, 1));
    box-shadow: 0 8px 25px rgba(255, 0, 122, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
}
.toast {
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideIn 0.3s ease forwards;
    transform: translateX(120%);
    opacity: 0;
}
.toast.toast-error { border-left: 4px solid #ff4444; }
.toast.toast-success { border-left: 4px solid #00C851; }
.toast.toast-info { border-left: 4px solid var(--accent); }
.toast.fade-out { animation: slideOut 0.3s ease forwards; }

@keyframes slideIn {
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
    to { transform: translateX(120%); opacity: 0; }
}

/* Mobile PWA Navigation */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none !important;
    }
    
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        justify-content: space-around;
        padding: 10px 0;
        background: rgba(20, 20, 30, 0.9);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--glass-border);
        z-index: 1000;
        border-radius: 20px 20px 0 0;
    }
    
    .mobile-bottom-nav .nav-btn {
        flex-direction: column;
        gap: 5px;
        font-size: 0.75rem;
        padding: 5px 10px;
        background: transparent !important;
        border: none !important;
    }
    
    .mobile-bottom-nav .nav-btn:hover, .mobile-bottom-nav .nav-btn.active {
        color: var(--accent);
        transform: scale(1.1);
    }
    
    .container {
        padding: 20px 10px 80px 10px;
    }

    .header {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        align-items: center;
        text-align: center;
        margin-bottom: 30px;
    }

    .bot-info {
        flex-direction: column;
        gap: 10px;
    }

    #bot-name {
        font-size: 1.5rem;
    }

    .stats-row {
        width: 100%;
        justify-content: space-between;
        gap: 5px;
    }

    .stat-card {
        padding: 10px;
        flex: 1;
    }

    .stat-card h2 {
        font-size: 1.3rem;
    }
    
    .players-grid, 
    .playlists-grid, 
    .settings-grid, 
    .leaderboard-grid {
        grid-template-columns: 1fr !important;
    }

    .toast-container {
        bottom: 80px;
    }

    .mini-player {
        bottom: 85px;
        width: 95%;
    }
}

/* Voice Command FAB */
.voice-fab {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865F2, #eb459e);
    border: none;
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.2s, box-shadow 0.2s;
}

.voice-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.voice-fab .voice-ripple {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(235, 69, 158, 0.7);
    animation: none;
}

.voice-fab.listening .voice-ripple {
    animation: pulse-voice 1.5s infinite;
}

.voice-fab.listening {
    background: linear-gradient(135deg, #ed4245, #ff73fa);
}

@keyframes pulse-voice {
    0% { box-shadow: 0 0 0 0 rgba(235, 69, 158, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(235, 69, 158, 0); }
    100% { box-shadow: 0 0 0 0 rgba(235, 69, 158, 0); }
}

@media (max-width: 768px) {
    .voice-fab {
        bottom: 85px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
}