.iuv-leaderboard {
    border-radius: 12px;
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.iuv-leaderboard__heading {
    font-size: 1.5rem !important;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-family: "Bruno Ace", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.iuv-leaderboard__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.iuv-leaderboard__card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.iuv-leaderboard__card:hover {
    transform: scale(1.02);
}

.iuv-leaderboard__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Widescreen for sprawling image */
    height: 50%;
}

.iuv-leaderboard__image {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    filter: brightness(0.9);
}

.iuv-leaderboard__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
}

.iuv-leaderboard__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.iuv-leaderboard__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.iuv-leaderboard__author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #e5e7eb;
}

.iuv-leaderboard__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #dc2626; /* Red border for avatar */
}

.iuv-leaderboard__by {
    font-weight: 500;
}

.iuv-leaderboard__votes {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
}

.iuv-leaderboard__no-image {
    background: #374151;
    padding: 20px;
    text-align: center;
}

.iuv-leaderboard__cta {
    text-align: center;
    margin: 16px 0;
}

.iuv-leaderboard__cta p {
    font-size: 1.2rem;
    color: #000000;
    margin: 0 0 12px;
    font-weight: 500;
}

.iuv-leaderboard__cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: #dc2626; /* Vibrant red */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background 0.2s ease, transform 0.2s ease;
}

.iuv-leaderboard__cta-button:hover {
    background: #b91c1c; /* Darker red on hover */
    transform: translateY(-2px);
    color: #fff !important;
}

.iuv-leaderboard__empty {
    text-align: center;
    padding: 24px;
    background: #374151;
    border-radius: 10px;
}

.iuv-leaderboard__empty p {
    font-size: 1.2rem;
    color: #e5e7eb;
    margin: 0 0 12px;
}

.iuv-leaderboard__updated {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #9ca3af;
    text-align: right;
}

.iuv-leaderboard__list.iuv-changed {
    animation: iuvPulse 0.5s ease;
}

@keyframes iuvPulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.4); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

@media (max-width: 768px){
    .iuv-leaderboard__meta {
        display: flex;
        flex-direction: column;
        gap: 8px;
        background: #0000008c;
        padding: 1rem;
    }
}

@media (min-width: 769px){
    .iuv-leaderboard__meta {
        background: transparent;
        padding: 0rem;
    }
}

@media only screen and (min-width: 1024px){
    
  .iuv-leaderboard__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Widescreen for sprawling image */
    /*height: 50%;*/
    height: 500px;
  }

    .iuv-leaderboard__heading {
        font-size: 2.25rem !important;
        font-weight: 800;
        color: #ffffff;
        text-transform: uppercase;
        text-align: center;
        margin: 0 0 16px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
        font-family: "Bruno Ace", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    }
}