/* In videoke-home.css */
.videoke-home-web {
    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;
    position: relative;
    overflow-x: hidden;
}

.home-hero {
    text-align: center;
    padding: 80px 20px 60px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-content .tagline {
    font-size: 1.5em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #ff6b6b;
    display: block;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.cta-primary {
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ff6b6b;
    color: white;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
}

.home-sections {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: white;
}

.featured-songs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.song-card-large {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.song-card-large:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.song-thumbnail-large {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    margin-bottom: 20px;
    position: relative;
}

.song-info-large h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.song-info-large .artist {
    color: #ff6b6b;
    font-weight: bold;
    margin-bottom: 15px;
}

.song-stats {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.how-it-works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.step-card {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.step-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.step-number {
    background: #ff6b6b;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
}

/* Search Modal Styles for Web - FIXED DESIGN */
.videoke-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: none;
    backdrop-filter: blur(20px);
}

.videoke-search-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.search-modal-content {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    max-width: 95%;
    max-height: 90vh;
    width: 1200px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.search-modal-header {
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.search-modal-header h2 {
    margin: 0 0 20px 0;
    color: white;
    text-align: center;
    font-size: 2em;
}

.search-input-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-container input {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.search-input-container input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.search-input-container button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6b6b;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

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

.search-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 40px 40px;
}

/* Most Searched Songs Section */
.most-searched-section {
    margin-bottom: 40px;
}

.most-searched-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.most-searched-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

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

.most-searched-song:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.most-searched-song h4 {
    font-size: 1em;
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.most-searched-song .artist {
    font-size: 0.85em;
    opacity: 0.8;
    color: white;
}

/* Swipable Songs Carousel */
.swipable-songs-carousel {
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-out;
    gap: 15px;
}

.song-carousel-item {
    min-width: 100%;
    flex-shrink: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.song-card-accordion {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 180px;
    display: flex;
    gap: 15px;
    align-items: center;
}

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

.song-thumbnail-accordion {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.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.5em;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.song-carousel-item:hover .play-overlay {
    opacity: 1;
}

.song-info-accordion {
    flex: 1;
    color: white;
}

.song-info-accordion h4 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
    line-height: 1.3;
}

.song-info-accordion .artist {
    color: #ff6b6b;
    font-size: 1em;
    margin-bottom: 10px;
    font-weight: 500;
}

.video-details {
    display: flex;
    gap: 15px;
    font-size: 0.85em;
    opacity: 0.8;
}

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

.carousel-dot {
    width: 8px;
    height: 8px;
    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);
}

/* Search Results Grid */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.search-result-song {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-result-song:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.search-result-thumbnail {
    width: 80px;
    height: 80px;
    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;
}

.search-result-info h4 {
    margin: 0 0 8px 0;
    color: white;
    font-size: 1em;
    line-height: 1.3;
}

.search-result-info .artist {
    color: #ff6b6b;
    font-size: 0.9em;
    margin-bottom: 8px;
}

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

/* Search Results Section */
.search-results-section {
    margin-top: 30px;
}

.search-results-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.4em;
}

/* Loading and No Results States */
.loading-results, .no-results {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.no-results h3 {
    margin-bottom: 10px;
}

.no-results p {
    opacity: 0.8;
    margin-bottom: 15px;
}

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

.modal-close-btn:hover {
    background: rgba(255, 107, 107, 1);
    transform: scale(1.1);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .featured-songs {
        grid-template-columns: 1fr;
    }
    
    .how-it-works {
        grid-template-columns: 1fr;
    }
    
    .search-modal-header {
        padding: 20px;
    }
    
    .search-modal-header h2 {
        font-size: 1.5em;
    }
    
    .most-searched-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .song-carousel-item {
        min-width: calc(100% / 2);
    }
    
    .carousel-thumbnail {
        height: 140px;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1em;
        margin: 0 10px;
    }

    .videoke-floating-camera {
        width: 120px !important;
        height: 120px !important;
        top: 10px !important;
        right: 10px !important;
        z-index: 10002 !important;
    }
    
    .videoke-floating-camera.expanded {
        width: 280px !important;
        height: 210px !important;
    }
    
    .videoke-floating-camera.minimized {
        width: 60px !important;
        height: 60px !important;
    }
    
    .camera-header {
        padding: 4px 8px !important;
        font-size: 9px !important;
    }
    
    .camera-btn {
        width: 16px !important;
        height: 16px !important;
        font-size: 8px !important;
    }

    .search-results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .search-result-song {
        padding: 15px;
    }
    
    .search-result-thumbnail {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .song-carousel-item {
        min-width: 100%;
    }
    
    .most-searched-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-thumbnail {
        height: 120px;
    }
}

.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #4ecdc4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.author-info h4 {
    margin: 0;
    color: #ff6b6b;
}

.author-info p {
    margin: 0;
    opacity: 0.7;
    font-size: 0.9em;
}

.videoke-playlists {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

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

.playlist-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.playlist-thumbnail {
    position: relative;
    height: 150px;
    margin-bottom: 20px;
}

.playlist-samples {
    display: flex;
    justify-content: center;
    gap: 10px;
    height: 100%;
    align-items: center;
}

.sample-album {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
}

.playlist-info h3 {
    margin: 0 0 10px 0;
    color: white;
}

.playlist-info p {
    margin: 0;
    opacity: 0.7;
}

/* Scoring Modal Styles */
.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.videoke-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* LAZY LOADING STYLES */
.videoke-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.videoke-lazy.loaded {
    opacity: 1;
}

/* Skeleton loading states */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Progressive enhancement */
.no-js .videoke-lazy {
    opacity: 1;
}

/* Performance optimized animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Critical above-the-fold styles */
.videoke-critical {
    content-visibility: auto;
    contain-intrinsic-size: 1px 5000px;
}

/* Optimized for core web vitals */
.videoke-home-web, .videoke-home-mobile {
    will-change: transform;
    backface-visibility: hidden;
}

/* Add these styles to your existing CSS file */

/* Floating Search Styles */
.videoke-floating-search {
    position: fixed;
    width: 320px;
    height: 400px;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 10002;
    border: 2px solid #4ecdc4;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    resize: both;
    min-width: 300px;
    min-height: 350px;
}

.videoke-floating-search.dragging {
    border-color: #ff6b6b;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.4);
}

.search-header {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.9), rgba(102, 126, 234, 0.9));
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: white;
    cursor: move;
    user-select: none;
}

.search-controls {
    display: flex;
    gap: 5px;
}

.search-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.search-input-container {
    padding: 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #333;
}

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

.search-input-container button {
    background: #4ecdc4;
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
}

.search-results-panel {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.floating-search-result {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.floating-search-result:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #4ecdc4;
    transform: translateX(5px);
}

.floating-search-result.adding {
    background: rgba(78, 205, 196, 0.2);
    border-color: #4ecdc4;
}

.result-thumbnail {
    width: 40px;
    height: 40px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    margin-right: 12px;
    flex-shrink: 0;
}

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

.result-title {
    font-size: 13px;
    font-weight: bold;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.add-to-queue-btn {
    background: rgba(78, 205, 196, 0.3);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.search-footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
}

.drag-handle {
    color: rgba(255, 255, 255, 0.5);
    cursor: move;
    font-size: 16px;
    line-height: 1;
}

.queue-preview {
    color: #96ceb4;
    font-size: 12px;
    font-weight: bold;
}

.results-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.floating-search-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10001;
}

.floating-search-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #4ecdc4;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

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

/* Queue notification animation */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.queue-notification {
    animation: slideInRight 0.3s ease;
}

/* Enhanced queue item animations */
.queue-item {
    transition: all 0.3s ease;
}

.queue-item.adding {
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid #4ecdc4;
}

/* Responsive floating search */
@media (max-width: 768px) {
    .videoke-floating-search {
        width: 300px;
        height: 380px;
    }
    
    .floating-search-container {
        bottom: 70px;
        right: 10px;
    }
}