/*
|--------------------------------------------------------------------------
| DreamRadios
|--------------------------------------------------------------------------
*/

.dreamradios-section {
    position: relative;
    z-index: 1;

    padding: 20px 24px 56px;

    background: transparent;
}

.dreamradios-shell {
    display: grid;

    grid-template-columns:
        minmax(230px, 0.32fr)
        minmax(0, 1fr);

    gap: 38px;

    width: min(1600px, 100%);
    margin: 0 auto;

    padding: 34px;

    border: 1px solid #f0e5dc;
    border-radius: 24px;

    background:
        radial-gradient(
            circle at 28% 30%,
            rgba(54, 123, 230, 0.04),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #fffdfb 0%,
            #fffaf6 55%,
            #fdf7f1 100%
        );

    box-shadow:
        0 34px 90px rgba(72, 45, 29, 0.22),
        0 14px 40px rgba(72, 45, 29, 0.12);
}


/*
|--------------------------------------------------------------------------
| Intro
|--------------------------------------------------------------------------
*/

.dreamradios-intro {
    display: flex;

    flex-direction: column;
    justify-content: center;

    min-width: 0;
}


.dreamradios-title {
    margin: 0;

    color: #367BE6;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(
        32px,
        3vw,
        48px
    );

    font-weight: 700;
    line-height: 1.08;
}


.dreamradios-description {
    max-width: 440px;

    margin: 16px 0 0;

    color: #654b3b;

    font-size: 15px;
    line-height: 1.65;
}


.dreamradios-main-button {
    display: inline-flex;

    align-items: center;
    justify-content: space-between;

    gap: 22px;

    width: fit-content;

    min-height: 50px;

    margin-top: 24px;
    padding: 0 20px;

    border: 1px solid #367BE6;
    border-radius: 10px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #4A8AF0 0%,
            #367BE6 100%
        );

    font-size: 13px;
    font-weight: 800;

    text-decoration: none;

    box-shadow:
        0 8px 18px
        rgba(37, 95, 191, 0.16);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.dreamradios-main-button:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #367BE6,
            #255FBF
        );

    box-shadow:
        0 12px 24px
        rgba(37, 95, 191, 0.22);
}


/*
|--------------------------------------------------------------------------
| Content
|--------------------------------------------------------------------------
*/

.dreamradios-content {
    min-width: 0;
}


.dreamradios-featured-title {
    margin: 0 0 12px;

    color: #4e4038;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.03em;
    text-transform: uppercase;
}


/*
|--------------------------------------------------------------------------
| Channels
|--------------------------------------------------------------------------
*/

.dreamradios-channels {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 14px;
}


.dreamradios-channel {
    min-width: 0;

    overflow: hidden;

    padding: 0;

    border: 1px solid #e5d9d0;
    border-radius: 14px;

    color: #29231f;
    background: #ffffff;

    text-align: left;

    font: inherit;

    cursor: pointer;

    box-shadow:
        0 7px 20px
        rgba(70, 48, 34, 0.05);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.dreamradios-channel:hover {
    transform: translateY(-4px);

    border-color: #AFCBF4;

    box-shadow:
        0 13px 28px
        rgba(70, 48, 34, 0.10);
}


.dreamradios-channel.is-active {
    border-color: #367BE6;

    box-shadow:
        0 0 0 2px
        rgba(54, 123, 230, 0.13),
        0 12px 26px
        rgba(70, 48, 34, 0.08);
}


.dreamradios-channel:disabled {
    cursor: default;
    opacity: 0.6;
}


/*
|--------------------------------------------------------------------------
| Channel image
|--------------------------------------------------------------------------
*/

.dreamradios-channel-image {
    position: relative;

    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #f2e9e2;
}


.dreamradios-channel-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.3s ease;
}


.dreamradios-channel:hover
.dreamradios-channel-image img {
    transform: scale(1.035);
}


.dreamradios-channel-placeholder {
    display: grid;

    place-items: center;

    width: 100%;
    height: 100%;

    color: #367BE6;

    background:
        radial-gradient(
            circle at 50% 45%,
            #fffdfb 0%,
            #f4e8df 65%,
            #eadbd0 100%
        );

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 42px;
}


.dreamradios-card-play {
    position: absolute;

    right: 10px;
    bottom: 10px;

    z-index: 3;

    display: grid;

    place-items: center;

    width: 32px;
    height: 32px;

    padding-left: 2px;

    border: 1px solid
        rgba(255, 255, 255, 0.78);

    border-radius: 50%;

    color: #ffffff;
    background: #367BE6;

    font-size: 10px;
    font-weight: 800;

    box-shadow:
        0 5px 12px
        rgba(37, 95, 191, 0.22);
}


/*
|--------------------------------------------------------------------------
| Channel copy
|--------------------------------------------------------------------------
*/

.dreamradios-channel-copy {
    display: grid;

    gap: 5px;

    padding: 12px 13px 14px;
}


.dreamradios-channel-copy strong {
    overflow: hidden;

    color: #29231f;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 15px;
    line-height: 1.25;

    white-space: nowrap;
    text-overflow: ellipsis;
}


.dreamradios-channel-copy span {
    overflow: hidden;

    max-height: calc(1.45em * 2);

    color: #756b65;

    font-size: 11px;
    line-height: 1.45;
}


/*
|--------------------------------------------------------------------------
| Player
|--------------------------------------------------------------------------
*/

.dreamradios-player {
    display: grid;

    grid-template-columns:
        auto
        minmax(130px, 190px)
        minmax(160px, 1fr)
        auto;

    align-items: center;

    gap: 16px;

    min-height: 66px;

    margin-top: 14px;
    padding: 10px 14px;

    border: 1px solid #e4d9d0;
    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 6px 18px
        rgba(70, 48, 34, 0.04);
}


/*
|--------------------------------------------------------------------------
| Player controls
|--------------------------------------------------------------------------
*/

.dreamradios-player-controls {
    display: flex;

    align-items: center;

    gap: 5px;
}


.dreamradios-control-button {
    display: inline-grid;

    place-items: center;

    width: 30px;
    height: 30px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    color: #5d5048;
    background: transparent;

    font-size: 10px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


.dreamradios-control-button:hover {
    color: #255FBF;
    background: #fff4ed;
}


.dreamradios-play-button {
    width: 38px;
    height: 38px;

    color: #ffffff;
    background: #367BE6;

    font-size: 12px;

    box-shadow:
        0 6px 14px
        rgba(37, 95, 191, 0.20);
}


.dreamradios-play-button:hover {
    color: #ffffff;
    background: #255FBF;

    transform: scale(1.04);
}


/*
|--------------------------------------------------------------------------
| Player text
|--------------------------------------------------------------------------
*/

.dreamradios-player-copy {
    min-width: 0;

    display: grid;
}


.dreamradios-player-copy strong {
    overflow: hidden;

    color: #342923;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 13px;

    white-space: nowrap;
    text-overflow: ellipsis;
}


.dreamradios-player-copy span {
    overflow: hidden;

    margin-top: 3px;

    color: #806f65;

    font-size: 10px;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/*
|--------------------------------------------------------------------------
| Progress
|--------------------------------------------------------------------------
*/

.dreamradios-progress-wrap {
    min-width: 0;

    display: flex;

    align-items: center;

    gap: 10px;
}


.dreamradios-progress {
    width: 100%;
    min-width: 80px;

    cursor: pointer;

    accent-color: #367BE6;
}


.dreamradios-time {
    display: flex;

    align-items: center;

    gap: 3px;

    color: #81756d;

    font-size: 10px;

    white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| Volume
|--------------------------------------------------------------------------
*/

.dreamradios-volume {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #756a63;
}


.dreamradios-volume span {
    font-size: 13px;
}


.dreamradios-volume input {
    width: 70px;

    cursor: pointer;

    accent-color: #367BE6;
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {

    .dreamradios-shell {
        grid-template-columns: 1fr;

        gap: 26px;
    }


    .dreamradios-intro {
        max-width: 650px;
    }


    .dreamradios-channels {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/*
|--------------------------------------------------------------------------
| Player responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 800px) {

    .dreamradios-player {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }


    .dreamradios-progress-wrap {
        grid-column: 1 / -1;
    }


    .dreamradios-volume {
        display: none;
    }

}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 600px) {

    .dreamradios-section {
        padding:
            26px
            14px
            48px;
    }


    .dreamradios-shell {
        gap: 22px;

        padding: 22px;

        border-radius: 18px;
    }


    .dreamradios-title {
        font-size: 30px;
    }


    .dreamradios-description {
        font-size: 14px;
    }


    .dreamradios-main-button {
        width: 100%;

        justify-content: center;

        min-height: 50px;
    }


    .dreamradios-channels {
        display: flex;

        gap: 12px;

        overflow-x: auto;

        margin-right: -22px;
        margin-left: -22px;

        padding:
            2px
            22px
            12px;

        scroll-snap-type: x mandatory;
    }


    .dreamradios-channel {
        flex:
            0 0
            min(
                76vw,
                240px
            );

        scroll-snap-align: start;
    }


    .dreamradios-player {
        margin-top: 4px;
    }

}


/*
|--------------------------------------------------------------------------
| Reduced motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .dreamradios-channel,
    .dreamradios-channel-image img,
    .dreamradios-main-button,
    .dreamradios-control-button {
        transition: none;
    }

}