body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #1f1f1f;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4caf50;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-size: 1rem;
}

nav a:hover, nav a.active {
    color: #4caf50;
    text-decoration: underline;
}

.container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 300px;
    background-color: #1a1a1a;
    border-right: 1px solid #333;
    display: flex;
    flex-direction: column;
}

.search-box {
    padding: 10px;
    background: #1f1f1f;
}

.search-box input {
    width: 90%;
    padding: 8px;
    background: #333;
    border: 1px solid #444;
    color: white;
    border-radius: 4px;
}

.channel-list {
    flex: 1;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Стилизация скроллбара для списка */
.channel-list::-webkit-scrollbar {
    width: 8px;
}
.channel-list::-webkit-scrollbar-track {
    background: #1a1a1a;
}
.channel-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.channel-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #2c2c2c;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.channel-item:hover {
    background-color: #333;
}

.channel-item.active {
    background-color: #2e7d32;
    color: white;
}

.channel-logo {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
}

.player-area {
    flex: 1;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

video {
    width: 100%;
    height: 100%;
    max-height: 100vh;
}

.info-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    border-radius: 5px;
    pointer-events: none; /* Чтобы клики проходили сквозь */
}

.info-overlay h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
}