.vstd-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

@media (max-width: 992px) {
    .vstd-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .vstd-grid { grid-template-columns: 1fr; }
}

.vstd-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.vstd-countdown {
    background: #2c3e50;
    color: #fff;
    font-size: 11px;
    text-align: center;
    padding: 5px 8px;
}

/* Thumbnail with badge + play button, matching the reference design.
 * Fixed container size + object-fit ensures every card's image is
 * exactly the same width/height on screen, no matter what size or
 * aspect ratio the original uploaded photo was. */
.vstd-thumb {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f2f2f2;
}
.vstd-thumb img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    margin: 0;
}
.vstd-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}
.vstd-trending {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ff5f2e, #ff2e63);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(255, 46, 99, 0.5);
    z-index: 2;
    white-space: nowrap;
    line-height: 1;
    animation: vstd-trend-pulse 1.6s ease-in-out infinite;
}
.vstd-flame {
    flex-shrink: 0;
    display: block;
}
@keyframes vstd-trend-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}
.vstd-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    text-decoration: none;
    z-index: 2;
}
.vstd-play-btn svg { margin-left: 3px; }

.vstd-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.vstd-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}
.vstd-desc {
    margin: 0 0 6px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    min-height: 2.8em; /* reserves space for 2 lines, so the Vote
                           button lines up in the same spot whether
                           this text is 1 line or 2 lines long */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vstd-pre-vote-email {
    margin-bottom: 4px;
}
.vstd-voter-email {
    width: 100%;
    padding: 7px 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
}

.vstd-vote-btn {
    width: 100%;
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 11px 0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.vstd-vote-btn:hover:not(:disabled) { background: #a52f22; }
.vstd-vote-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.vstd-vote-count-wrap {
    text-align: center;
    font-size: 12px;
    color: #888;
}
.vstd-vote-count {
    font-weight: 700;
    color: #c0392b;
}

.vstd-lead-capture {
    padding: 10px;
    background: #fbf6ee;
    border: 1px solid #eee0c8;
    border-radius: 6px;
    font-size: 12px;
}
.vstd-lead-msg { margin: 0 0 6px; color: #555; }
.vstd-lead-email {
    width: 100%;
    padding: 6px 8px;
    box-sizing: border-box;
    margin-bottom: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.vstd-lead-submit {
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
}
.vstd-lead-skip {
    margin-left: 10px;
    font-size: 12px;
    color: #888;
    text-decoration: underline;
}
.vstd-lead-thanks { margin: 0; color: #2c7be5; }

/* Circular share icons, matching the reference design row */
.vstd-share {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.vstd-share-label {
    font-size: 12px;
    color: #888;
}
.vstd-share-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    font-family: Georgia, serif;
}
.vstd-fb { background: #1877f2; }
.vstd-tw { background: #1da1f2; }
.vstd-li { background: #0a66c2; font-size: 9px; }
.vstd-em { background: #7f8c8d; }

.vstd-pagination {
    margin: 24px 0;
    text-align: center;
}
.vstd-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
}
.vstd-pagination .page-numbers.current {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

.vstd-leaderboard {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.vstd-leaderboard th, .vstd-leaderboard td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 14px;
}
.vstd-leaderboard th { background: #2c3e50; color: #fff; }
.vstd-leaderboard tr:nth-child(1) td { font-weight: 700; color: #c0392b; }

/* Global "Voting Ends In" countdown box — [voting_countdown] */
.vstd-countdown-box {
    text-align: center;
    background: #f4f4f4;
    padding: 16px 24px;
    border-radius: 10px;
    display: inline-block;
    margin: 0 auto 24px;
}
.vstd-countdown-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #555;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.vstd-countdown-units {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.vstd-unit {
    background: #1a2634;
    color: #fff;
    border-radius: 6px;
    padding: 10px 16px;
    min-width: 56px;
    text-align: center;
}
.vstd-unit-num {
    display: block;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}
.vstd-unit-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.5px;
    color: #b0b8c1;
    margin-top: 4px;
    text-transform: uppercase;
}

/* Category filter tabs */
.vstd-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}
.vstd-filter-btn {
    background: #f2f2f2;
    border: 1px solid #ddd;
    color: #444;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.vstd-filter-btn.active,
.vstd-filter-btn:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

/* Milestone badge next to vote count */
.vstd-milestone {
    margin-left: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #e67e22;
}

/* Milestone celebration overlay */
.vstd-celebrate {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #c0392b;
    text-align: center;
    z-index: 10;
    animation: vstd-pop 0.3s ease;
}
@keyframes vstd-pop {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
