/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide share buttons */
.share-btn {
    display: none !important;
}

html {
    height: 100%;
    overflow-x: hidden;
    position: relative;
    background-color: #FF6B9D; /* Pink background for iOS status bar area */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    color: #000;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* iOS Status Bar Area - Pink background */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari specific */
    html {
        background-color: #FF6B9D;
    }
    
    body {
        background-color: #fff;
    }
    
    /* Ensure status bar area shows pink */
    .page {
        background-color: #fff;
    }
}

/* Page Management */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* Authentication Page */
#auth-page {
    background: linear-gradient(135deg, #fff 0%, #eee 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo i {
    font-size: 3rem;
    color: #FF6B9D;
    margin-bottom: 15px;
}

.logo h1 {
    font-size: 2.5rem;
    color: #000;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 5px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #000;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.tab-btn.active {
    background: #FF6B9D;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #000;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #FF6B9D;
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

.form-group input::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

/* Buttons */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, #FF6B9D, #FF4D8A);
    color: #000;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-success {
    background: #FF6B9D;
    color: #000;
}

.btn-warning {
    background: #ffaa00;
    color: #000;
}

.btn-danger {
    background: #ff4444;
    color: #000;
}

/* Jukebox Page */
#jukebox-page {
    background: #fff;
    position: relative;
    min-height: 100vh;
}

/* Main Content Layout */
.main-content {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 60px); /* Account for bottom navigation */
    padding-top: 80px; /* Account for fixed header */
    padding-bottom: 0;
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px; /* Space for bottom navigation (60px) + now playing bar (if visible) */
}

/* Screen Management */
.screen {
    display: none;
    padding: 20px;
}

.screen.active {
    display: block;
}

.screen-header {
    margin-bottom: 30px;
    text-align: center;
}

.screen-header h2 {
    color: #FF6B9D;
    font-size: 2rem;
    margin-bottom: 10px;
}

.screen-header p {
    color: #000;
    font-size: 1.1rem;
}

/* Featured Section */
.featured-section {
    margin-bottom: 40px;
}

.featured-section h3 {
    color: #000;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.featured-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 157, 0.5);
}

.featured-card:hover {
    background: rgba(255, 107, 157, 0.1);
    border-color: #FF6B9D;
    transform: translateY(-5px);
}

.featured-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #FF6B9D, #FF4D8A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.featured-icon i {
    font-size: 2rem;
    color: #000;
}

.featured-card h4 {
    color: #000;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.featured-card p {
    color: rgba(0, 0, 0, 0.7);
    font-size: 1rem;
}

/* Playlists Section */
.playlists-section {
    margin-bottom: 40px;
}

.playlists-section h3 {
    color: #000;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.playlist-category {
    margin-bottom: 40px;
}

.playlist-category h4 {
    color: #FF6B9D;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.playlist-category h4 i {
    font-size: 1.1rem;
}

.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.playlist-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 157, 0.5);
}

.playlist-card:hover {
    background: rgba(255, 107, 157, 0.1);
    border-color: #FF6B9D;
    transform: translateY(-3px);
}

.playlist-cover {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #000;
}

.rock-cover { background: linear-gradient(45deg, #ff6b6b, #ee5a24); }
.alt-cover { background: linear-gradient(45deg, #a8e6cf, #88d8c0); }
.pop-cover { background: linear-gradient(45deg, #ff9ff3, #f368e0); }
.indie-cover { background: linear-gradient(45deg, #54a0ff, #2e86de); }
.hiphop-cover { background: linear-gradient(45deg, #ff9f43, #f39c12); }
.rnb-cover { background: linear-gradient(45deg, #5f27cd, #341f97); }
.electronic-cover { background: linear-gradient(45deg, #00d2d3, #54a0ff); }
.dance-cover { background: linear-gradient(45deg, #ff6b6b, #ff9ff3); }

.playlist-card h5 {
    color: #000;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.playlist-card p {
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.9rem;
}

.header {
    background: #fff;
    padding: 15px 20px;
    border-bottom: 2px solid #FF6B9D;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.applemusic-logo {
    height: 30px;
    width: 100%;
    object-fit: contain;
    position: absolute;
    left: -2.5px;
    z-index: -2;
}

.menu-toggle {
    background: none;
    border: none;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.device-switch-btn {
    background: none;
    border: none;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-left: auto;
}

.device-switch-btn:hover {
    background: rgba(255, 107, 157, 0.1);
    transform: scale(1.05);
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #fff 0%, #eee 100%);
    border-right: 2px solid #FF6B9D;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.side-menu.active {
    transform: translateX(0);
}

.side-menu.hidden {
    display: none;
}

.menu-header {
    padding: 30px 20px;
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-header h1 {
    color: #FF6B9D;
    font-size: 1.8rem;
    margin: 0;
}

.menu-header h1 i {
    margin-right: 10px;
}

.close-menu {
    background: none;
    border: none;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.close-menu:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-content {
    padding: 20px;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

#current-user {
    color: #000;
    font-weight: 500;
    font-size: 1.1rem;
}

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

.menu-item-btn {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: 8px;
    color: #FF6B9D;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.menu-item-btn:hover {
    background: rgba(255, 107, 157, 0.2);
    border-color: #FF6B9D;
    transform: translateX(5px);
}

.menu-item-btn i {
    font-size: 1.1rem;
}

/* Search Section */
.search-section {
    padding: 20px;
    background: #eee;
}

.search-container {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 15px;
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #000;
    font-size: 16px;
}

.search-input:focus {
    outline: none;
    border-color: #FF6B9D;
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

.search-input::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

/* Search Results */
.search-results {
    padding: 20px;
    background: #eee;
    border-top: 1px solid #ccc;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.search-results h3 {
    color: #FF6B9D;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.tracks-grid {
    display: grid;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.track-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 107, 157, 0.5);
    transition: all 0.3s ease;
}

.track-item:hover {
    border-color: #FF6B9D;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.2);
}

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

.track-art {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.track-details h4 {
    color: #000;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.track-details p {
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.9rem;
}

.request-btn {
    background: #FF6B9D;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.request-btn:hover {
    background: #FF4D8A;
    transform: translateY(-1px);
}

/* Queue Section */
.queue-section {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #ccc;
}

.queue-section h3 {
    color: #FF6B9D;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Fixed Now Playing Section */
.now-playing-fixed {
    position: fixed;
    top: 80px; /* Below fixed header with proper spacing */
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #fff 0%, #eee 100%);
    border-bottom: 2px solid #FF6B9D;
    padding: 20px;
    z-index: 999;
    height: 24vh; /* Reduced height to prevent overflow */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Start from top */
    overflow: hidden; /* Prevent content from overflowing */
}

.playback-controls {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 20px; /* Space from track info */
    margin-left: auto; /* Push to the right */
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 1;
    min-width: auto;
}

.control-btn:hover {
    background: rgba(255, 107, 157, 0.2);
    color: #FF6B9D;
    transform: scale(1.1);
}

.play-btn {
    background: #FF6B9D;
    color: #fff;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.play-btn:hover {
    background: #FF4D8A;
    color: #fff;
    transform: scale(1.05);
}

.pause-btn {
    background: #000;
    color: #fff;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.pause-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    transform: scale(1.05);
}

.current-track-display {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    overflow: visible; /* Allow content to be visible */
    padding: 10px 0; /* Add some padding for text */
    max-height: 10vh;
}

.current-track-art {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.3);
    flex-shrink: 0; /* Prevent image from shrinking */
}

.track-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0; /* Allow text to shrink */
    overflow: visible; /* Allow text to be visible */
    text-align: left; /* Ensure text is left-aligned */
    max-width: 200px; /* Limit width to prevent overflow */
    flex: 1; /* Take available space on the left */
}

.track-info h4 {
    color: #000;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-info p {
    color: rgba(0, 0, 0, 0.8);
    font-size: 0.85rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-info .requester {
    color: #FF6B9D;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Desktop Queue Layout */
.desktop-queue-layout {
    display: flex;
    flex-direction: row;
    height: calc(100vh - 80px); /* Full height minus header */
    gap: 20px;
    padding: 20px;
}

.desktop-current-track-column {
    flex: 0 0 450px; /* Slightly wider for better visibility */
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.3);
    overflow-y: auto; /* Allow scrolling so all content is visible */
    overflow-x: hidden;
    max-height: calc(100vh - 80px);
    min-height: 0; /* Allow flexbox to shrink */
}

.desktop-queue-column {
    flex: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.now-playing-desktop {
    display: flex;
    flex-direction: column;
    min-height: 25vh;
    justify-content: center;
    gap: 30px;
}


.now-playing-desktop .current-track-display {
    flex: 0 0 auto; /* Don't grow or shrink, use natural size */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 0;
}

.now-playing-desktop .current-track-art {
    width: 200px; /* Reduced from 250px */
    height: 200px; /* Reduced from 250px */
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.4);
    flex-shrink: 0; /* Don't shrink the image */
}

.now-playing-desktop .track-info {
    text-align: center;
    max-width: 100%;
    width: 100%;
}

.now-playing-desktop .track-info h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.now-playing-desktop .track-info p {
    font-size: 1.1rem;
}

.now-playing-desktop .playback-controls {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-top: 0; /* Remove excessive margin, use gap from parent instead */
    margin-left: 0;
    flex-shrink: 0;
    padding: 0 20px 0;
}

.now-playing-desktop .control-btn {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
}

.now-playing-desktop .play-btn {
    width: 80px;
    height: 80px;
    font-size: 1.8rem;
    background: #FF6B9D;
    color: #fff;
}

.now-playing-desktop .pause-btn {
    width: 80px;
    height: 80px;
    font-size: 1.8rem;
    background: #000;
    color: #fff;
}

/* Scrollable Queue Section */
.queue-scrollable {
    margin-top: 20vh; /* Push content below fixed now playing section */
    padding: 20px 0px;
    background: #fff;
}

/* Desktop-specific queue scrollable */
.desktop-queue-column .queue-scrollable {
    margin-top: 0; /* No margin needed in desktop layout */
    padding: 20px;
    background: #fff;
    overflow-y: auto;
    height: 100%;
    flex: 1;
}

.queue-header {
    padding: 15px 20px;
    background: #ffffff;
    /* border-bottom: 1px solid #333; */
    margin-bottom: 20px;
}


.session-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.session-status i {
    color: #FF6B9D;
}

.queue-header h3 {
    color: #FF6B9D;
    font-size: 1.5rem;
    margin: 0;
}


.queue-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px 200px 0;
}

.queue-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    border: 1px solid rgba(255, 107, 157, 0.5);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    max-height: 100px;
    overflow: hidden; /* Keep hidden for text overflow, but ensure header allows overflow */
    touch-action: pan-y;
}

/* Ensure queue-item-header allows vote buttons to be visible */
.queue-item .queue-item-header {
    overflow: visible;
    position: relative;
}

.queue-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 107, 157, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.1);
}

.queue-item.playing {
    border-color: #FF6B9D;
    background: rgba(255, 107, 157, 0.1);
}

.queue-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    overflow: visible; /* Ensure vote buttons are not clipped */
}

.queue-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}






.queue-item-art {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.queue-item-details {
    min-width: 0;
    flex: 1;
    max-width: 100%;
    overflow: hidden;
}

.queue-item .queue-item-details h4,
.queue-item-details h4,
.queue-item-info .queue-item-details h4,
.queue-item-header .queue-item-info .queue-item-details h4 {
    color: #000 !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
    margin-bottom: 2px !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    font-weight: bold !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    transform: none !important;
    zoom: 1 !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
}

.queue-item-details p {
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.85rem !important;
    margin: 0;
    margin-bottom: 2px;
    padding: 0;
    line-height: 1.2 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
    display: block;
}

.queue-item-requester {
    color: #FF6B9D;
    font-size: 0.75rem !important;
    font-weight: 500;
    line-height: 1.2 !important;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
    display: block;
}

.queue-item-votes {
    display: flex !important; /* Force display on all devices */
    align-items: flex-start;
    gap: 6px;
    flex-shrink: 0 !important; /* Prevent shrinking */
    margin-left: auto;
    align-self: flex-start;
    margin-top: 15px;
    padding-top: 0;
    position: relative;
    z-index: 10; /* Ensure vote buttons are above other elements */
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 80px; /* Ensure minimum width for buttons */
}

.vote-btn {
    background: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #000;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 11px;
}

.vote-btn:hover {
    border-color: #FF6B9D;
    color: #FF6B9D;
}

.vote-btn.active {
    border-color: #FF6B9D;
    background: #FF6B9D;
    color: #000;
}

.joined-badge {
    background: #FF6B9D;
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.vote-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}



/* Swipe Gesture Styles */
.queue-item.swiping {
    transition: transform 0.2s ease;
}

.queue-item.swipe-remove {
    transform: translateX(100%);
    background-color: rgba(255, 68, 68, 0.5);
}

/* Remove Confirmation Dialog */
.remove-confirmation-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.dialog-content {
    background: #e5e5e5;
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.dialog-content h3 {
    color: #000;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.dialog-content p {
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    line-height: 1.4;
}

.dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.dialog-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
    min-width: 80px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: #ff4444;
    color: #000;
    border: 1px solid #ff4444;
}

.btn-danger:hover {
    background: #ff6666;
}

.dont-show-again {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
    cursor: pointer;
}

.dont-show-again input[type="checkbox"] {
    margin: 0;
    accent-color: #FF6B9D;
}

/* Social Features Styles */

/* Live Queue Toggle */
.live-queue-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 107, 157, 0.5);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.live-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.live-label {
    color: #000;
    font-weight: 600;
    font-size: 1.1rem;
}

.live-description {
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.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.2);
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: black;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #FF6B9D;
}

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

/* Skip Button Immediate Feedback */
#next-btn.clicked,
#np-next.clicked,
#play-next-btn.clicked {
    transform: scale(0.95);
    background: #FF4D8A;
    transition: all 0.1s ease;
}

/* User Search */
.search-users-section {
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.search-users-section h3 {
    color: #FF6B9D;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-users-input {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.search-users-input input {
    width: 100%;
    flex: none;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #000;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-users-input input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.search-users-input input:focus {
    outline: none;
    border-color: #FF6B9D;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.search-users-input button {
    width: 100%;
    flex: none;
    padding: 12px 20px;
    white-space: nowrap;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-users-input button:first-of-type {
    background: #FF6B9D;
    color: #000;
}

.search-users-input button:first-of-type:hover {
    background: #FF4D8A;
    transform: translateY(-1px);
}

.search-users-input button:last-of-type {
    background: rgba(255, 255, 255, 0.1);
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-users-input button:last-of-type:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.search-help {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.85rem;
    margin: 8px 0 16px 0;
    font-style: italic;
}

/* Live Queue Toggle */
.live-queue-section {
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.live-queue-section h3 {
    color: #FF6B9D;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.live-label {
    color: #000;
    font-weight: 500;
    font-size: 1rem;
}

.live-description {
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.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.2);
    transition: 0.4s;
    border-radius: 34px;
    border:1px solid black;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #000;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #FF6B9D;
}

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

.user-search-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.no-results {
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    font-style: italic;
}

.search-loading {
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
    padding: 20px;
}

.search-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #FF6B9D;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.user-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-result-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.user-result-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-result-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B9D, #FF4D8A);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 600;
    font-size: 16px;
}

.user-result-details h4 {
    color: #000;
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
}

.user-result-details p {
    color: rgba(0, 0, 0, 0.7);
    margin: 0;
    font-size: 0.8rem;
}

    .user-result-actions {
        display: flex;
        gap: 8px;
    }
    
    /* Pending Requests */
    .pending-requests-section {
        margin-bottom: 24px;
    }
    
    .pending-requests-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .pending-request-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
        background: rgba(255, 193, 7, 0.1);
        border: 1px solid rgba(255, 193, 7, 0.3);
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .pending-request-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .pending-request-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, #ffc107, #ff9800);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #000;
        font-weight: 600;
        font-size: 16px;
    }
    
    .pending-request-details h4 {
        color: #000;
        margin: 0 0 4px 0;
        font-size: 1rem;
    }
    
    .pending-request-details p {
        color: rgba(0, 0, 0, 0.7);
        margin: 0;
        font-size: 0.8rem;
    }
    
    .pending-request-actions {
        display: flex;
        gap: 8px;
    }
    
    .btn-accept {
        background: #FF6B9D;
        color: #000;
        border: none;
        padding: 6px 12px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 0.9rem;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .btn-accept:hover {
        background: #FF4D8A;
        transform: scale(1.05);
    }
    
    .btn-decline {
        background: rgba(255, 255, 255, 0.1);
        color: #000;
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 6px 12px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 0.9rem;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .btn-decline:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
    }
    
    /* Button States */
    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none !important;
    }
    
    .btn-secondary {
        background: rgba(255, 255, 255, 0.2);
        color: #000;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .btn-warning {
        background: #ffc107;
        color: #000;
        border: 1px solid #ffc107;
    }
    
    .btn-danger {
        background: #dc3545;
        color: #000;
        border: 1px solid #dc3545;
    }
    
    /* Remove Confirmation Dialog */
    .remove-confirmation-dialog {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.8);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10000;
    }
    
    .dialog-content {
        background: #e5e5e5;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 24px;
        max-width: 400px;
        width: 90%;
        text-align: center;
    }
    
    .dialog-content h3 {
        color: #000;
        margin: 0 0 16px 0;
        font-size: 1.2rem;
    }
    
    .dialog-content p {
        color: rgba(0, 0, 0, 0.8);
        margin: 0 0 20px 0;
        line-height: 1.5;
    }
    
    .dialog-actions {
        display: flex;
        gap: 12px;
        justify-content: center;
        margin-bottom: 16px;
    }
    
    .dialog-actions .btn {
        min-width: 80px;
    }
    
    .dont-show-again {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: rgba(0, 0, 0, 0.7);
        font-size: 0.9rem;
        cursor: pointer;
    }
    
    .dont-show-again input[type="checkbox"] {
        margin: 0;
    }
    
    /* Sessions Screen */
    #sessions-screen {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .session-menu-section {
        margin-bottom: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .session-menu-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        margin-bottom: 12px;
        transition: all 0.3s ease;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .session-menu-item:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .session-menu-content {
        flex: 1;
        min-width: 0;
        margin-right: 16px;
        overflow: hidden;
        word-wrap: break-word;
        word-break: break-word;
    }
    
    .session-menu-content h3 {
        color: #000;
        margin: 0 0 6px 0;
        font-size: 1.1rem;
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .session-menu-content h3 i {
        margin-right: 8px;
        color: #FF6B9D;
    }
    
    .session-menu-content p {
        color: rgba(0, 0, 0, 0.7);
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.4;
        overflow: hidden;
        word-wrap: break-word;
        word-break: break-word;
    }
    
    .session-menu-action {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: fit-content;
    }
    
    .session-menu-action .btn {
        white-space: nowrap;
        flex-shrink: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .current-session-info {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 12px 16px;
        min-width: 120px;
        text-align: center;
        overflow: hidden;
        word-wrap: break-word;
        word-break: break-word;
        box-sizing: border-box;
    }
    
    .current-session-info p {
        color: rgba(0, 0, 0, 0.9);
        margin: 0;
        font-size: 0.9rem;
        overflow: hidden;
        text-overflow: ellipsis;
        word-wrap: break-word;
    }
    
    .available-sessions-list {
        margin-top: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .session-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        margin-bottom: 12px;
        transition: all 0.3s ease;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .session-item:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .session-info h4 {
        color: #000;
        margin: 0 0 8px 0;
        font-size: 1.1rem;
    }
    
    .session-info p {
        color: rgba(0, 0, 0, 0.7);
        margin: 0 0 4px 0;
        font-size: 0.9rem;
    }
    
    .session-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .joined-badge {
        background: #FF6B9D;
        color: #000;
        padding: 6px 12px;
        border-radius: 6px;
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .no-sessions {
        text-align: center;
        color: rgba(0, 0, 0, 0.6);
        padding: 40px 20px;
    }

/* Connections List */
.connections-section {
    margin-bottom: 24px;
}

.connections-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.connection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.connection-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 107, 157, 0.3);
}

.connection-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.connection-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B9D, #FF4D8A);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 600;
    font-size: 16px;
}

.connection-details h4 {
    color: #000;
    margin: 0 0 4px 0;
    font-size: 1rem;
}

.connection-details p {
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
    font-size: 0.8rem;
}

.connection-actions {
    display: flex;
    gap: 8px;
}

/* Messages Screen */
.conversations-section {
    margin-bottom: 24px;
}

.conversations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.conversation-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 107, 157, 0.3);
}

.conversation-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B9D, #FF4D8A);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 600;
    font-size: 16px;
}

.conversation-details {
    flex: 1;
}

.conversation-details h4 {
    color: #000;
    margin: 0 0 4px 0;
    font-size: 1rem;
}

.conversation-details p {
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-time {
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.75rem;
}

/* Chat Section */
.chat-section {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 10;
}

.back-to-conversations {
    background: none;
    border: none;
    color: #FF6B9D;
    cursor: pointer;
    font-size: 14px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.back-to-conversations:hover {
    background: rgba(255, 107, 157, 0.1);
}

.chat-header h4 {
    color: #000;
    margin: 0;
    font-size: 1.1rem;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 70%;
}

.message.sent {
    align-self: flex-end;
}

.message.received {
    align-self: flex-start;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.message.sent .message-content {
    background: #FF6B9D;
    color: #000;
}

.message.received .message-content {
    background: rgba(255, 255, 255, 0.1);
    color: #000;
}

.message-time {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.5);
    margin-top: 4px;
    align-self: flex-end;
}

.message.sent .message-time {
    align-self: flex-end;
}

.message.received .message-time {
    align-self: flex-start;
}

.chat-input-section {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.95);
    position: sticky;
    bottom: 110px;
    z-index: 10;
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.chat-input-wrapper input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #000;
    font-size: 14px;
}

.chat-input-wrapper input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

#send-song-btn {
    width: 100%;
    justify-content: center;
}

/* Playlist Browse Styles */

/* Spotify Connection Status */
.applemusic-status {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 107, 157, 0.5);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.applemusic-status-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.applemusic-status-content i {
    font-size: 3rem;
    color: #FF6B9D;
}

.applemusic-status-content span {
    color: rgba(0, 0, 0, 0.8);
    font-size: 1.1rem;
    line-height: 1.4;
}

/* Playlists Loading */
.playlists-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.playlists-loading .spinner {
    margin-bottom: 20px;
}

.playlists-loading p {
    color: rgba(0, 0, 0, 0.7);
    font-size: 1.1rem;
}

/* Playlists Container */
.playlists-container {
    margin-bottom: 24px;
}

.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Playlist Card */
.playlist-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.playlist-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 107, 157, 0.3);
    transform: translateY(-2px);
}

.playlist-cover {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF6B9D, #FF8BB3);
    color: #000;
    font-size: 3rem;
    overflow: hidden;
}

.playlist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-card h4 {
    color: #000;
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.playlist-card p {
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.playlist-stats {
    margin-top: 12px;
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.8rem;
}

/* Playlist Tracks View */
.playlist-tracks-view {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.playlist-tracks-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.use-playlist-btn {
    margin-left: auto;
}

.use-playlist-btn.full-width {
    width: 100%;
    margin-left: 0;
}

#playlist-actions-container.full-width {
    width: 100%;
}

#playlist-actions-container.full-width .use-playlist-btn {
    width: 100%;
    margin-left: 0;
}



.back-to-playlists {
    background: none;
    border: none;
    color: #FF6B9D;
    cursor: pointer;
    font-size: 14px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.back-to-playlists:hover {
    background: rgba(255, 107, 157, 0.1);
}

.playlist-tracks-header h3 {
    color: #000;
    margin: 0;
    font-size: 1.2rem;
}

.playlist-tracks-list {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

/* Playlist Track Item */
.playlist-track-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.playlist-track-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 107, 157, 0.3);
}

.playlist-track-art {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.playlist-track-info {
    flex: 1;
    min-width: 0;
}

.playlist-track-info h4 {
    color: #000;
    margin: 0 0 4px 0;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-track-info p {
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-track-duration {
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.8rem;
    margin-left: auto;
    flex-shrink: 0;
}

.add-to-queue-btn {
    background: #FF6B9D;
    color: #000;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.add-to-queue-btn:hover {
    background: #FF4D8A;
    transform: scale(1.05);
}

.add-to-queue-btn:disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(0, 0, 0, 0.5);
    cursor: not-allowed;
    transform: none;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design for Playlists */
@media (max-width: 768px) {
    .playlists-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .playlist-card {
        padding: 16px;
    }
    
    .playlist-cover {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .playlist-track-item {
        padding: 10px 12px;
    }
    
    .playlist-track-art {
        width: 40px;
        height: 40px;
    }
    
    .no-playlists,
    .no-tracks,
    .no-pending {
        text-align: center;
        color: rgba(0, 0, 0, 0.6);
        font-size: 1.1rem;
        padding: 40px 20px;
    }
    
    .warning-message {
        text-align: center;
        color: #ffc107;
        font-size: 1rem;
        padding: 20px;
        background: rgba(255, 193, 7, 0.1);
        border: 1px solid rgba(255, 193, 7, 0.3);
        border-radius: 8px;
        margin: 20px 0;
    }
    
    .error-message {
        text-align: center;
        color: #ff4444;
        font-size: 1rem;
        padding: 20px;
        background: rgba(255, 68, 68, 0.1);
        border: 1px solid rgba(255, 68, 68, 0.3);
        border-radius: 8px;
    }
}



/* Admin Controls */
.admin-controls {
    padding: 20px;
    background: #eee;
    border-top: 1px solid #ccc;
}

.admin-controls h3 {
    color: #FF6B9D;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

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

/* Now Playing */
.now-playing {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #ccc;
}

.now-playing h3 {
    color: #FF6B9D;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.current-track {
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid #FF6B9D;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    max-height: 10vh;
}

.current-track-art {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    margin: 0 auto 20px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

.current-track h4 {
    color: #000;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.current-track p {
    color: rgba(0, 0, 0, 0.8);
    font-size: 1rem;
}

/* Loading Spinner */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 107, 157, 0.3);
    border-top: 4px solid #FF6B9D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.toast {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #FF6B9D;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    animation: slideIn 0.3s ease;
    touch-action: pan-y;
    user-select: none;
}

.toast.error {
    border-left-color: #ff4444;
}

.toast.success {
    border-left-color: #FF6B9D;
}

.toast.info {
    border-left-color: #3498db;
}

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

/* Pull-to-refresh indicator */
.pull-to-refresh-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    font-size: 14px;
    transition: opacity 0.2s ease;
    transform: translateY(-100%);
}

.pull-to-refresh-indicator:not(.hidden) {
    transform: translateY(0);
}

.pull-to-refresh-indicator.ready {
    background: rgba(255, 107, 157, 0.9);
}

.pull-to-refresh-indicator.refreshing {
    background: rgba(52, 152, 219, 0.9);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #fff !important;
    border-top: 1px solid #ccc;
    display: flex !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 60px !important;
    max-height: 60px !important;
    min-height: 60px !important;
    z-index: 1000 !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    will-change: transform;
    box-sizing: border-box !important;
}

.nav-btn {
    flex: 1;
    background: none;
    border: none;
    color: #000;
    padding: 8px 5px;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    height: 100%;
    box-sizing: border-box;
}

.nav-btn:hover {
    color: #000;
}

.nav-btn.active {
    color: #FF6B9D;
}

.nav-btn i {
    font-size: 1.2rem;
}

/* Now Playing Bar */
.now-playing-bar {
    position: fixed !important;
    bottom: 60px !important; /* Above bottom navigation, no gap */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #eee !important;
    border-top: 1px solid #ccc;
    padding: 15px 20px;
    z-index: 999 !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    will-change: transform;
    box-sizing: border-box !important;
}

.now-playing-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.now-playing-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
    user-select: none;
}

.np-album-art {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.np-track-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.np-title {
    color: #000;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-artist {
    color: rgba(0, 0, 0, 0.7);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.now-playing-bar .now-playing-controls {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    min-width: fit-content;
}

.now-playing-bar .np-control-btn {
    background: none;
    border: none;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.now-playing-bar .np-control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FF6B9D;
}

/* Device Switch Modal */
.device-switch-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.device-switch-content {
    background: #e5e5e5;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.5);
}

.device-switch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ccc;
}

.device-switch-header h3 {
    margin: 0;
    color: #000;
    font-size: 1.2rem;
}

.close-device-modal {
    background: none;
    border: none;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-device-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FF6B9D;
}

.device-list {
    padding: 10px;
    overflow-y: auto;
    flex: 1;
}

.device-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ddd;
    border: 1px solid #ccc;
}

.device-item:hover {
    background: #d5d5d5;
    border-color: #FF6B9D;
}

.device-item.active {
    background: lightgray;
    border-color: #FF6B9D;
}

.device-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ccc;
    border-radius: 50%;
    color: #FF6B9D;
    font-size: 1.2rem;
}

.device-item.active .device-icon {
    background: #FF6B9D;
    color: #000;
}

.device-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.device-name {
    color: #000;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.device-type {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.device-status {
    color: #FF6B9D;
    font-size: 0.8rem;
    font-weight: 600;
}

.switch-device-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: auto;
    max-width: fit-content !important;
}

/* Fullscreen Now Playing Modal */
.fullscreen-now-playing {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.fullscreen-now-playing.hidden {
    display: none;
}

.fullscreen-now-playing-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.close-fullscreen-now-playing {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-fullscreen-now-playing:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #FF6B9D;
}

.fullscreen-album-art-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0 30px;
    min-height: 300px;
}

.fullscreen-album-art {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.fullscreen-track-info {
    text-align: center;
    margin-bottom: 30px;
}

.fullscreen-title {
    color: #000;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.fullscreen-artist {
    color: #000;
    font-size: 1.2rem;
    font-weight: 400;
}

.fullscreen-progress-container {
    margin-bottom: 30px;
}

.fullscreen-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
}

.fullscreen-progress-fill {
    height: 100%;
    background: #FF6B9D;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.fullscreen-time-info {
    display: flex;
    justify-content: space-between;
    color: #000;
    font-size: 0.9rem;
}

.fullscreen-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: auto;
    padding-bottom: 20px;
}

.fullscreen-control-btn {
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.fullscreen-control-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #FF6B9D;
}

.fullscreen-play-pause-btn {
    width: 70px;
    height: 70px;
    background: #FF6B9D;
    color: #000;
    font-size: 1.8rem;
}

.fullscreen-play-pause-btn:hover {
    background: #FF4D8A;
    color: #fff;
    transform: scale(1.05);
}

/* Enhanced Search Input */
.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.6);
    font-size: 16px;
}

.search-input {
    padding-left: 45px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        padding: 30px 20px;
        margin: auto;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .admin-buttons {
        flex-direction: column;
    }
    
    .queue-item-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .queue-item-info {
        margin-right: 0;
    }
    
    
    /* Social Features Mobile */
    .live-queue-section {
        padding: 16px;
    }
    
    /* search-users-input is already column by default, no change needed */
    
    .user-result-item,
    .connection-item,
    .conversation-item {
        padding: 12px;
    }
    
    .chat-input-section {
        padding: 12px;
    }
    
    .chat-input-wrapper {
        flex-direction: column;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .bottom-nav {
        padding: 0 !important;
        height: 60px;
        max-height: 60px;
        min-height: 60px;
    }
    
    .nav-btn {
        font-size: 11px;
        padding: 8px 5px;
    }
    
    .nav-btn i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 25px 15px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .track-item, .queue-item {
        padding: 12px;
    }
    
    .track-art, .queue-item-art {
        width: 40px;
        height: 40px;
    }
} 

.track-info * {
    overflow: scroll;
    max-width:80%;
}

.search-input {
    width: 100%;
}

#search-results .track-item {
    margin: auto;
    min-width: 100%;
    max-width: 100%;
}

#search-results .track-info {
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#search-results .track-info {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#search-results .track-info * {
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: scroll;
}

.admin-controls {
    visibility: hidden;
}

.connections-list {
    margin-bottom: 200px;
}

.available-sessions-list {
    margin-top: 16px;
    margin-bottom: 200px;
}

/* Queue Choice Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(135deg, #e5e5e5 0%, #d5d5d5 100%);
    border: 2px solid #FF6B9D;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    margin: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    color: #FF6B9D;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: #000;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FF6B9D;
}

.modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 200px);
    -webkit-overflow-scrolling: touch;
}

.modal-body p {
    color: #000;
    margin-bottom: 25px;
    font-size: 16px;
}

.queue-choice-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.queue-choice-buttons .btn {
    min-width: 150px;
    padding: 15px 20px;
    width: 100%;
    border: 1px solid black;
}

/* Queue Toggle Buttons */
.queue-filter-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
}

.queue-filter-input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #000;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.queue-filter-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.queue-filter-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.clear-filter-btn {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.clear-filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.clear-filter-btn.hidden {
    display: none;
}

.queue-toggle-section {
    margin: 0;
}

.queue-toggle-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.queue-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.queue-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.queue-toggle-btn.active {
    background: #FF6B9D;
    border-color: #FF6B9D;
    color: #000;
    font-weight: 600;
}

.queue-toggle-btn i {
    margin-right: 5px;
}

/* Leave Session Button */
.leave-session-section {
    margin-left: auto;
}

.leave-session-btn {
    background: #dc3545;
    color: black;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.leave-session-btn:hover {
    background: #c82333;
}

.leave-session-btn i {
    margin-right: 6px;
}

/* Current Session Display */
.current-session-info h3 {
    color: #000;
    margin-bottom: 15px;
    font-size: 18px;
}

.session-item.current {
    background: #d5d5d5;
    border: 2px solid #007bff;
}

.session-item.personal {
    background: #1a2a1a;
    border: 2px solid #FF6B9D;
}

.session-separator {
    border: none;
    border-top: 1px solid #444;
    margin: 20px 0;
}


@media (min-width: 1000px) {
    .queue-item-votes {
        margin-top: 15px;
    }
  

    .now-playing-desktop .current-track-art {
        width: 250px;
        height: 250px;
    }
    .now-playing-desktop {
        justify-content: flex-start !important; /* Start from top */
        min-height: 100% !important;
        gap: 40px; /* More spacing on larger screens */
    }
    .now-playing-desktop .playback-controls {
        margin-top: 0; /* No excessive margin */
    }
    
    .desktop-current-track-column {
        flex: 0 0 500px; /* Wider on larger screens for better use of space */
    }

    .desktop-queue-layout {
        display: flex;
        flex-direction: row;
        max-height: 80vh;
        gap: 20px;
        padding: 20px;
        overflow: hidden !important;
    }

    /* Limit width of content screens on desktop */
    #search-screen,
    #messages-screen,
    #connections-screen,
    #sessions-screen {
        max-width: 650px !important;
        margin: 0 auto;
    }

    .search-input-wrapper {
        position: relative;
        flex: 1;
        margin: 10px 0 !important;
    }

    .search-input, .search-container {
        display: block !important;
    }
    div#playlists-container {
        width: auto !important;
    }

    .playlist-tracks-view {
        max-width: 650px !important;
        margin: auto;
    }
    .queue-list {
        padding: 0 !important;
        padding-bottom: 200px !important;
    }
}


::-webkit-scrollbar {
    display: none;
}
@media (max-width: 1000px) {


    .queue-toggle-btn {
        width: 50% !important;
        margin-top: 10px !important;
    }
    .queue-filter-section {
        
        margin-top: 20px !important;
    }
    .queue-list {
        padding: 0 !important;
        padding-bottom: 200px !important;
    }

    /* Ensure vote buttons are visible on screens wider than 480px */
    @media (min-width: 481px) {
        .queue-item-votes {
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
            margin-top: 15px !important;
        }
    }

   
}

/* Session Participants Styles */
.participants-list {
    padding: 0;
    margin-top: 0;
}

.participant-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.participant-item.host {
    background: rgba(255, 107, 157, 0.1);
    border-color: rgba(255, 107, 157, 0.3);
}

.participant-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.participant-name {
    font-weight: 600;
    color: #000;
    font-size: 1rem;
}

.playback-control-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.playback-control-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.playback-control-toggle span {
    color: rgba(0, 0, 0, 0.8);
    font-size: 0.9rem;
}

.playback-control-toggle input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.no-participants {
    padding: 20px;
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
    font-style: italic;
}


/* Removed - fullscreen text should be black, not white */


.queue-toggle-btn, .queue-filter-input, #user-search-input, #user-search-btn, #clear-search-btn {
    border: 1px solid rgba(255, 107, 157, 0.5) !important;
    border-radius: 10px !important;
}

@media (max-width: 768px) {
    .playlist-tracks-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .use-playlist-btn.full-width {
        margin-left: 0;
        width: 100%;
    }
    
    #playlist-actions-container.full-width {
        width: 100%;
    }
    
    #playlist-actions-container.full-width .use-playlist-btn {
        width: 100%;
        margin-left: 0;
    }
    
    /* Ensure vote buttons are visible and correctly positioned at 768px */
    @media (min-width: 481px) {
        .queue-item-votes {
            display: flex !important;
            visibility: visible !important;
            opacity: 1 !important;
            margin-top: 15px !important;
            flex-shrink: 0 !important;
        }
        
        .queue-item-header {
            overflow: visible !important;
        }
        
        .vote-btn {
            display: inline-flex !important;
            visibility: visible !important;
            opacity: 1 !important;
        }
    }
   
}


/* Ensure vote buttons are visible on all screens wider than 480px */
@media (min-width: 481px) {
    .queue-item-votes {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-top: 15px !important;
        flex-shrink: 0 !important;
        align-self: flex-start;
    }
    
    .queue-item-header {
        overflow: visible !important;
    }
    
    .vote-btn {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Specific fix for exactly 768px - ensure vote buttons are positioned correctly */
@media (min-width: 768px) and (max-width: 768px) {
    .queue-item-votes {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-top: 15px !important;
        flex-shrink: 0 !important;
        position: relative !important;
        align-self: flex-start !important;
    }
    
    .queue-item-header {
        overflow: visible !important;
        align-items: flex-start !important;
    }
    
    .queue-item-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 120px) !important;
    }
}

/* iPad Safari specific: ensure vote buttons are visible */
@media (min-width: 768px) and (max-width: 1024px) {
    .queue-item {
        overflow: visible !important;
        max-height: none !important; /* Allow vote buttons to be visible */
        min-height: 80px !important;
    }
    
    .queue-item-votes {
        margin-top: 15px !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
        min-width: auto !important;
        width: auto !important;
        max-width: none !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .queue-item-header {
        overflow: visible !important;
        min-width: 0 !important;
        align-items: flex-start !important;
    }
    
    .queue-item-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 120px) !important; /* Leave space for vote buttons */
        overflow: hidden !important; /* Keep text overflow hidden */
    }
    
    .vote-btn {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 40px !important;
        width: auto !important;
        flex-shrink: 0 !important;
    }
}
@media (min-width: 768px) {
    .queue-toggle-btn, .queue-filter-input {
        width: 50% !important;
    }
}

.queue-item-votes * {
    font-size: 18px;
}

/* Welcome Modal Styles */
.welcome-modal-content {
    max-width: 600px;
    text-align: left;
    max-height: 90vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.welcome-content h4 {
    color: #FF6B9D;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.welcome-content h4:first-child {
    margin-top: 0;
}

.welcome-content p {
    color: #000;
    margin-bottom: 15px;
    line-height: 1.6;
}

.welcome-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 25px 0;
}

.welcome-list li {
    color: #000;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

.welcome-list li i {
    position: absolute;
    left: 0;
    color: #FF6B9D;
    width: 20px;
    text-align: center;
}

.welcome-list li strong {
    color: #000;
}

.queue-explanation {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.queue-type-info {
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.3);
    border-radius: 10px;
    padding: 15px;
}

.queue-type-info strong {
    color: #FF6B9D;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.queue-type-info strong i {
    margin-right: 8px;
}

.queue-type-info p {
    color: rgba(0, 0, 0, 0.7);
    margin: 0;
    font-size: 0.95rem;
}

.welcome-modal-content .modal-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 107, 157, 0.2);
    flex-shrink: 0;
}

.welcome-modal-content .modal-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.modal-footer .btn {
    min-width: 120px;
}

/* Mobile-specific modal styles */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .modal-content {
        max-height: 95vh;
        width: 95%;
        padding: 20px;
        margin-top: 0;
    }
    
    .welcome-modal-content {
        max-height: 95vh;
        padding: 20px;
    }
    
    .welcome-modal-content .modal-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
    }
}


/* Portrait iPad specific styles */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    /* Adjust now-playing section for portrait iPad - prevent zoomed out appearance */
    .now-playing-fixed {
        height: 25vh; /* Increase height for better visibility */
        padding: 28px;
        transform: scale(1); /* Ensure no scaling */
    }
    
    .current-track-display {
        max-height: 12vh;
        gap: 28px;
    }
    
    .current-track-art {
        width: 250px;
        height: 250px;
    }
    
    .track-info {
        max-width: 300px;
    }
    
    .track-info h4 {
        font-size: 1.4rem;
    }
    
    .track-info p {
        font-size: 1.1rem;
    }
    
    .playback-controls {
        gap: 24px;
        margin-top: 28px;
    }
    div#current-track, .playback-controls {
        max-width: 80%;
        margin: auto;
    }

    .playback-controls {
        margin-left: 50%;
    }

    .track-info {
        margin-top: 50px;
    }
    .control-btn {
        width: 70px;
        height: 70px;
        font-size: 1.6rem;
    }
    
    .play-btn {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    /* Adjust find-friends section for portrait iPad */
    .search-users-section {
        padding: 24px;
    }
    
    /* Input and buttons are already full width and stacked vertically in base styles */
    .search-users-input input {
        padding: 14px 18px;
        font-size: 1.1rem;
    }
    
    .search-users-input button {
        padding: 14px 24px;
        font-size: 1rem;
    }
}















.screen {
    padding-bottom: 160px !important; /* Account for now-playing-bar (60px) + bottom-nav (60px) + extra space (40px) */
    min-height: calc(100vh - 120px); /* Ensure content doesn't overlap fixed elements */
}


.connection-actions {
    display: none !important;
}

/* Thinking Overlay - Full Screen Loading */
.thinking-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.thinking-overlay.hidden {
    display: none;
}

.thinking-content {
    text-align: center;
    color: #000;
}

.thinking-content h2 {
    margin-top: 30px;
    font-size: 24px;
    font-weight: 600;
    color: #000;
}

.thinking-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 107, 157, 0.2);
    border-top-color: #FF6B9D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 768px) and (max-width: 5000px) and (orientation: landscape) {

    div#current-track {
        max-width: 500px;
        margin: auto;
    }
    .playback-controls {
        display: flex;
        flex-direction: row;
        gap: 15px;
        align-items: center;
        justify-content: center;
        margin-top: 20px !important;
        margin-left: 0 !important;
    }
    .track-info {
        margin-top: 15px !important;
    }
    
}

.search-container {
    display: block;
}

button#search-btn {
    margin-top: 10px;
}