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

/* --- Styled Wrapper (The Box) --- */
#evc-player-styled-wrapper {
  width: 100%;
  max-width: 1440px;
  height: 150px; 
  flex-shrink: 0;
  border-radius: 30px;
  border: 2px solid #999;
  /* Dark Gradient Background */
  background: linear-gradient(134deg, rgba(73, 73, 92, 0.95) -9.81%, #17172F 69.56%), rgba(23, 23, 47, 0.9);
  background-blend-mode: normal, multiply;
  box-shadow: 0 4px 7.6px 7px rgba(0, 0, 0, 0.25);
  padding: 0; 
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* --- Close Button --- */
#evc-player-close-btn {
  position: absolute;
  top: 10px;
  right: 40px;
  background: #fff;
  color: #17172F;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  font-weight: bold;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  z-index: 100000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

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

/* --- LEFT: Art & Text --- */
.evc-interface-left {
  display: flex;
  align-items: center;
  flex: 2;
  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;
  overflow: hidden;
  justify-content: center;
}

#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: 16px;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ccc;
}

/* --- CENTER: Play Button (UPDATED to Match Shortcode) --- */
.evc-interface-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#evc-custom-play-btn {
  /* Dimensions & Flex */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 83px; 
  height: 83px;
  padding: 0; /* Remove default padding */
  
  /* Appearance matches Shortcode Circle */
  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);
}

/* SVG Styling inside Main Button */
#evc-custom-play-btn .evc-icon-play {
    margin-left: 5px; /* Optical center for triangle */
    display: block;
}

#evc-custom-play-btn .evc-icon-pause {
    margin-left: 0; /* Center pause bars normally */
    display: block;
}

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

#evc-custom-volume {
  width: 120px;
  cursor: pointer;
  height: 5px;
  accent-color: #18a7e0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1440px) {
  #evc-player-container {
    padding: 0 20px;
    bottom: 10px;
  }
   #evc-player-close-btn {
    right: 25px;
    top: 5px;
  }
}

@media (max-width: 768px) {
  #evc-player-styled-wrapper {
    height: auto; 
    padding: 10px 0;
  }
  
  #evc-custom-interface {
    flex-direction: column;
    text-align: center;
    padding: 15px;
    gap: 15px;
  }
  
  .evc-interface-left {
    flex-direction: column;
    width: 100%;
    margin-bottom: 0;
  }
  
  #evc-custom-cover {
    margin-right: 0;
    margin-bottom: 10px;
    width: 120px;
    height: 120px;
  }

  #evc-now-playing-title {
    font-size: 18px;
    white-space: normal; 
  }

  .evc-interface-center {
    width: 100%;
    margin-top: 10px;
  }
  
  .evc-interface-right {
    display: none; 
  }

  #evc-player-close-btn {
    right: 15px;
    top: -10px;
  }
}

/* -----------------------------------
   SHORTCODE BUTTON STYLES
   -----------------------------------
*/

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

.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;
}