/* Base Styles */
.cam4-models-container {
    min-height: 200px;
    position: relative;
}

.cam4-models {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0 10px;
}

/* Responsive Grid Adjustments */
@media (min-width: 600px) and (orientation: landscape) {
    .cam4-models {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .cam4-models {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Mobile Adjustments */
@media (max-width: 599px) {
    .cam4-models {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        margin: 0 -10px;
    }
}

/* Model Card Styles */
.cam4-model-card {
    background-color: #E3E3E3;
    border: 0px solid #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cam4-model-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Model Image */
.cam4-model-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.cam4-model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.cam4-model-card:hover .cam4-model-image img {
    transform: scale(1.03);
}

/* HD Badge */
.cam4-hd-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.65em;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 3px;
    z-index: 5;
    line-height: 1;
}

/* NEW Badge */
.cam4-new-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #FFEB43;
    color: #000;
    font-size: 0.65em;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 3px;
    z-index: 5;
    line-height: 1;
}

/* Model Info Area */
.cam4-model-info {
    padding: 2px 4px;
    display: flex;
    flex-direction: column;
    position: relative;
    flex-grow: 1;
    justify-content: space-between;
    min-height: 60px;
}

/* Divider Line */
.cam4-divider {
    border-top: 1px solid #ccc;
    margin: 5px 10px;
}

/* Model Name */
.cam4-model-card a {
    text-decoration: none;
    color: #E6007E;
    display: block;
}

.cam4-model-name {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 75px);
    color: #000;
}

/* Age, Gender, Country */
.cam4-model-meta {
    position: absolute;
    top: 0px;
    right: 5px;
    font-size: 0.85em;
    display: flex;
    align-items: center;
}

.cam4-model-age,
.cam4-model-gender,
.cam4-model-country {
    color: #575757;
    margin-left: 5px;
}

.cam4-model-country img {
    height: 14px;
    width: auto;
    border: 0;
    vertical-align: middle;
    box-shadow: none;
    border-radius: 0;
}

/* Stats Area (Tags + Viewers) */
.cam4-model-stats {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.8em;
    color: #555;
    background: #E3E3E3;
}

.cam4-model-tags {
    min-width: 0;
    max-width: calc(100% - 55px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #777;
    margin-right: auto;
}

.cam4-model-viewers {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.emoticon {
    margin-right: 3px;
}

/* Icons */
.cam4-model-viewers .eye-icon::before {
    content: "\1F441";
}


/* Load More Button */
.cam4-load-more-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.cam4-load-more-button {
    background-color: #E6007E;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.cam4-load-more-button:hover {
    background-color: #B30062;
}

.cam4-load-more-button.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* No Models Message */
.cam4-no-models {
    text-align: center;
    padding: 20px;
    font-size: 1.1em;
    color: #666;
}

/* Loading Indicator */
.cam4-loading {
    text-align: center;
    padding: 20px;
}