.list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list li {
    padding: 8px;
    border-bottom: 1px solid #444;
    cursor: pointer;
    transition: background 0.4s ease;
    position: relative;
}

.list li.played {
    font-size: 0.7em;
    opacity: 50%;
    padding-top: 2px;
    padding-bottom: 2px;
}

.list li.temp {
    background: #880;
}

.list li:hover {
    background-color: rgba(255,255,255,0.1);
}

.list li.current-playing::before {
   width: 20px;
   margin-right: 5px;
   content: '▶️'; 
}

.list li.current-playing {
    background: rgba(0, 255, 0, 0.2);
    font-weight: bold;
}

.list li.current-paused::before {
   width: 20px;
   margin-right: 5px;
   content: '⏸️'; 
}

.list li.current-paused {
    background: rgba(255, 215, 0, 0.2);
    font-weight: bold;
}

.list li.mine {
    box-shadow: var(--accent-color) 0 0 2px 2px;
}

.list li.indent {
    padding-left: 24px;
}

.list li.highlight {
    animation: pulse-animation 2s linear;
    background: cyan;
    --pulse-color1: #fff8;
    --pulse-color2: #fff;
}

@keyframes pulse-animation {
    15% { box-shadow: 0 0 0  5px var(--pulse-color1), 0 0 2px 4px var(--pulse-color2); }
    30% { background: none; box-shadow: 0 0 0 10px var(--pulse-color1), 0 0 2px 4px var(--pulse-color2); }
    50% { background: none; box-shadow: 0 0 0 30px               #0000, 0 0 2px 4px var(--pulse-color2); }
    95% { background: none; box-shadow: 0 0 0 30px               #0000, 0 0 2px 4px var(--pulse-color2); }
}

.list .state-icon {
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
}

.list .title, .list .added-by {
    vertical-align: top;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.list .title { max-width: calc(80% - 30px); } /* 20px delete + 10px space */
.list li.current-playing .title,
.list li.current-paused .title { max-width: calc(80% - 55px); } /* above + 25px play/pause */
.list .added-by {
    max-width: 20%;
    margin-left: 10px;
    font-size: 0.9em;
    opacity: 0.8;
}

.list .delete-btn {
    float: right;
    background: none;
    border: none;
    color: red;
    cursor: pointer;
    font-size: 1em;
    width: 20px;
    padding: 0px;
}

.list .pending-action-btn {
  margin: 5px;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.list .approve-btn {
  background: green;
  color: white;
}
.list .reject-btn {
  background: red;
  color: white;
}
