.kuaidivs:-webkit-full-screen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kuaidivs:fullscreen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kuaidivs{
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    background: url('/zb_users/plugin/xc_toolbox/style/img/heibg.png') repeat;
}

.control-panel {
    background: #16161e;
    border-radius: 3px;
    padding: 0.3rem 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #1f1f2e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.control-group {
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
}

.control-group button{
    background-color: transparent;
    border: 0;
    color: #aaa;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.control-group button i{
    font-size:0.7rem;
    cursor: pointer;
}

.jiepaiyinliang{
    margin: 0.5rem;
    padding: 1rem 0.5rem;
    display: flex;
    gap: 0.2rem;
    background-color: #252525;
    align-items: center;
    border-radius: 3px;
}

.control-label { 
    color: #888;
    width: 1.5rem;
}

.bpm-display { 
    color: #00e676;
    font-size: 0.6rem;
    width: 2.5rem;
    text-align: center;
}

input[type=range] { 
    -webkit-appearance: none;
    background: transparent;
    width: calc(100% - 3rem);
    height: 20px;
}

input[type=range]::-webkit-slider-runnable-track { 
    height: 4px; 
    background: #333; 
    border-radius: 2px; 
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; 
    height: 14px; 
    width: 14px; 
    border-radius: 50%;
    background: #00e676; 
    margin-top: -5px; 
    cursor: pointer;
}

.grid-container {
    display: flex;
    overflow: auto;
    border: 1px solid #1f1f2e;
}

.note-col {
    width: 2rem;
    background: #0e0e15;
    border-right: 1px solid #1f1f2e;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-radius: 3px;
}

.note-col .step-indicator {
    height: 1.2rem;
    background: #0e0e15;
    border-bottom: 1px solid #1f1f2e;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.note-col .step-indicator i{
    font-size: 0.6rem;
    color: #888;
}

.note-label {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #181825;
  font-size: 0.5rem;
  color: #888;
  height: 1.2rem;
}

.note-label.is-c { 
    color: #ccc; 
    background: #0b0b12; 
}

.grid-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
}

.grid-coldiv{
    min-width: 780px;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(var(--steps, 16), 1fr);
  height: 1.2rem;
  background: #0e0e15;
  border-bottom: 1px solid #1f1f2e;
  flex-shrink: 0;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #555;
}

.step-num.beat { 
    color: #00e676; 
    font-weight: bold; 
}

.piano-rows {
    position: relative;
    background: #0e0e15;
    display: flex;
    flex-direction: column;
}

.piano-row {
    display: grid;
    grid-template-columns: repeat(var(--steps, 16), 1fr);
}

.cell {
    background: #14141e;
    cursor: pointer;
    transition: background 0.1s, box-shadow 0.1s;
    border-right: 1px solid #1a1a26;
    border-bottom: 1px solid #181825;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 500;
    position: relative;
}

.cell:hover { 
    background: #1e1e2e; 
}

.cell.beat-end { 
    border-right: 1px solid #2a2a3a; 
}

.cell.active {
    color: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.2);
}

/* ===== 播放指示：整列高亮覆盖 ===== */

.piano-rows {
  position: relative;
}

.cell.playing-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}

.cell.active.playing-col::before {
  background: rgba(255, 255, 255, 0.25);
}

/* ===== 播放指示结束 ===== */

.kuaidivscents{
    width: 100%;
    padding: 0.5rem;
    max-width: 1200px;
    background-color: #000;
    border-radius: 6px;
}

.shilidemos{
    padding: 10px;
}

.shilidemos button{
    display: block;
    width: 100%;
    margin-bottom: 8px;
    height: 1.4rem;
    line-height: 1;
    border: 0;
    border-radius: 6px;
    color: #e8e8f0;
    cursor: pointer;
    transition: all .14s;
    text-align: center;
    background-color: #16baaa;
}

.shilidemos button:last-child {
    margin-bottom: 0;
}

#btnSound{
    position: relative;
}

.soundian{
    display: block;
    width: 6px;
    height: 6px;
    background-color: #009688;
    border-radius: 50%;
    position: absolute;
    top: 0;
    right: 0;
}

.soundian[data-chars="a"]{
    background-color: #009688;
}

.soundian[data-chars="b"]{
    background-color: red;
}

.soundian[data-chars="c"]{
    background-color: #607D8B;
}

.soundian[data-chars="d"]{
    background-color: #673AB7;
}

.beatalert .layui-layer-title {
    height: 1.8rem;
    line-height: 1.8rem;
    font-size: 0.6rem;
}

.beatalert .layui-layer-setwin {
    top: 0.5rem;
}

.beatalert .layui-layer-content {
    color: #34495e;
}

.night .beatalert .layui-layer-content {
    color: #ddd;
}

.kuaidivs.web-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999 !important;
    background-color: #0b0b11 !important;
    overflow: auto !important;
}

@media screen and (max-width: 840px){
    .cell {
        height: 0.9rem;
        font-size: 0.5rem;
    }
    .note-label {
        height: 0.9rem;
        font-size: 0.5rem;
    }
    .steps-row {
        height: 0.9rem;
        font-size: 0.5rem;
    }
    .note-col .step-indicator {
        height: 0.9rem;
        font-size: 0.5rem;
    }
}