.contest-page {
    color: #f0f0f0;
}

.contest-shell {
    background: #1f1f1f;
    border: 1px solid #323232;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
    padding: 24px 24px 28px;
}

.contest-heading {
    margin: 0 0 8px;
    color: #fff;
    font-size: 28px;
    line-height: 1.1;
}

.contest-subheading {
    margin: 0 0 18px;
    color: #cfcfcf;
    font-size: 14px;
    line-height: 1.5;
}

.contest-subheading a,
.contest-subheading a:visited {
    color: #f28a8a;
}

.contest-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.contest-tab,
.contest-tab:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #474747;
    background: #313131;
    color: #e7e7e7;
    text-decoration: none;
    font-weight: 700;
}

.contest-tab:hover,
.contest-tab:visited:hover,
.contest-tab.is-active,
.contest-tab.is-active:visited {
    color: #ff8d8d;
    background: #3b3b3b;
}

.contest-note,
.contest-empty {
    padding: 14px 16px;
    border: 1px solid #434343;
    background: #2b2b2b;
    color: #d6d6d6;
    margin-bottom: 18px;
}

.contest-list {
    display: grid;
    gap: 10px;
}

.contest-entry {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 190px;
    gap: 16px;
    align-items: stretch;
    padding: 10px;
    background: #363636;
    border: 1px solid #434343;
}

.contest-entry:nth-child(even) {
    background: #313131;
}

.contest-entry.is-candidate {
    grid-template-columns: 132px 170px minmax(0, 1fr);
}

.contest-entry__vote {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
}

.contest-entry__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contest-entry__thumb .prw,
.contest-entry__thumb a {
    display: block;
}

.contest-entry__thumb img,
.contest-result-card img {
    width: 100%;
    max-width: 170px;
    border: 1px solid #505050;
    box-shadow: none;
}

.contest-entry__content {
    min-width: 0;
}

.contest-entry__title {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.15;
    color: #fff;
}

.contest-entry__title a,
.contest-entry__title a:visited {
    color: #fff;
    text-decoration: none;
}

.contest-entry__title a:hover {
    color: #ff9191;
}

.contest-entry__meta {
    color: #cccccc;
    font-size: 13px;
    line-height: 1.5;
}

.contest-entry__meta a,
.contest-entry__meta a:visited {
    color: #f28a8a;
}

.contest-entry__comment {
    margin: 0 0 10px;
    color: #d7d7d7;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-line;
}

.contest-entry__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    text-align: right;
    gap: 10px;
}

.contest-side-link,
.contest-side-link:visited {
    color: #ff8d8d;
    text-decoration: none;
    font-weight: 700;
}

.contest-side-link:hover {
    text-decoration: underline;
}

.contest-side-muted {
    color: #bdbdbd;
    font-size: 13px;
}

.contest-vote-box {
    display: grid;
    gap: 8px;
}

.contest-vote-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 10px;
    background: #262626;
    border: 1px solid #4a4a4a;
    color: #fff;
    font-weight: 700;
}

.contest-vote-score img {
    width: 18px;
    height: 18px;
}

.contest-vote-score .loader {
    width: 16px;
    height: 16px;
}

.contest-cta,
.contest-cta:visited,
.contest-entry .contestBtn,
.contest-entry .contestBtn:visited,
.contest-entry .konk_btn,
.contest-entry .konk_btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: 100%;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #666;
    background: #474747;
    color: #f3f3f3;
    text-decoration: none;
    font-weight: 700;
    opacity: 1;
}

.contest-entry .contestBtn:hover,
.contest-entry .konk_btn:hover,
.contest-cta:hover {
    background: #5a5a5a;
}

.contest-entry .contestBtn.voted,
.contest-entry .konk_btn.voted,
.contest-entry .contestBtn.loading {
    background: #a64f4f;
    border-color: #d97373;
}

.contest-entry .konk_btn[vote="0"],
.contest-entry .konk_btn[vote="0"]:visited {
    background: #424242;
}

.contest-entry .konk_btn[vote="1"].voted,
.contest-entry .konk_btn[vote="1"].voted:hover,
.contest-entry .contestBtn.voted:hover {
    background: #b95757;
}

.contest-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 22px;
    color: #d2d2d2;
    font-size: 14px;
}

.contest-stats b {
    color: #fff;
}

.contest-results {
    display: grid;
    gap: 18px;
}

.contest-results-group {
    border: 1px solid #424242;
    background: #2c2c2c;
}

.contest-results-head {
    padding: 14px 18px 10px;
    border-bottom: 1px solid #404040;
}

.contest-results-head h2 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 22px;
}

.contest-results-head p {
    margin: 0;
    color: #c6c6c6;
}

.contest-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 16px 18px 18px;
}

.contest-result-card {
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
    padding: 14px;
    background: #383838;
    border: 1px solid #4a4a4a;
}

.contest-result-card__place {
    color: #ff8d8d;
    font-weight: 700;
    font-size: 18px;
}

.contest-result-card__title,
.contest-result-card__title:visited {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.contest-result-card__title:hover {
    color: #ff8d8d;
}

.contest-table-wrap {
    overflow-x: auto;
    margin-top: 18px;
}

.contest-table {
    width: 100%;
    border-collapse: collapse;
    color: #e5e5e5;
}

.contest-table th,
.contest-table td {
    padding: 12px 14px;
    border: 1px solid #434343;
    text-align: left;
}

.contest-table th {
    background: #343434 !important;
    color: #fff !important;
}

.contest-table td {
    background: #2e2e2e;
}

.contest-form-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 18px;
    align-items: start;
}

.contest-form-card {
    padding: 16px 18px 18px;
    border: 1px solid #434343;
    background: #2c2c2c;
}

.contest-form-card h3 {
    margin: 0 0 12px;
    color: #fff;
}

.contest-form-card label,
.contest-form-card .lcol {
    color: #ddd;
}

.contest-form-card select,
.contest-form-card input[type="submit"] {
    width: 100%;
}

.contest-preview img {
    width: 100%;
    max-width: 520px;
    border: 1px solid #4a4a4a;
}

@media (max-width: 980px) {
    .contest-shell {
        padding: 18px 14px 20px;
        margin: 0 -8px;
    }

    .contest-entry,
    .contest-entry.is-candidate,
    .contest-form-grid,
    .contest-results-grid {
        grid-template-columns: 1fr;
    }

    .contest-entry__side {
        align-items: flex-start;
        text-align: left;
    }

    .contest-entry__thumb img,
    .contest-result-card img {
        max-width: 100%;
    }
}
