:root {
  --dip-primary: #f75255;
  --dip-accent: #e00012;
  --dip-dark: #383838;
  --dip-text: #66708b;
  --dip-light: #f4f6f8;
}

.dip-player,
.dip-player * {
  box-sizing: border-box;
}

.dip-player {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-family: inherit;
  color: var(--dip-dark);
}

.dip-logo {
  text-align: center;
  margin-bottom: 16px;
}

.dip-logo img {
  max-height: 92px;
  width: auto;
  display: inline-block;
}

.dip-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--dip-light);
  border: 1px solid rgba(56, 56, 56, 0.06);
  box-shadow: 0 8px 24px rgba(56, 56, 56, 0.055);
}

/* Bouton play v1.3.3 : rond simple, aucun carré au hover */
.dip-player .dip-play {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: relative !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 50% !important;
  background: var(--dip-primary) !important;
  background-image: none !important;
  color: #fff !important;
  display: inline-grid !important;
  place-items: center !important;
  cursor: pointer !important;
  flex: 0 0 42px !important;
  box-shadow: 0 8px 18px rgba(247, 82, 85, 0.20) !important;
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease !important;
  overflow: hidden !important;
}

.dip-player .dip-play::before,
.dip-player .dip-play::after,
.dip-player .dip-play:hover::before,
.dip-player .dip-play:hover::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  animation: none !important;
}

.dip-player .dip-play:hover {
  transform: scale(1.055) !important;
  filter: brightness(1.045) saturate(1.03) !important;
  box-shadow: 0 9px 20px rgba(247, 82, 85, 0.23) !important;
}

.dip-player .dip-play:active {
  transform: scale(.98) !important;
  box-shadow: 0 6px 14px rgba(247, 82, 85, 0.18) !important;
}

.dip-player .dip-button-icon {
  width: 29px !important;
  height: 29px !important;
  display: block !important;
  fill: #fff !important;
  pointer-events: none !important;
  transform: none !important;
}

.dip-player.is-playing .dip-button-icon {
  transform: none !important;
}

.dip-main {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dip-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  min-width: 0;
}

.dip-live {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px 6px 8px;
  border-radius: 999px;
  background: rgba(247, 82, 85, 0.10);
  overflow: hidden;
  flex: 0 0 auto;
}

.dip-live-bars {
  display: inline-flex;
  align-items: end;
  gap: 2px;
  width: 16px;
  height: 14px;
  position: relative;
  z-index: 1;
}

.dip-live-bars span {
  display: block;
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: var(--dip-accent);
  animation: dip-bars .82s ease-in-out infinite;
}

.dip-live-bars span:nth-child(2) {
  height: 12px;
  animation-delay: .13s;
}

.dip-live-bars span:nth-child(3) {
  height: 8px;
  animation-delay: .26s;
}

@keyframes dip-bars {
  0%, 100% { transform: scaleY(.58); opacity: .7; }
  50% { transform: scaleY(1); opacity: 1; }
}

.dip-live-text {
  position: relative;
  color: var(--dip-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
  z-index: 1;
}

.dip-listeners {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--dip-text);
  font-size: 12px;
  white-space: nowrap;
  opacity: .92;
}

.dip-listeners-number {
  color: var(--dip-dark);
  font-weight: 800;
}

.dip-listeners-label {
  font-weight: 500;
}

.dip-title-wrap {
  position: relative;
  width: 100%;
  height: 24px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, black 44px, black calc(100% - 44px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 44px, black calc(100% - 44px), transparent 100%);
}

.dip-title-inner {
  position: absolute;
  left: 0;
  top: 0;
  width: max-content;
  min-width: max-content;
  white-space: nowrap;
  color: var(--dip-text);
  font-size: 14px;
  line-height: 24px;
  will-change: transform;
  transform: translate3d(100%, 0, 0);
}

.dip-title-wrap:hover .dip-title-inner {
  /* la pause est gérée en JS */
}

.dip-title-text {
  display: inline-block;
}

.dip-volume {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.dip-mute {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--dip-text);
  opacity: .95;
}

.dip-mute:hover {
  color: var(--dip-primary);
}

.dip-volume-icon {
  width: 26px;
  height: 26px;
  display: block;
  fill: currentColor;
}

.dip-volume-wave {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dip-player.is-muted .dip-volume-wave {
  display: none;
}

.dip-range {
  appearance: none;
  -webkit-appearance: none;
  width: 126px;
  height: 20px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

/* Track WebKit */
.dip-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(to right, var(--dip-primary) 0, var(--dip-primary) var(--dip-volume-level, 100%), #d8dbe2 var(--dip-volume-level, 100%), #d8dbe2 100%);
  border: 1px solid rgba(102,112,139,.18);
}

/* Point rouge parfaitement centré verticalement */
.dip-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--dip-accent);
  border: 0;
  margin-top: -7px;
  box-shadow: 0 2px 6px rgba(224,0,18,.26);
}

/* Track Firefox */
.dip-range::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: #d8dbe2;
  border: 1px solid rgba(102,112,139,.18);
}

.dip-range::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--dip-primary);
}

.dip-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--dip-accent);
  border: 0;
  box-shadow: 0 2px 6px rgba(224,0,18,.26);
}

@media (max-width: 760px) {
  .dip-card {
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
  }

  .dip-player .dip-play {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    flex-basis: 40px !important;
  }

  .dip-title-inner {
    font-size: 13px;
  }

  .dip-range {
    width: 86px;
  }
}

@media (max-width: 520px) {
  .dip-card {
    gap: 10px;
    min-height: 66px;
  }

  .dip-listeners-label {
    display: none;
  }

  .dip-volume {
    gap: 4px;
  }

  .dip-range {
    display: none;
  }
}


/* v1.3.4 : le bouton n'utilise plus deux icônes superposées */
.dip-player .dip-svg-play,
.dip-player .dip-svg-pause,
.dip-player .dip-play-shape,
.dip-player .dip-pause-shape {
  display: none !important;
}


/* v1.3.9 : corrections volume */
.dip-player .dip-mute,
.dip-player .dip-mute:hover,
.dip-player .dip-mute:focus,
.dip-player .dip-mute:active {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.dip-player .dip-mute:focus-visible {
  outline: 2px solid rgba(247, 82, 85, .35) !important;
  outline-offset: 3px !important;
  border-radius: 999px !important;
}

.dip-player .dip-volume-icon {
  width: 27px !important;
  height: 27px !important;
}

.dip-player .dip-range {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 126px !important;
  height: 22px !important;
  padding: 0 !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Chrome / Edge / Safari */
.dip-player .dip-range::-webkit-slider-runnable-track {
  height: 6px !important;
  border-radius: 999px !important;
  background:
    linear-gradient(to right, var(--dip-primary) 0, var(--dip-primary) var(--dip-volume-level, 100%), #d8dbe2 var(--dip-volume-level, 100%), #d8dbe2 100%) !important;
  border: 1px solid rgba(102,112,139,.20) !important;
  box-shadow: none !important;
}

.dip-player .dip-range::-webkit-slider-thumb {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: var(--dip-accent) !important;
  border: 0 !important;
  box-shadow: 0 2px 6px rgba(224,0,18,.26) !important;
  margin-top: -8px !important; /* (20 - 6) / 2 + track border compensation */
}

/* Firefox */
.dip-player .dip-range::-moz-range-track {
  height: 6px !important;
  border-radius: 999px !important;
  background: #d8dbe2 !important;
  border: 1px solid rgba(102,112,139,.20) !important;
  box-shadow: none !important;
}

.dip-player .dip-range::-moz-range-progress {
  height: 6px !important;
  border-radius: 999px !important;
  background: var(--dip-primary) !important;
}

.dip-player .dip-range::-moz-range-thumb {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: var(--dip-accent) !important;
  border: 0 !important;
  box-shadow: 0 2px 6px rgba(224,0,18,.26) !important;
}


/* v1.4.0 : le défilement est géré en JavaScript, pas en keyframes CSS */
.dip-player .dip-title-inner,
.dip-player .dip-title-inner.is-animated {
  animation: none !important;
}
