:root {
    --rt-playlist-border: var(--rt-border-subtle);
    --rt-playlist-header-bg: var(--rt-bg-surface);
    --rt-playlist-item-bg: var(--rt-bg-subtle);
    --rt-playlist-item-bg-current: var(--color-purple-100);
    --rt-playlist-item-border-current: var(--color-purple-500);
    --rt-playlist-meta-color: var(--rt-text-tertiary);
    --rt-playlist-button-bg: var(--color-white);
    --rt-playlist-button-bg-hover: var(--rt-bg-strong);
    --rt-playlist-overlay-bg: rgba(0, 0, 0, 0.6);
}

.playlist-card__thumbnail {
    position: relative;
}

.playlist-card__thumbnail img {
    display: block;
    filter: brightness(0.5);
}

.playlist-card__thumbnail div {
    filter: invert();
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-content: center;
}

.watch-playlist {
    box-sizing: border-box;
    border-collapse: collapse;
    border: 1px solid var(--rt-playlist-border);
}

.watch-playlist__header {
    background: var(--rt-playlist-header-bg);
    border-bottom: 1px solid var(--rt-playlist-border);
    padding: 8px 10px;
}

.watch-playlist__controls {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    background: var(--rt-playlist-header-bg);
    border-top: 1px solid var(--rt-playlist-border);
    padding: 6px 10px;
    text-align: center;
}

.watch-playlist__meta {
    margin: 3px 0 0;
    color: var(--rt-playlist-meta-color);
}

.watch-playlist__content {
    max-height: 400px;
    overflow-y: auto;
}

.watch-playlist__item {
    display: flex;
    position: relative;
    padding: 6px 8px;
    border-bottom: 1px solid var(--rt-playlist-border);
    cursor: pointer;
    background: var(--rt-playlist-item-bg);
}

.watch-playlist__item:hover {
    filter: brightness(0.96);
}

.watch-playlist__item--current {
    background: var(--rt-playlist-item-bg-current);
    border-left: 3px solid var(--rt-playlist-item-border-current);
    padding-left: 5px;
}

.watch-playlist__item--current:hover {
    filter: brightness(0.96);
}

.watch-playlist__item:last-child {
    border-bottom: none;
}

.watch-playlist__item-number {
    width: 20px;
    flex-shrink: 0;
    color: var(--rt-playlist-meta-color);
    font-size: 11px;
    padding-top: 2px;
}

.watch-playlist__thumbnail {
    aspect-ratio: 16 / 9;
    max-width: 70px;
    height: 39px;
    margin-right: 8px;
    flex-shrink: 0;
    border: 1px solid var(--rt-playlist-border);
    position: relative;
}

.watch-playlist__thumbnail img {
    width: 100%;
    height: 100%;
}

.watch-playlist__button {
    background: var(--rt-playlist-button-bg);
    border: 1px solid var(--rt-ui-border);
    padding: 3px 8px;
    font-size: 11px;
    cursor: pointer;
    margin: 0 2px;
}

.watch-playlist__button:first-child {
    margin-right: auto;
}

.watch-playlist__button:hover {
    background: var(--rt-playlist-button-bg-hover);
}

.video-edit-playlist-selector {
    overflow-y: scroll;
    border: 1px solid var(--rt-ui-border);
    margin-top: -1px;
}

.video-edit-playlist-selector__entry {
    display: flex;
    height: 36px;
    padding: 0 5px;
    font-size: 15px;
    border-bottom: 1px solid var(--rt-ui-border);
}

.video-edit-playlist-selector__entry:last-child {
    border-bottom: none;
}

.video-edit-playlist-selector__header {
    background: var(--rt-button-default);
    border: 1px solid var(--rt-ui-border);
    border-bottom: none;
    padding: 7px 12px;
}