#themePost.expanded-post {
    max-height: 450px !important;
    min-height: 450px !important;
    height: 450px !important;
    overflow-y: auto;
    background: var(--post-bg);
}

.themePost {
    min-height: 450px;
    max-height: 450px;
    border: 1px dotted var(--border-color);
    background: var(--post-bg);
  }

.theme-form {
  max-height: 408px !important;
  overflow-y: auto;
  padding: 20px;
  border: 1px dotted var(--border-color);
  border-radius: 2px;
  background: var(--post-bg);

}

/* grille compacte */
.theme-grid {
  padding-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 0,5fr));
  gap: 5px;
}

/* labels au-dessus */
.theme-grid label {
  display: block;
  margin-bottom: 2px;
  font-size: 9px;
  color: var(--text-color);
}

/* inputs color & range compacts */

.theme-grid select,
.theme-grid input[type="range"],
.save-theme-block button, .save-theme-block input[type="text"] {
  width: 100%;
  display: block;
  margin: 6px 0 12px;
  padding: 2px;
  font-family: 'Eagle Lake', serif;
  font-size: 10px;
  background: rgba(255, 255, 255, 0);
  border: 1px dotted var(--border-color);
  border-radius: 4px;
  color: var(--text-color);
  box-shadow: none;
}

.save-theme-block {
    width: 100%;
    display: flex;
    margin: 0px 0 0px;
    padding: 10px;
    gap: 10px;
    font-family: 'Eagle Lake', serif;
    font-size: 10px;
    background: rgba(255, 255, 255, 0);
    border-radius: 4px;
    color: var(--text-color);
    box-shadow: none;
  }
  

.fontSizeGroup select {
  width: 100%;
  display: block;
  margin: 6px 0 12px;
  padding: 2px;
  font-family: 'Eagle Lake', serif;
  font-size: 10px;
  background: rgba(255, 255, 255, 0);
  border: 1px dotted var(--border-color);
  border-radius: 4px;
  color: var(--text-color);
  box-shadow: none;
}

#themePost select {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background: url('data:image/svg+xml;utf8,<svg …>') no-repeat 98% center;
    padding-right: 1.5em;
  }

  #themePost .theme-buttons button,
  #themeNameInput {
    width: 100%;
    margin: 0px 0px 0px;
    padding: 2px;
    display: block;
    font-family: 'Eagle Lake', serif;
    font-size: 10px;
    background: rgba(255, 255, 255, 0);
    border: 1px dotted var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    gap: 10px;
    box-shadow: none;
    cursor: pointer;
    text-align: center;
  }
  
  /* et pour homogénéiser le hover */
  #themePost .theme-buttons button:hover {
    background: var(--button-hover);
    color: var(--text-color-hover);
  }
  
  
  /* si vous voulez retirer l’apparence native sous iOS/Android */
  #themePost .theme-buttons button {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
  }


/* range thumb un peu plus petit */
.theme-grid input[type="range"]::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
}

/* ajuster le scrollbar pour rester discret */
.theme-form::-webkit-scrollbar {
  width: 6px;
}
.theme-form::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}

input[type="color"] {
    width: 2.2em;
    height: 2.2em;
    border: none;
    border-radius: 50%;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--border-color);
    background: none;
    margin-top: 0.3em;
    transition: box-shadow 0.2s;
    cursor: pointer;
    appearance: none;
  }
  
  input[type="color"]:focus {
    outline: none;
    box-shadow: 0 0 0 0px #4C22B3;
  }
  
  input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 50%;
  }
  
  input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
  }
  
  input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 50%;
  }
  
  input[type="color"]::-ms-color-swatch {
    border: none;
    border-radius: 50%;
  }

.post .play-btn,
#customPlayBtn,
#muteBtn,
#scLink {
  color: var(--icons-color);
}

.post .play-btn .icon-svg,
#customPlayBtn .icon-svg,
#muteBtn .icon-svg,
#scLink .icon-svg {
  width: 2em;
  height: 2em;
  vertical-align: middle;
  fill: currentColor;
}

.post .play-btn:hover,
#customPlayBtn:hover,
#muteBtn:hover,
#scLink:hover {
  color: var(--icons-hover);
}

#infoPost .expanded-post,
#themePost .expanded-post {
  pointer-events: auto; /* pour que seul le contenu interne reste cliquable */
}

/* empêche l’effet hover global sur .post */
#infoPost.post:hover,
#themePost.post:hover {
  background: var(--post-bg) !important;
}

/* Aligne le label et le color picker côte à côte, centrés verticalement */
.theme-grid > div {
    display: flex;
    align-items: center;
    gap: 0.7em; /* espace entre le label et l'input */
    margin-bottom: 0.5em;
  }
  
  /* Label toujours à gauche, input à droite */
  .theme-grid label {
    margin: 0;
    font-size: 9px;
    color: var(--text-color);
    min-width: 60px;
    flex: 1 1 auto;
    line-height: 1.5em;
  }
  
  /* L'input color reste compact et rond */
  .theme-grid input[type="color"] {
    width: 2em;
    height: 2em;
    min-width: 2em;
    min-height: 2em;
    flex: 0 0 auto;
    margin: 0;
  }