/* Vārda Gaisma SETLIST — metronoms no nulles v2.8.70 */
#vg34-metronome-button {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 2147483600;
    display: none;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.86);
    border-radius: 50%;
    background: rgba(205,201,191,.86);
    color: #3a3732;
    box-shadow: 0 8px 25px rgba(0,0,0,.20), inset 0 0 0 1px rgba(255,255,255,.45);
    cursor: pointer;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    transform: translate3d(0,0,0);
}
body.vg250-reader-open #vg34-metronome-button, .vgd62-reader:not([hidden]) #vg34-metronome-button { display: flex !important; }
#vg34-metronome-button svg { width: 33px; height: 33px; pointer-events: none; }
#vg34-metronome-button.is-playing {
    border-color: #ffad3d;
    background: rgba(255,173,61,.92);
    color: #24170a;
    box-shadow: 0 0 0 4px rgba(255,173,61,.16), 0 9px 28px rgba(0,0,0,.24);
}
#vg34-metronome-button.is-pressed { transform: translate3d(0,0,0) scale(.94); }


/* Kopīgās dziesmas BPM kapsula izmanto to pašu metronoma dzinēju. */
.vg-shared-bpm-metronome {
    cursor: pointer !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}
.vg-shared-bpm-metronome:focus-visible {
    outline: 3px solid rgba(255,173,61,.72);
    outline-offset: 4px;
}
.vg-shared-bpm-metronome.is-playing {
    border-color: rgba(255,173,61,.92) !important;
    box-shadow: 0 0 0 3px rgba(255,173,61,.14), 0 0 28px rgba(93,217,178,.22) !important;
}

#vg34-metronome-modal[hidden] { display: none !important; }
#vg34-metronome-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(3,3,7,.63);
    overflow: hidden;
    pointer-events: none;
}
#vg34-metronome-modal.is-open {
    display: flex !important;
    pointer-events: auto !important;
}
#vg34-metro-card {
    position: relative;
    width: min(720px, 100%);
    max-width: 720px;
    max-height: calc(100dvh - 70px);
    margin: 0 auto;
    padding: 24px 28px calc(24px + env(safe-area-inset-bottom));
    border: 2px solid #ffad3d;
    border-bottom: 0;
    border-radius: 28px 28px 0 0;
    background: #231f29;
    color: #fff;
    box-shadow: 0 -18px 60px rgba(0,0,0,.48);
    overflow: auto;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    touch-action: pan-y;
}
#vg34-metro-card button,
#vg34-metro-card input {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
#vg34-metro-title {
    margin: 0 64px 22px 0;
    color: #ffad3d;
    font-size: clamp(23px,5vw,34px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.02em;
}
#vg34-metro-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffad3d;
    font-size: 50px;
    font-weight: 300;
    line-height: 42px;
    cursor: pointer;
    box-shadow: none;
}
.vg34-metro-row {
    display: grid;
    grid-template-columns: 118px minmax(0,1fr);
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
}
.vg34-metro-label {
    margin: 0;
    color: #aaa5af;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(15px,3.6vw,21px);
    font-weight: 400;
    line-height: 1.16;
    letter-spacing: .02em;
}
.vg34-metro-options {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 8px;
    min-width: 0;
}
.vg34-metro-options button {
    min-width: 0;
    min-height: 54px;
    padding: 7px 3px;
    border: 2px solid #38343e;
    border-radius: 13px;
    background: #0f0d15;
    color: #fff;
    font-size: clamp(15px,3.5vw,20px);
    font-weight: 500;
    line-height: 1.05;
    box-shadow: none;
    cursor: pointer;
    overflow: hidden;
}
.vg34-metro-options button span {
    display: block;
    margin-top: 5px;
    font-size: .62em;
    white-space: nowrap;
}
.vg34-metro-options button.is-active {
    border-color: #ffad3d;
    background: #ffad3d;
    color: #22170b;
}
.vg34-bpm-row { margin-top: 2px; margin-bottom: 18px; }
#vg34-bpm-control {
    display: grid;
    grid-template-columns: 58px minmax(76px,1fr) 58px;
    align-items: center;
    gap: 16px;
}
#vg34-bpm-control button {
    width: 58px;
    height: 58px;
    min-width: 58px;
    padding: 0;
    border: 2px solid #38343e;
    border-radius: 50%;
    background: #0f0d15;
    color: #fff;
    font-size: 38px;
    font-weight: 400;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
}
#vg34-bpm-input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 68px;
    margin: 0;
    padding: 0 6px;
    border: 0;
    border-radius: 12px;
    outline: 0;
    background: transparent;
    color: #fff;
    font-family: Arial,Helvetica,sans-serif;
    font-size: clamp(46px,12vw,68px);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    -moz-appearance: textfield;
    box-shadow: none;
}
#vg34-bpm-input::-webkit-inner-spin-button,
#vg34-bpm-input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
#vg34-metro-save {
    display: block;
    width: 100%;
    min-height: 58px;
    margin: 6px 0 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    background: #ffad3d;
    color: #21180e;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    box-shadow: none;
    cursor: pointer;
}
@media (max-width: 599px) {
    #vg34-metronome-button { right: max(14px,env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); width: 58px; height: 58px; }
    #vg34-metro-card { padding: 20px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
    #vg34-metro-title { margin-bottom: 18px; font-size: 25px; }
    #vg34-metro-close { top: 12px; right: 13px; width: 42px; height: 42px; font-size: 44px; }
    .vg34-metro-row { grid-template-columns: 104px minmax(0,1fr); gap: 9px; margin-bottom: 15px; }
    .vg34-metro-label { font-size: 16px; }
    .vg34-metro-options { gap: 6px; }
    .vg34-metro-options button { min-height: 50px; border-radius: 12px; font-size: 15px; }
    #vg34-bpm-control { grid-template-columns: 54px minmax(68px,1fr) 54px; gap: 10px; }
    #vg34-bpm-control button { width: 54px; height: 54px; min-width: 54px; font-size: 34px; }
    #vg34-bpm-input { height: 62px; font-size: 52px; }
    #vg34-metro-save { min-height: 54px; font-size: 16px; }
}
@media (max-width: 370px) {
    .vg34-metro-row { grid-template-columns: 92px minmax(0,1fr); }
    .vg34-metro-label { font-size: 14px; }
    .vg34-metro-options button { font-size: 13px; }
    #vg34-bpm-control { grid-template-columns: 48px minmax(62px,1fr) 48px; gap: 8px; }
    #vg34-bpm-control button { width: 48px; height: 48px; min-width: 48px; }
}
