/* ---------------------------------------------------------
   Video Library Styles — ChartTube v2
   Theme: Beavis & Butthead (dark navy + mustard + hot red)
   --------------------------------------------------------- */

/* GLOBAL PAGE RESET */
body.video-theme {
    background: #031226;   /* deep cartoon navy */
    color: #f2f3f7;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro", sans-serif;
}


/* ---------------------------------------------------------
   HEADER BAR
   --------------------------------------------------------- */

.vl-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #061c3f;          /* dark navy */
    border-bottom: 2px solid #1b2b52;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.vl-logo {
    height: 32px;
    width: auto;
    display: block;
}

.vl-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffd041;               /* cartoon mustard yellow */
    letter-spacing: 0.5px;
}


/* Playlist Button style */
.playlist-btn {
    margin-left: auto;
    padding: 4px 10px;
    background: #ffb52e;          /* Butthead-shirt orange/yellow */
    border: none;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1b1303;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.playlist-btn:hover {
    background: #ffd04a;
}


/* ---------------------------------------------------------
   SEARCH BAR
   --------------------------------------------------------- */

.vl-controls {
    padding: 16px;
}

.vl-search {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #22335a;
    background: #0a1a33;
    color: #ffffff;
    font-size: 0.9rem;
}

.vl-search::placeholder {
    color: #9caacc;
}


/* ---------------------------------------------------------
   VIDEO LIST
   --------------------------------------------------------- */

.vl-list {
    padding: 6px 0 50px;
}


/* Row container */
.video-row {
    background: #0c1c38;
    margin: 10px 16px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #1d3158;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: transform 0.14s ease;
}

.video-row:hover {
    transform: scale(1.015);
}


/* Top row (title/artist) */
.vr-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.vr-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffd041;  /* cartoon yellow */
}

.vr-artist {
    font-size: 0.85rem;
    color: #c7d2ea;
}


/* Bottom metadata row */
.vr-bottom {
    display: flex;
    align-items: center;
    margin-top: 2px;
    gap: 12px;
}

.vr-meta {
    font-size: 0.75rem;
    color: #90a2c7;
}


/* Add Button */
.add-btn {
    margin-left: auto;
    padding: 4px 10px;
    background: #d62b1a;          /* Beavis-shirt red */
    border: none;
    border-radius: 8px;
    color: #fff5dd;
    font-weight: 700;
    cursor: pointer;
}

.add-btn:hover {
    background: #ff4a32;
}


/* ---------------------------------------------------------
   PLAYLIST DRAWER
   --------------------------------------------------------- */

.playlist-drawer {
    position: fixed;
    right: -380px;
    top: 0;
    width: 320px;
    height: 100vh;
    background: #101c33;
    box-shadow: -4px 0 20px rgba(0,0,0,0.45);
    padding: 0;
    transition: right 0.25s ease;
    z-index: 999;
}

.playlist-drawer.open {
    right: 0;
}

.pl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #0b162b;
    border-bottom: 1px solid #1e2d4b;
}

.pl-header h2 {
    font-size: 1.1rem;
    margin: 0;
    color: #ffd041;
}

.pl-close {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: #fff;
    cursor: pointer;
}


.pl-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    height: calc(100vh - 70px);
}

.pl-item {
    padding: 12px 16px;
    border-bottom: 1px solid #1c2c48;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e4e8f5;
    font-size: 0.95rem;
}

.pl-title {
    flex: 1;
}

.pl-remove {
    background: #d62b1a;
    border: none;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 1rem;
    color: #ffffff;
    cursor: pointer;
}

.pl-remove:hover {
    background: #ff4a32;
}
