
:root {
    --primary-dark: #004494;
    --white: #ffffff;
}

body {
    color: var(--text-color);
}

.video-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.va-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* --- Sidebar (Filters) --- */
.va-sidebar {
    flex: 0 0 280px;
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: sticky;
    top: 20px;
}

.va-filter-group h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.va-search-box {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 25px;
    background: #fff;
}
.va-search-box input {
    border: none;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
}
.va-search-box button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0 5px;
}

.va-years-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar styling for years */
.va-years-list::-webkit-scrollbar { width: 5px; }
.va-years-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

.va-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.va-checkbox-label input {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
}

.va-btn-apply {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    margin-top: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}
.va-btn-apply:hover {
    background: var(--primary-dark);
}

.btn-reset-filter {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: underline;
}

/* --- Main Content --- */
.va-content {
    flex: 1;
    min-width: 0; /* Fix flexbox overflow issues */
}

/* Event Link Card (List View) */
.va-events-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.va-event-link-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.va-event-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.va-card-body {
    flex: 1;
}

.va-card-title {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.2s;
}
.va-event-link-card:hover .va-card-title {
    color: var(--primary-color);
}

.va-card-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.badge-video {
    background: #fff1f2;
    color: #e11d48;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #ffe4e6;
}

.va-card-arrow {
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
    padding-left: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Single Page Grid (Detailed View) --- */
.va-single-event {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.va-talks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.va-talk-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.va-talk-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Контейнер відео */
.va-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; 
    background: #000; 
    border-radius: 8px;
    overflow: hidden;
}

.va-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

.va-video-wrapper.video-is-locked iframe {
    pointer-events: none;
    filter: blur(1px); 
}

.video-locked-overlay-new {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 75, 89, 0.25); 
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px);
    
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 20px;
    box-sizing: border-box;
}

.overlay-content {
    text-align: center;
    color: #ffffff;
    max-width: 90%;
}

.overlay-content i {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 15px;
    display: block;
    color: #fff;
}

.overlay-content p {
    font-size: clamp(0.8rem, 3vw, 1rem);
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.overlay-content .btn-register-small {
    background: #fff;
    color: #284B59;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.2s;
}

.overlay-content .btn-register-small:hover {
    transform: scale(1.05);
    background: #f8f8f8;
}
.va-talk-info {
    padding: 15px;
}
.va-talk-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--text-color);
}
.va-talk-speaker {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- PAGINATION STYLES --- */
.pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 6px;
    align-items: center;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 6px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 600;
    font-size: 0.95rem;
}

.pagination a:hover {
    background-color: var(--bg-light);
    border-color: #ccc;
    color: var(--primary-color);
}

.pagination a.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
.pagination span.dots {
    border: none;
    background: none;
}

/* Button Back */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 20px;
    transition: color 0.2s;
}
.btn-back:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 900px) {
    .va-layout { flex-direction: column; }
    .va-sidebar { width: 100%; position: static; margin-bottom: 30px; }
    .va-talks-grid { grid-template-columns: 1fr; }
}