:root {
    --owh-poll-red: #e51b23;
    --owh-poll-dark: #111827;
    --owh-poll-muted: #64748b;
    --owh-poll-line: #e5e7eb;
    --owh-poll-soft: #f8fafc;
}

.owh-home-polls-section {
    padding: 44px 0;
    background: #fff;
    border-top: 1px solid var(--owh-poll-line);
    border-bottom: 1px solid var(--owh-poll-line);
}

.owh-home-polls-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
    gap: 26px;
    align-items: stretch;
}

.owh-poll-card {
    background: #fff;
    border: 1px solid var(--owh-poll-line);
    box-shadow: 0 12px 34px rgba(15, 23, 42, .07);
    overflow: hidden;
    position: relative;
}

.owh-poll-card-home {
    min-height: 100%;
}

.owh-poll-card-image {
    position: relative;
    height: 245px;
    overflow: hidden;
    background: #e5e7eb;
}

.owh-poll-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}

.owh-poll-card:hover .owh-poll-card-image img {
    transform: scale(1.025);
}

.owh-poll-card-image > span {
    position: absolute;
    left: 16px;
    top: 16px;
    background: var(--owh-poll-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 8px 10px;
}

.owh-poll-card-body {
    padding: 24px;
}

.owh-poll-kicker {
    color: var(--owh-poll-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.owh-poll-card h3 {
    color: var(--owh-poll-dark);
    font-size: 25px;
    line-height: 1.25;
    font-weight: 800;
    margin: 0 0 10px;
}

.owh-poll-card-page h3 {
    font-size: 22px;
}

.owh-poll-description {
    color: #475569;
    line-height: 1.65;
    margin: 0 0 14px;
}

.owh-poll-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 12px 0;
    margin-bottom: 13px;
    border-top: 1px solid var(--owh-poll-line);
    border-bottom: 1px solid var(--owh-poll-line);
    color: var(--owh-poll-muted);
    font-size: 12px;
}

.owh-poll-vote-form h4 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
    color: var(--owh-poll-dark);
}

.owh-poll-options {
    display: grid;
    gap: 9px;
}

.owh-poll-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--owh-poll-line);
    background: #fff;
    cursor: pointer;
    margin: 0;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.owh-poll-options label:hover {
    border-color: #f0a2a6;
    background: #fff8f8;
    transform: translateX(2px);
}

.owh-poll-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.owh-poll-option-check {
    width: 19px;
    height: 19px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    flex: 0 0 19px;
    position: relative;
}

.owh-poll-options input[type="checkbox"] + .owh-poll-option-check {
    border-radius: 4px;
}

.owh-poll-options input:checked + .owh-poll-option-check {
    border-color: var(--owh-poll-red);
    background: var(--owh-poll-red);
}

.owh-poll-options input:checked + .owh-poll-option-check:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.owh-poll-option-text {
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.owh-poll-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 15px;
}

.owh-poll-actions button,
.owh-poll-no-options a,
.owh-polls-hero a,
.owh-polls-empty a {
    border: 0;
    min-height: 42px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.owh-poll-vote-btn {
    color: #fff;
    background: var(--owh-poll-red);
}

.owh-poll-results-btn {
    color: var(--owh-poll-dark);
    background: #eef2f7;
}

.owh-poll-actions button:hover,
.owh-poll-no-options a:hover,
.owh-polls-hero a:hover,
.owh-polls-empty a:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}

.owh-poll-actions button[disabled] {
    opacity: .6;
    cursor: wait;
    transform: none;
}

.owh-poll-message {
    display: none;
    margin-top: 12px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.owh-poll-message.is-visible { display: block; }
.owh-poll-message.is-success { background: #ecfdf5; color: #047857; border-left: 3px solid #10b981; }
.owh-poll-message.is-error { background: #fff1f2; color: #be123c; border-left: 3px solid #f43f5e; }
.owh-poll-message.is-info { background: #eff6ff; color: #1d4ed8; border-left: 3px solid #3b82f6; }

.owh-poll-results {
    margin-top: 15px;
    display: grid;
    gap: 12px;
}

.owh-poll-results[hidden] { display: none; }

.owh-poll-result-row {
    display: grid;
    gap: 6px;
}

.owh-poll-result-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: #334155;
    font-weight: 700;
}

.owh-poll-result-track {
    height: 10px;
    background: #e5e7eb;
    overflow: hidden;
}

.owh-poll-result-track span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ef233c, #c1121f);
    width: 0;
    transition: width .6s ease;
}

.owh-poll-multiple-note,
.owh-poll-no-options {
    margin-top: 14px;
    padding: 12px;
    background: var(--owh-poll-soft);
    border: 1px solid var(--owh-poll-line);
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.owh-poll-no-options a {
    margin-top: 8px;
    background: var(--owh-poll-red);
    color: #fff;
}

.owh-home-poll-list {
    border-top: 4px solid var(--owh-poll-red);
    background: #111827;
    color: #fff;
    padding: 18px;
}

.owh-home-poll-list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 800;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.owh-home-poll-list > a:not(.owh-home-all-polls) {
    display: grid;
    grid-template-columns: 38px 1fr 14px;
    gap: 10px;
    align-items: center;
    color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    text-decoration: none;
}

.owh-home-poll-number {
    color: #f87171;
    font-weight: 900;
    font-size: 17px;
}

.owh-home-poll-list strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 5px;
}

.owh-home-poll-list small {
    color: #94a3b8;
    font-size: 11px;
}

.owh-home-all-polls {
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-weight: 800;
    padding-top: 16px;
    text-decoration: none;
}

.owh-polls-hero {
    background: #0f172a;
    color: #fff;
    padding: 44px 0;
    border-bottom: 4px solid var(--owh-poll-red);
}

.owh-polls-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.owh-polls-hero h1 {
    margin: 7px 0 8px;
    color: #fff;
    font-size: 38px;
    font-weight: 900;
}

.owh-polls-hero p {
    max-width: 720px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.6;
}

.owh-polls-hero a {
    color: #fff;
    background: var(--owh-poll-red);
    flex: 0 0 auto;
}

.owh-inner-kicker {
    color: #fca5a5;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.owh-polls-page {
    background: #f8fafc;
    padding: 36px 0 60px;
    min-height: 500px;
}

.owh-polls-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.owh-polls-toolbar > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #64748b;
}

.owh-polls-toolbar strong {
    color: var(--owh-poll-dark);
    font-size: 28px;
}

.owh-polls-toolbar label {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid var(--owh-poll-line);
    padding: 0 13px;
    width: 320px;
    max-width: 100%;
}

.owh-polls-toolbar input {
    border: 0;
    outline: 0;
    background: transparent;
    height: 44px;
    width: 100%;
}

.owh-polls-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.owh-polls-empty {
    text-align: center;
    background: #fff;
    border: 1px solid var(--owh-poll-line);
    padding: 60px 24px;
}

.owh-polls-empty > i {
    font-size: 50px;
    color: var(--owh-poll-red);
}

.owh-polls-empty h2 {
    margin: 15px 0 8px;
    font-weight: 900;
}

.owh-polls-empty a {
    background: var(--owh-poll-red);
    color: #fff;
    margin-top: 12px;
}

@media (max-width: 991px) {
    .owh-home-polls-grid,
    .owh-polls-page-grid {
        grid-template-columns: 1fr;
    }
    .owh-polls-hero .container {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .owh-home-polls-section { padding: 30px 0; }
    .owh-poll-card-image { height: 210px; }
    .owh-poll-card-body { padding: 18px; }
    .owh-poll-card h3,
    .owh-poll-card-page h3 { font-size: 20px; }
    .owh-poll-actions { flex-direction: column; }
    .owh-poll-actions button { width: 100%; }
    .owh-polls-hero { padding: 32px 0; }
    .owh-polls-hero h1 { font-size: 30px; }
    .owh-polls-hero a { width: 100%; }
    .owh-polls-toolbar { align-items: stretch; flex-direction: column; }
    .owh-polls-toolbar label { width: 100%; }
}
