* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.container iframe {
    width: 100%;
}

.video-container{
    position: relative;
    background-color: black;
}

#base-player {
    width: 100%;
}

.form-group {
    margin: 5px;
}
.form-group.midi{
    width: 45%;
    display: inline-block;
}
.form-group.midi input{
    width: 100%;
}
.form-group.mini{
    width: 30%;
    display: inline-block;
}

label {
    display: block;
    margin-bottom: 0;
    font-weight: 600;
    color: #2c3e50;
}

input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 3px 6px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #3498db;
}

.array-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
    border-left: 4px solid #3498db;
    position: relative;
}

.array-item:last-child {
    margin-bottom: 0;
}

.btn {
    background: #3498db;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 5px;
    margin-top: 2px;
}

.btn:hover {
    background: #2980b9;
}

.btn-add {
    background: #27ae60;
    margin-top: 2px;
}

.btn-add:hover {
    background: #219a52;
}

.btn-remove {
    background: #e74c3c;
    padding: 2px 7px;
    font-size: 14px;
    position: absolute;
    top: 12px;
    right: 5px;
}

.group-categories .btn-remove, .group-shops .btn-remove {
    top: -13px;
}

.btn-remove:hover {
    background: #c0392b;
}

.btn-save {
    background: #9b59b6;
}

.btn-save:hover {
    background: #8e44ad;
}

.btn-load {
    background: #f39c12;
}

.btn-load:hover {
    background: #e67e22;
}

.array-container {
    margin-bottom: 10px;
}

.prompt-group {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5px;
    margin-bottom: 10px;
}

.controls {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 5px;
}

.controls-left, .controls-right {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}


                .pagination {
                    display: flex;
                    justify-content: center;
                    margin: 10px 0;
                    gap: 5px;
                }
                
                .pagination button {
                    padding: 3px 6px;
                    border: 1px solid #ddd;
                    background: white;
                    cursor: pointer;
                    border-radius: 4px;
                }
                
                .pagination button.active {
                    background: #007bff;
                    color: white;
                    border-color: #007bff;
                }
                
                .pagination button:hover:not(.active) {
                    background: #f0f0f0;
                }
                
                .ids-container {
                    display: flex;
                    flex-wrap: wrap;
                    gap: 5px;
                    margin: 20px;
                }
                
                .ids-container span {
                    padding: 3px 6px;
                    background: #f8f9fa;
                    border: 1px solid #dee2e6;
                    border-radius: 4px;
                    font-family: monospace;
                    cursor: pointer;
                }
                
                .ellipsis {
                    padding: 8px 5px;
                }




@media (max-width: 600px) {
    .prompt-group {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 20px;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .controls-left, .controls-right {
        width: 100%;
        justify-content: center;
    }
}


#basePlayerPlayBtn{
    height: 36px;
}
#basePlayerPlayBtn .lds-ellipsis, #basePlayerPlayBtn.wait .text {
    display: none;
}
#basePlayerPlayBtn.wait .lds-ellipsis {
    display: inline-block;
    position: relative;
    top: -28px;
}


.vast-ad {
    background: #000;
    border: 2px solid #ff6b00;
}

.vast-ad video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.lds-ellipsis,
.lds-ellipsis div {
  box-sizing: border-box;
}
.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ellipsis div {
  position: absolute;
  top: 33.33333px;
  width: 13.33333px;
  height: 13.33333px;
  border-radius: 50%;
  background: currentColor;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

