:root {
    color-scheme: dark;
    font-family: system-ui, sans-serif;
    background: #101216;
    color: #e6e8eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

main {
    max-width: 1100px;
    margin: auto;
    padding: 24px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

h1 {
    margin: 0;
    color: #e5b46d;
}

.version, .subtitle {
    color: #9ca3af;
}

#video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

video {
    width: 100%;
    height: 100%;
}

.panel {
    margin-top: 20px;
    padding: 20px;
    background: #191c22;
    border-radius: 12px;
}

label {
    display: block;
    margin-bottom: 10px;
}

input {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    color: #fff;
    background: #111318;
    border: 1px solid #414752;
    border-radius: 8px;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

button {
    padding: 12px 18px;
    border: 1px solid #414752;
    border-radius: 8px;
    background: #262a32;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
}

#play {
    background: #e5b46d;
    color: #151515;
    font-weight: 600;
}

button:disabled {
    opacity: .45;
    cursor: default;
}

#status {
    color: #73d69a;
    overflow-wrap: anywhere;
}

#status.error {
    color: #fca5a5;
}

#codecs, .notice, footer {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
}

.notice {
    margin-top: 20px;
}

footer {
    margin-top: 24px;
    text-align: center;
}

.motto {
    color: #e5b46d;
}

@media (max-width: 600px) {
    main {
        padding: 14px;
    }

    .buttons button {
        flex: 1 1 auto;
    }
}

h2 { margin: 0 0 16px; font-size: 19px; color: #e5b46d; }
.filters { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
select { width: 100%; padding: 14px; font-size: 16px; color: #fff; background: #111318; border: 1px solid #414752; border-radius: 8px; }
#playlist-status, #current-channel { color: #73d69a; overflow-wrap: anywhere; }
#playlist-status.error { color: #fca5a5; }
#channel-count, .hint, #page-label { color: #9ca3af; font-size: 14px; }
#channel-list { list-style: none; padding: 0; margin: 12px 0; max-height: 360px; overflow-y: auto; }
#channel-list li { margin-bottom: 5px; }
#channel-list button { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; text-align: left; overflow-wrap: anywhere; }
#channel-list button[aria-current="true"] { border-color: #e5b46d; color: #e5b46d; }
.channel-category { color: #9ca3af; font-size: 12px; }
.pagination { align-items: center; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #e5b46d; outline-offset: 2px; }
@media (max-width: 600px) { .filters { grid-template-columns: 1fr; } }
