[hidden] {
    display: none !important;
}

/* ===== Hero ===== */
.polls-hero {
    padding: 70px 7% 30px;
    text-align: center;
}

.polls-tag {
    color: #e50914;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

.polls-hero h1 {
    margin: 14px 0;
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 800;
    line-height: 1.2;
}

.polls-hero h1 span {
    color: #e50914;
}

.polls-hero p {
    color: #777777;
    font-size: 16px;
}

.polls-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 5% 80px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #e50914;
    font-weight: 600;
    text-decoration: none;
}

/* ===== Admin form ===== */
.admin-box {
    margin-bottom: 30px;
    padding: 32px;

    background: #ffffff;
    border-top: 4px solid #e50914;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
}

.admin-box h2 {
    margin-bottom: 22px;
    font-size: 22px;
}

.option-input {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.option-remove {
    width: 44px;

    border: 1px solid #dddddd;
    border-radius: 7px;
    background: transparent;
    color: #e50914;

    font-size: 20px;
    cursor: pointer;
}

.add-option {
    align-self: flex-start;
    padding: 8px 16px;

    border: 1px dashed #e50914;
    border-radius: 7px;
    background: transparent;
    color: #e50914;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.add-option:hover {
    background: #e50914;
    color: #ffffff;
}

/* ===== Poll card ===== */
.poll-card {
    margin-bottom: 24px;
    padding: 30px;

    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
}

.poll-question {
    font-size: 20px;
    line-height: 1.4;
}

.poll-meta {
    margin: 4px 0 22px;
    color: #888888;
    font-size: 13px;
}

.poll-option {
    display: block;
    margin-bottom: 18px;
    cursor: pointer;
}

.poll-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.poll-row input {
    flex: none;
    width: 18px;
    height: 18px;
    accent-color: #e50914;
}

.poll-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.poll-count {
    flex: none;
    color: #777777;
    font-size: 13px;
}

.poll-bar {
    height: 8px;
    background: #eeeeee;
    border-radius: 10px;
    overflow: hidden;
}

.poll-fill {
    height: 100%;
    background: #f0a0a5;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.poll-option.mine .poll-fill {
    background: #e50914;
}

.poll-option.mine .poll-text {
    font-weight: 700;
}

.poll-vote {
    margin-top: 6px;
}

.poll-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;

    margin-top: 18px;
    padding-top: 16px;

    border-top: 1px solid #eeeeee;
}

.poll-total {
    color: #777777;
    font-size: 13px;
}

.poll-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.poll-link {
    color: #e50914;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.poll-link:hover {
    text-decoration: underline;
}

.poll-delete {
    border: none;
    background: transparent;
    color: #999999;

    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.poll-delete:hover {
    color: #e50914;
}

.poll-empty {
    padding: 40px 0;
    text-align: center;
    color: #777777;
}

/* ===== Dark mode ===== */
body.dark .polls-hero p,
body.dark .poll-meta,
body.dark .poll-count,
body.dark .poll-total,
body.dark .poll-empty {
    color: #aaaaaa;
}

body.dark .admin-box,
body.dark .poll-card {
    background: #1c1c1c;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

body.dark .poll-bar {
    background: #333333;
}

body.dark .poll-fill {
    background: #7a2a30;
}

body.dark .poll-option.mine .poll-fill {
    background: #e50914;
}

body.dark .poll-foot {
    border-top-color: #2f2f2f;
}

body.dark .option-remove {
    border-color: #3a3a3a;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {

    .admin-box,
    .poll-card {
        padding: 24px 20px;
    }

    .poll-question {
        font-size: 18px;
    }
}

/* Pending polls review */
.pending-options {
    margin: 0 0 14px 18px;
    padding: 0;
}

.pending-options li {
    margin-bottom: 4px;
}

#pendingList .poll-actions {
    display: flex;
    gap: 10px;
}