:root {
    --primary-gradient: linear-gradient(to right, #db2777, #2563eb);
    --background-color: #000000;
    --text-color: #ffffff;
    --accent-color: #f9a8d4;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fira Sans', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    background-image: var(--primary-gradient);
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 2rem;
    width: auto;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-color);
}

main {
    flex-grow: 1;
    padding: 2rem 0;
}

.radio-player {
    display: flex;
    gap: 2rem;
}

.player-info {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.player-image {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: var(--gray-900);
}

.player-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.on-air {
    background-color: #dc2626;
    color: var(--text-color);
    padding: 0.25rem 1rem;
    border-radius: 0.125rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.song-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    margin-bottom: 0;
}

.artist-name {
    color: var(--accent-color);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    margin-top: 0;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.control-btn:hover {
    color: var(--accent-color);
}

.play-pause-btn {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-image: var(--primary-gradient);
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.play-pause-btn:hover {
    opacity: 0.9;
}

.volume-slider {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    background-color: var(--gray-800);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.volume-slider.hidden {
    display: none;
}

.slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 0.25rem;
    background: var(--gray-700);
    outline: none;
    border-radius: 0.125rem;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1rem;
    height: 1rem;
    background: var(--text-color);
    cursor: pointer;
    border-radius: 50%;
}

.slider::-moz-range-thumb {
    width: 1rem;
    height: 1rem;
    background: var(--text-color);
    cursor: pointer;
    border-radius: 50%;
}

.song-list {
    flex: 0 0 55%;
    background-color: var(--gray-800);
    border-radius: 0.5rem;
    padding: 1rem;
    height: 100%;
}

.song-list h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.song-history {
    height: 400px;
    overflow-y: auto;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--gray-700);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.song-item img {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 0.25rem;
    object-fit: cover;
}

.song-item-info {
    flex: 1;
    min-width: 0;
}

.song-item-title {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-item-artist {
    color: var(--accent-color);
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.song-item-time {
    font-size: 0.75rem;
    color: #9ca3af;
}

footer {
    background-color: var(--gray-900);
    padding: 2rem 0;
    margin-top: 2rem;
}

.app-store-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-store-btn {
    display: flex;
    align-items: center;
    background-color: #000;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.app-store-btn:hover {
    background-color: #333;
}

.app-store-btn i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.app-store-btn span {
    font-size: 0.75rem;
    text-align: left;
}

.app-store-btn strong {
    font-size: 1rem;
}

.footer-text {
    text-align: center;
    color: var(--accent-color);
    font-size: 0.875rem;
}

.share-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.share-popup.hidden {
    display: none;
}

.share-content {
    background-color: var(--gray-800);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    max-width: 90%;
    width: 400px;
}

.share-album-art {
    width: 200px;
    height: 200px;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.share-song-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.share-artist-name {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.share-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.share-btn.facebook { background-color: #1877f2; }
.share-btn.twitter { background-color: #1da1f2; }
.share-btn.whatsapp { background-color: #25d366; }
.share-btn.share-btn.copy { background-color: var(--gray-700); }

.close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .radio-player {
        flex-direction: column;
    }

    .player-info,
    .song-list {
        flex: 1 1 100%;
    }

    .song-history {
        height: 300px;
    }
}