.video-top-header {
    display: flex !important;
    align-items: stretch !important; /* Rozciąga oba elementy równomiernie */
    justify-content: space-between !important;
    gap: 20px !important;
    width: 100% !important;
    margin-bottom: 24px !important;
    box-sizing: border-box !important;
}

/* Lewy blok: Karta filmu - wymuszenie ciemnego tła z lewej strony */
.db-layout-container {
    display: flex !important;
    background-color: #141414 !important;
    padding: 24px !important;
    flex: 1 !important;
    min-width: 0 !important;
    gap: 24px !important;
    box-sizing: border-box !important;
    
    /* POPRAWKA OBRAMOWANIA: Wymuszamy pełny zestaw właściwości granicy kontenera */
    border: 1px solid #222222 !important; 
    border-style: solid !important;
    border-width: 1px !important;
    border-color: #222222 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    
    /* Zabezpieczenie przed klikaniem elementów pod spodem */
    position: relative !important;
    z-index: 5 !important;
}


.poster-wrapper {
    flex-shrink: 0;
}

.poster-image {
    width: 160px;  /* Zwiększono ze 150px na 160px dla zachowania proporcji */
    height: 230px; /* Zmniejszono z 240px na 230px, aby nie był za wysoki */
    object-fit: cover;
    border-radius: 6px;
    display: block;
    border: 1px solid var(--poster-border);
    padding: 3px;
    background-color: rgba(255, 255, 255, 0.02);
    box-sizing: border-box;
}

.poster-wrapper {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 100%; /* Rozciąga przestrzeń plakatu do pełnej wysokości karty */
}

.badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background-color: var(--badge-bg);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    gap: 6px;
}

.badge i {
    font-size: 10px;
    color: #ffb703;
}

.title {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 12px 0;
}

.description {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 24px;
}

.meta-item {
    display: flex;
    align-items: center;
}

.meta-item:not(:last-child)::after {
    content: "•";
    margin: 0 12px;
    color: #555555;
    font-size: 14px;
}

.meta-item span {
    color: var(--text-primary);
    font-weight: 500;
    margin-left: 4px;
}

.menu-checkbox-trigger {
    display: none !important;
    visibility: hidden !important;
}

.action-dropdown {
    position: relative !important;
    display: inline-block !important;
    align-self: flex-start !important;
    margin-top: 20px !important;
    z-index: 99999 !important;
}

.btn-watch {
    display: inline-flex !important;
    align-items: center !important;
    background-color: #e50914 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    user-select: none !important;
}

.btn-watch i {
    margin-right: 8px !important;
}

.btn-watch:hover {
    background-color: var(--accent-hover);
}

.action-dropdown.active .btn-watch i {
    transform: rotate(90deg);
}

.dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    background-color: #1f1f1f !important;
    min-width: 220px !important;
    border-radius: 4px !important;
    border: 1px solid #333333 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6) !important;
    z-index: 100000 !important;
    padding: 6px 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* TA REGUŁA CSS URUCHAMIA MENU: Jeśli checkbox jest zaznaczony, pokaż menu i trzymaj je stabilnie! */
.menu-checkbox-trigger:checked ~ .dropdown-menu {
    display: block !important;
}

/* Zmiana koloru przycisku, gdy menu jest otwarte (efekt wciśnięcia) */
.menu-checkbox-trigger:checked ~ .btn-watch {
    background-color: #b20710 !important;
}

.action-dropdown:hover .dropdown-menu,
.action-dropdown:focus-within .dropdown-menu {
    display: block !important; /* Wymuszenie natychmiastowego wyświetlenia */
}

.dropdown-item {
    display: flex !important;
    align-items: center !important;
    color: #ffffff !important;
    padding: 10px 16px !important;
    text-decoration: none !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    transition: background-color 0.2s ease !important;
}

.dropdown-item:hover {
    background-color: #2b2b2b !important;
    color: #e50914 !important;
}

.dropdown-item {
    display: flex !important;
    align-items: center !important;
    color: #ffffff !important;
    padding: 10px 16px !important;
    text-decoration: none !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    transition: background-color 0.2s ease !important;
}

/* Prawy blok: Społeczność */
.support-container {
    width: 340px !important;
    min-width: 340px !important;
    max-width: 340px !important;
    background-color: #141414 !important;
    border: 1px solid #333333 !important;
    border-radius: 6px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    box-sizing: border-box !important;
}

.support-header {
    background-color: var(--panel-header-bg);
    padding: 12px 16px;
    color: var(--text-primary); /* Czysta biel jak w tytule filmu */
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--panel-border);
}

support-header i {
    color: #ffb703; 
}

.support-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1; /* Wypełnia całą wysokość panelu */
}

.support-content-spacer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto; /* Spycha statystyki oraz przycisk zgłoszenia na sam dół prawego panelu */
}

.support-text {
    color: #b5a4a4;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.progress-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 500;
}

.progress-title {
    color: #8c7b7b;
}

.progress-value {
    color: var(--accent-red);
    font-weight: bold;
}

.progress-bar-bg {
    height: 6px;
    background-color: #2a2020;
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #b20710, var(--accent-red));
    width: 8.7%;
    border-radius: 3px;
}

.stats-boxes {
    display: flex;
    gap: 12px;
}

.stat-box {
    flex: 1;
    background-color: #0b0b0b !important; /* Bardzo ciemne tło wewnętrznych boksów (odcień tła forum) */
    border-radius: 4px;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid #222222 !important; /* Delikatne odcięcie boksów od tła panelu */
}

.stat-label {
    font-size: 10px;
    color: var(--text-secondary); /* Schludny, szary kolor z lewego opisu */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-count {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
}

.stat-count.wanted {
    color: var(--accent-red); /* Czerwień spójna z głównym motywem */
}

.btn-submit-missing {
    background-color: var(--btn-submit-bg);
    color: var(--text-primary); /* Biały napis dla pełnej czytelności */
    border: none;
    border-radius: 4px;
    padding: 11px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    width: 100%;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-submit-missing:hover {
    background-color: var(--btn-submit-hover);
    color: var(--text-primary);
}

/* Prawidłowe łamanie kolumn na tabletach i smartfonach */
@media (max-width: 950px) {
    .video-top-header {
        flex-direction: column;
        align-items: center;
    }
    .db-layout-container {
        width: 100%;
    }
    .support-container {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}