/**
 * tm-ai-voorlezer-playlist — Stylesheet
 * Version: 1.4.0
 */

.tm-ai-voorlezer-playlist {
    background: linear-gradient(180deg, #1A62DB 0%, #6EB5F2 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 18px;
    padding: 18px;
    box-sizing: border-box;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .25);
}

.tm-ai-voorlezer-playlist * {
    box-sizing: border-box;
}

.tm-ai-voorlezer-playlist__title {
    margin: 0 0 14px;
    font-size: 1.35rem;
    line-height: 1.2;
    color: #fff;
}

/* ----------------------------------------
   Filters
---------------------------------------- */

.tm-ai-voorlezer-playlist__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tm-ai-voorlezer-playlist__filter {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
    backdrop-filter: blur(6px);
    transition: all .18s ease;
}

.tm-ai-voorlezer-playlist__filter:hover {
    background: rgba(255, 255, 255, .22);
}

.tm-ai-voorlezer-playlist__filter.is-active {
    background: var(--e-global-color-4ba915e);
    color: #fff;
    border-color: var(--e-global-color-4ba915e);
    font-weight: 600;
}

/* ----------------------------------------
   Player panel
---------------------------------------- */

.tm-ai-voorlezer-playlist__player {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;
    padding: 16px;
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

.tm-ai-voorlezer-playlist__now {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.tm-ai-voorlezer-playlist__current {
    font-weight: 700;
    color: #fff;
    font-size: 16px;
}

.tm-ai-voorlezer-playlist__status {
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
}

/* ----------------------------------------
   Controls
---------------------------------------- */

.tm-ai-voorlezer-playlist__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tm-ai-voorlezer-playlist__nav,
.tm-ai-voorlezer-playlist__play {
    appearance: none;
    border: 0;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease, opacity .12s ease;
}

.tm-ai-voorlezer-playlist__nav {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 16px;
}

.tm-ai-voorlezer-playlist__nav:hover {
    background: rgba(255, 255, 255, .35);
    transform: scale(1.05);
}

.tm-ai-voorlezer-playlist__play {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #ffffff;
    color: #000;
    font-size: 22px;
    font-weight: 700;
}

.tm-ai-voorlezer-playlist__play:hover {
    transform: scale(1.06);
}

.tm-ai-voorlezer-playlist__nav:disabled,
.tm-ai-voorlezer-playlist__play:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

/* ----------------------------------------
   Seek / progress bar
---------------------------------------- */

.tm-ai-voorlezer-playlist__seek-wrap {
    display: grid;
    gap: 8px;
}

.tm-ai-voorlezer-playlist__seek {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .35);
    outline: none;
}

.tm-ai-voorlezer-playlist__seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
}

.tm-ai-voorlezer-playlist__seek::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #fff;
    border: 0;
    cursor: pointer;
}

.tm-ai-voorlezer-playlist__times {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, .85);
    font-size: 12px;
}

.tm-ai-voorlezer-playlist__audio {
    display: none;
}

/* ----------------------------------------
   Queue
---------------------------------------- */

.tm-ai-voorlezer-playlist__queue {
    margin-bottom: 16px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    padding-top: 14px;
}

.tm-ai-voorlezer-playlist__queue-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.tm-ai-voorlezer-playlist__queue-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.tm-ai-voorlezer-playlist__queue-item {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    padding: 10px 12px;
    color: #fff;
    cursor: pointer;
    position: relative;
    opacity: .9;
    transition: all .18s ease;
}

.tm-ai-voorlezer-playlist__queue-item:hover {
    opacity: 1;
    background: rgba(255, 255, 255, .18);
}

.tm-ai-voorlezer-playlist__queue-item.is-playing {
    border-color: var(--e-global-color-4ba915e);
    background: rgba(0, 0, 0, .15);
}

.tm-ai-voorlezer-playlist__queue-item-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.tm-ai-voorlezer-playlist__queue-item-cats {
    font-size: 13px;
    color: rgba(255, 255, 255, .8);
}

/* ----------------------------------------
   Empty / more
---------------------------------------- */

.tm-ai-voorlezer-playlist__empty {
    color: rgba(255, 255, 255, .8);
    font-style: italic;
}

.tm-ai-voorlezer-playlist__more-wrap {
    margin-top: 12px;
}

.tm-ai-voorlezer-playlist__more {
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .15);
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
}

.tm-ai-voorlezer-playlist__more:hover {
    background: rgba(255, 255, 255, .28);
}

/* ----------------------------------------
   Now-playing badge + equalizer animation
---------------------------------------- */

.tm-ai-voorlezer-playlist__queue-playing {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    margin-left: 8px;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    color: var(--e-global-color-4ba915e);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.tm-ai-voorlezer-playlist__equalizer {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    margin-right: 6px;
    vertical-align: middle;
}

.tm-ai-voorlezer-playlist__equalizer-bar {
    display: block;
    width: 3px;
    height: 100%;
    background: var(--e-global-color-4ba915e);
    border-radius: 999px;
    transform-origin: bottom center;
    animation: tm-ai-eq 1s ease-in-out infinite;
}

.tm-ai-voorlezer-playlist__equalizer-bar:nth-child(1) { animation-delay: 0s; }
.tm-ai-voorlezer-playlist__equalizer-bar:nth-child(2) { animation-delay: .18s; }
.tm-ai-voorlezer-playlist__equalizer-bar:nth-child(3) { animation-delay: .34s; }

@keyframes tm-ai-eq {
    0%   { transform: scaleY(.35); opacity: .75; }
    20%  { transform: scaleY(1); }
    40%  { transform: scaleY(.45); }
    60%  { transform: scaleY(.8); }
    80%  { transform: scaleY(.55); }
    100% { transform: scaleY(.35); opacity: .75; }
}

/* ----------------------------------------
   Responsive
---------------------------------------- */

@media (max-width: 720px) {
    .tm-ai-voorlezer-playlist__controls {
        gap: 10px;
    }
}
