/* GŁÓWNY KONTENER KAFELKÓW - ZMNIEJSZONY ODSTĘP PIONOWY */
.v2-katalog-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* BELKI LITER MAKSYMALNIE ZBLIŻONE DO KAFELKÓW */
.v2-letter-divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 5px 0 4px 0 !important; /* Minimalny margines dolny przybliżający do siatki */
    box-sizing: border-box;
}

.v2-letter-divider span {
    background: #171717;
    color: #e74c3c;
    font-weight: bold;
    font-size: 10px;
    padding: 3px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 3px solid #e74c3c;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ULTRA KOMPAKTOWA SIATKA (Pomniejszona o 20%) */
.stream-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important; /* Szerokość zmniejszona do 100px */
    gap: 10px !important; /* Mniejszy odstęp między kafelkami */
    width: 100% !important;
    box-sizing: border-box;
    margin-bottom: 2px;
}

/* KOMPAKTOWA KARTA WIDEO */
.stream-card {
    position: relative;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease-in-out;
}

.stream-card:hover {
    transform: translateY(-2px);
    border-color: #e74c3c;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.4);
}

/* SKALOWANIE PLAKATU DO 140PX WYSOKOŚCI */
.stream-poster-box {
    position: relative;
    width: 100%;
    height: 140px; /* Wysokość zmniejszona o 20% */
    overflow: hidden;
    background: #050505;
}

.stream-poster-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.stream-card:hover .stream-poster-box img {
    transform: scale(1.05);
}

/* OGRANICZONY PANEL TYTUŁU DLA MAŁYCH WYMIARÓW */
.stream-card-info {
    padding: 6px 4px;
    background: #111111;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    box-sizing: border-box;
}

.stream-card-info h4 {
    margin: 0;
    color: #cccccc;
    font-size: 10.5px; /* Delikatnie mniejsza czcionka do małego boksu */
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* OKRĄGŁY PRZYCISK 3D (Dopasowany skalą do małego kafelka) */
.mybb-style-play-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important; /* Zmniejszona średnica przycisku */
    height: 36px !important;
    background: linear-gradient(to bottom, #555555 0%, #444444 49%, #333333 50%, #252525 100%) !important;
    border: 1px solid #1a1a1a !important;
    border-radius: 50% !important;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 3px 6px rgba(0, 0, 0, 0.6) !important;
    transform: scale(0.75);
    transition: transform 0.2s ease-in-out !important;
}

.mybb-style-play-btn i {
    color: #2ecc71 !important;
    font-size: 11px !important;
    margin-left: 2px !important;
}

.stream-hover-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.stream-card:hover .stream-hover-overlay { opacity: 1 !important; }
.stream-card:hover .mybb-style-play-btn { transform: scale(1) !important; }

/* MINI MINI BADGE LITERKI NA FOTO */
.card-letter-badge {
    position: absolute;
    top: 4px; left: 4px;
    background: rgba(17, 17, 17, 0.85);
    color: #e74c3c;
    font-weight: bold;
    font-size: 9px;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    z-index: 3;
}
