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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #121212;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.hero {
    text-align: center;
    color: #1DB954;
    padding: 3rem 1rem;
    margin: 0 -1rem 2rem -1rem;
    background: linear-gradient(180deg, #1DB954 0%, #191414 100%);
    border-radius: 0 0 20px 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Control Panel */
.control-panel {
    background: #282828;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    height: fit-content;
    border: 1px solid #404040;
}

.control-panel h2 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.5rem;
}

.button-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.api-button {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.api-button i {
    font-size: 1.1em;
}

.api-button:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.api-button:active {
    transform: scale(0.98);
}

.api-button.primary {
    background: #1DB954;
    color: white;
}

.api-button.secondary {
    background: #1E3264;
    color: white;
}

.api-button.tertiary {
    background: #8D67AB;
    color: white;
}

.api-button.info {
    background: #E8115B;
    color: white;
}

.api-button.search {
    background: #535353;
    color: white;
    border-radius: 0 30px 30px 0;
    padding: 0.75rem 1.5rem;
}

.search-container {
    display: flex;
    gap: 0;
    margin-top: 1rem;
}

#searchInput {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #404040;
    border-radius: 30px 0 0 30px;
    background: #121212;
    color: white;
    font-size: 0.95rem;
}

#searchInput:focus {
    outline: none;
    border-color: #1DB954;
}

#searchType {
    padding: 0 1rem;
    background: #282828;
    border: 1px solid #404040;
    border-left: none;
    color: white;
    cursor: pointer;
}

#searchType:focus {
    outline: none;
    border-color: #1DB954;
}

/* Search Section */
.search-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #404040;
}

.search-section h3 {
    margin-bottom: 0.75rem;
    color: #b3b3b3;
    font-size: 1.1rem;
}

/* Results Container */
.result-display {
    background: #181818;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    min-height: 400px;
    position: relative;
    border: 1px solid #282828;
    color: #ffffff;
}

.welcome-message {
    text-align: center;
    color: #b3b3b3;
    padding: 2rem;
}

.welcome-message h3 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-size: 1.8rem;
}

.welcome-message p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.welcome-message ul {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    padding-left: 1.5rem;
    list-style: none;
}

.welcome-message li {
    margin-bottom: 0.75rem;
    color: #b3b3b3;
    position: relative;
    padding-left: 30px;
}

.welcome-message li:before {
    content: '🎵';
    position: absolute;
    left: 0;
    top: 0;
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 2rem;
    color: #b3b3b3;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #1DB954;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Track Card */
.track-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    background: #282828;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s ease;
}

.track-card:hover {
    background: #383838;
}

.track-number {
    width: 30px;
    color: #b3b3b3;
    text-align: center;
}

.track-info {
    flex: 1;
    margin: 0 1rem;
}

.track-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.track-artist {
    font-size: 0.9rem;
    color: #b3b3b3;
}

.track-duration {
    color: #b3b3b3;
    font-size: 0.9rem;
}

/* Album/Playlist Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.media-item {
    background: #181818;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.media-item:hover {
    background: #282828;
}

.media-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.media-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-artist {
    font-size: 0.9rem;
    color: #b3b3b3;
}

/* Player Controls */
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.control-button {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.control-button:hover {
    color: #ffffff;
}

.control-button.primary {
    background: #1DB954;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-button.primary:hover {
    transform: scale(1.05);
    color: white;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #404040;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress {
    height: 100%;
    background: #1DB954;
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #b3b3b3;
}

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

.error {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ff4d4d;
    margin-bottom: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* Dark Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #282828;
}

::-webkit-scrollbar-thumb {
    background: #535353;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #686868;
}
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .breed-list {
        columns: 1;
    }

    .container {
        padding: 0.5rem;
    }

    .control-panel, .results-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }
}