/* Grid Shell */
.bwb-top-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 20px 0;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .bwb-top-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .bwb-top-slots-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Card */
.bwb-top-slot-card {
    background: #111317;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bwb-slot-thumb {
    width: 100%;
    height: 140px; /* desktop/tablet default */
    object-fit: cover;
    display: block;
}

.bwb-slot-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Provider pill */
.bwb-slot-provider {
    display: inline-block;
    background: #2b2f3a;
    color: #ffffff;
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-bottom: 8px;
    opacity: 0.9;
}

/* Force provider pill to only be as wide as its text */
.bwb-top-slots-grid .bwb-top-slot-card .bwb-slot-body .bwb-slot-provider {
    display: inline-block !important;
    width: auto !important;
    max-width: 100%;
    white-space: nowrap;
    align-self: flex-start;
    box-sizing: border-box;
}

/* Title */
.bwb-slot-title {
    font-size: 16px;
    margin: 0 0 1px;
    color: #ffffff;
}

/* Truncated text (3 lines) */
.bwb-slot-text {
    font-size: 14px;
    color: #cccccc;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;          /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

/* Button area */
.bwb-slot-btn-wrap {
    margin-top: 10px;
}

.bwb-slot-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid #3b82f6;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.2;
    color: #ffffff;
    background: #1d2533;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.bwb-slot-btn:hover {
    background: #2563eb;
    border-color: #60a5fa;
    transform: translateY(-1px);
}

/* Mobile override: force taller thumbnail */
@media only screen and (max-width: 780px) {
    .bwb-top-slots-grid .bwb-slot-thumb {
        height: 170px !important;
    }
}