:root {
    --message-bubble-bg: #373737;
    --message-bubble-fg: #ddd;

    --achievement-fg: inherit;
    --achievement-bg: #343338;
    --achievement-box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.14),
        0 1px 8px 0 rgba(0, 0, 0, 0.12), 0 3px 3px -2px rgba(0, 0, 0, 0.4);
    --achievement-progress-bg: #444;

    --alert-bg: #000;
    --alert-fg: #fff;
    --alert-gap-color: #222;
    --alert-gap-width: 1px;

    --article-card-bg: #000;
    --article-card-fg: #ccc;
    --article-card-head-fg: #fff;
    --article-card-time-fg: #bbb;
    --article-box-shadow: none;

    --bbcode-input-header-bg: #000;
    --bbcode-input-body-bg: #000;
    --bbcode-input-border: 1px solid #222;
    --bbcode-input-border-radius: 22px;
    --bbcode-input-bg: #000;

    --bbcode-rendered-fg-default: #c9d1d9;
    --bbcode-rendered-fg-muted: #8b949e;
    --bbcode-rendered-fg-subtle: #484f58;
    --bbcode-rendered-canvas-default: transparent;
    --bbcode-rendered-canvas-subtle: #313131;
    --bbcode-rendered-border-default: #3c3d3d;
    --bbcode-rendered-border-muted: #464749;
    --bbcode-rendered-neutral-muted: #46484b66;
    --bbcode-rendered-accent-fg: #58a6ff;
    --bbcode-rendered-accent-emphasis: #2260be;
    --bbcode-rendered-attention-subtle: #7289da;
    --bbcode-rendered-danger-fg: #ff141ccc;
    --bbcode-rendered-quote-bg: #000;
    --bbcode-rendered-quote-border: #606060;

    --body-bg: #000;
    --body-fg: #444;

    --breadcrumb-fg: #ccc;
    --breadcrumb-active-fg: #999;
    --breadcrumb-hover-fg: #999;
    --breadcrumb-inactive-text-decoration: none;

    --button-filled-bg: #363636;
    --button-filled-border: none;
    --button-filled-border-radius: 6px;
    --button-filled-fg: #d8d7dc;

    --button-outlined-bg: inherit;
    --button-outlined-border: 1px solid #444;
    --button-outlined-border-radius: 6px;
    --button-outlined-fg: currentColor;

    --button-text-bg: inherit;
    --button-text-border: none;
    --button-text-border-radius: 6px;
    --button-text-fg: currentColor;

    --chatbox-message-bg: #000;
    --chatbox-button-fg: #555;
    --chatbox-button-hover-fg: #666;
    --chatbox-users-bg: #000;
    --chatbox-tab-delete-fg: #444;
    --chatbox-tab-delete-bg: #000;

    --compact-search-bg: #000;
    --compact-search-box-shadow: none;
    --compact-search-border-radius: 27px;
    --compact-search-fg: #bbb;
    --compact-search-padding: 5px;

    --comparison-divider-fg: #fff;
    --comparison-button-fg: #fff;

    --data-table-border-radius: 22px;
    --data-table-fg: #ccc;
    --data-table-th-bg: #000;
    --data-table-thead-border: 2px solid #333;
    --data-table-tr-border: 1px solid #333;
    --data-table-tr-even-bg: #000;
    --data-table-tr-hover-bg: #111;
    --data-table-tr-odd-bg: #000;
    --data-table-tfoot-border: 3px solid #444;

    --dialog-bg: #2a292e;
    --dialog-border: none;
    --dialog-border-radius: 22px;
    --dialog-box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.14),
        0 1px 8px 0 rgba(0, 0, 0, 0.12), 0 3px 3px -2px rgba(0, 0, 0, 0.4);
    --dialog-fg: #050505;
    --dialog-head-bg: #2a292e;
    --dialog-head-fg: #050505;

    --donation-chart-daily-bg: rgba(75, 192, 192, 0.2);
    --donation-chart-daily-border: rgba(75, 192, 192, 1);
    --donation-chart-monthly-bg: rgba(153, 102, 255, 0.2);
    --donation-chart-monthly-border: rgba(153, 102, 255, 1);

    --fieldset-bg: inherit;
    --fieldset-fg: #aaa;
    --fieldset-border-radius: 20px;
    --fieldset-border: 1px solid #444;

    --footer-stats-bg: #000;
    --footer-hr-fg: #262626;

    --icon-button-bg: inherit;
    --icon-button-border: none;
    --icon-button-border-radius: 9999px;
    --icon-button-fg: currentColor;

    --icon-button-filled-bg: #5cb579
        linear-gradient(to bottom right, #0ba360, #2bb673);
    --icon-button-filled-fg: white;
    --icon-button-filled-border: none;

    --input-text-border: 1px solid #444;
    --input-text-border-active: 2px solid #2195f3;
    --input-text-border-error: 1px solid #ba1b1b;
    --input-text-border-hover: 2px solid #999;
    --input-text-border-radius: 20px;
    --input-text-fg: #aaa;
    --input-text-padding: 12px;
    --input-text-padding-active: 11px;
    --input-text-padding-hover: 11px;

    --key-value-border-radius: 0;
    --key-value-even-bg: transparent;
    --key-value-fg: inherit;
    --key-value-odd-bg: transparent;
    --key-value-padding: 13px;

    --label-bg: #e2e2e2;
    --label-fg: #aaa;
    --label-fg-active: #2195f3;
    --label-fg-error: #ba1b1b;
    --label-fg-hover: #999;

    --legend-fg: #888;
    --legend-bg: transparent;
    --legend-border: none;
    --legend-border-radius: 0;

    --mediahub-card-bg: #000;
    --mediahub-card-fg: #aaa;
    --mediahub-card-hover-fg: #ddd;
    --mediahub-card-border: 1px solid #222;
    --mediahub-card-border-radius: 22px;
    --mediahub-card-box-shadow: none;

    --meta-backdrop-filter: brightness(30%) blur(100px);
    --meta-dropdown-backdrop-filter: brightness(2) blur(10px);
    --meta-dropdown-bg: #4449;
    --meta-dropdown-backdrop-filter-hover: brightness(2) blur(10px);
    --meta-dropdown-hover-bg: rgba(255, 255, 255, 0.1);
    --meta-dropdown-fg: #bbb;
    --meta-dropdown-hover-fg: #ccc;
    --meta-description-fg: #ddd;
    --meta-id-tag-fg: #eee;
    --meta-id-tag-bg: transparent;
    --meta-id-tag-hover-fg: #fff;
    --meta-id-tag-hover-bg: rgba(255, 255, 255, 0.1);
    --meta-chips-heading-fg: #bbb;
    --meta-chip-icon-fg: #1f1f1f;
    --meta-chip-icon-hover-bg: #bbb;
    --meta-chip-icon-bg: #cdcdcd;
    --meta-chip-name-fg: #e2e2e2;
    --meta-chip-value-fg: #aaa;
    --meta-chip-value-hover-fg: #ccc;
    --meta-chip-backdrop-filter-hover: brightness(2) blur(10px);
    --meta-chip-hover-bg: rgba(255, 255, 255, 0.1);
    --meta-popup-bg: #1a1a1a;
    --meta-popup-fg: #7f8c8d;

    --meter-fg: #2a292e;
    --meter-bg: #444;

    --notification-read: transparent;
    --notification-unread: #2bb666;

    --option-bg: #000;
    --option-fg: #aaa;

    --paginate-bg: #000;
    --paginate-bg-hover: #111;
    --paginate-bg-current: #161616;
    --paginate-border-radius: 22px;
    --paginate-fg: #ddd;
    --paginate-fg-disabled: #999;
    --paginate-divider: #888;

    --panel-action-fg: #aaa;
    --panel-border: 1px solid #262626;
    --panel-bg: #000;
    --panel-fg: #bbb;
    --panel-body-border-radius: 22px;
    --panel-box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.14),
        0 1px 8px 0 rgba(0, 0, 0, 0.12), 0 3px 3px -2px rgba(0, 0, 0, 0.4);
    --panel-border-radius: 22px;
    --panel-head-bg: #000;
    --panel-head-fg: #fff;
    --panel-head-border-radius: 22px;
    --panel-group-fg: #fff;

    --playlist-card-bg: #000;
    --playlist-card-border: 1px solid #222;
    --playlist-card-border-radius: 20px;
    --playlist-card-box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14),
        0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --playlist-card-fg: #d8d7dc;
    --playlist-card-missing-image-bg: #000;
    --playlist-card-missing-image-fg: #111;

    --post-bg: #000;
    --post-fg: #212121;
    --post-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.14),
        0 3px 3px -2px rgba(0, 0, 0, 0.12), 0 1px 8px 0 rgba(0, 0, 0, 0.2);
    --post-head-fg: var(--panel-fg);
    --post-head-bg: none;
    --post-toolbar-bg: #000;
    --post-toolbar-fg: #999;
    --post-toolbar-hover-bg: #000;
    --post-toolbar-hover-fg: #ccc;
    --post-like-fg: #5ab15f;
    --post-dislike-fg: #c93120;
    --post-aside-bg: #000;
    --post-aside-fg: #696969;
    --post-footer-fg: var(--panel-fg);

    --prize-bg: #000;
    --prize-border-radius: 20px;
    --prize-border: 1px solid #222;
    --prize-box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14),
        0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --prize-fg: #d8d7dc;
    --prize-heading-fg: #d8d7dc;
    --prize-icon-primary-color: mediumseagreen;
    --prize-icon-secondary-color: linen;

    --quick-search-bg: #000;
    --quick-search-fg: #aaa;
    --quick-search-border: 1px solid #444;
    --quick-search-border-radius: 18px;
    --quick-search-box-shadow: 0 4px 6px rgba(32, 33, 36, 0.28);
    --quick-search-selector-fg: #999;
    --quick-search-selector-hover-bg: #000;
    --quick-search-selector-hover-fg: #bbb;
    --quick-search-selector-selected-bg: #000;
    --quick-search-selector-selected-fg: #fff;
    --quick-search-result-bg: #000;
    --quick-search-result-fg: #aaa;
    --quick-search-result-hover-bg: #000;
    --quick-search-result-hover-fg: #fff;
    --quick-search-result-image-border-radius: 5px;
    --quick-search-result-year-fg: #888;
    --quick-search-result-border: 1px solid #444;

    --scrollbar-color: #0004;

    --secondary-nav-bg: #000;
    --secondary-nav-box-shadow: none;
    --secondary-nav-tab-fg: #fff;
    --secondary-nav-tab-bg: inherit;
    --secondary-nav-tab-active-text-decoration: underline #ddd 2px;
    --secondary-nav-tab-hover-fg: #bbb;
    --secondary-nav-tab-hover-bg: transparent;
    --secondary-nav-tab-hover-text-decoration: underline #fff 2px;
    --secondary-nav-tab-menu-bg: #000;
    --secondary-nav-tab-menu-fg: inherit;
    --secondary-nav-tab-menu-border: 1px solid #444;
    --secondary-nav-tab-menu-border-radius: 6px;
    --secondary-nav-tab-menu-box-shadow: 0 12px 17px 2px rgba(0, 0, 0, 0.14),
        0 5px 22px 4px rgba(0, 0, 0, 0.12), 0 7px 8px -4px rgba(0, 0, 0, 0.2);

    --select-border: 1px solid #444;
    --select-border-active: 2px solid #2195f3;
    --select-border-error: 1px solid #ba1b1b;
    --select-border-hover: 2px solid #999;
    --select-border-radius: 20px;
    --select-fg: #aaa;
    --select-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='%23aaa' d='M6 8l-1 1l5 5l5-5l-1-1l-4 4l-4-4z'/></svg>");
    --select-padding: 11px 23px 11px 11px;
    --select-padding-active: 10px 22px 10px 10px;
    --select-padding-hover: 10px 22px 10px 10px;

    --subforum-listing-odd-bg: transparent;
    --subforum-listing-even-bg: transparent;
    --subforum-listing-border: 1px solid #3c3c3c;

    --textarea-border: 1px solid #444;
    --textarea-border-active: 2px solid #2196f3;
    --textarea-border-error: 1px solid #ba1b1b;
    --textarea-border-hover: 2px solid #999;
    --textarea-border-radius: 20px;
    --textarea-fg: #aaa;
    --textarea-padding: 12px;
    --textarea-padding-active: 11px;
    --textarea-padding-hover: 11px;

    --top-nav-bg: #000;
    --top-nav-box-shadow: 0 8px 10px 0 rgba(0, 0, 0, 0.2);
    --top-nav-dropdown-fg: #fff;
    --top-nav-dropdown-hover-fg: #fff;
    --top-nav-dropdown-hover-bg: #000;
    --top-nav-dropdown-hover-text-decoration: solid underline #ccc 2px;
    --top-nav-dropdown-menu-bg: #000;
    --top-nav-dropdown-menu-border: 1px solid #444;
    --top-nav-dropdown-menu-border-radius: 6px;
    --top-nav-dropdown-menu-box-shadow: 0 12px 17px 2px rgba(0, 0, 0, 0.14),
        0 5px 22px 4px rgba(0, 0, 0, 0.12), 0 7px 8px -4px rgba(0, 0, 0, 0.2);
    --top-nav-dropdown-menu-item-fg: #eae9ee;
    --top-nav-dropdown-menu-item-bg: transparent;
    --top-nav-dropdown-menu-item-hover-fg: inherit;
    --top-nav-dropdown-menu-item-hover-bg: #000;
    --top-nav-dropdown-menu-item-hover-text-decoration: solid underline #ccc 2px;
    --top-nav-dropdown-menu-item-icon-fg: #fff;
    --top-nav-dropdown-menu-item-icon-bg: #000;
    --top-nav-ratio-bar-fg: #eae9ee;
    --top-nav-icon-bar-icon-bg: #000;
    --top-nav-icon-bar-icon-fg: #fff;
    --top-nav-icon-bar-icon-border-radius: 50%;
    --top-nav-icon-bar-icon-hover-bg: #000;
    --top-nav-icon-bar-icon-hover-fg: #ccc;
    --top-nav-stats-fg: #eae9ee;
    --top-nav-toggle-fg: #eae9ee;

    --torrent-card-bg: #000;
    --torrent-card-fg: #ddd;
    --torrent-card-border: 1px solid #444;
    --torrent-card-head-bg: #000;
    --torrent-card-head-fg: #ddd;
    --torrent-card-link-fg: #fff;
    --torrent-card-genre-fg: #999;

    --torrent-group-bg: #000;
    --torrent-group-header-bg: #000;
    --torrent-group-text: #aaa;
    --torrent-group-text-muted: #888;
    --torrent-group-table-stripe-even: rgba(255, 255, 255, 0.02);
    --torrent-group-table-stripe-odd: rgba(255, 255, 255, 0.05);
    --torrent-group-hover-brightness-emphasis: 1.13;
    --torrent-group-chip-border: #222;

    --torrent-row-fg: #bbb;
    --torrent-row-visited-fg: #555;
    --torrent-row-sticky-bg: #111;
    --torrent-row-format-fg: #bbb;
    --torrent-row-format-bg: transparent;
    --torrent-row-buttons-fg: #888;
    --torrent-row-seeders-fg: #7ad17f;
    --torrent-row-leechers-fg: #e95140;
    --torrent-row-completed-fg: #4f84d7;
    --torrent-row-comments-fg: #3fb618;
    --torrent-row-internal-fg: #baaf94;
    --torrent-row-personal-fg: #865be9;
    --torrent-row-featured-fg: #f92672;
    --torrent-row-freeleech-fg: #ffb800;
    --torrent-row-double-upload-fg: #4cb828;
    --torrent-row-sticky-fg: #444;
    --torrent-row-highspeed-fg: #ff0039;
    --torrent-row-bumped-fg: #f9ba13;

    --torrent-tag-fg: #eee;
    --torrent-tag-bg: transparent;
    --torrent-tag-hover-fg: #fff;
    --torrent-tag-hover-bg: rgba(255, 255, 255, 0.1);

    --user-stat-card-bg: #000;
    --user-stat-card-fg: #aaa;
    --user-stat-card-border: 1px solid #222;
    --user-stat-card-border-radius: 22px;
    --user-stat-card-box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2),
        0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);
}

.panel__heading {
    font-size: 19px;
    font-weight: bold;
    padding: 12px 15px;
}

/* Bottom-most table header cells which don't have a following tbody nor tfoot */
.data-table
    > thead:not(:has(+ tbody > tr)):not(:has(~ tfoot > tr))
    > tr:last-of-type
    > th {
    border-bottom: none;
}

.data-table tr td:first-of-type:not(.torrent-search--list__poster),
.data-table tr th:first-of-type {
    padding-left: 20px;
}

.data-table tr td:last-of-type,
.data-table tr th:last-of-type {
    padding-right: 20px;
}

.article-preview {
    border-radius: 22px;
    border: 1px solid #222;
}

.post {
    border-radius: 22px;
    border: 1px solid #262626;
}

a {
    color: #d0d0d0;
}

a:hover {
    color: #fff;
}

.chatroom__whispers {
    border-top: 1px solid #3c3c3c;
}

.chatbox-message {
    border: 1px solid #222;
    border-radius: 26px;
    padding: 0 8px;
    color: #aaa;
}

.chatbox__chatroom {
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
}

.chatbox-message::before {
    border-color: transparent;
}

.torrent-search--grouped__result {
    border-radius: 22px;
    border: 1px solid #222;
}

.torrent-card {
    border-radius: 22px;
}

.comment {
    box-shadow: none;
}

.comment__list-item + .comment__list-item > .comment {
    border-top: 1px solid #444;
    border-radius: 0;
    padding-top: 22px;
}

.comment__replies {
    margin-top: 4px;
}

.torrent__name {
    color: #fff;
}

.meta__title {
    color: #fff;
}

.meta__backdrop {
    mask-image: linear-gradient(#0000, #0000);
}

.user-card {
    border-radius: 22px;
}

.notification--unread {
    border-left: none !important;
}

.notification--unread::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 4px;
    margin-right: 4px;
    background-color: var(--notification-unread);
    position: relative;
}

.achievement {
    margin: 18px;
    border-radius: 22px;
}

.text-muted {
    color: #aaa;
}

hr {
    border-top: 1px solid #444;
}

li.pagination__next,
li.pagination__previous {
    margin: 2px;
}

a.pagination__next,
a.pagination__previous,
li.pagination__next,
li.pagination__previous {
    border-radius: 9999px;
    height: 36px;
    width: 86px;
    line-height: 36px;
}

.pagination__link,
.pagination__current {
    border-radius: 9999px;
    height: 36px;
    width: 36px;
    margin: 2px;
    line-height: 36px;
}
