/* =========================
   TALKS (FULL WIDTH PAGE)
========================= */
.talks-v2{
    padding: 55px 0 70px;
    background: #3f3f3f;
    color: #fff;
}

/* IMPORTANT: this is what removes left/right huge blank spaces */
.talks-wrap{
    width: 100%;
    max-width: none;         /* removes container max width */
    padding: 0 60px;         /* page padding like screenshot */
    box-sizing: border-box;
}

/* Title */
.talks-v2-title{
    margin: 0 0 18px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: .2px;
}

/* Grid (4 columns desktop) */
.talks-v2-grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 80px;
}

/* Card */
.talks-v2-card{
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    width: 100%;
}

/* Date */
.talks-v2-date{
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.92);
    margin-bottom: 10px;
}

/* Image (flat, thin border) */
.talks-v2-thumb{
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #2e2e2e;
    border: 1px solid rgba(255,255,255,.25);
    overflow: hidden;
}

.talks-v2-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Title (red underline) */
.talks-v2-name{
    margin-top: 10px;
    font-size: 13px;
    font-weight: 800;
    color: #ff2a2a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Divider line */
.talks-v2-line{
    margin-top: 10px;
    height: 1px;
    width: 100%;
    background: rgba(255,255,255,.22);
}

/* Empty state */
.talks-v2-empty{
    grid-column: 1 / -1;
    color: rgba(255,255,255,.85);
    padding: 10px 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1400px){
    .talks-v2-grid{ gap: 50px; }
}

@media (max-width: 1200px){
    .talks-wrap{ padding: 0 30px; }
    .talks-v2-grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px){
    .talks-v2-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px){
    .talks-wrap{ padding: 0 16px; }
    .talks-v2-grid{ grid-template-columns: 1fr; gap: 28px; }
}


/* =========================
   MODAL (VIDEO POPUP)
========================= */
.talk-modal{
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.talk-modal.is-open{
    display: flex;
    align-items: center;
    justify-content: center;
}

.talk-modal-overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.75);
}

.talk-modal-dialog{
    position: relative;
    width: 95vw;
    max-width: 1300px;
    background: #111;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,.6);
    z-index: 2;
}

.talk-modal-top{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    background: #0f0f0f;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.talk-modal-date{
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.7);
    margin-bottom: 4px;
}

.talk-modal-title{
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.talk-modal-close{
    border: 0;
    background: rgba(255,255,255,.08);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
}

.talk-modal-close:hover{
    background: rgba(255,255,255,.15);
}

.talk-modal-body{
    padding: 14px;
}

/* Player wrapper */
.talk-player{
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

/* CRITICAL: iframe/video must fill */
.talk-player iframe,
.talk-player video{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}