.lta-archives {
    margin: 1.5rem 0;
    font-size: 15px;
}

.lta-month {
    border-bottom: 1px solid rgba(0, 0, 0, .12);
}

.lta-month-head {
    background: #111;
    color: #fff;
    padding: .6rem 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.lta-month-head::-webkit-details-marker {
    display: none;
}

.lta-month-head::before {
    content: "\25B6";
    font-size: .7em;
    transition: transform .15s ease;
}

.lta-month[open] > .lta-month-head::before {
    transform: rotate(90deg);
}

.lta-episodes {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lta-episode {
    display: grid;
    grid-template-columns: 7.5rem 1fr 17rem !important;
    gap: 1rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    align-items: start;
}

.lta-episode:last-child {
    border-bottom: 0;
}

.lta-date {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lta-body p {
    margin: 0 0 .6rem;
}

.lta-body p:last-child {
    margin-bottom: 0;
}

.lta-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .1rem;
}

/* "Play" reads as the primary action, "Download" as the secondary one. */
.lta-links .lta-play {
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.lta-links .lta-dl {
    font-size: .85rem;
    line-height: 1.5;
    text-decoration: none;
}

.lta-links .lta-play:hover,
.lta-links .lta-play:focus-visible,
.lta-links .lta-dl:hover,
.lta-links .lta-dl:focus-visible {
    text-decoration: underline;
}

.lta-player {
    margin-top: .5rem;
    width: 100%;
}

.lta-player audio {
    width: 100%;
    max-width: 260px;
}

.lta-player video {
    width: 100%;
    max-width: 320px;
    height: auto;
}

/* ---------------------------------------- play button popup (modal) ---- */

.lta-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, .97);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lta-modal-content {
    width: 100%;
    max-width: 800px;
    text-align: center;
    color: #111;
}

.lta-modal-audio {
    width: 100%;
    max-width: 504px; /* 420px + 20% */
}

.lta-modal-video {
    width: 100%;
    max-width: 768px; /* 640px + 20% */
    height: auto;
}

.lta-modal-close {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000000;
    background: #d62828;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.lta-modal-close:hover {
    opacity: .9;
}

@media (max-width: 768px) {
    .lta-modal-close {
        top: 60px;
        right: 15px;
    }
}

/* ---------------------------------------- single archive episode page ---- */

.lta-single {
    margin: 1.75rem 0;
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 4px;
    background: rgba(0, 0, 0, .02);
}

.lta-single-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .5rem 1rem;
    margin-bottom: 1rem;
    font-size: .95rem;
}

.lta-single-date {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.lta-single-show {
    opacity: .85;
}

.lta-single-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.lta-single .lta-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .95rem;
    border: 1px solid currentColor;
    border-radius: 3px;
    background: none;
    font: inherit;
    font-size: .95rem;
    line-height: 1.2;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

/*
 * Play is the primary action, Download secondary. Emphasis comes from a neutral
 * tint and weight rather than a fixed colour, so this works on a light or dark
 * theme without knowing either.
 */
.lta-single .lta-btn-play {
    background: rgba(0, 0, 0, .08);
    font-weight: 600;
}

.lta-single .lta-btn-play::before {
    content: "\25B6";
    font-size: .8em;
}

.lta-single .lta-btn:hover,
.lta-single .lta-btn:focus-visible {
    opacity: .75;
}

.lta-single .lta-size {
    opacity: .6;
    font-size: .85em;
}

.lta-single .lta-player {
    margin-top: 1rem;
}

.lta-single .lta-player audio {
    width: 100%;
    max-width: 420px;
}

.lta-single .lta-player video {
    width: 100%;
    max-width: 640px;
    height: auto;
}


/*
 * The three-column row needs roughly 560px. Collapse below that — not at 782px,
 * which is WordPress's admin breakpoint and would stack the layout on ordinary
 * desktop content widths.
 */
@media (max-width: 600px) {
    .lta-episode {
        grid-template-columns: 1fr !important;
        gap: .6rem;
    }

    /*
     * Stay stacked rather than wrapping into rows — wrapping split the
     * audio/video pairs across lines and read as one jumbled list.
     */
    .lta-links {
        align-items: flex-start;
        text-align: left;
        gap: .15rem;
    }

    .lta-player {
        width: 100%;
    }
}


@media (max-width: 480px) {
    .lta-single-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .lta-single .lta-btn {
        justify-content: center;
    }
}

.lta-pagination {
    margin: 1.5rem 0;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
