/* Our Contestants - Modern Professional Design */
.oc-contestants-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.oc-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

/* Desktop columns - set by data attribute */
.oc-grid[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.oc-grid[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.oc-grid[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
.oc-grid[data-columns="5"] { grid-template-columns: repeat(5, 1fr); }

/* Tablet */
@media (max-width: 991px) and (min-width: 768px) {
    .oc-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .oc-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .oc-grid {
        grid-template-columns: 1fr !important;
    }
}

.oc-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.oc-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.25);
}

.oc-image {
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: #f5f5f5;
    /* 2:3 Aspect Ratio */
    aspect-ratio: 2/3; /* Modern browsers */
    width: 100%;
}

/* Fallback for older browsers */
@supports not (aspect-ratio: 2/3) {
    .oc-image {
        height: 0;
        padding-bottom: 150%; /* 3/2 = 1.5 = 150% */
        position: relative;
    }
    .oc-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.oc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.45, 0.45, 0.95);
}

.oc-image:hover img {
    transform: scale(1.08);
}

.oc-name {
    padding: 16px 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, #fafafa);
    border-top: 1px solid rgba(0,0,0,0.05);
    color: #2c3e50;
    letter-spacing: 0.3px;
}

/* Pagination */
.oc-pagination {
    margin: 50px 0 20px;
    text-align: center;
}

.oc-pagination ul {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.oc-pagination li {
    margin: 0;
}
.oc-pagination ul li {
    list-style: none;
}

.oc-pagination a,
.oc-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    text-decoration: none;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.oc-pagination a:hover {
    background: #f0f0f0;
    border-color: #ccc;
    color: #222;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.oc-pagination .current {
    background: #007cba;
    border-color: #007cba;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,124,186,0.3);
}

/* Enhanced Loader */
.oc-loader {
    text-align: center;
    padding: 10px 0;
    margin: 20px 0;
    border-radius: 12px;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.oc-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 4px solid rgba(0,124,186,0.1);
    border-radius: 50%;
    border-top-color: #007cba;
    border-right-color: #007cba;
    animation: oc-spin 0.8s linear infinite;
    margin-bottom: 3px;
    box-shadow: 0 4px 10px rgba(0,124,186,0.2);
}

.oc-loader span {
    display: block;
    color: #2c3e50;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.4;
    font-size: 12px;
}

@keyframes oc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ensure loader is above grid items during loading */
.oc-loader {
    pointer-events: none;
}

@keyframes oc-spin {
    to { transform: rotate(360deg); }
}

/* No contestants message */
.oc-no-contestants {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 24px;
    color: #666;
    font-size: 1.2rem;
    border: 1px dashed #ccc;
}

/* Lightbox */
.oc-lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    text-align: center;
    cursor: pointer;
}

.oc-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    margin-top: 5vh;
    cursor: default;
    border: 4px solid #fff;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    animation: oc-lightbox-fadein 0.3s;
}

@keyframes oc-lightbox-fadein {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.oc-lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
    z-index: 100000;
}

.oc-lightbox-close:hover {
    color: #ccc;
}

/* Load more trigger (hidden) */
.oc-load-more-trigger {
    display: none;
}