:root {
    --primary-color: #4cb050;
    --primary-color-rgb: 76, 176, 80;
    --secondary-color: #f7f7f7;
    --background-color: #ffffff;
    --text-color: #212529;
    --text-color-secondary: #6c757d;
    --font-size-small: 0.8rem;
    --font-size-medium: 1rem;
    --font-size-large: 1.2rem;
}
body[data-theme="night"] {
    --primary-color: #4cb050;
    --primary-color-rgb: 76, 176, 80;
    --secondary-color: #3f3f3f;
    --background-color: #212529;
    --text-color: #f8f9fa;
    --text-color-secondary: #adb5bd;
}

body {
    font-size: 16px;
    color: var(--text-color);
    background-color: var(--background-color);
}

em {
    color: var(--primary-color);
    font-style: normal;
}

.text-line-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-line-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
}

.tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    font-size: var(--font-size-large);
    margin: 0 5px;
}

.tab-item {
    text-wrap: nowrap;
    border-bottom: 2px solid transparent;
}

.tab-item.active {
    border-bottom: 2px solid var(--primary-color);
}

.tab-item a {
    display: block;
    white-space: nowrap;
    padding: 10px 10px;
    text-decoration: none;
    color: var(--text-color-secondary);
}
.tab-item.active a {
    color: var(--text-color);
}

.header {
    color: var(--text-color);
    background-color: var(--secondary-color);
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    gap: 5px;
    justify-content: space-between;
    align-items: center;
}

.header > span {
    flex: 1;
}

.header > div {
    flex-wrap: nowrap;
}

.sort-list {
    display: flex;
    gap: 5px;
}

.sort-list > a {
    text-decoration: none;
    color: var(--text-color);
}

.sort-list > a::after {
    content: '|';
    margin-left: 5px;
    color: var(--text-color);
}

.sort-list > a:last-child::after {
    content: '';
    display: none;
}

.sort-list > a.active {
    color: var(--primary-color);
}

.content {
    display: flex;
    flex-wrap: wrap;
}

.content a {
    text-decoration: none;
    color: var(--text-color);
    width: 100%;
}

.item {
    display: flex;
    width: 100%;
    border-bottom: 1px solid var(--secondary-color);
    padding: 15px 0;
}

.thumbnail {
    width: 33%;
    max-width: 100px;
    max-height: 100px;
}
.thumbnail.small {
    max-width: 80px;
    max-height: 80px;
}
.thumbnail.play-btn {
    position: relative;
}

.thumbnail.play-btn svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    color: rgba(255, 255, 255, 0.9);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail+.info {
    padding-left: 10px;
}

.info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.chevron-right {
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chevron-right > svg {
    height: 20px;
    width: 20px;
}

.info-header {
    font-size: var(--font-size-large);
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-color);
}
.info-body {
    font-size: var(--font-size-medium);
    color: var(--text-color-secondary);
}
.info-footer {
    font-size: var(--font-size-small);
    color: var(--text-color-secondary);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.info-type {
    color: var(--primary-color);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tags > .tag {
    color: var(--text-color);
    padding: 2px 5px;
    background-color: rgba(var(--primary-color-rgb), 0.2);
}

span:has(> svg) {
    display: flex;
    align-items: center;
}

.text-secondary > svg, span > svg {
    width: var(--font-size-medium);
    height: var(--font-size-medium);
}

sup.section {
    color: var(--text-color-secondary);
}

span.indicator {
    color: var(--primary-color);
    padding: 2px 5px;
    background-color: rgba(var(--primary-color-rgb), 0.1);
    line-height: var(--font-size-normal);
}
