/* ────────────────────────────────────────
   Base Card Styles (Desktop First)
   ──────────────────────────────────────── */
ol li.dle-bullet {
    background-color: #f9fafb;
    border: 1.5px solid #224488;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(34, 68, 136, 0.25);
    list-style-position: outside;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

ol li.dle-bullet:hover {
    box-shadow: 0 6px 20px rgba(34, 68, 136, 0.35);
    transform: translateY(-2px);
}

/* ────────────────────────────────────────
   Controls Layout
   ──────────────────────────────────────── */
.dle-controls {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    font-size: 14px;
}

/* ────────────────────────────────────────
   Buttons
   ──────────────────────────────────────── */
.dle-controls button {
    background: #ffffff;
    border: 1px solid #ccc;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
}

.dle-controls button:hover {
    background: #f8f8f8;
    transform: translateY(-1px);
}

.dle-controls button:focus-visible {
    outline: 2px solid #224488;
    outline-offset: 2px;
}

.dle-controls button:first-child {
    color: #d63638;
    border-color: #d63638;
}

.dle-controls button:nth-child(2) {
    color: #2271b1;
    border-color: #2271b1;
}

.dle-active-like {
    background: #d1f3dc !important;
    border-color: #3cb371 !important;
}

.dle-active-dislike {
    background: #ffd6d6 !important;
    border-color: #e5533d !important;
}

.dle-controls span {
    min-width: 32px;
    text-align: center;
    font-weight: 500;
    user-select: none;
}

/* ────────────────────────────────────────
   Mobile Responsive (≤768px)
   ──────────────────────────────────────── */
@media (max-width: 768px) {
    /* Remove default <ol> indentation only for lists with your cards */
    ol:has(li.dle-bullet) {
        padding-left: 0;
        margin-left: 0;
    }

    /* Full-width cards, centered, bullet hidden */
    ol li.dle-bullet {
        list-style: none;
        width: 100%;
        margin: 0 0 12px 0;
        padding: 10px 12px;
        box-sizing: border-box;
        border: 1.5px solid #224488;
        box-shadow: 0 3px 10px rgba(34, 68, 136, 0.2);
    }

    ol li.dle-bullet::marker {
        display: none;
    }

    /* LEFT-ALIGNED buttons on mobile, compact size */
    .dle-controls {
        justify-content: flex-start; /* 🔽 Changed from center to left */
        gap: 6px;
    }

    .dle-controls button {
        padding: 3px 6px;
        font-size: 12px;
        flex: none; /* Prevents stretching */
        min-height: auto;
    }

    .dle-controls span {
        min-width: 24px;
        font-size: 12px;
    }
}