/* Popup de quick view (foto/áudio) — mesma fonte/paleta do resto da biblioteca. */

body.taf-modal-open {
    overflow: hidden;
}

.taf-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: rgba(17, 24, 39, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease;
}
.taf-modal-overlay.taf-modal-visible {
    opacity: 1;
    visibility: visible;
}

.taf-modal-panel {
    position: relative;
    background-color: #ffffff;
    border-radius: 20px;
    max-width: 720px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    font-family: 'Sora', sans-serif;
    transform: translateY(8px);
    transition: transform .15s ease;
}
.taf-modal-overlay.taf-modal-visible .taf-modal-panel {
    transform: translateY(0);
}

.taf-modal-close {
    position: absolute !important;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6 !important;
    color: #111827 !important;
    border: none !important;
    border-radius: 999px !important;
    font-size: 22px;
    line-height: 1;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    z-index: 2;
}
.taf-modal-close:hover { background-color: #e5e7eb !important; }

.taf-modal-body { padding: 28px; }

.taf-modal-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6366f1;
    margin-bottom: 6px;
}
.taf-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 18px;
    line-height: 1.3;
}

.taf-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.taf-modal-download,
.taf-modal-permalink {
    display: inline-flex;
    align-items: center;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 999px;
    padding: 10px 20px;
    transition: background-color .15s ease;
}
.taf-modal-download {
    background-color: #111827 !important;
    color: #ffffff !important;
}
.taf-modal-download:hover { background-color: #1f2937 !important; }
.taf-modal-permalink {
    background-color: #f3f4f6 !important;
    color: #111827 !important;
}
.taf-modal-permalink:hover { background-color: #e5e7eb !important; }

/* Áudio: player grande igual ao da página individual */
.taf-modal-audio .taf-player-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: #f9fafb;
    border-radius: 16px;
    padding: 18px;
}
.taf-modal-audio .taf-player-info { flex: 1; min-width: 0; }
.taf-modal-audio .taf-player-times {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
}

/* Foto: imagem grande + info */
.taf-modal-photo-img {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background-color: #f3f4f6;
    margin-bottom: 18px;
    max-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.taf-modal-photo-img img {
    width: 100%;
    height: 100%;
    max-height: 55vh;
    object-fit: contain;
    display: block;
}

@media (min-width: 640px) {
    .taf-modal-body { padding: 32px; }
    .taf-modal-title { font-size: 22px; }
}