/*
 Theme Name:   Podcast Lite Child
 Theme URI:    https://aippod.com/
 Description:  Child theme for Podcast Lite
 Author:       Jeff Markin
 Template:     podcast
 Version:      1.0
*/

/* Optional: child theme CSS here */

/* AIP Film single layout */

.aip-film-single {
    margin-bottom: 3rem;
}

.aip-film-layout {
    margin-top: 1.5rem;
}

.aip-film-top {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.aip-film-poster img {
    max-width: 350px;
    height: auto;
    display: block;
}

.aip-film-quick-info {
    flex: 1 1 250px;
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 6px;
}

.aip-film-meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aip-film-meta-list li {
    margin-bottom: 0.4rem;
}

.aip-section-title {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.aip-film-logline p {
    font-style: italic;
    font-size: 1.05rem;
}

.aip-related-episodes {
    list-style: disc;
    margin-left: 1.5rem;
}

.aip-film-navigation {
    margin-top: 2.5rem;
}

/* Episode → Film linkage block */

.aip-episode-films {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.aip-episode-films-list {
    list-style: disc;
    margin-left: 1.5rem;
}

.aip-episode-film {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
    align-items: flex-start;
}

.aip-episode-film-poster-wrap img {
    max-width: 200px;
    height: auto;
    display: block;
}

.aip-episode-film-text h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.aip-episode-film-logline {
    margin: 0;
    font-style: italic;
}

.tmdb-attribution {
    display: flex;
    align-items: center;
    justify-content: center; /* center horizontally in footer */
    gap: 12px;               /* space between logo and text */
    padding: 8px 0;
    flex-wrap: wrap;         /* lets it stack on small screens */
}

.tmdb-attribution img {
    width: 60px;   /* adjust size here */
    height: auto;
}

.tmdb-disclaimer {
    font-size: 0.75rem;
    opacity: 0.85;
    margin: 0;
    line-height: 1.2;
    max-width: 250px; /* keeps it from looking too wide */
    text-align: left;
}

/* Hide tag list under posts */
.post-meta.post-tags {
    display: none !important;
}

/* Hide Sort Title column in Posts Table Pro */
.posts-data-table th.column-cf-sort_title,
.posts-data-table td.column-cf-sort_title {
    display: none !important;
}

/* Hide Sort Title from the responsive (+) 'child' rows */
table.dataTable.dtr-inline.collapsed tbody td.dtr-control + tr.child td:has(.dtr-data:contains("sort_title")),
table.dataTable.dtr-inline.collapsed tbody td.dtr-control + tr.child td:has(.dtr-data:contains("Sort Title")),
table.dataTable.dtr-inline.collapsed tbody td.dtr-control + tr.child td:has(.dtr-data:contains("sort title")) {
    display: none !important;
}

/* Hide Sort Title column in Posts Table Pro */
.posts-data-table th.column-cf-sort_title,
.posts-data-table td.column-cf-sort_title {
    display: none !important;
}

/* Hide Sort Title if it leaks into the responsive (+) child rows */
table.dataTable tbody tr.child td:has(.dtr-data:contains("Sort Title")),
table.dataTable tbody tr.child td:has(.dtr-data:contains("sort_title")),
table.dataTable tbody tr.child td:has(.dtr-data:contains("sort title")) {
    display: none !important;
}
