/* ── GM Autoplay Player ── */

.gm-player {
    position: relative;
    padding: 28px 24px 22px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    text-align: center;
    color: #fff;
    font-family: inherit;
    overflow: hidden;
}

/* Ciemna warstwa gdy jest tło obrazkowe */
.gm-player::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    border-radius: inherit;
    pointer-events: none;
}

.gm-player > * {
    position: relative;
    z-index: 1;
}

/* ── Info ── */

.gm-info {
    margin-bottom: 18px;
}

.gm-title {
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: .03em;
    margin-bottom: 4px;
}

.gm-artist {
    font-size: .85em;
    opacity: .8;
    margin-bottom: 2px;
}

.gm-source {
    font-size: .75em;
    opacity: .55;
}

/* ── Controls ── */

.gm-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Buttons ── */

.gm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255,255,255,.6);
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .1s;
    padding: 0;
    flex-shrink: 0;
}

.gm-btn:hover {
    background: rgba(255,255,255,.28);
    border-color: #fff;
    transform: scale(1.08);
}

.gm-btn:active {
    transform: scale(.95);
}

/* Stan aktywny (play) */
.gm-btn--active {
    background: rgba(255,255,255,.35);
    border-color: #fff;
}

.gm-icon {
    width: 18px;
    height: 18px;
    display: block;
}

/* ── Volume ── */

.gm-volume-wrap {
    display: flex;
    align-items: center;
}

#gm-volume {
    -webkit-appearance: none;
    appearance: none;
    width: 110px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,.35);
    outline: none;
    cursor: pointer;
}

#gm-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,.4);
}

#gm-volume::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* ── Hint autoplay ── */

.gm-hint {
    margin-top: 14px;
    font-size: .75em;
    opacity: .65;
    letter-spacing: .04em;
    transition: opacity .5s;
}

.gm-hint.gm-hint--hidden {
    opacity: 0;
}