/* KONFIGURACJA SIATKI GŁÓWNEJ */
.v2-main-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    width: 100% !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
}

/* LEWA SEKCJA (SLIDER + FILMY) */
.v2-content-area {
    flex: 1 !important;
    width: 76% !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* PRAWA SEKCJA (SIDEBAR) */
.v2-sidebar-area {
    width: 24% !important;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

/* KINOWY DESIGN SLIDERA */
.v2-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #0d0d0d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.v2-slider-wrapper input[type="radio"] { display: none; }
.v2-slides-container { display: flex; width: 600%; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.v2-slide-item { width: 16.6666%; min-height: 420px; background-size: cover; background-position: center; position: relative; }
.v2-slide-overlay {
    background: linear-gradient(90deg, rgba(10,10,10,0.98) 25%, rgba(10,10,10,0.7) 60%, rgba(0,0,0,0) 100%);
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; padding: 40px;
    box-sizing: border-box;
}
.v2-slide-content { max-width: 520px; color: #fff; }
.v2-badge { display: inline-block; padding: 5px 12px; font-size: 11px; font-weight: bold; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.badge-hit { background: #e74c3c; }
.badge-new { background: #2ecc71; }
.badge-classic { background: #9b59b6; }
.badge-popular { background: #3498db; }
.badge-premium { background: #f1c40f; color: #000; }

.v2-slide-content h2 { font-size: 32px; font-weight: 800; margin: 0 0 12px 0; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.v2-slide-content p { font-size: 14px; color: #b3b3b3; line-height: 1.6; margin: 0 0 24px 0; }
.v2-btn-watch { display: inline-flex; align-items: center; gap: 8px; background: #e74c3c; color: #fff !important; font-weight: bold; padding: 12px 28px; border-radius: 6px; text-decoration: none !important; box-shadow: 0 4px 15px rgba(231,76,60,0.4); transition: all 0.3s; }
.v2-btn-watch:hover { background: #c0392b; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(231,76,60,0.6); }

.v2-slider-dots { position: absolute; bottom: 20px; left: 40px; display: flex; gap: 8px; z-index: 10; }
.v2-slider-dots label { width: 30px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; cursor: pointer; transition: background 0.3s; }

/* PROJEKT KAFELKÓW VOD */
.v2-katalog-wrapper { display: flex; flex-direction: column; gap: 30px; }
.v2-section-header h3 { margin: 0 0 15px 0; font-size: 20px; color: #fff; font-weight: 700; border-left: 4px solid #e74c3c; padding-left: 12px; }
.v2-letter-divider { display: flex; align-items: center; margin: 15px 0 10px 0; }
.v2-letter-divider span { background: #222; color: #e74c3c; font-weight: bold; font-size: 13px; padding: 4px 14px; border-radius: 20px; border: 1px solid #333; }
.v2-vod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }

.v2-vod-card { position: relative; background: #141414; border: 1px solid #222; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none !important; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.v2-vod-card:hover { transform: translateY(-6px); border-color: #e74c3c; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.v2-poster-box { width: 100%; height: 215px; overflow: hidden; background: #0a0a0a; }
.v2-poster-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.v2-vod-card:hover .v2-poster-box img { transform: scale(1.08); }
.v2-card-details { padding: 12px; background: #141414; border-top: 1px solid #1f1f1f; text-align: center; flex-grow: 1; display: flex; align-items: center; justify-content: center; }
.v2-card-details h4 { margin: 0; color: #eee; font-size: 13px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.v2-vod-card:hover .v2-card-details h4 { color: #fff; }

.v2-vod-card.is-premium { border-color: rgba(241,196,15,0.3); }
.v2-vod-card.is-premium:hover { border-color: #f1c40f; }
.v2-card-badge-premium { position: absolute; top: 10px; left: 10px; background: #f1c40f; color: #000; font-size: 10px; font-weight: bold; padding: 3px 8px; border-radius: 4px; z-index: 2; box-shadow: 0 2px 6px rgba(0,0,0,0.4); }

/* SIATKA KATALOGU */
.v2-vod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 10px;
}

/* NOWY KAFELEK VOD PREMIUM STYLE */
.v2-vod-card {
    position: relative;
    background: #111111; /* Bardzo ciemne tło odcinające się od trow1 */
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ANIMACJA PO NAJECHANIU MYSZKĄ */
.v2-vod-card:hover {
    transform: translateY(-5px);
    border-color: #e74c3c; /* Czerwony akcent forum */
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.25);
}

/* KINOWE PROPORCJE PLAKATU (2:3) */
.v2-poster-box {
    position: relative;
    width: 100%;
    height: 220px; /* Idealna wysokość dla plakatów anime */
    overflow: hidden;
    background: #050505;
}

.v2-poster-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.v2-vod-card:hover .v2-poster-box img {
    transform: scale(1.06); /* Delikatne, płynne przybliżenie obrazka */
}

/* NAKŁADKA HOVER Z IKONĄ PLAY */
.v2-poster-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Przyciemnienie obrazka */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.v2-vod-card:hover .v2-poster-hover {
    opacity: 1;
}

/* IKONA ODTAWARZACZA */
.v2-play-icon {
    font-size: 42px;
    color: #e74c3c;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.v2-vod-card:hover .v2-play-icon {
    transform: scale(1);
}

/* PRZEPROJEKTOWANY PANEL Z TYTUŁEM */
.v2-card-details {
    padding: 10px 8px;
    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: 38px;
    box-sizing: border-box;
}

.v2-card-details h4 {
    margin: 0;
    color: #dddddd;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Automatyczne łamanie długich tytułów do max 2 linii */
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.v2-vod-card:hover .v2-card-details h4 {
    color: #ffffff; /* Pełna biel tytułu przy hoverze */
}

/* AKTYWACJA RADIO-SLIDERA */
#slide1:checked ~ .v2-slides-container { transform: translateX(0); }
#slide2:checked ~ .v2-slides-container { transform: translateX(-16.6666%); }
#slide3:checked ~ .v2-slides-container { transform: translateX(-33.3333%); }
#slide4:checked ~ .v2-slides-container { transform: translateX(-50%); }
#slide5:checked ~ .v2-slides-container { transform: translateX(-66.6666%); }
#slide6:checked ~ .v2-slides-container { transform: translateX(-83.3333%); }

#slide1:checked ~ .v2-slider-dots label[for="slide1"],
#slide2:checked ~ .v2-slider-dots label[for="slide2"],
#slide3:checked ~ .v2-slider-dots label[for="slide3"],
#slide4:checked ~ .v2-slider-dots label[for="slide4"],
#slide5:checked ~ .v2-slider-dots label[for="slide5"],
#slide6:checked ~ .v2-slider-dots label[for="slide6"] { background: #fff; width: 45px; }

/* ANIMACJE */
@keyframes pulseLive { 0% { opacity: 0.4; } 50% { opacity: 1; } 100% { opacity: 0.4; } }
@keyframes shineGold { 0% { transform: translate(-30%, -30%) rotate(45deg); } 100% { transform: translate(30%, 30%) rotate(45deg); } }

/* RESPONSYWNOŚĆ PŁYTKA */
@media (max-width: 992px) {
    .v2-main-container { flex-direction: column; }
    .v2-sidebar-area { width: 100%; }
    .v2-slide-item { min-height: 350px; }
}

/* SYSTEMOWY PRZYCISK POWROTU DO BELKI MYBB */
.mybb-nav-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
}

/* EFEKT HOVER DOPASOWANY DO SERWISU */
.mybb-nav-back-btn:hover {
    background: #e74c3c !important; /* Czerwień ze slidera VOD */
    border-color: #e74c3c !important;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
    color: #ffffff !important;
}

.mybb-nav-back-btn i {
    font-size: 9px;
    position: relative;
    top: 0px;
}

/* EMULACJA STYLU ELEMENTÓW MYBB DLA WIDŻETÓW BOCKZNYCH */
.mybb-style-widget {
    background: #141414; /* Głębokie tło dopasowane do trow1/trow2 */
    border: 1px solid #222; /* Krawędź pasująca do border_table */
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

/* EMULACJA KLASY .THEAD */
.mybb-style-widget .mybb-widget-thead {
    background: #1c1c1c; /* Kolor nagłówków Twojego forum */
    color: #fff;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #2d2d2d;
}

/* EMULACJA KLASY .TROW1 / ZAWARTOŚĆ */
.mybb-style-widget .mybb-widget-content {
    padding: 15px;
    box-sizing: border-box;
}
.widget-premium-gold {
    background: #141414; /* Ciemne tło dopasowane do reszty forum */
    border: 1px solid #d4ac0d !important; /* Złota, systemowa ramka */
    border-radius: 6px !important; /* Bezpieczne zaokrąglenie rogów */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); /* Cień pod boksem */
    overflow: hidden;
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* NAGŁÓWEK BOXU (ZŁOTA BELKA) */
.mybb-widget-thead-gold {
    background: linear-gradient(135deg, #d4ac0d 0%, #b38f06 100%) !important;
    color: #000000 !important;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ZAWARTOŚĆ BOXU (TEKST + PRZYCISK) */
.widget-premium-gold .mybb-widget-content {
    padding: 20px 15px;
    text-align: center;
    box-sizing: border-box;
}

/* TEKST OPISU */
.widget-premium-gold .mybb-widget-content p {
    margin: 0 0 20px 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: #cccccc;
    text-align: left;
}

/* ZŁOTY PRZYCISK AKCJI */
.v2-btn-premium-gold {
    display: block;
    background: #d4ac0d;
    color: #000000 !important;
    font-weight: 700;
    text-align: center;
    padding: 11px;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(212, 172, 13, 0.2);
}

/* REAKCJA PRZYCISKU NA MYSZKĘ */
.v2-btn-premium-gold:hover {
    background: #f1c40f;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
    transform: translateY(-1px);
}

/* DOPASOWANY BOX ALERTU ADBLOCK */
.v2-adblock-alert-box {
    background: rgba(231, 76, 60, 0.07); /* Delikatne czerwone tło w stylu VOD */
    border: 1px solid rgba(231, 76, 60, 0.25); /* Dopasowana ramka */
    border-left: 4px solid #e74c3c; /* Gruby akcent z lewej strony dla wyróżnienia */
    border-radius: 4px;
    padding: 12px 16px;
    margin: 15px 0;
    box-sizing: border-box;
    width: 100%;
    clear: both;
}

/* KONTENER WEWNĘTRZNY DLA WYRÓWNANIA LINII */
.v2-alert-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* STYLIZACJA IKONY MIGAWCZOWEJ/SKACZĄCEJ */
.v2-alert-icon {
    font-size: 20px;
    color: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* STYLIZACJA TEKSTU KOMUNIKATU */
.v2-alert-text {
    font-size: 12px;
    color: #dfb2ae; /* Zgaszony, czytelny odcień czerwieni/różu dla ciemnych stylów */
    line-height: 1.5;
}

/* POGRUBIONY TYTUŁ WSKAZÓWKI */
.v2-alert-title {
    font-weight: 700;
    color: #fff; /* Biały kolor dla nagłówka wskazówki */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}


/* STRUKTURA KOLUMNY BOCZNEJ */
.v2-sidebar-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* RAMKI I TABELE W SIDEBARZE */
.v2-sidebar-table {
    width: 100%;
    margin-bottom: 0 !important;
}

.v2-sidebar-table .thead {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: bold;
    padding: 10px 12px;
}

/* ANIMOWANA DIODA LIVE W BELCE STATYSTYK */
.v2-live-dot {
    width: 7px;
    height: 7px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 8px #2ecc71;
    animation: pulseLive 1.6s infinite ease-in-out;
}

/* UKŁAD SIATKI STATYSTYK */
.v2-stats-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.v2-stat-tile {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    padding: 12px 6px;
    text-align: center;
}
.v2-tile-num {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 2px;
}
.v2-tile-num.text-green { color: #2ecc71; }
.v2-tile-txt { font-size: 10px; color: #888; text-transform: uppercase; font-weight: 600; }



@keyframes pulseLive {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* WSPARCIE DLA URZĄDZEŃ MOBILNYCH */
@media (max-width: 992px) {
    .v2-main-container {
        flex-direction: column !important;
    }
    .v2-content-area, .v2-sidebar-area {
        width: 100% !important;
    }
}

/* DIODA LIVE */
.v2-live-dot {
    width: 7px;
    height: 7px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 8px #2ecc71;
    animation: pulseLive 1.6s infinite ease-in-out;
}

