@import url('https://fonts.googleapis.com/css2?family=Radio+Canada:ital,wght@0,300..700;1,300..700&display=swap');

:root {
    --primary: #00d4ff;
    --dark: #0f1216;
    --darker: #080a0c;
    --light: #f5f7fa;
    --accent: #ff0066;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'Inter', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; */
    font-family: "Radio Canada", sans-serif;
}

body,
html {
    height: 100%;
    background: linear-gradient(135deg, var(--darker), var(--dark));
    color: var(--light);
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.visualizer {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
}

.visualizer-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 80px rgba(0, 212, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.wave-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wave {
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.2);
    animation: wave 8s infinite linear;
}

.wave:nth-child(2) {
    width: 70%;
    height: 70%;
    animation-delay: -2s;
    border-color: rgba(255, 0, 102, 0.2);
}

.wave:nth-child(3) {
    width: 50%;
    height: 50%;
    animation-delay: -4s;
    border-color: rgba(0, 212, 255, 0.2);
}

.wave:nth-child(4) {
    width: 30%;
    height: 30%;
    animation-delay: -6s;
    border-color: rgba(255, 0, 102, 0.2);
}

@keyframes wave {
    0% {
        transform: rotate(0deg);
        border-radius: 50%;
    }

    33% {
        transform: rotate(120deg);
        border-radius: 40% 60% 70% 30%;
    }

    66% {
        transform: rotate(240deg);
        border-radius: 30% 60% 40% 70%;
    }

    100% {
        transform: rotate(360deg);
        border-radius: 50%;
    }
}

.player-info {
    z-index: 1;
    text-align: center;
    padding: 2rem;
    backdrop-filter: blur(5px);
    background: rgba(15, 18, 22, 0.6);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
}

.station-name {
    font-size: 2.0rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 15px;
}

.now-playing {
    opacity: 0.7;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.track-info {
    margin-bottom: 2rem;
}

.track-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.track-artist {
    opacity: 0.8;
    font-size: 1rem;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn {
    background: none;
    border: none;
    color: var(--light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.btn:hover {
    opacity: 1;
}

.btn.play-pause {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    opacity: 1;
}

.btn.play-pause:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.volume-slider {
    width: 100%;
    margin-bottom: 1.5rem;
}

.volume-slider input {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.volume-slider input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.request-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    border: none;
    color: var(--light);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: gradientShift 3s infinite linear;
}

.request-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

footer {
    padding: 1rem 0;
    opacity: 0.5;
    font-size: 0.75rem;
    text-align: center;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, var(--dark), var(--darker));
    padding: 2rem;
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--light);
    opacity: 0.7;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-modal:hover {
    opacity: 1;
    transform: scale(1.1);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border: none;
    color: var(--light);
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Success message */
.success-message {
    display: none;
    text-align: center;
    padding: 1rem;
    background: rgba(0, 200, 83, 0.1);
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    color: #00c853;
}

/* Stream status indicator */
.stream-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #00c853;
    box-shadow: 0 0 10px rgba(0, 200, 83, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* For smaller screens */
@media (max-width: 768px) {
    .visualizer-circle {
        width: 300px;
        height: 300px;
    }

    .player-info {
        width: 95%;
    }
}

/* For even smaller screens */
@media (max-width: 480px) {
    .visualizer-circle {
        width: 250px;
        height: 250px;
    }

    .station-name {
        font-size: 1.5rem;
    }

    .track-title {
        font-size: 1.1rem;
    }

    .btn {
        width: 36px;
        height: 36px;
    }

    .btn.play-pause {
        width: 80px;
        height: 80px;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .form-group label {
        font-size: 0.8rem;
    }

    .form-control {
        font-size: 0.9rem;
    }

    #pauseIcon {
        display: block;
        width: 30px;
        height: 30px;
    }
}

.track-info {
    display: none;
}

.stream-status {
    position: absolute;
    top: -34px;
    left: 50%;
    margin-left: -43px;
}

.quality, #streamQuality {
    display: none;
}