* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #8B5CF6;
    --primary-pink: #EC4899;
    --primary-orange: #F97316;
    --primary-cyan: #06B6D4;
    --primary-yellow: #FBBF24;
    --primary-green: #10B981;
    
    --bg-dark: #0F0F23;
    --bg-darker: #0A0A18;
    --bg-card: #1A1A2E;
    --text-light: #FFFFFF;
    --text-gray: #A1A1AA;
    --text-darker: #71717A;
    
    --gradient-rainbow: linear-gradient(135deg, 
        var(--primary-purple) 0%, 
        var(--primary-pink) 25%, 
        var(--primary-orange) 50%, 
        var(--primary-yellow) 75%, 
        var(--primary-green) 100%);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Animation (reused from main page) */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.music-note {
    position: absolute;
    font-size: 2rem;
    opacity: 0.05;
    animation: float 8s ease-in-out infinite;
    color: var(--primary-cyan);
}

.note1 { top: 10%; left: 10%; animation-delay: 0s; color: var(--primary-purple); }
.note2 { top: 20%; right: 15%; animation-delay: 2s; color: var(--primary-pink); }
.note3 { top: 60%; left: 5%; animation-delay: 4s; color: var(--primary-orange); }
.note4 { bottom: 20%; right: 10%; animation-delay: 6s; color: var(--primary-green); }
.note5 { bottom: 10%; left: 20%; animation-delay: 8s; color: var(--primary-yellow); }

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    font-size: 2rem;
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-light);
    background: rgba(139, 92, 246, 0.2);
}

/* Discovery Page Layout */
.discovery-page {
    padding-top: 5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 3rem;
}

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.colorful {
    background: linear-gradient(45deg, var(--primary-pink), var(--primary-orange), var(--primary-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search Section */
.search-section {
    background: rgba(26, 26, 46, 0.5);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.search-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-group label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

.search-group input,
.search-group select {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-group input:focus,
.search-group select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* City Search Container */
.city-search-container {
    position: relative;
}

.city-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.city-suggestions.show {
    display: block;
}

.city-suggestion {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.city-suggestion:hover,
.city-suggestion.selected {
    background: rgba(139, 92, 246, 0.2);
    color: var(--text-light);
}

.city-suggestion:last-child {
    border-bottom: none;
}

.city-flag {
    font-size: 1.2rem;
}

.city-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.city-name {
    font-weight: 600;
}

.city-details {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Popular Cities */
.popular-cities {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.popular-cities h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-weight: 600;
}

.city-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.city-chip {
    padding: 0.4rem 0.8rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-gray);
}

.city-chip:hover,
.city-chip.selected {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--gradient-rainbow);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.filter-chips {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.chip {
    padding: 0.5rem 1.5rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.chip:hover,
.chip.active {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-1px);
}

/* Loading Section */
.loading-section {
    text-align: center;
    padding: 4rem 0;
    display: none;
}

.loading-section.show {
    display: block;
}

.vinyl-loading {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    position: relative;
}

.vinyl-record-small {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-purple), var(--primary-pink));
    position: relative;
    animation: spin 2s linear infinite;
}

.vinyl-record-small::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-dark);
}

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

/* Results Section */
.results-section {
    margin-bottom: 4rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(26, 26, 46, 0.5);
    padding: 0.25rem;
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.view-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.view-btn.active {
    background: var(--primary-purple);
    color: white;
}

/* Concert Cards Grid */
.concerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Concert Card Styles */
.concert-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.concert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
    border-color: var(--primary-purple);
}

.concert-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, var(--primary-purple), var(--primary-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

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

.match-score {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.8rem;
}

.concert-info {
    padding: 1.5rem;
}

.concert-header {
    margin-bottom: 1rem;
}

.concert-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.artist-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.artist-popularity {
    background: var(--primary-purple);
    color: white;
    padding: 0.1rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

.concert-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.detail-icon {
    font-size: 1rem;
}

.artist-story {
    background: rgba(139, 92, 246, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid var(--primary-purple);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.music-samples {
    margin-bottom: 1rem;
}

.samples-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.sample-tracks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.track-item {
    display: flex;
    align-items: center;
    justify-content: between;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 8px;
    font-size: 0.8rem;
}

.track-info {
    flex: 1;
}

.track-name {
    font-weight: 600;
    color: var(--text-light);
}

.track-album {
    color: var(--text-gray);
    font-size: 0.75rem;
}

.play-btn {
    background: var(--primary-green);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
}

.ticket-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-range {
    font-weight: 600;
    color: var(--primary-green);
    font-size: 1.1rem;
}

.buy-tickets-btn {
    background: var(--gradient-rainbow);
    border: none;
    border-radius: 10px;
    padding: 0.5rem 1.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.buy-tickets-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.4);
}

.vibe-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(236, 72, 153, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Load More Button */
.load-more-section {
    text-align: center;
    margin: 3rem 0;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid var(--primary-purple);
    border-radius: 15px;
    color: var(--primary-purple);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-2px);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Concert Modal */
.concert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.concert-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

/* Responsive Design */
@media (max-width: 768px) {
    .discovery-page {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .concerts-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .filter-chips {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .chip {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .concert-card {
        margin: 0 -0.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .search-section {
        padding: 1rem;
        margin: 1rem -1rem;
        border-radius: 0;
    }
}