/* --- Main Container (Full Width Bar) --- */
#evc-player-container {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  justify-content: center;
  align-items: flex-end;
  padding: 0;
  box-sizing: border-box;
}

/* --- Styled Wrapper (The Bar) --- */
#evc-player-styled-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%; 
  height: 120px; 
  flex-shrink: 0;
  border-radius: 0; 
  border-top: 2px solid #999; 
  background: linear-gradient(134deg, rgba(73, 73, 92, 0.98) -9.81%, #17172F 69.56%), rgba(23, 23, 47, 0.95);
  background-blend-mode: normal, multiply;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
  padding: 0; 
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* --- Close Button --- */
#evc-player-close-btn {
  position: absolute;
  top: 10px; 
  right: 15px; 
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  font-size: 16px;
  font-weight: bold;
  line-height: 25px;
  text-align: center;
  cursor: pointer;
  z-index: 100000;
  transition: background 0.2s;
}
#evc-player-close-btn:hover {
  background: rgba(255,255,255,0.5);
}

/* --- Custom Interface Layout (Row) --- */
#evc-custom-interface {
  display: flex;
  flex-direction: row; 
  align-items: center;
  justify-content: space-between; 
  width: 100%;
  height: 100%;
  padding: 0 40px; 
  box-sizing: border-box;
  color: white;
  gap: 20px; 
}

/* --- COL 1: LEFT (Art & Text) --- */
.evc-interface-left {
  display: flex;
  align-items: center;
  flex: 1; 
  justify-content: flex-start;
  overflow: hidden;
}

#evc-custom-cover {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  background: #333;
}

.evc-meta-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 250px;
}

#evc-now-playing-title {
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
  color: #fff;
}

#evc-now-playing-artist {
  font-size: 14px;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ccc;
}

/* --- COL 2: CENTER (Play Button) --- */
.evc-interface-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

#evc-custom-play-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 83px; 
  height: 83px;
  padding: 0;
  background: #EFEEE0;
  box-shadow: 0px 0px 59.1596px rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#evc-custom-play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0px 0px 65px rgba(255, 255, 255, 0.5);
}

#evc-custom-play-btn .evc-icon-play {
    margin-left: 5px; 
    display: block;
}
#evc-custom-play-btn .evc-icon-pause {
    margin-left: 0;
    display: block;
}

/* --- COL 3: RIGHT --- */
.evc-interface-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

/* --------------------------------------------------------
   V1 RESTORATION STRATEGY:
   Updated to use the CORRECT selector from your HTML.
   --------------------------------------------------------
*/

/* 1. Force container visible and positioned fixed on top of our bar */
.td-player-classic__content__volume-controls,
.td-player-bar__volume-controls {
    display: block !important;
    visibility: visible !important; /* CRITICAL */
    opacity: 1 !important;
    position: fixed !important; 
    bottom: 55px !important; 
    right: 8% !important;    
    z-index: 999999 !important; 
    pointer-events: auto !important; /* CRITICAL: Ensure clicks work */
    width: 140px !important;
    height: 10px !important;
    padding-top: 2px !important;
    /* Force inherit to break out of hidden parent if needed */
    contain: layout style !important;
}

/* 2. Hide the "Speaker Icon" inside it (We just want the slider) */
.td-player-classic__content__volume-controls__volume,
.td-player-bar__volume-controls__volume {
    display: none !important;
}

/* 3. Style the Slider Track */
.td-player-classic__content__volume-controls__volume-slider,
.td-player-bar__volume-controls__volume-slider {
    display: block !important;
    width: 100% !important;
    margin-top: 0 !important;
    pointer-events: auto !important; /* Ensure track is clickable */
}

.noUi-horizontal {
    height: 6px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

/* 4. Style the "Fill" (Connect) - RED */
.noUi-connect {
    background: #F43433 !important;
    box-shadow: none !important;
}

/* 5. Style the Handle (Knob) - RED */
.noUi-handle {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #F43433 !important;
    border: 2px solid #fff !important;
    box-shadow: 0 0 5px rgba(0,0,0,0.3) !important;
    top: -2px !important;   
    right: 3px !important;  
    cursor: pointer !important;
    outline: none !important;
}

.noUi-handle:before, .noUi-handle:after {
    display: none !important;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  #evc-player-styled-wrapper {
    height: auto; 
    padding: 15px 0;
  }
  
  #evc-custom-interface {
    flex-direction: column; 
    text-align: center;
    padding: 10px;
    gap: 15px;
  }
  
  .evc-interface-left, .evc-interface-center, .evc-interface-right {
    justify-content: center;
    width: 100%;
    flex: auto;
  }

  .evc-interface-left {
    flex-direction: column;
  }

  #evc-custom-cover {
    margin-right: 0;
    margin-bottom: 10px;
  }

  /* Hide Volume on Mobile */
  .td-player-classic__content__volume-controls,
  .td-player-bar__volume-controls {
    display: none !important;
  }
}

/* --- SHORTCODE BUTTON STYLES --- */
.evc-circle-btn {
  display: inline-flex !important; 
  justify-content: center;
  align-items: center;
  padding: 0 !important;
  gap: 0; 
  width: 83px !important; 
  height: 83px !important;
  background: #EFEEE0 !important; 
  box-shadow: 0px 0px 59.1596px rgba(255, 255, 255, 0.3);
  border-radius: 50% !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.evc-circle-btn:hover {
  transform: scale(1.05);
  box-shadow: 0px 0px 65px rgba(255, 255, 255, 0.5);
}

.evc-play-svg {
  margin-left: 4px; 
  flex-shrink: 0;
}