/* ==========================================================================
   CPT Templates — Show (ShowP) & Episode (EpP) single page styles.
   All colors and fonts driven by CSS custom properties from config.
   ========================================================================== */


/* ==========================================================================
   SHOW DETAIL PAGE (ShowP)
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Hero: Full-width background image with gradient overlay
   --------------------------------------------------------------------------- */

.ShowP-hero {
    position: relative;
    min-height: 360px;
    background-color: var(--navy, #003865);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.ShowP-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.2) 100%
    );
    display: flex;
    align-items: flex-end;
}

.ShowP-hero-inner {
    position: relative;
    width: 100%;
    padding-top: 60px;
    padding-bottom: 40px;
}

.ShowP-type-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--blue, #6CACE4);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 3px;
    margin-bottom: 12px;
}

.ShowP-title {
    font-family: var(--font-heading, var(--font-primary, sans-serif));
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin: 0;
    letter-spacing: -0.01em;
}

.ShowP-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.ShowP-genre-tag {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ---------------------------------------------------------------------------
   Info grid: description + sidebar
   --------------------------------------------------------------------------- */

.ShowP-content {
    padding-top: 40px;
    padding-bottom: 40px;
}

.ShowP-info-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.ShowP-info-main {
    min-width: 0;
}

.ShowP-section-heading {
    font-family: var(--font-heading, var(--font-primary, sans-serif));
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-text-dark, #101820);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--navy, #003865);
}

.ShowP-description-body {
    font-family: var(--font-body, var(--font-primary, sans-serif));
    font-size: 17px;
    line-height: 1.75;
    color: var(--gray-text-dark, #101820);
}

.ShowP-description-body p {
    margin: 0 0 1.25em;
}

.ShowP-description-body a {
    color: var(--link-color, #1a7fc3);
    text-decoration: underline;
}

.ShowP-description-body a:hover {
    color: var(--navy, #003865);
}

/* ---------------------------------------------------------------------------
   Sidebar: social links + hosts
   --------------------------------------------------------------------------- */

.ShowP-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.ShowP-sidebar-heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-text-dark, #101820);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-border, #e6e6e6);
}

/* Social links */
.ShowP-social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ShowP-social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    background: var(--gray-bg, #EDEDED);
    color: var(--gray-text-dark, #101820);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.ShowP-social-link:hover {
    background: var(--light-blue, #e8f0f8);
    color: var(--navy, #003865);
}

.ShowP-social-link svg {
    flex-shrink: 0;
    color: var(--navy, #003865);
}

/* Hosts */
.ShowP-hosts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ShowP-host {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ShowP-host-photo {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
}

.ShowP-host-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ShowP-host-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ShowP-host-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-text-dark, #101820);
    text-decoration: none;
}

.ShowP-host-name:hover {
    color: var(--link-color, #1a7fc3);
    text-decoration: underline;
}

.ShowP-host-title {
    font-size: 13px;
    color: var(--gray-text, #666);
}

/* ---------------------------------------------------------------------------
   Episode list section
   --------------------------------------------------------------------------- */

.ShowP-episodes {
    padding-bottom: 40px;
}

.ShowP-episodes-header,
.ShowP-related-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--navy, #003865);
}

.ShowP-episodes-header .square,
.ShowP-related-header .square {
    width: 12px;
    height: 12px;
    background: var(--blue, #6CACE4);
    flex-shrink: 0;
}

.ShowP-episodes-heading,
.ShowP-related-heading {
    font-family: var(--font-heading, var(--font-primary, sans-serif));
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-text-dark, #101820);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.ShowP-episodes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Episode card */
.ShowP-episode-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.ShowP-episode-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ShowP-episode-card:hover .ShowP-episode-title {
    color: var(--link-color, #1a7fc3);
}

.ShowP-episode-thumb {
    position: relative;
    background: var(--gray-bg, #EDEDED);
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.ShowP-episode-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-bg, #EDEDED);
    color: var(--gray-text, #666);
}

.ShowP-episode-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    line-height: 1.4;
}

.ShowP-episode-info {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.ShowP-episode-meta {
    font-size: 12px;
    font-weight: 700;
    color: var(--blue, #6CACE4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.ShowP-episode-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--gray-text-dark, #101820);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}

.ShowP-episode-date {
    font-size: 12px;
    color: var(--gray-text, #666);
    margin-top: 4px;
}

/* "View All" link */
.ShowP-episodes-more {
    text-align: center;
    margin-top: 24px;
}

.ShowP-more-link {
    display: inline-block;
    padding: 10px 28px;
    border: 2px solid var(--navy, #003865);
    border-radius: 4px;
    color: var(--navy, #003865);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ShowP-more-link:hover {
    background: var(--navy, #003865);
    color: #fff;
}

/* ---------------------------------------------------------------------------
   Related shows grid
   --------------------------------------------------------------------------- */

.ShowP-related {
    padding-bottom: 50px;
}

.ShowP-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.ShowP-related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.ShowP-related-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ShowP-related-card:hover .ShowP-related-card-title {
    color: var(--link-color, #1a7fc3);
}

.ShowP-related-card-image {
    aspect-ratio: 16 / 9;
    background: var(--gray-bg, #EDEDED);
    overflow: hidden;
}

.ShowP-related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ShowP-related-card-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gray-bg, #EDEDED);
}

.ShowP-related-card-content {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.ShowP-related-card-type {
    font-size: 11px;
    font-weight: 700;
    color: var(--blue, #6CACE4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.ShowP-related-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-text-dark, #101820);
    transition: color 0.15s ease;
}


/* ==========================================================================
   EPISODE DETAIL PAGE (EpP)
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Video player area
   --------------------------------------------------------------------------- */

.EpP-player-area {
    background: #000;
}

.EpP-video-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.EpP-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

.EpP-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.EpP-hero-image {
    max-width: 960px;
    margin: 0 auto;
}

.EpP-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------------------------------------------------------------------------
   Content grid: main + sidebar
   --------------------------------------------------------------------------- */

.EpP-content {
    padding-top: 30px;
    padding-bottom: 40px;
}

.EpP-content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.EpP-main {
    min-width: 0;
}

/* ---------------------------------------------------------------------------
   Breadcrumb (back to show)
   --------------------------------------------------------------------------- */

.EpP-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.EpP-breadcrumb svg {
    color: var(--blue, #6CACE4);
    flex-shrink: 0;
}

.EpP-breadcrumb a {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--navy, #003865);
    text-decoration: none;
}

.EpP-breadcrumb a:hover {
    color: var(--link-color, #1a7fc3);
    text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Title
   --------------------------------------------------------------------------- */

.EpP-title {
    font-family: var(--font-heading, var(--font-primary, sans-serif));
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--gray-text-dark, #101820);
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------------------
   Metadata badges
   --------------------------------------------------------------------------- */

.EpP-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-border, #e6e6e6);
}

.EpP-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: var(--gray-bg, #EDEDED);
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-text-dark, #101820);
    white-space: nowrap;
}

.EpP-meta-type {
    background: var(--navy, #003865);
    color: #fff;
}

.EpP-meta-duration svg {
    color: var(--gray-text, #666);
}

.EpP-meta-date {
    background: transparent;
    padding: 4px 0;
    color: var(--gray-text, #666);
    font-weight: 400;
}

/* ---------------------------------------------------------------------------
   Share bar
   --------------------------------------------------------------------------- */

.EpP-actions {
    margin-bottom: 20px;
}

/* ---------------------------------------------------------------------------
   Description & Body
   --------------------------------------------------------------------------- */

.EpP-short-desc {
    margin-bottom: 20px;
}

.EpP-short-desc p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--gray-text, #666);
    margin: 0;
    font-style: italic;
}

.EpP-body {
    font-family: var(--font-body, var(--font-primary, sans-serif));
    font-size: 17px;
    line-height: 1.75;
    color: var(--gray-text-dark, #101820);
    margin-bottom: 24px;
}

.EpP-body p {
    margin: 0 0 1.25em;
}

.EpP-body a {
    color: var(--link-color, #1a7fc3);
    text-decoration: underline;
}

.EpP-body a:hover {
    color: var(--navy, #003865);
}

/* ---------------------------------------------------------------------------
   Sidebar: show card
   --------------------------------------------------------------------------- */

.EpP-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.EpP-show-card {
    border: 1px solid var(--gray-border, #e6e6e6);
    border-radius: 6px;
    overflow: hidden;
}

.EpP-show-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.EpP-show-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.EpP-show-card:hover .EpP-show-card-image img {
    transform: scale(1.03);
}

.EpP-show-card-content {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
}

.EpP-show-card-type {
    font-size: 11px;
    font-weight: 700;
    color: var(--blue, #6CACE4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.EpP-show-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-text-dark, #101820);
    text-decoration: none;
    margin-bottom: 8px;
}

.EpP-show-card-title:hover {
    color: var(--link-color, #1a7fc3);
}

.EpP-show-card-cta {
    font-size: 13px;
    font-weight: 700;
    color: var(--link-color, #1a7fc3);
}

/* ---------------------------------------------------------------------------
   Related episodes
   --------------------------------------------------------------------------- */

.EpP-related {
    padding-bottom: 50px;
}

.EpP-related-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--navy, #003865);
}

.EpP-related-header .square {
    width: 12px;
    height: 12px;
    background: var(--blue, #6CACE4);
    flex-shrink: 0;
}

.EpP-related-heading {
    font-family: var(--font-heading, var(--font-primary, sans-serif));
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-text-dark, #101820);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.EpP-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.EpP-related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.EpP-related-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.EpP-related-card:hover .EpP-related-card-title {
    color: var(--link-color, #1a7fc3);
}

.EpP-related-card-thumb {
    position: relative;
    background: var(--gray-bg, #EDEDED);
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.EpP-related-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.EpP-related-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-bg, #EDEDED);
    color: var(--gray-text, #666);
}

.EpP-related-card-content {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.EpP-related-card-meta {
    font-size: 12px;
    font-weight: 700;
    color: var(--blue, #6CACE4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.EpP-related-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--gray-text-dark, #101820);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s ease;
}


/* ==========================================================================
   RESPONSIVE: Tablet (< 1024px)
   ========================================================================== */

@media (max-width: 1023px) {

    /* Show */
    .ShowP-hero {
        min-height: 280px;
    }

    .ShowP-title {
        font-size: 34px;
    }

    .ShowP-info-grid {
        grid-template-columns: 1fr 280px;
        gap: 24px;
    }

    .ShowP-episodes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ShowP-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Episode */
    .EpP-content-grid {
        grid-template-columns: 1fr 280px;
        gap: 24px;
    }

    .EpP-title {
        font-size: 28px;
    }

    .EpP-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==========================================================================
   RESPONSIVE: Mobile (< 768px)
   ========================================================================== */

@media (max-width: 767px) {

    /* Show */
    .ShowP-hero {
        min-height: 220px;
    }

    .ShowP-hero-inner {
        padding-bottom: 24px;
    }

    .ShowP-title {
        font-size: 28px;
    }

    .ShowP-info-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ShowP-episodes-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .ShowP-related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .ShowP-episode-title {
        font-size: 14px;
    }

    /* Episode */
    .EpP-content-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .EpP-title {
        font-size: 24px;
    }

    .EpP-meta {
        gap: 8px;
    }

    .EpP-short-desc p {
        font-size: 16px;
    }

    .EpP-related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .EpP-related-card-title {
        font-size: 14px;
    }
}


/* ==========================================================================
   RESPONSIVE: Small mobile (< 480px)
   ========================================================================== */

@media (max-width: 479px) {

    /* Show */
    .ShowP-hero {
        min-height: 180px;
    }

    .ShowP-title {
        font-size: 24px;
    }

    .ShowP-episodes-grid {
        grid-template-columns: 1fr;
    }

    .ShowP-related-grid {
        grid-template-columns: 1fr;
    }

    .ShowP-section-heading {
        font-size: 18px;
    }

    .ShowP-description-body {
        font-size: 16px;
    }

    /* Episode */
    .EpP-title {
        font-size: 22px;
    }

    .EpP-meta-badge {
        font-size: 12px;
        padding: 3px 8px;
    }

    .EpP-body {
        font-size: 16px;
    }

    .EpP-related-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Show sidebar: Facebook feed ---- */
.ShowP-facebook-feed .bsm-facebook-feed {
    display: block;
}
