  body { background:#111; color:#eee; font-family:sans-serif; margin:0; padding:0rem 1rem 1rem 1rem; 
  max-width:1500px; margin:auto;overscroll-behavior: none; }
 
  label, button { cursor:pointer; }
  
 a {
  color: #ffff66;           
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffffff;           
  text-decoration: underline;
}

.pad_mix_grid{
width:98%;display:flex; flex-direction:column; gap:0.5em;

}
.local_mix_b{
max-height:330px;width:97% !important;
 overflow-y: scroll;
display:flex; flex-wrap:wrap; gap:0.5em; border:1px solid #444; padding:0.5em;
}

.local_mix_b::-webkit-scrollbar {
  width: 8px;
}

.local_mix_b::-webkit-scrollbar-track {
  background: #222;
}

.local_mix_b::-webkit-scrollbar-thumb {
  background-color: #666;
  border-radius: 4px;
}

.dinoloop-link {
  font-size: 1.2em;
  color: #ffffff;
  font-weight: bold;
  display: flex;
  align-items: center;
  margin: 0.5em 0 0.2em 0;
  text-decoration: none;
  transition: color 0.3s ease;
}



.dinoloop-link:hover {
  color: yellow;
  text-decoration: none;
}




.vam{
vertical-align:middle;
}
.w_a{
font-size:0.8em;
color: #ffff66;   
}
.placed-loop.playing {
  background-color: #000000 !important;
  box-shadow: 0 0 10px #000000;
  transition: background-color 0.3s ease;
  color: #ffff66 !important;   
}



.tab-header {
  position: absolute;
  top: 0;
  left: 0; /* 👈 changé right → left */
  background: #2c2f33;
  color: #fff;
  padding: 0.4rem 0.8rem;
  font-size: 0.8em;
  border-radius: 8px 0 8px 0; /* 👈 coins inversés */
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.tab-header:hover {
  background: #3a3d42;
}

  
  .output-section {
  position: relative;
  background: #1a1a1a;
  padding: 0rem 1rem 0rem; /* 👈 réserve la place en haut pour l’onglet */
  border-radius: 8px;
  border: 1px solid #333;
}

#loopButtons.output-section {
  position: relative;
  background: #1a1a1a;
  padding: 0rem 1rem 0rem; /* 👈 padding-top augmenté */
  border-radius: 8px;
  border: 1px solid #333;
}

/* Onglet gauche (titre USERS LOOPS) */
#loopButtons .tab-header {
  position: absolute;
  top: 0;
  left: 0;
  background: #2c2f33;
  color: #fff;
  padding: 0.4rem 0.8rem;
  font-size: 0.8em;
  border-radius: 8px 0 8px 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

#loopButtons .tab-header:hover {
  background: #3a3d42;
}

/* Onglet droit (pagination) */
#loopButtons .tab-right {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.3rem 0.6rem;
  font-size: 0.8em;
}

.clear-both {
  clear: both;
  height: 0;
}
#paginationControls button {
  font-size: 0.8em;    
 
}
  
#localDescription{
margin:0em 0 0 0;
}

#localDescription.l_desc{
margin:0.5em 0 0 0;
}
.no_l{
font-size:0.9em;text-align:center; color:#aaa;
}
.l_desc{
margin:0 0 0 0;
font-size: 0.8em;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
 
  line-height:1.5;
  padding: 0.5rem 0.8rem;
  background-color: #2c2f33;  
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);  
  color: #ddd;  
}

#loopDescription.l_desc{
margin:3em 0 0 0;
}

.more-text{
line-height: 1.8 !important;
font-size:0.9em;
}



.comment_c{
margin:0;font-size:0.8em;
}
@keyframes flash {
  0%, 100% { background-color: #333; }
  50% { background-color: limegreen; }
}

.row-flash .step {
  animation: flash 3s ease-in-out;
}

.modal_sample_sel{  
 display: none;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 1em 1.5em;
  border-radius: 8px;
  box-shadow: 0 0 10px #000;
  z-index: 1000;
  font-size: 0.9em;
  max-width: 90%;
  text-align: center;
}
.title_section{
font-size:1.2em;width:100%;
}
.y_txt{
 color: #ffff66; 
}
.response{
font-size:0.8em;
}



.hidden {
  display: none !important;
}
#loop-meta {
  display: flex;
  gap: 10px; 
  align-items: center; 
}
.user_loop_id{
font-size:0.8em !important;
}
#like-btn{
width:70px;text-align:center;
}
#comment-btn{
width:90px;text-align:center;
}

.modal {
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  position: relative;
  background: #222;
  padding: 2.5em 2em 1em 2em; 
  border-radius: 10px;
  text-align: center;
  color: white !important;
  box-shadow: 0 0 10px #000;
}
.sample-category {
  text-align: left;
  margin-bottom: 1.5em;
}
.sample-category h4 {
  color: #ccc;
  margin-bottom: 0.3em;
}
.sample-item {
  display: inline-block;
  margin: 0.3em;
  padding: 0.5em 0.8em;
  background: #333;
  border: 1px solid #555;
  border-radius: 8px;
  cursor: pointer;
  color: white;
  font-size: 0.9em;
  transition: background 0.2s;
}
.sample-item:hover {
  background: #444;
}

.sample-item-row:hover {
  background-color: #222;
  border-radius: 4px;
}

.sample-item {
  font-weight: bold;
}


#pattern-cancel-btn {
  position: absolute;
  top: 0em;
  right: 0em;
  background: transparent;
   background: #444 !important;
  border: none;
  font-size: 1em;
  cursor: pointer;
  color: #ffffff  !important;
}
.modal-content button {
  margin: 0.5em;
  padding: 0.5em 1em;
   background: #444 !important;
  border: none;
  color: white !important;
  cursor: pointer;
  border-radius: 5px;
}
.modal-content button:hover {
  background: #666;
}

#piano-roll-modal > div {
  position: relative; 
  background: #222;
  padding: 2.5em 1em 1em 1em;
  border-radius: 8px;
  max-height: 90vh;
  overflow: auto;
  color: white;
}

#close_piano1,#close-comment-modal {
   position: absolute;
  top: 0.5em;
  right: 0.5em;
  background: transparent;
  border: none;
  font-size: 1em;
  cursor: pointer;
  color: #ffffff !important;
}
.bt_close{
	 all: unset; 

 background: none !important;
  box-shadow:none;
  border: none;
  font-size: 1em;
  cursor: pointer;
  color: #ffffff !important;
 padding: 0.5em 1em;border-radius:0.5em; cursor:pointer;
}

#pattern-cancel-btn,
#close_piano1,
#close-comment-modal {
  all: unset; 
  position: absolute;
  top: 1em;
  right: 1em;
  font-size: 1em;
  line-height: 1;
  color: red;  
  cursor: pointer;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  text-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
}
  #grid {
  margin-top: 0.5rem;
   margin-bottom: 0.5rem;
  overflow-y: auto;
  overflow-x: auto; 
  white-space: nowrap; 
}
.sample-row {
  display: flex;
  flex-wrap: nowrap; 
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.2rem;
  margin-left: 0.5rem;
}
.sample-label {
  width: 140px;      
  display: inline-block; 
  cursor: pointer;
  position: relative;
}
.sample-name {
  width: 45px;      
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  user-select: text;     
  font-size:0.7em;
  text-decoration:underline;
  color:#ffff00;
}
.sample-name:hover {
   color:#ffffff;
  
}



.btn-primary {
  background-color: #007bff;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  
  
}

.btn-primary:hover {
  background-color: #0056b3;
}
.step {
  width: 30px;
  height: 30px;
  background: #222;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #555;
  user-select: none;
  flex-shrink: 0; 
}
  
  
  .step.active { background:limegreen; color:#000; }
  .step.muted { opacity:0.4; }

.step.alt-step {
  background: #444343; 
}

.step.alt-step.active {
  background: limegreen; 
  color: #000;
}
  

.step {
  width: 30px;
  height: 30px;
  margin: 2px;
}

.mode-64 .step {
  width: 24px;
  height: 24px;
  margin: 1.5px;
}

.mode-128 .step {
  width: 18px;
  height: 18px;
  margin: 1px;
} 

.play-cursor {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
  background: rgba(255, 255, 0, 0.3);
  pointer-events: none;
  transition: left 0.1s linear;
  z-index: 10;
}
 .mode-64 .play-cursor {
  width: 24px;
  height: 24px;
}


.mode-128 .play-cursor {
  width: 18px;
  height: 18px;
} 

.mode-64 .play-cursor {
  width: 24px;
  height: 24px;
}

.mode-128 .play-cursor {
  width: 18px;
  height: 18px;
}
  
  
  #timer { font-weight:bold; font-size:1.2rem; margin-left:1rem; min-width:60px; }
  audio { width: 100%; margin-top: 1rem; outline:none; }
  input[type=number] { width: 60px; }
  
.sample-row {
  position: relative;  
  display: flex;
  align-items: center;
  gap: 0.3rem;  
  margin-bottom: 0.2rem;
}

 
.controls { display:flex; flex-wrap:wrap; gap:1rem; align-items:center; margin-bottom:1rem; }
.controls,
.json-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

 
.controls button,
.json-controls button,
#uploadSampleBtn,
#addSampleBtn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
  font-size: 0.95rem;
}

.controls button:hover,
.json-controls button:hover,
#uploadSampleBtn:hover,
#addSampleBtn:hover {
  background-color: #0056b3;
}

 
.controls button i,
.json-controls button i,
#uploadSampleBtn i {
  font-size: 1.1em;
}

 
.controls select,
.controls input[type="number"],
#sampleKit,
#sampleSelect,
#styleSelect,#options_grid {
  padding: 0.35rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  background-color: #f8f9fa;
  color: #333;
  transition: border-color 0.3s ease;
}

.controls select:focus,
.controls input[type="number"]:focus,
#sampleKit:focus,
#sampleSelect:focus,
#options_grid:focus,
#styleSelect:focus {
  outline: none;
  border-color: #007bff;
}


.controls label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

.controls-section > .controls {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}



input[type="file"]#uploadSample,
input[type="file"]#importJSONFile {
  display: none;
}

.play-sample-btn {
  background: linear-gradient(to right, #007bff, #00c6ff);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 0.3s ease;
  user-select: none;
  font-size: 0.95rem;
}

.play-sample-btn:hover {
  background: linear-gradient(to right, #0056b3, #0096ff);
}

.play-sample-btn i {
  font-size: 1.1em;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  margin-left: 6px;
  font-size: 16px;
  color: #444;
  transition: color 0.3s ease;
}
.btn-icon:hover {
  color: #007bff;
}
.mute-btn:hover {
  color: #e63946; 
}
.delete-btn:hover {
  color: #dc3545;
}




.localSaves
{
max-height:110px;overflow:auto;
}

#localSavesContainer > div {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  align-items: center;
}

#localSavesContainer > div button:first-child {
  flex-grow: 1;         
  width: auto;            
  box-sizing: border-box;
  text-align: left;
  padding: 6px 12px;
  background-color: #ffffff;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.25s ease;
}

#localSavesContainer > div button:last-child {
  flex-shrink: 0;        
  flex-basis: 100px;     
  max-width: 100px;      
  width: 100px;          
  box-sizing: border-box;
  padding: 6px 10px;
  background-color: #e76f51;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  transition: background-color 0.25s ease;
}

#localSavesContainer > div button:last-child:hover {
  background-color: #c94e36;
}

h1 {
  font-size: 1.2em;
  color: #fff;
  display: flex;
  align-items: center;
  margin:0.5em 0 0.2em 0;
}




button,
#uploadSampleBtn,
#addSampleBtn {
  background: linear-gradient(to right, #007bff, #00c6ff);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  transition: transform 0.2s ease, background 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

button:hover,
#uploadSampleBtn:hover,
#addSampleBtn:hover {
  background: linear-gradient(to right, #0056b3, #0096ff);
  transform: translateY(-1px);
}


select,
input[type="number"] {
  background-color: #222;
  color: #eee;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  font-size: 0.95rem;
}

select:focus,
input[type="number"]:focus {
  outline: none;
  border-color: #00c6ff;
  box-shadow: 0 0 0 2px rgba(0,198,255,0.3);
}


.sample-limit-warning {
  color: #ff4444;
  font-weight: bold;
  text-align: center;
  background: #330000;
  padding: 0.5rem;
  margin-top: 1rem;
  border-radius: 6px;
  display: none;
}



.controls-section,
.json-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;

  padding: 1rem 0.8rem;
  background-color: #2c2f33; 
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); 
  color: #ddd; 
}

.dino_section {
  display: flex;
  flex-wrap: wrap;

  gap: 0.6rem;
  margin-bottom: 0.5rem;

  padding: 1em 1em;
  background-color: #2c2f33;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);

  color: #ddd;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.9em;
}


.dino_content p {
  margin: 0 0 0.6rem 0;
}
.dino_content p:last-child {
  margin-bottom: 0;
}


.output-section {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0.5rem 0.8rem 1rem 0.8rem;
  background-color: #2c2f33;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  color: #ddd;
  
  margin: 1rem auto;   
  box-sizing: border-box;  
}

.output-section .player-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}
.player-row
{
display:none !important;
}
.output-section .player-label {
  font-size: 0.9rem;
  color: #ddd;
  white-space: nowrap;
}


.footer{
margin:10em 0 0 0;
}
.footer p{
width:100%;
margin:0 auto 0 auto;
text-align:center !important;
}

 .on_off{
font-size:0.7em;
  } 

.piano-roll-modal button{
max-width:60px;
}
.piano-roll-btn {
  background: transparent;
  border: 1px solid #999;
  color: #999;
  margin-left: 5px;
  width: 20px;
  height: 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 3px;
  font-size: 13px;
  padding: 0;
}


.piano-roll-btn.active {
  background-color: #0a5;
  color: white;
  border-radius: 3px;
  box-shadow: 0 0 6px #0f0;
}


.sample-row.piano-roll-active {
  background-color: #1f1f1f;
}


#piano-roll-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  max-height: 80vh;
}

.piano-roll-row {
  display: flex;
  align-items: center;
}

.note-label {
  color: white;
  width: 3em;
  text-align: right;
  margin-right: 4px;
  font-size: 12px;
}

.piano-cell {
  width: 20px;
  height: 20px;
  margin: 1px;
  background: #333;
  cursor: pointer;
}


#loopButtons {


  display: flex;
  flex-direction: column;
  gap: 0.4rem;  
  padding: 1rem 0.8rem;
  background-color: #2c2f33 !important; 
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); 
  color: #ddd; 
  
  margin:0 0 1em 0;
 
  border: none;
  
  
  
}
#loopButtons_1  {
margin:0em 0 0 0;
}

#loopButtons_1 input {
	font-size:0.8em;
  width: 100%;
  box-sizing: border-box;
}


#loopButtons_2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.loop-search-style {
  padding: 0.5em 1em;
  font-size: 1em;
  background: #ffffff;
  color: #000000;
  border: 1px solid #444;
  border-radius: 5px;
  flex-grow: 1;
  min-width: 0;
}
.loop-select-style {
  padding: 0.5em;
  font-size: 1em;
  background: #fff;
  color: #000000;
  border: 1px solid #444;
  border-radius: 5px;
  width: 100%;
  margin:0 0 1em 0;
}

.logo_dino{
width:150px;
height:150px;
}

.loop-toggle-btn {
  all: unset;  
  background-color: #1a1a1a !important;
  border: 1px solid #333 !important;
  border-radius: 8px !important;
  padding: 0.2em 0.5em 0.2em 0.5em;
  cursor: pointer !important;
  color: #fff !important;
  display: inline-block;
  text-align: center;
  font-size:0.8em;
}
.btn_menu {
  all: unset;
  background-color: #1a1a1a !important;
  border: 1px solid #333 !important;
  border-radius: 8px !important;
  padding: 0.2em 0.5em 0.2em 0.5em;
  cursor: pointer !important;
  color: #fff !important;
  display: inline-block;
  text-align: center;
  font-size:0.8em;
}
.play_mixer {
	 all: unset;
    background-color: #222 !important;
    color: #fff !important;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    padding: 0.4em 0.8em;
  }
  
.close_loop_mixer {
    all: unset;
    cursor: pointer;
    color: #fff;
    font-size: 1em;
    margin-left:0.5em;
  }  


#localSavesContainer .delete-btn {
  width: auto !important;
  margin-top: 0 !important;
}
  
@media (min-width: 1024px) {
  .sample-label {
    width: 160px;
    border: 0px solid #00ff00;
  }
  .sample-name {
    width: 60px;  
  }
}

@media (min-width: 1600px) {
  .sample-label {
    width: 200px;
    border: 0px solid #ffff00;
  }
  .sample-name {
    width: 90px;  
  }
}


@media (max-width: 768px) {


.logo_dino{
width:120px;
height:120px;
}


.loop-select-style {
   font-size: 0.8em;
}
.loop-search-style {
  font-size: 0.8em;
}

.title_section{
font-size:1em;
}
.btn-text{
display:none;
}

 .json-controls {
    display: block;  
  }
#ctl_bt3 button{
    float: left;  
    width: 60px;
    padding: 0.5em;
    margin-right: 8px;  
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1em; 
}
.clr{
clear:both;
}
 

	.no768
		{
	 display: none !important;
	}
  .controls,
  .json-controls,
  .controls-section {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  
  .controls input[type="number"],.json-controls,
.controls select,.json-controls button,
.controls-section select,
.controls-section button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}


  
  .on_off{
  width:60px !important;
  } 
 
  #sampleKit,
  #sampleSelect,
  #styleSelect,#options_grid {
    width: 100%;
  }

  #sampleLimitMsg {
    font-size: 0.95rem;
  }

  .controls-section {
    padding: 0.5rem 0.8rem 1rem 0.8rem;
  }

  .step {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }

  
  .sample-name {
    font-size: 0.65em;
  }
 
  


  #localSavesContainer > div {

    flex-wrap: wrap;
  }
  #localSavesContainer button:first-child {
    width: 50%;
  }
  #localSavesContainer button:last-child {
    width: 100%;
    float: none;  
    margin-top: 0.3rem;
  }
  
  
  
    .dino_content {
    display: none;
  }

  .dino_title {
    cursor: pointer;
    margin: 0.5em 0;
  }

  .dino_section.open .dino_content {
    display: block;
  }
  
}
@media (max-width: 600px) {
	.no600{
	display:none;
	}
	#like-btn,#comment-btn{
font-size:0.8em;
}

  .controls,
  .controls-section,
  .json-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .controls input[type="number"],
  .controls select,
  .controls-section select,
  .controls-section button,
  .json-controls button {
    width: 100%;
  }
}  

@media (max-width: 500px) {

.logo_dino{
width:100px;
height:100px;
}


#like-btn{
width:60px;
}
#comment-btn{
width:80px;
}
}
@media (max-width: 470px) {
 #ctl_bt3 button{
 

   
    float: left; 
    width: 50px;
    padding: 0.3em;
    margin-right: 4px; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1em; 
   


}

   
} 




