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

body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #fff;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #212121;
    border-bottom: 1px solid #333;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    width: 30px;
    height: 30px;
    background-color: transparent;
}

.logo h1 {
    font-size: 20px;
    color: #fff;
}

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

#search-input {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #333;
    background-color: #2a2a2a;
    color: #fff;
    width: 100%;
}

#search-button {
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    background-color: #ff0000;
    color: #fff;
    cursor: pointer;
}

main {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.player-container {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

#player {
    width: 100%;
    max-width: 640px;
    height: 360px;
    margin: 0 auto;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-controls {
    margin-top: 15px;
}

.now-playing {
    margin-bottom: 15px;
}

.now-playing h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.now-playing p {
    font-size: 14px;
    color: #aaa;
}

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

.controls button {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

#play-pause-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ff0000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

#repeat-button {
    opacity: 0.5;
}

#repeat-button.active {
    opacity: 1;
    color: #ff0000;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

#volume-slider {
    width: 100px;
    accent-color: #ff0000;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 5px;
    background-color: #333;
    border-radius: 2.5px;
    position: relative;
    cursor: pointer;
}

#progress {
    height: 100%;
    background-color: #ff0000;
    border-radius: 2.5px;
    width: 0;
}

.results-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.results-container h2 {
    font-size: 18px;
    margin-bottom: 15px;
}

.music-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}

.music-item {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.music-item:hover {
    transform: translateY(-5px);
    background-color: #2a2a2a;
}

.thumbnail {
    height: 140px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

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

.info {
    padding: 12px;
}

.info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info p {
    font-size: 14px;
    color: #aaa;
}