.hymne-player {
    --hymne-primary: #183153;
    --hymne-primary-dark: #10243d;
    --hymne-accent: #f0b429;
    --hymne-bg: #ffffff;
    --hymne-text: #1e293b;
    --hymne-muted: #64748b;

    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1040;

    font-family: inherit;
}

.hymne-player audio {
    display: none;
}

.hymne-toggle {
    position: relative;

    width: 58px;
    height: 58px;

    border: 0;
    border-radius: 50%;

    background: var(--hymne-primary);
    color: #fff;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow:
        0 8px 24px rgba(15, 34, 58, .25),
        0 2px 6px rgba(0, 0, 0, .10);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.hymne-toggle:hover {
    transform: translateY(-3px) scale(1.03);

    background: var(--hymne-primary-dark);

    box-shadow:
        0 12px 30px rgba(15, 34, 58, .30),
        0 4px 10px rgba(0, 0, 0, .12);
}

.hymne-toggle:active {
    transform: scale(.96);
}

.hymne-toggle-icon {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;
}

.hymne-playing-bars {
    position: absolute;

    right: -1px;
    bottom: 1px;

    width: 18px;
    height: 18px;

    padding: 3px;

    border-radius: 50%;

    background: var(--hymne-accent);

    display: none;
    align-items: flex-end;
    justify-content: center;

    gap: 2px;
}

.hymne-playing-bars span {
    width: 2px;
    height: 6px;

    border-radius: 2px;

    background: var(--hymne-primary);

    animation: hymneBars 1s ease-in-out infinite;
}

.hymne-playing-bars span:nth-child(2) {
    height: 9px;
    animation-delay: .15s;
}

.hymne-playing-bars span:nth-child(3) {
    height: 5px;
    animation-delay: .3s;
}

.hymne-player.is-playing .hymne-playing-bars {
    display: flex;
}

@keyframes hymneBars {
    0%,
    100% {
        transform: scaleY(.55);
    }

    50% {
        transform: scaleY(1);
    }
}

.hymne-panel {
    position: absolute;

    right: 0;
    bottom: 72px;

    width: 350px;
    max-width: calc(100vw - 32px);

    background: var(--hymne-bg);

    border-radius: 18px;

    overflow: hidden;

    border: 1px solid rgba(15, 23, 42, .08);

    box-shadow:
        0 20px 50px rgba(15, 23, 42, .18),
        0 5px 15px rgba(15, 23, 42, .08);

    display: none;

    transform-origin: bottom right;
}

.hymne-panel.open {
    display: block;

    animation: hymnePanelIn .22s ease-out;
}

@keyframes hymnePanelIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.hymne-header {
    min-height: 76px;

    padding: 14px 16px;

    background:
        linear-gradient(
            135deg,
            var(--hymne-primary),
            #244a78
        );

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hymne-heading {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 11px;
}

.hymne-cover {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    border-radius: 12px;

    background: rgba(255, 255, 255, .14);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;

    border: 1px solid rgba(255, 255, 255, .15);
}

.hymne-heading-text {
    min-width: 0;
}

.hymne-title {
    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hymne-subtitle {
    margin-top: 3px;

    font-size: 11px;

    color: rgba(255, 255, 255, .70);
}

.hymne-close {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .90);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.hymne-close:hover {
    background: rgba(255, 255, 255, .18);
    transform: translateY(-1px);
}

.hymne-body {
    padding: 16px;
}

.hymne-main-control {
    display: flex;
    align-items: center;
    gap: 13px;
}

.hymne-play {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    border: 0;
    border-radius: 50%;

    background: var(--hymne-accent);
    color: var(--hymne-primary);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 24px;

    cursor: pointer;

    box-shadow:
        0 5px 14px rgba(240, 180, 41, .28);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.hymne-play:hover {
    transform: scale(1.06);

    box-shadow:
        0 7px 18px rgba(240, 180, 41, .35);
}

.hymne-play:active {
    transform: scale(.95);
}

.hymne-play:disabled {
    opacity: .65;
    cursor: wait;
}

.hymne-track-info {
    min-width: 0;
}

.hymne-track-title {
    color: var(--hymne-text);

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hymne-track-status {
    margin-top: 4px;

    color: var(--hymne-muted);

    font-size: 11px;
}

.hymne-volume-row {
    margin-top: 18px;

    display: flex;
    align-items: center;

    gap: 9px;
}

.hymne-volume-icon {
    width: 20px;

    color: var(--hymne-primary);

    font-size: 15px;

    text-align: center;
}

.hymne-volume-input {
    flex: 1;

    width: 100%;

    height: 4px;

    appearance: none;

    border-radius: 10px;

    background: #e2e8f0;

    cursor: pointer;
}

.hymne-volume-input::-webkit-slider-thumb {
    appearance: none;

    width: 15px;
    height: 15px;

    border-radius: 50%;

    background: var(--hymne-primary);

    border: 3px solid #fff;

    box-shadow: 0 1px 5px rgba(0, 0, 0, .20);
}

.hymne-volume-input::-moz-range-thumb {
    width: 15px;
    height: 15px;

    border-radius: 50%;

    background: var(--hymne-primary);

    border: 3px solid #fff;

    box-shadow: 0 1px 5px rgba(0, 0, 0, .20);
}

.hymne-volume-value {
    width: 35px;

    color: var(--hymne-muted);

    font-size: 10px;

    text-align: right;
}

.hymne-loop {
    margin-top: 15px;

    min-height: 42px;

    padding: 8px 10px;

    border-radius: 10px;

    background: #f8fafc;

    display: flex;
    align-items: center;

    gap: 9px;

    cursor: pointer;

    user-select: none;
}

.hymne-loop-icon {
    color: var(--hymne-primary);

    font-size: 17px;
}

.hymne-loop-text {
    flex: 1;

    color: var(--hymne-text);

    font-size: 12px;
    font-weight: 600;
}

.hymne-loop input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.hymne-switch {
    position: relative;

    width: 38px;
    height: 21px;

    flex: 0 0 38px;

    border-radius: 20px;

    background: #cbd5e1;

    transition: background .2s ease;
}

.hymne-switch::after {
    content: "";

    position: absolute;

    top: 3px;
    left: 3px;

    width: 15px;
    height: 15px;

    border-radius: 50%;

    background: #fff;

    box-shadow: 0 1px 3px rgba(0, 0, 0, .20);

    transition: transform .2s ease;
}

.hymne-loop input:checked + .hymne-switch {
    background: var(--hymne-primary);
}

.hymne-loop input:checked + .hymne-switch::after {
    transform: translateX(17px);
}

.hymne-lyrics-section {
    border-top: 1px solid #eef2f7;
}

.hymne-lyrics-toggle {
    width: 100%;

    min-height: 48px;

    padding: 10px 16px;

    border: 0;

    background: #fff;

    color: var(--hymne-primary);

    display: flex;
    align-items: center;
    justify-content: space-between;

    cursor: pointer;

    font-size: 12px;
    font-weight: 700;

    transition: background .2s ease;
}

.hymne-lyrics-toggle:hover {
    background: #f8fafc;
}

.hymne-lyrics-toggle > span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hymne-lyrics-toggle i:first-child {
    font-size: 15px;
}

.hymne-lyrics-arrow {
    transition: transform .2s ease;
}

.hymne-lyrics-toggle[aria-expanded="false"] .hymne-lyrics-arrow {
    transform: rotate(180deg);
}


.hymne-lyrics {
    display: none;

    max-height: 300px;

    overflow-y: auto;

    padding: 0 16px 16px;

    color: #475569;

    font-size: 12px;

    line-height: 1.7;
}

.hymne-lyrics.open {
    display: block;

    animation: lyricsIn .18s ease;
}

@keyframes lyricsIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hymne-lyrics-content {
    padding: 13px;

    border-radius: 10px;

    background: #f8fafc;
}

.hymne-lyrics strong {
    color: var(--hymne-primary);

    font-weight: 700;
}

.hymne-lyrics::-webkit-scrollbar {
    width: 5px;
}

.hymne-lyrics::-webkit-scrollbar-track {
    background: transparent;
}

.hymne-lyrics::-webkit-scrollbar-thumb {
    background: #cbd5e1;

    border-radius: 10px;
}


@media (max-width: 576px) {

    .hymne-player {
        right: 15px;
        bottom: 15px;
    }

    .hymne-toggle {
        width: 54px;
        height: 54px;
    }

    .hymne-panel {
        right: 0;
        bottom: 67px;

        width: min(350px, calc(100vw - 30px));
    }

    .hymne-header {
        min-height: 70px;
    }

    .hymne-body {
        padding: 14px;
    }

    .hymne-lyrics {
        max-height: 260px;
    }
}