body{
    font-family: 'Yu Gothic', sans-serif;
    padding: 0;
    margin: 0;
}

#pgwrapper {
    max-width: 1200px;
    margin: 0 auto;
}

#player {
  width: 100%;
  max-width: 100%;
  height: 360px;
}

#subs {
  max-height: 300px;
  overflow-y: auto;
  padding-top: 10px;
}

#subs .subtitle-group:last-child {
  margin-bottom: 60px;
}

#subs span {
  display: block;
  padding: 10px 6px;
  cursor: pointer;
  border-bottom: 1px solid rgba(204, 204, 204, .3);
  
}

#subs span:hover {
  background: #eee;
}

#subs span.active {
  background: yellow;
  font-weight: bold;
}

#vid-url {
    border: 1px solid gray;
    border-radius: 26px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.utube-url {
    color: gray;
}

.url-label {
    background-color: gray;
    padding: 5px 26px;
    border-radius: 16px 0 0 16px;
    margin-right: 10px;
}

.controls-container {
    display: flex;
    flex-direction: column;
}


#controls {
    display: flex;
    gap: 10px;
    margin: -5px auto 0 auto;
    padding: 10px 10px;
    justify-content: space-between;
    align-items: center;
}

.playback {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.playback {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}



.lang-controller {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-controller div{
    padding: 5px 26px;
    background-color: #30B4EB;
    border-radius: 16px;
    cursor: pointer;
}

.play-button {
      width: 25px;             /* Width of the button */
      height: 25px;            /* Height of the button */
      border-radius: 50%;      /* Makes it circular */
      display: flex;           /* Center the triangle */
      justify-content: center; /* Center horizontally */
      align-items: center;     /* Center vertically */
      cursor: pointer;         /* Makes it clickable */
     color: #DE3733;
        background-color: #DE3733;
      border: none;            /* Removes border */
    }

    .play-button .triangle {
      width: 0; 
      height: 0; 
      border-left: 10px solid #F7C6CC; 
      border-top: 7px solid transparent;
      border-bottom: 7px solid transparent;
      margin-left: 4px; 
    }
    
    .play-button .stop-square {
      width: 10px; 
      height: 10px; 
      background-color: #F7C6CC; 
      border-radius: 1px;
    }
    
    .play-button .pause-square {
      width: 10px; 
      height: 10px; 
      border-left: 3px solid #F7C6CC; 
      border-right: 3px solid #F7C6CC; 
      background-color: transparent;
      display: none;
    }

    .play-button:hover {
      background-color: #cc0000; /* Darker red on hover */
    }
    
    /* when playing → show pause */
.play-button.playing .triangle {
  display: none;
}

.play-button.playing .pause-square {
  display: block;
}

/* your pause style */
.play-button .pause-square {
  width: 10px;
  height: 10px;
  border-left: 3px solid #F7C6CC;
  border-right: 3px solid #F7C6CC;
  background-color: transparent;
}

    
.audio-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    cursor: pointer;
    
}

.audio-controls div {
    border-bottom: 1px solid transparent;
    opacity: .3;
    transition: .5s;
}
.audio-controls div:active{
    border-bottom: 1px solid black;
}

.audio-controls div:hover {
    opacity: 6;
    transition: .5s;
}

/* default */
.play-button .loader {
  display: none;
}

/* loading state */
.play-button.loading .triangle,
.play-button.loading .pause-square {
  display: none;
}

.play-button.loading .loader {
  display: block;
}

.play-button .loader {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(247, 198, 204, 0.25);
  border-top: 3px solid #F7C6CC;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


.repeat-times {
    display: flex;
    gap: 20px;
    align-items: center;
   
}

.repeat-select {
     padding: 3px 16px;
}

.custom-select {
  width: 80px;
  position: relative;
  font-family: Arial;
  user-select: none;
  
}

.custom-select .selected {
  position: relative;
  padding: 10px 30px 10px 10px; /* extra right padding for arrow */
  
  border-radius: 6px;
  cursor: pointer;
  background: linear-gradient(to left, rgba(247,198,204,0.3), rgba(222,55,51,0.3));
  color: black;
}

.custom-select .selected-text {
  display: block;
  text-align: center;    /* center text */
  width: 100%;
}

.custom-select .arrow {
  position: absolute;
  right: 10px;
  top: 45%;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid black;
  border-bottom: 2px solid black;
}

.custom-select .arrow {
  font-family: Arial, sans-serif;
}


.custom-select.open .arrow {
  transform: translateY(-50%) rotate(225deg); /* 45 + 360 */
  top: 45%;
}

.custom-select .options {
  position: absolute;
  top: 45px;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  display: none;
  z-index: 10;
}

.custom-select .option {
  padding: 10px;
  cursor: pointer;
  color: #444;
}

.custom-select .option:hover {
  background: #f0f0f0;
}


.slash-reading-container {
  border-top: 1px solid rgba(204, 204, 204, 0.3);
  display: flex;
  align-items: center;
  justify-content: flex-start; /* key change */
  gap: 20px;
  padding: 10px;

}

.slash-reading {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    padding: 3px 5px;
    border-radius: 0 0 6px 6px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(204, 204, 204, 0.3);
    border-bottom: 1px solid rgba(204, 204, 204, 0.5);
    width: 190px;
    gap: 10px;
    font-weight: normal;
}

.slash-reading.active {
    color: red;
    box-shadow: 0 4px 10px rgba(204, 204, 204, 0.5);
}

.layer_one_item_d span.slash {
    background-color: rgba(204, 204, 204, 0.3);
    padding: 5px 10px;
    border-radius: 6px;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.hidden {
    display: none;
}

.subtitle-group.active {
    background-color: rgba(48, 182, 234, .3); /* blue */
    color: black;              /* optional for contrast */
    
}

.subtitle-group {
    transition: background-color 0.3s ease;
}

.speed-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    border: 1px solid rgba(204, 204, 204, 0.5);
    border-radius: 6px;
    padding: 5px;
    justify-content: center;
    align-items: center;
}

.speed-buttons button {
    
    width: 60px;
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: linear-gradient(to bottom, rgba(247, 198, 204, 0.5), rgba(222, 55, 51, 0.5));

}

.speed-buttons button.active {
    font-weight: bold;
    transform: scale(1.05);
    background: linear-gradient(to bottom, #F7C6CC, #DE3733);
}


