#evc-v3-player-root {
  --evc-v3-bg: rgba(5, 5, 33, 0.92);
  --evc-v3-font: #ffffff;
  --evc-v3-button: #f43433;
  --evc-v3-volume: #f43433;

  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 99999;
  display: none;
  box-sizing: border-box;
  color: var(--evc-v3-font);
}

#evc-v3-player-root.evc-v3-mode-bar,
#evc-v3-player-root.evc-v3-mode-panel.is-visible {
  display: block;
}

body.evc-v3-player-visible {
  padding-bottom: 96px;
}

#evc-v3-player-shell {
  position: relative;
  width: 100%;
  min-height: 96px;
  background: var(--evc-v3-bg);
  color: var(--evc-v3-font);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(5px);
}

#evc-v3-player-root.evc-v3-mode-panel #evc-v3-player-shell {
  max-width: 1280px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}

#evc-v3-close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

#evc-v3-player-root.evc-v3-mode-bar #evc-v3-close-btn {
  display: none;
}

.evc-v3-left,
.evc-v3-center,
.evc-v3-right {
  display: flex;
  align-items: center;
}

.evc-v3-left {
  flex: 1;
  min-width: 0;
  gap: 12px;
}

#evc-v3-cover {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.evc-v3-meta {
  min-width: 0;
}

#evc-v3-title {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#evc-v3-artist {
  font-size: 14px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.evc-v3-center {
  flex: 1;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

#evc-v3-main-play-btn {
  border: 0;
  background: var(--evc-v3-button);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#evc-v3-main-play-btn:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

#evc-v3-main-play-btn .evc-v3-icon-pause {
  display: none;
}

#evc-v3-main-play-btn.is-playing .evc-v3-icon-play {
  display: none;
}

#evc-v3-main-play-btn.is-playing .evc-v3-icon-pause {
  display: inline-flex;
}

#evc-v3-player-root.evc-v3-button-style-circle #evc-v3-main-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 999px;
}

#evc-v3-player-root.evc-v3-button-style-pill #evc-v3-main-play-btn {
  width: 128px;
  height: 52px;
  border-radius: 999px;
}

#evc-v3-player-root.evc-v3-button-style-square #evc-v3-main-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 12px;
}

.evc-v3-right {
  flex: 1;
  justify-content: flex-end;
  gap: 16px;
  min-width: 0;
}

#evc-v3-ad-wrapper {
  width: 320px;
  max-width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#evc-v3-ad-wrapper img {
  max-width: 100%;
  height: auto;
}

#evc-v3-player-root.evc-v3-hide-ad #evc-v3-ad-wrapper {
  display: none !important;
}

#evc-v3-player-root.evc-v3-play-pos-top-right #evc-v3-player-shell {
  padding-right: 96px;
}

#evc-v3-player-root.evc-v3-play-pos-top-right #evc-v3-main-play-btn {
  position: absolute;
  top: -22px;
  right: 16px;
  z-index: 4;
}

#evc-v3-player-root.evc-v3-play-pos-top-right #evc-v3-close-btn {
  right: 88px;
}

#evc-v3-player-root.evc-v3-layout-legacy-v1 #evc-v3-ad-wrapper {
  margin: 0 auto;
}

#evc-v3-player-root.evc-v3-layout-modern-v2 .evc-v3-center {
  justify-content: center;
}

/* In modern-v2 keep the Triton volume rocker visually inside the shell. */
#evc-v3-player-root.evc-v3-layout-modern-v2 #evc-v3-hidden-player-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#evc-v3-player-root.evc-v3-layout-modern-v2 #evc-v3-hidden-player-host .td-player-classic__content__volume-controls,
#evc-v3-player-root.evc-v3-layout-modern-v2 #evc-v3-hidden-player-host .td-player-bar__volume-controls {
  position: absolute !important;
  right: 20px !important;
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
}

#evc-v3-hidden-player-host {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  visibility: hidden;
  overflow: visible;
  z-index: 10000;
}

#evc-v3-hidden-player-host .td-player-classic__content__volume-controls,
#evc-v3-hidden-player-host .td-player-bar__volume-controls {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  right: 24px !important;
  bottom: 30px !important;
  z-index: 100000 !important;
  width: 140px !important;
  pointer-events: auto !important;
}

#evc-v3-player-root.evc-v3-hide-volume #evc-v3-hidden-player-host .td-player-classic__content__volume-controls,
#evc-v3-player-root.evc-v3-hide-volume #evc-v3-hidden-player-host .td-player-bar__volume-controls {
  display: none !important;
}

#evc-v3-hidden-player-host .td-player-classic__content__volume-controls__volume,
#evc-v3-hidden-player-host .td-player-bar__volume-controls__volume {
  display: none !important;
}

#evc-v3-hidden-player-host .noUi-target {
  height: 6px !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

#evc-v3-hidden-player-host .noUi-connect {
  background: var(--evc-v3-volume) !important;
}

#evc-v3-hidden-player-host .noUi-handle {
  width: 16px !important;
  height: 16px !important;
  border-radius: 999px !important;
  border: 1px solid #fff !important;
  background: var(--evc-v3-volume) !important;
  box-shadow: none !important;
  top: -5px !important;
}

#evc-v3-hidden-player-host .noUi-handle::before,
#evc-v3-hidden-player-host .noUi-handle::after {
  display: none !important;
}

.evc-v3-play-station-btn {
  --evc-v3-inline-btn-color: #f43433;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0 !important;
  text-decoration: none !important;
  background: var(--evc-v3-inline-btn-color) !important;
  color: #fff !important;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.evc-v3-play-station-btn:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.evc-v3-play-station-btn .evc-v3-shortcode-icon {
  display: inline-flex;
}

.evc-v3-play-station-btn .evc-v3-shortcode-icon-pause {
  display: none;
}

.evc-v3-play-station-btn.is-playing .evc-v3-shortcode-icon-play {
  display: none;
}

.evc-v3-play-station-btn.is-playing .evc-v3-shortcode-icon-pause {
  display: inline-flex;
}

.evc-v3-shortcode-btn-circle {
  width: 58px;
  height: 58px;
  border-radius: 999px !important;
  padding: 0 !important;
}

.evc-v3-shortcode-btn-circle .evc-v3-shortcode-label {
  display: none;
}

.evc-v3-shortcode-btn-pill {
  min-height: 50px;
  border-radius: 999px !important;
  padding: 0 18px !important;
}

.evc-v3-shortcode-btn-square {
  min-height: 50px;
  border-radius: 12px !important;
  padding: 0 18px !important;
}

.evc-v3-now-playing-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  max-width: 520px;
}

.evc-v3-now-playing-card-cover {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  flex: 0 0 56px;
  background: rgba(255, 255, 255, 0.08);
}

.evc-v3-now-playing-card-text {
  min-width: 0;
}

.evc-v3-now-playing-card-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fcb415;
  margin-bottom: 3px;
}

.evc-v3-now-playing-card-title {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

.evc-v3-now-playing-card-artist {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

@media (max-width: 767px) {
  body.evc-v3-player-visible {
    padding-bottom: 138px;
  }

  #evc-v3-player-shell {
    min-height: 118px;
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 10px;
  }

  .evc-v3-left {
    flex-basis: calc(100% - 70px);
    width: calc(100% - 70px);
  }

  #evc-v3-cover {
    width: 58px;
    height: 58px;
  }

  #evc-v3-title {
    font-size: 14px;
  }

  #evc-v3-artist {
    font-size: 12px;
  }

  #evc-v3-player-root.evc-v3-play-pos-top-right .evc-v3-center {
    position: absolute;
    right: 10px;
    top: 20px;
    width: auto;
    justify-content: flex-end;
  }

  #evc-v3-player-root.evc-v3-play-pos-center .evc-v3-center {
    position: static;
    width: 100%;
    justify-content: center;
    order: 3;
  }

  .evc-v3-right {
    flex-basis: 100%;
    width: 100%;
    justify-content: center;
  }

  #evc-v3-ad-wrapper {
    max-width: 100%;
  }

  #evc-v3-player-root.evc-v3-play-pos-top-right #evc-v3-main-play-btn {
    position: static;
  }

  #evc-v3-player-root.evc-v3-play-pos-top-right #evc-v3-player-shell {
    padding-right: 10px;
  }

  /* Legacy v1 mobile tuning: keep play top-right and give the ad a full-width mobile row. */
  #evc-v3-player-root.evc-v3-layout-legacy-v1 .evc-v3-left {
    flex-basis: 100%;
    width: 100%;
  }

  #evc-v3-player-root.evc-v3-layout-legacy-v1.evc-v3-play-pos-top-right #evc-v3-player-shell {
    min-height: 132px;
    padding-right: 88px;
  }

  #evc-v3-player-root.evc-v3-layout-legacy-v1.evc-v3-play-pos-top-right .evc-v3-center {
    position: static;
    width: 100%;
    justify-content: center;
    order: 3;
  }

  #evc-v3-player-root.evc-v3-layout-legacy-v1.evc-v3-play-pos-top-right #evc-v3-main-play-btn {
    position: absolute;
    top: -18px;
    right: 10px;
    z-index: 6;
  }

  #evc-v3-player-root.evc-v3-layout-legacy-v1 #evc-v3-ad-wrapper {
    width: min(320px, calc(100vw - 20px));
    max-width: 320px;
    justify-content: center;
    margin: 0 auto;
  }

  #evc-v3-player-root.evc-v3-layout-legacy-v1 #evc-v3-ad-wrapper img,
  #evc-v3-player-root.evc-v3-layout-legacy-v1 #evc-v3-ad-wrapper iframe {
    width: 100%;
    max-width: 320px;
    height: auto;
  }

  #evc-v3-player-root.evc-v3-layout-legacy-v1 .evc-v3-right {
    flex-basis: 100%;
    width: 100%;
    margin-left: auto;
    justify-content: flex-end;
    order: 2;
  }

  #evc-v3-hidden-player-host .td-player-classic__content__volume-controls,
  #evc-v3-hidden-player-host .td-player-bar__volume-controls {
    display: none !important;
  }
}
