/* In videoke-home-mobile.css */
.videoke-home-mobile {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%), 
                url('/wp-content/plugins/videoke-master/images/videokebackground.jpeg') center/cover fixed !important;
    color: white;
    padding: 20px 15px;
    padding-bottom: 80px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-header {
    text-align: center;
    padding: 40px 0 30px;
}

.mobile-header h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.mobile-tagline {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 30px;
}

.mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.mobile-cta-btn {
    padding: 18px 25px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mobile-cta-primary {
    background: #ff6b6b;
    color: white;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
}

.mobile-cta-primary:active {
    transform: scale(0.98);
}

.mobile-cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.mobile-cta-secondary:active {
    transform: scale(0.98);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.quick-action-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-action-card:active {
    transform: scale(0.95);
}

.action-icon {
    font-size: 2em;
    margin-bottom: 10px;
    display: block;
}

.action-label {
    font-size: 0.9em;
    font-weight: bold;
}

.trending-section {
    margin-bottom: 40px;
}

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

.section-header h2 {
    margin: 0;
    font-size: 1.4em;
}

.see-all {
    color: #ff6b6b;
    text-decoration: none;
    font-size: 0.9em;
}

.trending-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.trending-carousel::-webkit-scrollbar {
    display: none;
}

.trending-song-card {
    min-width: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.trending-thumbnail {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
}

.trending-song-info h4 {
    margin: 0 0 5px 0;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trending-song-info .artist {
    font-size: 0.8em;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-activity {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4ecdc4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.9em;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 0.8em;
    opacity: 0.7;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 0.8em;
    padding: 5px;
}

.nav-icon {
    font-size: 1.4em;
    margin-bottom: 4px;
}

.nav-item.active {
    color: #ff6b6b;
}

.swipe-indicator {
    text-align: center;
    margin-top: 20px;
    opacity: 0.7;
    font-size: 0.9em;
}

.swipe-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.swipe-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.swipe-dot.active {
    background: #ff6b6b;
}

/* Search Modal Styles for Mobile - COMPLETELY FIXED LAYOUT */
.videoke-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    backdrop-filter: blur(20px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.videoke-search-modal.active {
    display: block !important;
}

body.videoke-modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* FIXED: Complete stacked layout for mobile */
.search-modal-header {
    padding: 25px 20px 15px 20px !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9)) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 10001;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.search-modal-header h2 {
    margin: 0 !important;
    color: white;
    text-align: center;
    font-size: 1.8em !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    font-weight: bold;
    order: 1 !important;
}

/* FIX: Search input container - full width */
.search-input-container {
    position: relative;
    width: 100% !important;
    margin: 0 !important;
    order: 2 !important;
}

.search-input-container input {
    width: 100% !important;
    padding: 18px 60px 18px 20px !important;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 18px !important;
    height: 60px !important;
    box-sizing: border-box;
    border: 3px solid #4ecdc4 !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.search-input-container input::placeholder {
    color: #666;
    font-size: 16px;
}

.search-input-container input:focus {
    outline: none;
    border-color: #ff6b6b !important;
    background: white;
}

.search-input-container button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #4ecdc4;
    border: none;
    border-radius: 12px;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
    transition: all 0.3s ease;
}

.search-input-container button:hover {
    background: #45b7af;
    transform: translateY(-50%) scale(1.05);
}

/* FIX: Quick actions - stacked below search */
.search-quick-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    margin: 0 !important;
    overflow-x: auto !important;
    padding: 15px 0 5px 0 !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    order: 3 !important;
    width: 100% !important;
}

.search-quick-actions::-webkit-scrollbar {
    display: none !important;
}

.quick-action-btn {
    padding: 14px 18px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    min-width: fit-content !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px);
}

.quick-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.most-searched-section {
    padding: 20px;
}

.most-searched-section h3 {
    color: white !important;
    margin-bottom: 20px;
    font-size: 1.4em !important;
    text-align: center !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #ff6b6b !important;
    font-weight: 600;
}

.most-searched-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    margin-bottom: 25px !important;
}

.most-searched-song {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.most-searched-song:active {
    transform: scale(0.98);
}

.most-searched-thumbnail {
    width: 100%;
    height: 120px !important;
    border-radius: 12px;
    margin-bottom: 12px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.most-searched-song h4 {
    font-size: 15px !important;
    margin: 0 0 8px 0;
    color: white !important;
    font-weight: 600 !important;
    line-height: 1.3;
    min-height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.most-searched-song .artist {
    font-size: 13px !important;
    color: #4ecdc4 !important;
    margin-bottom: 10px;
    font-weight: 500;
}

.song-carousel-section {
    padding: 20px;
    overflow: hidden;
}

.song-carousel-section h3 {
    color: white !important;
    margin-bottom: 20px;
    font-size: 1.4em !important;
    text-align: center !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #4ecdc4 !important;
    font-weight: 600;
}

.song-carousel-container {
    position: relative;
    height: 280px;
    perspective: 1000px;
}

.song-carousel {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.song-carousel-item {
    min-width: 100%;
    padding: 0 10px;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.song-carousel-item.active {
    transform: scale(1.05) translateZ(20px);
    z-index: 2;
}

.song-carousel-item.semi-active {
    transform: scale(0.95) translateZ(10px);
    opacity: 0.7;
}

.song-card-carousel {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px;
    padding: 25px 20px;
    height: 100%;
    text-align: center;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease;
}

.song-card-carousel.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.carousel-thumbnail {
    width: 100%;
    height: 150px;
    border-radius: 15px;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.carousel-thumbnail .play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 107, 107, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.song-card-carousel.active .play-indicator {
    opacity: 1;
}

.song-card-carousel h4 {
    font-size: 18px !important;
    margin: 0 0 10px 0;
    color: white;
    font-weight: 600 !important;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.6em;
}

.song-card-carousel .artist {
    font-size: 15px !important;
    color: #ff6b6b;
    margin-bottom: 15px;
    font-weight: 500;
}

.song-card-carousel .duration {
    font-size: 14px;
    opacity: 0.8;
    color: white;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-dot.active {
    background: #ff6b6b;
    transform: scale(1.3);
}

/* FIX: Close button properly positioned */
.modal-close-btn {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    background: rgba(255, 107, 107, 0.9) !important;
    border: none;
    border-radius: 50%;
    width: 45px !important;
    height: 45px !important;
    color: white;
    font-size: 1.8em !important;
    cursor: pointer;
    z-index: 10002;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: #ee5a52 !important;
    transform: scale(1.1);
}

.carousel-controls {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.carousel-arrow {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    font-size: 1.4em;
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin: 0 15px;
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.search-results-section {
    padding: 20px;
}

.search-results-section h3 {
    color: white !important;
    margin-bottom: 20px;
    font-size: 1.4em !important;
    text-align: center !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #96ceb4 !important;
    font-weight: 600;
}

.search-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.search-result-song {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 15px;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.search-result-song:active {
    transform: scale(0.98);
}

.search-result-thumbnail {
    width: 80px !important;
    height: 80px !important;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.search-result-thumbnail .play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 107, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.search-result-song:hover .play-overlay {
    opacity: 1;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-info h4 {
    font-size: 16px !important;
    margin: 0 0 8px 0;
    color: white !important;
    line-height: 1.3;
    font-weight: 600 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.6em;
}

.search-result-info .artist {
    font-size: 14px !important;
    color: #4ecdc4 !important;
    margin-bottom: 8px;
    font-weight: 500;
}

.video-details {
    display: flex;
    gap: 15px;
    font-size: 13px;
    opacity: 0.8;
    color: white;
}

/* Mobile Scoring Modal - REDESIGNED */
.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 42px;
    font-weight: bold;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border: 6px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.videoke-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.92) 0%, rgba(118, 75, 162, 0.92) 100%), 
                url('/wp-content/plugins/videoke-master/images/videokebackground.jpeg') center/cover fixed !important;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 35px;
    border-radius: 25px;
    max-width: 95%;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* NEW: Enhanced mobile player controls */
.control-buttons-mobile {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: rgba(0,0,0,0.9);
    border-top: 1px solid #333;
}

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

.button-column button {
    padding: 15px 12px;
    background: #4ecdc4;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.button-column button:disabled {
    background: #666;
    opacity: 0.5;
    cursor: not-allowed;
}

.button-column button:active:not(:disabled) {
    transform: scale(0.95);
    background: #45b7af;
}

/* NEW: Mobile floating search enhancements */
.videoke-floating-search.mobile {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0,0,0,0.95);
    border-radius: 15px;
    z-index: 10001;
    border: 2px solid #4ecdc4;
    backdrop-filter: blur(10px);
    max-height: 70vh;
    overflow: hidden;
    display: none;
}

.search-input-container-mobile {
    padding: 15px;
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.9);
    border-bottom: 1px solid #333;
}

.search-input-container-mobile input {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid #444;
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
}

.search-input-container-mobile .add-song-btn {
    background: #4ecdc4;
    border: none;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

.search-results-container-mobile {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

/* FIXED: Mobile landscape mode with proper player layout */
@media (max-width: 768px) and (orientation: landscape) {
    .videoke-home-mobile {
        padding-bottom: 20px;
        overflow-y: auto;
    }
    
    .mobile-header {
        padding: 10px 0;
    }
    
    .mobile-header h1 {
        font-size: 1.8em;
    }
    
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .quick-action-card {
        padding: 10px 8px;
    }
    
    /* FIXED: Landscape player layout */
    .videoke-full-player {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: #000 !important;
        z-index: 10000 !important;
        flex-direction: row !important;
    }
    
    .player-header {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 40px !important;
        padding: 8px 15px !important;
        background: rgba(0,0,0,0.9) !important;
        z-index: 10001 !important;
        flex-direction: row !important;
        align-items: center !important;
    }
    
    .player-layout {
        position: absolute !important;
        top: 40px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 60px !important;
        flex-direction: row !important;
        height: auto !important;
    }
    
    .video-section-full, 
    .karaoke-video-container-full {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .cameras-section {
        position: absolute !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 120px !important;
        border-top: 1px solid #333 !important;
        flex-direction: row !important;
    }
    
    .camera-panel {
        height: 100% !important;
        border-right: 1px solid #333 !important;
    }
    
    .player-queue-panel {
        display: none !important;
    }
    
    .recording-interface {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        padding: 8px !important;
        background: rgba(0,0,0,0.9) !important;
        border-top: 1px solid #333 !important;
    }
    
    .control-buttons {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding: 5px !important;
        gap: 5px !important;
    }
    
    .control-buttons button {
        flex-shrink: 0 !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    /* Hide floating camera and search in landscape mode */
    .videoke-floating-camera,
    .videoke-floating-search,
    #floating-search-toggle,
    #floating-camera-toggle {
        display: none !important;
    }
}

/* Duet mode landscape layout */
@media (max-width: 768px) and (orientation: landscape) {
    .videoke-full-player .player-layout {
        flex-direction: row !important;
        height: calc(100vh - 100px) !important;
    }
    
    .video-panel {
        flex: 2 !important;
        height: 100% !important;
    }
    
    .camera-panel {
        flex: 1 !important;
        height: 100% !important;
        max-width: 200px !important;
    }
    
    .camera-feed {
        height: 100% !important;
    }
}

/* Improved landscape for very short screens */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
    .player-header {
        height: 30px !important;
        padding: 5px 10px !important;
        font-size: 12px !important;
    }
    
    .player-layout {
        top: 30px !important;
        bottom: 40px !important;
    }
    
    .recording-interface {
        height: 40px !important;
        padding: 5px !important;
    }
    
    .control-buttons button {
        padding: 6px 8px !important;
        font-size: 10px !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .song-carousel-item {
        min-width: 50%;
    }
    
    .most-searched-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .song-carousel-container {
        height: 320px;
    }
    
    .carousel-thumbnail {
        height: 160px;
    }

    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .quick-action-card,
    .trending-song-card,
    .mobile-cta-btn,
    .song-carousel,
    .song-carousel-item,
    .song-card-carousel {
        transition: none;
    }
    
    .quick-action-card:active {
        transform: none;
    }
}

/* NEW: Enhanced mobile touch targets */
.floating-search-result {
    min-height: 60px;
    padding: 15px;
    margin-bottom: 10px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.floating-search-result .result-thumbnail {
    width: 50px;
    height: 50px;
}

.floating-search-result .result-title {
    font-size: 16px;
}

.floating-search-result .result-artist {
    font-size: 14px;
}

/* NEW: Mobile confirmation dialog */
.mobile-song-confirmation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10003;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.confirmation-content {
    background: white;
    padding: 25px;
    border-radius: 15px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.confirmation-content h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.3em;
}

.song-info {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.song-info strong {
    color: #333;
    font-size: 1.1em;
}

.song-info span {
    color: #666;
    font-size: 0.9em;
}

.confirmation-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.confirm-btn, .cancel-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.confirm-btn {
    background: #4ecdc4;
    color: white;
}

.confirm-btn:active {
    background: #45b7af;
    transform: scale(0.98);
}

.cancel-btn {
    background: #666;
    color: white;
}

.cancel-btn:active {
    background: #555;
    transform: scale(0.98);
}

/* Enhanced connection status for duet */
.connection-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffc107;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Improved drag handles */
.drag-handle {
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

/* Better scrolling on mobile */
.search-results-container-mobile {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Enhanced button active states for mobile */
.button-column button:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Improved modal touch interactions */
.modal-content {
    touch-action: pan-y;
}

/* Better text selection */
.floating-search-result {
    user-select: none;
    -webkit-user-select: none;
}

/* Enhanced focus states for accessibility */
.floating-search-result:focus {
    outline: 2px solid #4ecdc4;
    outline-offset: 2px;
}

/* Improved mobile performance */
.videoke-floating-search * {
    -webkit-tap-highlight-color: transparent;
}

/* Better touch feedback */
.floating-search-result:active {
    background: rgba(255,255,255,0.15);
    transition: background 0.1s ease;
}

/* FIXED: Mobile search result clickability */
.search-result-song,
.most-searched-song,
.trending-song-card,
.quick-action-card,
.song-carousel-item {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

/* Prevent accidental clicks during scroll */
.search-results-container-mobile,
.most-searched-grid,
.trending-carousel {
    touch-action: pan-y;
}

/* Floating toggle buttons - Updated to show in portrait only */
#floating-search-toggle,
#floating-camera-toggle {
    display: none;
    position: fixed;
    width: 50px;
    height: 50px;
    background: #4ecdc4;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#floating-search-toggle {
    top: 20px;
    left: 20px;
}

#floating-camera-toggle {
    top: 80px;
    left: 20px;
    background: #ff6b6b !important;
}

#floating-search-toggle:hover,
#floating-camera-toggle:hover {
    transform: scale(1.1);
    background: #45b7af;
}

#floating-camera-toggle:hover {
    background: #ee5a52 !important;
}

/* Show buttons only in portrait mode */
@media (max-width: 768px) and (orientation: portrait) {
    #floating-search-toggle,
    #floating-camera-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hide in fullscreen player */
    .videoke-full-player #floating-search-toggle,
    .videoke-full-player #floating-camera-toggle {
        display: none !important;
    }
}

/* Hide in landscape mode */
@media (max-width: 768px) and (orientation: landscape) {
    #floating-search-toggle,
    #floating-camera-toggle {
        display: none !important;
    }
}

/* Floating elements container */
.videoke-floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10001;
}

.videoke-floating-elements > * {
    pointer-events: auto;
}

/* Updated scoring modal styles */
.scoring-modal-content {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%), 
                url('/wp-content/plugins/videoke-master/images/videokebackground.jpeg') center/cover !important;
    color: white !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
}

.scoring-modal-content h1,
.scoring-modal-content h2,
.scoring-modal-content h3,
.scoring-modal-content h4,
.scoring-modal-content p,
.scoring-modal-content li,
.scoring-modal-content div:not(.score-circle) {
    color: white !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5) !important;
}

.score-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.score-metric {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.score-metric-value {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.score-metric-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* FIX: Floating camera hidden by default with active class control */
.videoke-floating-camera {
    display: none !important;
}

.videoke-floating-camera.active {
    display: block !important;
}

/* Floating Search Results - Touch Fixes */
.floating-search-result {
    min-height: 70px !important;
    padding: 15px !important;
    margin-bottom: 8px !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: pan-y !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.2s ease !important;
}

.floating-search-result.adding {
    background: rgba(78, 205, 196, 0.2) !important;
    border-color: #4ecdc4 !important;
    transform: scale(0.98) !important;
    transition: all 0.3s ease !important;
}

.floating-search-result:active {
    background: rgba(78, 205, 196, 0.15) !important;
    transform: scale(0.98) !important;
    border-color: #4ecdc4 !important;
}

.floating-search-result.touching {
    background: rgba(78, 205, 196, 0.2) !important;
}

.result-thumbnail {
    width: 50px !important;
    height: 50px !important;
    border-radius: 8px !important;
    background-size: cover !important;
    background-position: center !important;
    margin-right: 15px !important;
    flex-shrink: 0 !important;
}

.result-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.result-title {
    font-size: 16px !important;
    font-weight: bold !important;
    color: white !important;
    margin-bottom: 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.result-artist {
    font-size: 14px !important;
    color: #ccc !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.add-to-queue-btn {
    background: rgba(78, 205, 196, 0.3) !important;
    border: none !important;
    color: white !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
    margin-left: 10px !important;
    z-index: 2 !important;
    position: relative !important;
}

.add-to-queue-btn:active {
    background: rgba(78, 205, 196, 0.6) !important;
    transform: scale(0.9) !important;
}

/* Mobile Toggle Buttons Fix */
#floating-search-toggle,
#floating-camera-toggle {
    display: none !important;
    position: fixed !important;
    width: 50px !important;
    height: 50px !important;
    background: #4ecdc4 !important;
    border: none !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 20px !important;
    cursor: pointer !important;
    z-index: 10000 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    transition: all 0.3s ease !important;
    align-items: center !important;
    justify-content: center !important;
}

#floating-search-toggle {
    top: 20px !important;
    left: 20px !important;
}

#floating-camera-toggle {
    top: 80px !important;
    left: 20px !important;
    background: #ff6b6b !important;
}

/* Show toggle buttons only in portrait mode */
@media (max-width: 768px) and (orientation: portrait) {
    #floating-search-toggle,
    #floating-camera-toggle {
        display: flex !important;
    }
    
    /* Hide in fullscreen player */
    .videoke-full-player #floating-search-toggle,
    .videoke-full-player #floating-camera-toggle {
        display: none !important;
    }
}

/* Hide in landscape mode */
@media (max-width: 768px) and (orientation: landscape) {
    #floating-search-toggle,
    #floating-camera-toggle {
        display: none !important;
    }
}

/* Prevent body scroll when search is open */
body.search-modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Floating camera visibility fix */
.videoke-floating-camera {
    display: none !important;
}

.videoke-floating-camera.active {
    display: block !important;
}

/* Ensure search input is mobile-friendly */
.search-input-container-mobile input {
    font-size: 16px !important;
    touch-action: manipulation !important;
}

/* Prevent accidental clicks during scroll */
#floating-search-results {
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Better scrolling on mobile */
.search-results-container {
    max-height: 300px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
}

.search-results-container::-webkit-scrollbar {
    width: 4px !important;
}

.search-results-container::-webkit-scrollbar-thumb {
    background: rgba(78, 205, 196, 0.5) !important;
    border-radius: 2px !important;
}

/* Add visual feedback for touch */
.floating-search-result::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(78, 205, 196, 0);
    border-radius: 12px;
    transition: background 0.2s ease;
}

.floating-search-result:active::after {
    background: rgba(78, 205, 196, 0.1);
}

/* FIX: Improved modal background with absolute URL fallback */
.videoke-modal {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%) !important;
    background-image: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%), 
                      url('/wp-content/plugins/videoke-master/images/videokebackground.jpeg') !important;
    background-position: center !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    backdrop-filter: blur(10px) !important;
}

/* FIX: Ensure text is readable in scoring modal */
.scoring-modal-content h1,
.scoring-modal-content h2,
.scoring-modal-content h3,
.scoring-modal-content h4,
.scoring-modal-content p,
.scoring-modal-content li,
.scoring-modal-content div {
    color: white !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5) !important;
}

/* FIX: Better button visibility in scoring modal */
.scoring-modal-content .action-secondary,
.scoring-modal-content .action-tertiary {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
    font-weight: bold !important;
}

/* FIX: Mobile search container scrolling */
.search-results-container {
    max-height: 300px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
}

.search-results-container::-webkit-scrollbar {
    width: 4px !important;
}

.search-results-container::-webkit-scrollbar-thumb {
    background: rgba(78, 205, 196, 0.5) !important;
    border-radius: 2px !important;
}

/* FIX: Add visual feedback for touch */
.floating-search-result::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(78, 205, 196, 0);
    border-radius: 12px;
    transition: background 0.2s ease;
}

.floating-search-result:active::after {
    background: rgba(78, 205, 196, 0.1);
}

/* Hide floating elements in landscape on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .videoke-floating-search,
    .videoke-floating-camera,
    #floating-search-toggle,
    #floating-camera-toggle {
        display: none !important;
    }
    
    /* Mobile Add Song Button in landscape */
    .mobile-cta .mobile-cta-secondary[onclick*="showFloatingSearchBar"] {
        display: none !important;
    }
}

/* Mobile Add Song Button Styles */
.mobile-add-song-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #4ecdc4;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile floating search - positioned for mobile */
.mobile-floating-search-container {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    background: rgba(0,0,0,0.95);
    border-radius: 15px;
    z-index: 10001;
    border: 2px solid #4ecdc4;
    backdrop-filter: blur(10px);
    max-height: 70vh;
    overflow: hidden;
    display: none;
}

/* Show mobile add song button in portrait */
@media (max-width: 768px) and (orientation: portrait) {
    .mobile-add-song-btn {
        display: flex;
    }
}

/* Hide in landscape */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-add-song-btn {
        display: none !important;
    }
}

/* Queue animation styles */
@keyframes flyToQueue {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    70% {
        opacity: 0.7;
    }
    100% {
        transform: translate(var(--target-x), var(--target-y)) scale(0.2);
        opacity: 0;
    }
}

.queue-animation {
    position: fixed;
    z-index: 10003;
    pointer-events: none;
    animation: flyToQueue 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.queue-badge-animation {
    animation: queueBadgePulse 0.5s ease-in-out 3;
}

@keyframes queueBadgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
/* FIX: Ensure floating search bar has highest z-index in mobile */
.videoke-floating-search.mobile {
    z-index: 10005 !important; /* Higher than any other element */
    position: fixed !important;
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    background: rgba(0, 0, 0, 0.98) !important;
    border: 2px solid #4ecdc4 !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    max-height: 70vh !important;
    overflow: hidden !important;
    display: none !important;
    border-radius: 15px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

.videoke-floating-search.mobile.active {
    display: flex !important;
    flex-direction: column !important;
}

/* FIX: Ensure search container is visible */
.search-input-container-mobile {
    position: relative !important;
    z-index: 10006 !important;
    background: rgba(0, 0, 0, 0.9) !important;
}

/* FIX: Make sure search results are on top */
.search-results-container-mobile {
    z-index: 10006 !important;
    position: relative !important;
}

/* FIX: Mobile floating elements z-index adjustments */
#floating-search-toggle,
#floating-camera-toggle,
.mobile-add-song-btn {
    z-index: 10004 !important;
}

/* FIX: Ensure modal backdrops don't interfere */
.videoke-modal {
    z-index: 10002 !important;
}

/* FIX: Fullscreen player z-index adjustments */
.videoke-full-player {
    z-index: 10001 !important;
}

/* FIX: Prevent body overflow when search is open */
body.floating-search-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* FIX: Mobile portrait specific adjustments */
@media (max-width: 768px) and (orientation: portrait) {
    .videoke-floating-search.mobile {
        z-index: 10007 !important;
        top: 50px !important; /* Below any potential headers */
        bottom: auto !important;
    }
    
    /* Ensure nothing covers the search */
    .videoke-home-mobile > *:not(.videoke-floating-search) {
        z-index: auto !important;
    }
}

/* FIX: Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .videoke-floating-search.mobile {
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .search-results-container-mobile {
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
    }
}

/* ===========================================
   CRITICAL FIX: Stacked layout for mobile search modal
============================================== */

/* Mobile Search Modal - Stacked Layout */
.videoke-search-modal {
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
}

.search-modal-content {
    width: 95vw !important;
    max-width: 95vw !important;
    max-height: 90vh !important;
    margin: 5vh auto !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.98), rgba(118, 75, 162, 0.98)) !important;
    border-radius: 20px !important;
    border: 2px solid #4ecdc4 !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5) !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Modal Header - Stacked Layout */
.search-modal-header {
    padding: 30px 20px 20px 20px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10001 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    text-align: center !important;
}

.search-modal-header h2 {
    margin: 0 !important;
    color: white !important;
    font-size: 1.8em !important;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3) !important;
    font-weight: bold !important;
    order: 1 !important;
    line-height: 1.3 !important;
}

/* Search Input - Full Width */
.search-input-container {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    order: 2 !important;
}

.search-input-container input {
    width: 100% !important;
    padding: 20px 70px 20px 20px !important;
    font-size: 18px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
    border: 3px solid #4ecdc4 !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    height: 65px !important;
    box-sizing: border-box !important;
}

.search-input-container input::placeholder {
    color: #666 !important;
    font-size: 16px !important;
}

.search-input-container button {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #4ecdc4 !important;
    border: none !important;
    border-radius: 12px !important;
    width: 50px !important;
    height: 50px !important;
    color: white !important;
    font-size: 20px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4) !important;
}

/* Quick Actions - Stacked Below Search */
.search-quick-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    margin: 10px 0 0 0 !important;
    overflow-x: auto !important;
    padding: 15px 0 5px 0 !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    order: 3 !important;
    width: 100% !important;
}

.search-quick-actions::-webkit-scrollbar {
    display: none !important;
}

.quick-action-btn {
    padding: 14px 18px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    backdrop-filter: blur(10px) !important;
    min-width: fit-content !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.quick-action-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.quick-action-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Modal Body */
.search-modal-body {
    padding: 20px !important;
    max-height: calc(90vh - 200px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Most searched section */
.most-searched-section {
    padding: 0 0 20px 0 !important;
}

.most-searched-section h3 {
    color: white !important;
    font-size: 1.4em !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #ff6b6b !important;
    text-align: center !important;
    font-weight: 600 !important;
}

.most-searched-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    margin-bottom: 25px !important;
}

.most-searched-song {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 15px !important;
    padding: 15px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.most-searched-song:active {
    transform: scale(0.98) !important;
}

.most-searched-thumbnail {
    height: 120px !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
}

.most-searched-song h4 {
    color: white !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.most-searched-song .artist {
    color: #4ecdc4 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* Song carousel */
.song-carousel-section {
    padding: 0 0 20px 0 !important;
}

.song-carousel-section h3 {
    color: white !important;
    font-size: 1.4em !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #4ecdc4 !important;
    text-align: center !important;
    font-weight: 600 !important;
}

.swipable-songs-carousel {
    margin: 0 0 25px 0 !important;
}

.song-card-accordion {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    padding: 25px 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    backdrop-filter: blur(15px) !important;
}

.song-thumbnail-accordion {
    height: 150px !important;
    border-radius: 15px !important;
    margin-bottom: 20px !important;
}

.song-info-accordion h4 {
    color: white !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.song-info-accordion .artist {
    color: #ff6b6b !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}

/* Search results */
.search-results-section h3 {
    color: white !important;
    font-size: 1.4em !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #96ceb4 !important;
    text-align: center !important;
    font-weight: 600 !important;
}

.search-results-grid {
    gap: 15px !important;
}

.search-result-song {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 15px !important;
    padding: 18px !important;
    backdrop-filter: blur(10px) !important;
}

.search-result-thumbnail {
    width: 80px !important;
    height: 80px !important;
    border-radius: 10px !important;
}

.search-result-info h4 {
    color: white !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.search-result-info .artist {
    color: #4ecdc4 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Queue and playlist sections */
.queue-section h3, .playlist-manager-section h3 {
    color: white !important;
    font-size: 1.4em !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #ff6b6b !important;
    text-align: center !important;
    font-weight: 600 !important;
}

.queue-list, .playlist-list {
    max-height: 300px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin-bottom: 20px !important;
    padding: 10px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-radius: 10px !important;
}

.queue-item, .playlist-item {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    padding: 12px !important;
    margin-bottom: 8px !important;
}

.queue-thumbnail, .playlist-thumbnail {
    width: 45px !important;
    height: 45px !important;
    border-radius: 8px !important;
}

.queue-title, .playlist-title {
    color: white !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.queue-artist, .playlist-artist {
    color: #ccc !important;
    font-size: 12px !important;
}

/* Close button */
.modal-close-btn {
    top: 20px !important;
    right: 20px !important;
    background: rgba(255, 107, 107, 0.9) !important;
    width: 45px !important;
    height: 45px !important;
    font-size: 1.8em !important;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4) !important;
}

/* Loading states */
.loading-songs, .loading-carousel, .loading-results {
    text-align: center !important;
    padding: 40px 20px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 16px !important;
}

/* No results */
.no-results {
    text-align: center !important;
    padding: 40px 20px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 15px !important;
    border: 1px dashed rgba(255, 255, 255, 0.2) !important;
}

.no-results h3 {
    color: white !important;
    font-size: 1.3em !important;
}

.no-results p {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Very small screens */
@media (max-width: 360px) {
    .search-modal-content {
        width: 98vw !important;
        max-width: 98vw !important;
        margin: 2vh auto !important;
    }
    
    .search-modal-header h2 {
        font-size: 1.5em !important;
    }
    
    .search-input-container input {
        font-size: 16px !important;
        height: 60px !important;
        padding: 18px 60px 18px 18px !important;
    }
    
    .most-searched-grid {
        grid-template-columns: 1fr !important;
    }
    
    .quick-action-btn {
        padding: 12px 15px !important;
        font-size: 13px !important;
    }
    
    .search-result-thumbnail {
        width: 70px !important;
        height: 70px !important;
    }
}

/* Tablet improvements */
@media (min-width: 768px) {
    .search-modal-content {
        max-width: 700px !important;
        width: 90vw !important;
    }
    
    .most-searched-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Body overflow when modal is open */
body.videoke-modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}