html,
body.big-dog-beat-page {
    min-height: 100%;
}

body.big-dog-beat-page {
    margin: 0;
    background: #f2f2f2;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
}

.bdb-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: 24px;
}

.bdb-app {
    width: min(90vw, 360px);
    box-sizing: border-box;
    padding: 30px 20px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgb(0 0 0 / 5%);
    text-align: center;
    user-select: none;
}

.bdb-title {
    margin: 0 0 20px;
    font-size: 22px;
}

.bdb-bpm-label {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 10px;
    background: #f2f2f2;
    color: #555;
    font-size: 14px;
    font-weight: 700;
}

.bdb-bpm-value {
    display: block;
    min-width: 150px;
    margin: 10px 0;
    color: #333;
    font-size: 80px;
    font-weight: 900;
    line-height: 1;
}

.bdb-bpm-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.bdb-bpm-step {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    transition: transform .15s ease, background-color .15s ease;
}

.bdb-bpm-step:hover:not(:disabled) {
    background: #e9e9e9;
}

.bdb-bpm-step:active:not(:disabled) {
    transform: scale(.94);
}

.bdb-bpm-step:disabled {
    cursor: not-allowed;
    opacity: .35;
}

.bdb-slider {
    width: 80%;
    margin: 0 0 25px;
    accent-color: #ff6b6b;
}

.bdb-button {
    width: 100%;
    padding: 15px 30px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: transform .15s ease, background-color .2s ease, color .2s ease;
}

.bdb-button:active {
    transform: scale(.98);
}

.bdb-play {
    margin-bottom: 15px;
    border: 2px solid #eee;
    background: #fff;
    color: #333;
}

.bdb-play.is-playing,
.bdb-dummy.is-active {
    border-color: #ff6b6b;
    background: #ff6b6b;
    color: #fff;
}

.bdb-dummy {
    margin-bottom: 20px;
    background: #e0e0e0;
    color: #333;
}

.bdb-card {
    margin-bottom: 10px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 15px;
    background: #f9f9f9;
    text-align: left;
}

.bdb-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    color: #555;
    font-size: 16px;
    font-weight: 700;
}

.bdb-control-row:last-child {
    margin-bottom: 0;
}

.bdb-volume {
    width: 58%;
    margin: 0;
}

.bdb-probability-row {
    align-items: flex-start;
}

.bdb-probability-control {
    display: flex;
    width: 58%;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.bdb-probability {
    width: 100%;
    margin: 0;
}

#bdbMuteProbabilityDisplay {
    min-width: 42px;
    color: #666;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.bdb-control-row select {
    max-width: 58%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}

.bdb-time-signature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bdb-time-signature select {
    min-width: 52px;
}

.bdb-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.admin-bar .bdb-shell {
    min-height: calc(100vh - 32px);
}

@media (max-width: 782px) {
    body.admin-bar .bdb-shell {
        min-height: calc(100vh - 46px);
    }
}
