content {
    width: 1200px;
}

.playerContainer {
    width: 100%;
    margin: 20px auto;
    margin-top: 0px;
    box-sizing: border-box;
    container-type: inline-size;
}

.player-wrapper {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.player-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

.player-content {
    position: relative;
    z-index: 2;
}

.custom-player {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.player-visualizer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px 10px;
    backdrop-filter: blur(8px);
    overflow: hidden;
    position: relative;
}

.wave-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 60px;
    gap: 2px;
}

.wave-bar {
    flex: 1;
    max-width: 8px;
    min-width: 3px;
    background: linear-gradient(to top, #ff6b6b, #4ecdc4, #45b7d1);
    border-radius: 3px;
    transition: height 0.08s ease-out, opacity 0.08s ease-out, background 0.15s ease-out, transform 0.07s ease-out;
    opacity: 0.6;
    min-height: 12px;
    position: relative;
}

/* Dynamic bar heights - set by JavaScript */
.wave-bar {
    height: 36.77px;
    /* Default height */
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(1.2);
        opacity: 1;
    }
}

@keyframes breathe {

    0%,
    100% {
        transform: scaleY(0.7) scaleX(0.95);
        opacity: 0.4;
    }

    25% {
        transform: scaleY(0.9) scaleX(1.02);
        opacity: 0.6;
    }

    50% {
        transform: scaleY(1.2) scaleX(1.05);
        opacity: 0.8;
    }

    75% {
        transform: scaleY(1.0) scaleX(0.98);
        opacity: 0.7;
    }
}

.player-controls-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.now-playing-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.station-artwork {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.artwork-placeholder {
    color: white;
    font-size: 24px;
}

.track-info {
    flex: 1;
}

.station-title {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.station-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-flow: row nowrap;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    margin-block: 0px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.control-btn .material-symbols-outlined {
    color: white;
    font-size: 20px;
    margin: 0;
}

.volume-slider-container {
    position: relative;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

#audioPlayer {
    width: 100%;
}

.station-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: var(--backgroundmain);
    border: 1px solid var(--decorbor);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.station-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px var(--shadow);
}

.station-info {
    flex-grow: 1;
}

.lsffect {
    animation: spin 1.5s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

.disnone {
    display: none;
}

.station-name {
    font-weight: bold;
    color: var(--text);
    margin-bottom: 5px;
    font-size: 18px;
}

.station-country {
    color: var(--suggestions);
    font-size: 14px;
}

.station-controls {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.play-btn,
.favorite-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    padding-right: 9px;
    margin: 0px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.play-btn:hover,
.favorite-btn:hover {
    background-color: #0056b3;
}

.favorite-btn {
    background-color: #ffc107;
}

.favorite-btn:hover {
    background-color: #e0a800;
}

.material-symbols-outlined {
    font-size: 20px;
    margin-right: 5px;
}

.section-title {
    margin-top: 5px;
    margin-bottom: 25px;
    font-size: 31px;
    font-weight: bold;
    color: var(--text);
    text-align: left;
}

.recentlyListened-color {
    color: #ffc107;
}

.favorites-color {
    color: #28a745;
}

.topStations-color {
    color: #dc3545;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@container (max-width: 1000px) {
    .wave-bar:nth-child(n+49) {
        display: none;
    }
}

@container (max-width: 950px) {
    .wave-bar:nth-child(n+47) {
        display: none;
    }
}

@container (max-width: 900px) {
    .wave-bar:nth-child(n+45) {
        display: none;
    }
}

@container (max-width: 850px) {
    .wave-bar:nth-child(n+43) {
        display: none;
    }
}

@container (max-width: 800px) {
    .wave-bar {
        max-width: 7px;
    }
    .wave-bar:nth-child(n+41) {
        display: none;
    }
}

@container (max-width: 750px) {
    .wave-bar:nth-child(n+39) {
        display: none;
    }
}

@container (max-width: 700px) {
    .wave-bar {
        max-width: 6px;
    }
    .wave-bar:nth-child(n+37) {
        display: none;
    }
}

@container (max-width: 650px) {
    .wave-bar:nth-child(n+35) {
        display: none;
    }
}

@container (max-width: 600px) {
    .player-wrapper {
        padding: 20px;
    }

    .player-controls-section {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .now-playing-info {
        justify-content: center;
    }

    .wave-container {
        gap: 1px;
    }

    .wave-bar {
        max-width: 5px;
        min-width: 2px;
    }

    .wave-bar:nth-child(n+33) {
        display: none;
    }

    .volume-slider {
        width: 120px;
    }
}

@container (max-width: 550px) {
    .wave-bar:nth-child(n+31) {
        display: none;
    }
}

@container (max-width: 500px) {
    .wave-bar {
        max-width: 4.5px;
    }
    .wave-bar:nth-child(n+29) {
        display: none;
    }
}

@container (max-width: 450px) {
    .wave-bar:nth-child(n+27) {
        display: none;
    }
}

@container (max-width: 400px) {
    .player-wrapper {
        padding: 15px;
    }

    .player-visualizer {
        height: 70px;
        padding: 15px 8px;
    }

    .wave-container {
        height: 40px;
        gap: 1px;
    }

    .wave-bar {
        max-width: 4px;
        min-width: 2px;
    }

    .wave-bar:nth-child(n+25) {
        display: none;
    }

    .station-artwork {
        width: 50px;
        height: 50px;
    }

    .station-title {
        font-size: 16px;
    }

    .station-subtitle {
        font-size: 12px;
    }

    .control-btn {
        width: 40px;
        height: 40px;
    }

    .volume-slider {
        width: 100px;
    }
}

@container (max-width: 350px) {
    .wave-bar {
        max-width: 3.5px;
    }
    .wave-bar:nth-child(n+22) {
        display: none;
    }
}

@container (max-width: 300px) {
    .wave-bar {
        max-width: 3px;
    }
    .wave-bar:nth-child(n+18) {
        display: none;
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
}