.pv-modal-summary {
    margin-bottom: 14px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: left;
}
.pv-modal-summary .pv-summary-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 6px;
    text-align: left;
}
.pv-modal-summary p {
    margin: 0;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.5;
    text-align: left;
}

.pv-modal-flex { display: flex; gap: 16px; align-items: flex-start; }
.pv-modal-video { flex: 1 1 65%; min-width: 0; }
.pv-modal-chapters {
    flex: 0 0 260px;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    text-align: left;
}
.pv-chapters-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 8px;
    padding: 0 4px;
}
.pv-chapters-summary-toggle {
    display: block;
    margin: 0 0 8px;
    padding: 4px 8px;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    color: #0d6efd;
    font-size: 0.75rem;
    text-align: left;
    cursor: pointer;
}
.pv-chapters-summary-toggle:hover { background: #f0f7ff; }
.pv-chapters-list { list-style: none; margin: 0; padding: 0; text-align: left; }
.pv-chapters-list li {
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    text-align: left;
}
.pv-chapters-list li:hover { background: #f0f7ff; }
.pv-chapters-list li.active { background: #e8f1ff; color: #0d6efd; font-weight: 600; }
.pv-chapters-row {
    display: flex;
    gap: 8px;
    align-items: baseline;
}
.pv-chapters-time {
    font-variant-numeric: tabular-nums;
    color: #6c757d;
    font-size: 0.78rem;
    flex-shrink: 0;
}
.pv-chapters-item-summary {
    display: none; /* shown via #videoPlayerModalChapters.pv-show-item-summaries below */
    margin-top: 3px;
    color: #6c757d;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
}
.pv-modal-chapters.pv-show-item-summaries .pv-chapters-item-summary { display: block; }
.pv-chapters-list li.active .pv-chapters-item-summary { color: inherit; }
@media (max-width: 760px) {
    .pv-modal-flex { flex-direction: column; }
    .pv-modal-video { flex: none; width: 100%; }
    .pv-modal-chapters { flex: none; width: 100%; max-height: 200px; }
}

.video-modal-maximize-btn {
    background: none;
    border: 0;
    padding: 0 0px;
    margin: -1rem 0;
    font-size: 1.1rem;
    line-height: 1;
    color: #6c757d;
    cursor: pointer;
}
.video-modal-maximize-btn:hover { color: #212529; }

/* Modal never maximizes on mobile -- the trigger already sends mobile users
   to player.php instead of opening this modal at all (see video-modal.js),
   this is just a safety net. */
@media (max-width: 767.98px) {
    .video-modal-maximize-btn { display: none; }
}

#videoPlayerModal.pv-modal-maximized .modal-dialog {
    max-width: 100vw;
    width: 100vw;
    height: 100vh;
    margin: 0;
}
#videoPlayerModal.pv-modal-maximized .modal-content {
    height: 100vh;
    border-radius: 0;
}
#videoPlayerModal.pv-modal-maximized .modal-body {
    height: calc(100vh - 46px); /* modal-header py-2 height */
    overflow-y: auto;
}
#videoPlayerModal.pv-modal-maximized .pv-modal-chapters {
    max-height: none;
}
