:root {
  --color-bg: #2c041c;
  --color-text: #FAF9F6;
  --color-accent: #ff005e;
  --color-link: #66d9ef;

  --color-bg-alt: #2c041c;   /* Slightly lighter than bg, for containers */
  --color-muted: #aaa;       /* Muted text like placeholders, etc */
  --color-border: #44132d;   /* Subtle border */
  --color-hover: #ff3380;    /* Accent hover */
  --color-scroll-track: #3a0c25;
  --color-scroll-thumb: #88314d;
  --color-scroll-thumb-hover: #a94468;
}



body {
    font-family: Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    background-color: var(--color-bg-alt);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

h1, h2 {
    text-align: center;
    color: var(--color-text);
    margin-bottom: 20px;
}

.video-player {
    margin-bottom: 20px;
}

.video-js {
    border-radius: 8px;
    overflow: hidden;
}

.playlist-section {
    background-color: var(--color-bg-alt);
    padding: 20px;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
}

#channelList {
    list-style: none;
    padding: 0;
    margin: 0;
}

#channelList li {
    padding: 12px 15px;
    margin-bottom: 8px;
    background-color: var(--color-border);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    color: var(--color-text);
}

#channelList li:hover {
    background-color: var(--color-hover);
    transform: translateY(-2px);
}

#channelList li.active {
    background-color: var(--color-accent);
    color: var(--color-text);
    font-weight: bold;
}

#channelList li img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 3px;
    object-fit: contain;
}

#noChannelsMessage {
    text-align: center;
    color: var(--color-muted);
    font-style: italic;
    padding: 20px;
}

/* Scrollbar styling */
.playlist-section::-webkit-scrollbar {
    width: 8px;
}

.playlist-section::-webkit-scrollbar-track {
    background: var(--color-scroll-track);
    border-radius: 10px;
}

.playlist-section::-webkit-scrollbar-thumb {
    background: var(--color-scroll-thumb);
    border-radius: 10px;
}

.playlist-section::-webkit-scrollbar-thumb:hover {
    background: var(--color-scroll-thumb-hover);
}
/* ... (existing CSS) ... */

#channelSearch {
    width: calc(100% - 20px); /* Adjust width as needed */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 1rem;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

#channelSearch::placeholder {
    color: var(--color-muted);
}

#channelSearch:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* ... (existing CSS) ... */