/* CB Chaturbate default styles */
.cb-grid-wrapper {
    margin: 20px 0;
}
.cb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.cb-grid-item {
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 10px 12px;
    color: #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px;
    cursor: pointer;
}
.cb-grid-username {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    word-break: break-word;
}
.cb-grid-gender {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 6px;
}
.cb-grid-status {
    font-size: 12px;
}
.cb-online {
    color: #3ebf4a;
    font-weight: 600;
}
.cb-offline {
    color: #888;
}
.cb-grid-thumb {
    margin: -10px -12px 8px -12px;
    overflow: hidden;
    border-radius: 6px 6px 0 0;
}
.cb-grid-thumb img {
    display: block;
    width: 100%;
    height: auto;
}
.cb-grid-pagination {
    margin-top: 16px;
    text-align: center;
}
.cb-grid-pagination .cb-page {
    display: inline-block;
    margin: 0 3px;
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid #444;
    font-size: 13px;
    text-decoration: none;
    color: #ddd;
    background: #222;
}
.cb-grid-pagination .cb-page:hover {
    background: #333;
}
.cb-grid-pagination .cb-page.current {
    background: #3ebf4a;
    border-color: #3ebf4a;
    color: #000;
    font-weight: 600;
}
@media (max-width: 600px) {
    .cb-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    .cb-grid-item {
        padding: 8px 10px;
    }
}

/* Modal overlay */
.cb-modal-overlay {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
}

/* Modal box */
.cb-modal {
    background: #111;
    border-radius: 8px;
    padding: 16px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    color: #eee;
    position: relative;
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cb-modal-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: none;
    background: transparent;
    color: #aaa;
    font-size: 22px;
    cursor: pointer;
    z-index: 2;
}

/* top: video + info */
.cb-modal-top {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.cb-modal-thumb {
    flex: 2 1 0;
    overflow: hidden;
    border-radius: 6px;
}

.cb-modal-thumb iframe,
.cb-modal-thumb img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
    display: block;
}

.cb-modal-info {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
}

.cb-modal-username {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}
.cb-modal-gender,
.cb-modal-status {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 4px;
}
.cb-modal-actions {
    margin-top: auto;
}

/* bottom: banner / text from settings */
.cb-modal-footer {
    border-top: 1px solid #333;
    padding-top: 10px;
    font-size: 13px;
    color: #ccc;
}

@media (max-width: 768px) {
    .cb-modal {
        max-width: 100%;
        width: 100%;
    }
    .cb-modal-top {
        flex-direction: column;
    }
    .cb-modal-thumb iframe,
    .cb-modal-thumb img {
        min-height: 240px;
    }
}

.cb-grid-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: flex-start;
}

.cb-grid-sidebar {
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px 14px;
    color: #eee;
    font-size: 13px;
}

.cb-grid-main {
    min-width: 0;
}

.cb-filter-block {
    margin-bottom: 16px;
}

.cb-filter-block h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #333;
    padding-bottom: 4px;
}

.cb-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cb-filter-list li {
    margin-bottom: 4px;
}

.cb-filter-list a {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: #ddd;
    padding: 2px 4px;
    border-radius: 3px;
}

.cb-filter-list a:hover {
    background: #222;
}

.cb-filter-list a.current {
    background: #3ebf4a;
    color: #000;
    font-weight: 600;
}

.cb-filter-count {
    font-size: 11px;
    color: #aaa;
    margin-left: 6px;
}

.cb-filter-reset a {
    display: inline-block;
    margin-top: 4px;
    color: #ff6666;
}

@media (max-width: 900px) {
    .cb-grid-layout {
        grid-template-columns: 1fr;
    }
    .cb-grid-sidebar {
        order: -1;
    }
}