/* -----------------------------------------------------------------------
   WP Stripchat — Cam Grid Layout
   5 columns on desktop, 3 on tablet, 2 on mobile
----------------------------------------------------------------------- */

.stripchat_camgrid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.stripchat_camitem {
    background: #F0F1F1;
    border: 1px solid #ACACAC;
    border-radius: 4px;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #5A5A5A;
    line-height: 1.3;
    box-sizing: border-box;
    transition: box-shadow 0.15s ease;
}

.stripchat_camitem:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* Thumbnail — 16:9 ratio, cover from top so faces aren't cropped */
.stripchat_camthumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #111;
}

.stripchat_camthumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* LIVE badge — bottom right, small and subtle */
.stripchat_camlive {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    padding: 1px 4px;
    line-height: 1.4;
}

.stripchat_camlive span {
    color: #fff !important;
    font-size: 9px !important;
    font-weight: normal !important;
    text-shadow: none !important;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.stripchat_caminfo {
    padding: 6px 8px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stripchat_viewers {
    font-size: 11px;
    color: #888;
}

/* Pager */
.stripchat_pager {
    margin-top: 14px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    grid-column: 1 / -1;
}

.stripchat_pager_item,
.stripchat_pager_item_current {
    display: inline-block;
    margin: 2px;
    padding: 4px 9px;
    border: 1px solid #ACACAC;
    border-radius: 3px;
    text-decoration: none;
    color: #0A5A83;
    background: #fff;
}

.stripchat_pager_item_current {
    font-weight: bold;
    background: #0A5A83;
    color: #fff;
    border-color: #0A5A83;
}

.stripchat_error {
    color: red;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
}

/* Overlay */
.stripchat_shadow {
    background-color: #111;
    opacity: 0.65;
    filter: alpha(opacity=65);
    position: fixed;
    z-index: 9001;
    top: 0; left: 0;
    width: 100%; height: 100%;
    margin: 0; padding: 0;
}

.stripchat_popup {
    position: fixed;
    background-color: #fff;
    width: 90%;
    max-width: 1000px;
    z-index: 9002;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 90vh;
}

.stripchat_close {
    text-align: right;
    margin-bottom: 8px;
}

/* Tablet: 3 columns */
@media (max-width: 1024px) {
    .stripchat_camgrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: 2 columns */
@media (max-width: 600px) {
    .stripchat_camgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}
