/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #0f0f1a;
    color: #e0e0e0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 0;
}

.container {
    max-width: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* ===== Add Section (above victims list) ===== */
.add-section {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.add-section input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 2px solid #2a2a3e;
    border-radius: 8px;
    background: #1a1a2e;
    color: #e0e0e0;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.add-section input:focus {
    border-color: #6bcb77;
}

/* ===== Buttons ===== */
.btn {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.96);
}

.btn-add {
    background: #6bcb77;
    color: #0f0f1a;
}

.btn-add:hover {
    background: #5ab867;
}

.btn-winners {
    background: #a78bfa;
    color: #fff;
}

.btn-winners:hover {
    background: #9575e8;
}

.btn-admin {
    background: #555;
    color: #e0e0e0;
}

.btn-admin:hover {
    background: #666;
}

.btn-clear-winners {
    background: #2a2a3e;
    color: #e0e0e0;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
}

.btn-clear-winners:hover {
    background: #3a3a52;
}

.btn-spin {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    color: #0f0f1a;
    font-size: 1.3rem;
    padding: 0.9rem 2.5rem;
    letter-spacing: 1px;
}

.btn-spin:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
}

.btn-spin:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* ===== Action Row (inside Side Panel) ===== */
.action-row {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    justify-content: center;
    align-items: stretch;
    margin-top: 0;
    min-height: 0;
}

.btn-accept {
    background: linear-gradient(135deg, #4d96ff, #6bcb77);
    color: #fff;
    font-size: 1.1rem;
    padding: 0.7rem 1.5rem;
}

.btn-accept:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(77, 150, 255, 0.4);
}

.action-btn {
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0.4s;
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}

.action-btn.faded {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    height: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    overflow: hidden;
    flex: 0 0 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s, height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

.btn-abort {
    background: linear-gradient(135deg, #da3633, #8b0000);
    color: #fff;
    font-size: 1.1rem;
    padding: 0.7rem 1.5rem;
}

.btn-abort:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(218, 54, 51, 0.4);
}

.btn-verdict {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: #fff;
    font-size: 1.1rem;
    padding: 0.7rem 1.5rem;
}

.btn-verdict:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.4);
}

/* ===== Vote Toggle ===== */
.vote-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #2ea043;
    background: rgba(46, 160, 67, 0.1);
    color: #6bcb77;
    transition: all 0.15s;
    line-height: 1.4;
    flex-shrink: 0;
}
.vote-toggle:hover {
    transform: scale(1.08);
}
.vote-toggle.vote-punish {
    border-color: #da3633;
    background: rgba(218, 54, 51, 0.1);
    color: #ff6b6b;
}

/* ===== Winner Entry Votes ===== */
.winner-entry-votes {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.3rem;
    line-height: 1.4;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 10px;
}

.stats-table th,
.stats-table td {
    padding: 0.65rem 0.7rem;
    text-align: left;
    border-bottom: 1px solid #2a2a3e;
}

.stats-table th {
    font-size: 0.85rem;
    color: #a8b3cf;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stats-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

.stats-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(107, 203, 119, 0.14);
    color: #6bcb77;
    font-size: 0.8rem;
    font-weight: 700;
}

.return-msg {
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: #ffd93d;
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
    animation: fade-in 0.5s ease-out;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== Main Layout ===== */
.main-layout {
    display: grid;
    grid-template-columns: 360px 1fr 360px;
    gap: 0;
    align-items: stretch;
    flex: 1;
    min-height: 0;
    padding: 0 0 0.5rem 0;
}

.left-column {
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 0;
    margin-left: 25px;
}

.wheel-panel {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
    grid-column: 2;
    justify-self: center;
    width: 100%;
}

.side-panel {
    margin-right: 25px;
    grid-column: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 0;
    overflow-y: auto;
}

.side-panel .action-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    align-items: stretch;
}

.watcher-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.main-bypass {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #c4c4d2;
    font-size: 0.92rem;
}

.main-bypass input {
    width: 1rem;
    height: 1rem;
    accent-color: #4ecdc4;
}

@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .left-column {
        margin-left: 0;
    }
    .side-panel {
        margin-right: 0;
    }
    .wheel-panel {
        grid-column: auto;
    }
    .left-column {
        grid-column: auto;
    }
    .side-panel {
        grid-column: auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.5rem;
    }
    .side-panel .action-group {
        flex: none;
        width: auto;
    }
    .side-panel .action-row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }
    .side-panel #abortBtn,
    .side-panel #spinBtn,
    .side-panel #verdictBtn,
    .side-panel #shuffleBtn {
        width: auto;
        min-width: 10rem;
    }
    .container {
        height: auto;
    }
    body {
        overflow: auto;
        height: auto;
    }
}

/* ===== Watchers Panel ===== */
.list-panel {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid #2a2a3e;
    overflow-y: auto;
    min-height: 0;
}

.list-panel h2 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: #a0a0c0;
}

.empty-msg {
    color: #555;
    text-align: center;
    padding: 2rem 0;
    font-style: italic;
}

/* ===== Watcher Card ===== */
.watcher-card {
    background: #16162a;
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
    border: 1px solid #2a2a3e;
}

.watcher-card:last-child {
    margin-bottom: 0;
}

.watcher-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.watcher-name {
    font-weight: 700;
    font-size: 1rem;
    color: #c0c0e0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.victim-color-dot,
.color-swatch {
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
    flex-shrink: 0;
}

.pts-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    min-width: 28px;
    text-align: center;
}

.pts-badge.pos {
    background: #2ea043;
}

.pts-badge.neg {
    background: #da3633;
}

.streak-badge {
    display: inline-block;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #111;
    background: linear-gradient(135deg, #ffb347, #ff5f6d);
    line-height: 1.3;
    min-width: 32px;
    text-align: center;
    box-shadow: 0 0 0 2px rgba(255, 95, 109, 0.15), 0 10px 20px rgba(255, 95, 109, 0.15);
    animation: streak-pulse 1.1s ease-in-out infinite;
}

@keyframes streak-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.watcher-del-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: background 0.15s;
}

.watcher-del-btn:hover {
    background: rgba(255, 107, 107, 0.15);
}

/* ===== Title Row ===== */
.title-row {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.4rem;
}

.bypass-row {
    margin-top: 1rem;
    font-size: 0.92rem;
    color: #c4c4d2;
}

.bypass-row label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
}

.bypass-row input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: #4ecdc4;
}

.title-row.compact {
    margin-top: 0.45rem;
    margin-bottom: 0;
}

.title-row:last-of-type {
    margin-bottom: 0;
}

.title-input {
    flex: 1;
    padding: 0.4rem 0.6rem;
    border: 1px solid #2a2a3e;
    border-radius: 6px;
    background: #1a1a2e;
    color: #e0e0e0;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
}

.title-input:focus {
    border-color: #4d96ff;
}

.title-points {
    width: 50px;
    padding: 0.4rem 0.3rem;
    border: 1px solid #2a2a3e;
    border-radius: 6px;
    background: #1a1a2e;
    color: #ffd93d;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.title-points:focus {
    border-color: #ffd93d;
}

/* Hide number spinners */
.title-points::-webkit-inner-spin-button,
.title-points::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.title-points[type="number"] {
    -moz-appearance: textfield;
}

/* +/- Stepper buttons */
.point-step-btn {
    width: 26px;
    height: 26px;
    border: 1px solid #2a2a3e;
    border-radius: 6px;
    background: #1a1a2e;
    color: #ffd93d;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
    line-height: 1;
}

.point-step-btn:hover {
    background: #2a2a3e;
    border-color: #ffd93d;
}

.point-step-btn:active {
    transform: scale(0.9);
}

.title-del-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.2rem 0.3rem;
    border-radius: 4px;
    transition: all 0.15s;
    flex-shrink: 0;
}

.title-del-btn:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.titles-container {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.add-title-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.65rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    background: rgba(78, 205, 196, 0.12);
    color: #4ecdc4;
    border: 1px solid rgba(78, 205, 196, 0.18);
    transition: background 0.2s, transform 0.2s;
}

.add-title-btn:hover {
    background: rgba(78, 205, 196, 0.18);
    transform: translateY(-1px);
}

.balance-box {
    margin-top: 0.6rem;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #2a2a3e;
    background: rgba(255,255,255,0.03);
}

.balance-box.balanced {
    border-color: #2ea043;
    background: rgba(46, 160, 67, 0.12);
}

.balance-box.pending {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.12);
}

.balance-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7d7da8;
}

.balance-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffd93d;
    margin-top: 0.15rem;
}

.balance-meta {
    font-size: 0.82rem;
    color: #b0b0d0;
    margin-top: 0.2rem;
}

.balance-muted {
    font-size: 0.82rem;
    color: #7d7da8;
}

/* ===== Clear Titles Button ===== */
.clear-titles-btn {
    background: none;
    border: 1px solid #2a2a3e;
    border-radius: 6px;
    color: #ff8a6b;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    transition: all 0.15s;
    margin-left: 0.5rem;
}

.clear-titles-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
}

.wheel-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
    max-width: 100%;
    overflow: hidden;
    align-self: center;
}

.btn-shuffle {
    background: rgba(64, 255, 210, 0.14);
    color: #a8f1e8;
    border-color: rgba(64, 255, 210, 0.25);
}

.btn-shuffle:hover {
    background: rgba(64, 255, 210, 0.2);
}

.wheel-control-panel {
    margin: 1rem auto 0;
    width: min(100%, 560px);
    border: 1px solid #2a2a3e;
    border-radius: 14px;
    background: rgba(11, 13, 28, 0.95);
    overflow: hidden;
}

.wheel-control-panel.collapsed .control-body {
    display: none;
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #e8e8ff;
    border-bottom: 1px solid #222238;
}

.control-body {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.slider-row {
    display: grid;
    gap: 0.4rem;
    font-size: 0.95rem;
    color: #c0c0e0;
}

.slider-row input[type='range'] {
    width: 100%;
}

#abortBtn,
#verdictBtn,
#spinBtn {
    position: static;
}

#verdictBtn,
#spinBtn {
    left: auto;
    transform: none;
}

#abortBtn {
    left: auto;
    transform: none;
}

.pointer {
    position: absolute;
    top: 50%;
    right: -4px;
    transform: translateY(-50%) rotate(90deg);
    font-size: 3rem;
    color: #ffd700;
    z-index: 10;
    text-shadow: 0 0 2px #b8860b, 1px 0 2px #b8860b, -1px 0 2px #b8860b, 0 1px 2px #b8860b, 0 -1px 2px #b8860b;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
    line-height: 1;
}

#wheelCanvas {
    display: block;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(100, 100, 200, 0.2);
    flex-shrink: 0;
}

.wheel-info {
    color: #666;
    font-size: 0.9rem;
    text-align: right;
    flex-shrink: 0;
}

/* ===== Winner Display ===== */
.winner-display {
    text-align: center;
    min-height: 3rem;
    flex-shrink: 0;
}

.winner-text {
    font-size: 1.6rem;
    font-weight: 800;
    animation: color-blink 0.4s linear infinite;
}

#abortBtn,
#spinBtn,
#verdictBtn,
#shuffleBtn {
    width: 100%;
}

.winner-details {
    margin-top: 0.3rem;
    font-size: 1rem;
    color: #aaa;
    font-weight: 600;
}

@keyframes color-blink {
    0%   { color: #ff6b6b; }
    14%  { color: #ffd93d; }
    28%  { color: #6bcb77; }
    42%  { color: #4d96ff; }
    57%  { color: #ff6bb5; }
    71%  { color: #a78bfa; }
    85%  { color: #ffd93d; }
    100% { color: #6bcb77; }
}

.hidden {
    display: none;
}

/* ===== Confetti ===== */
.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -20px;
    pointer-events: none;
    z-index: 9999;
    animation: confetti-fall linear forwards;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay.hidden {
    display: none;
}

/* ===== Participant List ===== */
.participant-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #252540;
    transition: background 0.15s;
}

.participant-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.participant-row:last-of-type {
    border-bottom: none;
}

.participant-check {
    width: 18px;
    height: 18px;
    accent-color: #6bcb77;
    cursor: pointer;
    flex-shrink: 0;
}

.participant-name {
    flex: 1;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.participant-pts {
    font-size: 0.85rem;
    color: #ffd93d;
    font-weight: 700;
    min-width: 40px;
    text-align: right;
}

/* Divider */
.divider {
    text-align: center;
    margin: 1rem 0;
    color: #555;
    font-size: 0.8rem;
}

/* New watcher row */
.new-watcher-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.new-watcher-row input[type="text"] {
    flex: 1;
    padding: 0.5rem 0.7rem;
    border: 2px solid #2a2a3e;
    border-radius: 8px;
    background: #1a1a2e;
    color: #e0e0e0;
    font-size: 0.9rem;
    outline: none;
}

.new-watcher-row input[type="color"] {
    width: 44px;
    height: 42px;
    padding: 0.15rem;
    border: 2px solid #2a2a3e;
    border-radius: 8px;
    background: #1a1a2e;
    cursor: pointer;
}

.new-watcher-row input[type="text"]:focus {
    border-color: #6bcb77;
}

.points-input {
    width: 60px;
    padding: 0.5rem 0.3rem;
    border: 2px solid #2a2a3e;
    border-radius: 8px;
    background: #1a1a2e;
    color: #ffd93d;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    outline: none;
}

.points-input:focus {
    border-color: #ffd93d;
}

.color-input {
    width: 44px;
    height: 38px;
    padding: 0.15rem;
    border: 2px solid #2a2a3e;
    border-radius: 8px;
    background: #1a1a2e;
    cursor: pointer;
}

/* Hide spinners on points inputs */
.points-input::-webkit-inner-spin-button,
.points-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.points-input[type="number"] {
    -moz-appearance: textfield;
}

/* Small button */
.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-start {
    background: linear-gradient(135deg, #6bcb77, #4d96ff);
    color: #fff;
    font-size: 1rem;
    padding: 0.7rem 2rem;
}

.btn-start:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(107, 203, 119, 0.3);
}

.btn-icon {
    font-size: 1.1rem;
    padding: 0.35rem 0.5rem;
    min-width: 0;
    width: auto;
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}
.btn-icon:hover {
    background: #2a2a3e;
    border-color: #3a3a52;
    transform: scale(1.1);
}

#addWatcherBtn.btn-icon { background: rgba(107, 203, 119, 0.15); border-color: rgba(107, 203, 119, 0.3); }
#addWatcherBtn.btn-icon:hover { background: rgba(107, 203, 119, 0.25); }
#winnersBtn.btn-icon { background: rgba(255, 215, 0, 0.15); border-color: rgba(255, 215, 0, 0.3); }
#winnersBtn.btn-icon:hover { background: rgba(255, 215, 0, 0.25); }
#statsBtn.btn-icon { background: rgba(77, 150, 255, 0.15); border-color: rgba(77, 150, 255, 0.3); }
#statsBtn.btn-icon:hover { background: rgba(77, 150, 255, 0.25); }
#debtMatrixBtn.btn-icon { background: rgba(167, 139, 250, 0.15); border-color: rgba(167, 139, 250, 0.3); }
#debtMatrixBtn.btn-icon:hover { background: rgba(167, 139, 250, 0.25); }
#adminBtn.btn-icon { background: rgba(255, 107, 107, 0.15); border-color: rgba(255, 107, 107, 0.3); }
#adminBtn.btn-icon:hover { background: rgba(255, 107, 107, 0.25); }
#spinControlsBtn.btn-icon { background: rgba(255, 159, 67, 0.15); border-color: rgba(255, 159, 67, 0.3); }
#spinControlsBtn.btn-icon:hover { background: rgba(255, 159, 67, 0.25); }
label.btn-icon[for="centerImageInput"] { background: rgba(255, 107, 187, 0.15); border-color: rgba(255, 107, 187, 0.3); }
label.btn-icon[for="centerImageInput"]:hover { background: rgba(255, 107, 187, 0.25); }


.modal-content {
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #2a2a3e;
}

.modal-header h2 {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    transition: all 0.15s;
}

.modal-close-btn:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.modal-body {
    padding: 1rem 1.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 100px;
}

.modal-footer {
    padding: 0.8rem 1.5rem;
    border-top: 1px solid #2a2a3e;
    display: flex;
    justify-content: flex-end;
}

/* Winner entry in modal */
.winner-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid #252540;
}

.winner-entry:last-child {
    border-bottom: none;
}

.winner-entry-disabled {
    opacity: 0.55;
    background: rgba(255,255,255,0.03);
}

.winner-entry-aborted {
    border-left: 3px solid #da3633;
}

.status-toggle-btn {
    border: 1px solid #3a3a52;
    background: #2a2a3e;
    color: #e0e0e0;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    cursor: pointer;
}

.winner-entry-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.winner-entry-meta {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.15rem;
}

.winner-entry-when {
    font-size: 0.75rem;
    color: #555;
    text-align: right;
    white-space: nowrap;
}

/* ===== Scrollbar ===== */
#watchersContainer::-webkit-scrollbar {
    width: 6px;
}
#watchersContainer::-webkit-scrollbar-track {
    background: transparent;
}
#watchersContainer::-webkit-scrollbar-thumb {
    background: #3a3a52;
    border-radius: 3px;
}
