.livestream_list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.livestream_item {
    border: 1px solid var(--popple-line);
    padding: 0.5rem;
    border-radius: 4px;
    width: 300px;
}
.livestream_item h3 {
    color: var(--admin-primary-color, #4c6ef5);
    margin-top: 0;
}
.livestream_meta {
    font-size: 0.8rem;
    color: var(--popple-muted);
    margin-bottom: 0.25rem;
}
.livestream_filter {
    width: 100%;
    margin-bottom: 1rem;
}
.livestream_filter select {
    padding: 0.25rem;
    font-size: 1rem;
}
.livestream_filter input[type="search"] {
    margin-left: 0.5rem;
    padding: 0.25rem;
}
.livestream_filter input[type="submit"] {
    margin-left: 0.25rem;
    padding: 0.25rem 0.5rem;
}
.livestream_item a {
    color: var(--admin-accent-color, #f0ad4e);
    text-decoration: none;
}
.livestream_category {
    display: inline-block;
    background: var(--popple-plane);
    padding: 0.1rem 0.3rem;
    margin-right: 0.25rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--popple-text);
}
.livestream_theatre video {
    width: 100%;
    height: 90vh;
    object-fit: contain;
}
.livestream_theatre .ow_header,
.livestream_theatre .ow_footer,
.livestream_theatre .ow_sidebar {
    display: none;
}
.livestream_theatre .ow_page_container {
    margin: 0;
    padding: 0;
}

.livestream_view {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.livestream_video {
    flex: 2 1 60%;
}

.livestream_chat {
    flex: 1 1 35%;
    max-width: 400px;
}

.livestream_streamer {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.livestream_streamer .ow_avatar {
    width: 48px;
    height: 48px;
    margin-right: 0.5rem;
}
.livestream_leaderboard li {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}
.livestream_leaderboard .ow_avatar {
    width: 24px;
    height: 24px;
    margin-right: 0.25rem;
}
#livestreamWatcherList li {
    display:flex;
    align-items:center;
    margin-bottom:0.25rem;
}
#livestreamWatcherList .ow_avatar {
    width:24px;
    height:24px;
    margin-right:0.25rem;
}
#livestreamWatcherList {
    list-style:none;
    padding-left:0;
    margin-top:0.5rem;
}

.livestream_total {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.livestream_create label {
    display: block;
    margin-bottom: 0.5rem;
}

.livestream_create input[type="text"],
.livestream_create textarea {
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.livestream_edit label {
    display: block;
    margin-bottom: 0.5rem;
}

.livestream_edit input[type="text"],
.livestream_edit textarea {
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.livestream_manage_list {
    list-style: none;
    padding-left: 0;
}

.livestream_manage_list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--popple-line);
}
.livestream_manage_list .livestream_meta {
    flex-grow: 1;
    margin-left: 0.5rem;
    font-size: 0.8rem;
    color: var(--popple-muted);
}

.livestream_rewards {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.livestream_rewards th,
.livestream_rewards td {
    border: 1px solid var(--popple-line);
    padding: 0.25rem 0.5rem;
}

.livestream_rewards th {
    background: var(--popple-plane);
    text-align: left;
}

.livestream_rewards .ow_avatar {
    width: 24px;
    height: 24px;
    margin-right: 0.25rem;
}

.livestream_progress {
    background: var(--popple-plane);
    border-radius: 4px;
    overflow: hidden;
    height: 8px;
    margin-bottom: 0.25rem;
}

.livestream_progress_bar {
    background: var(--admin-accent-color, #f0ad4e);
    height: 100%;
    width: 0;
    transition: width 0.3s;
}

.livestream_next {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--popple-muted);
}

@media (prefers-color-scheme: dark) {
    .livestream_item {
        border-color: var(--popple-line);
        background-color: var(--popple-plane);
        color: var(--popple-text);
    }
    .livestream_meta,
    .livestream_next {
        color: var(--popple-muted);
    }
    .livestream_progress {
        background: var(--popple-plane);
    }
}
