/* ================================================================
   Program Detail Page — resources/css/program-detail.css
   Import in app.css:  @import 'program-detail.css';
   ================================================================ */

/* ── Breadcrumb ───────────────────────────────────────────────── */
.breadcrumb {
    padding: 14px 0 6px;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: .03em;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* ── Page wrapper ─────────────────────────────────────────────── */
.page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 80px;
    margin-top: var(--navbar-h);
}

/* ── Page title ───────────────────────────────────────────────── */
.page-title {
    font-family: var(--font-primary);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: .04em;
    margin: 20px 0 24px;
    line-height: 1.1;
}

/* ── Hero banner ──────────────────────────────────────────────── */
.hero-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #111;
    aspect-ratio: 17.7/10;
}
.hero-banner img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.hero-badge {
    position: absolute;
    bottom: 18px; right: 18px;
    background: var(--accent);
    color: #000;
    font-family: var(--font-head);
    font-size: 14px;
    letter-spacing: .12em;
    padding: 6px 18px;
    border-radius: 4px;
}

/* ── Share row ────────────────────────────────────────────────── */
.share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 14px;
}
.share-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform .15s, opacity .15s;
    font-size: 15px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.6);
}
.share-btn:hover { transform: scale(1.12); opacity: .85; }
.share-btn.email   { background: #555; color: #fff; }
.share-btn.fb      { background: #1877f2; color: #fff; }
.share-btn.twitter { background: #000; color: #fff; }
.share-btn.li      { background: #0a66c2; color: #fff; }
.share-btn.copy    { background: #333; color: #fff; }

/* ── GO button ────────────────────────────────────────────────── */
.btn-premium{
    background: #000 !important;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.6);
    border: none !important;
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .12em;
    padding: 10px 30px;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, transform .1s;
    margin-bottom: 18px;
    text-transform: uppercase;
    margin-right: 10px;
}
.btn-go {
    background: #000 !important;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.6);
    border: none !important;
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .12em;
    padding: 10px 30px;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, transform .1s;
    margin-bottom: 18px;
    margin-right: 10px;
    text-transform: uppercase;
}

h2.episode-main-title,h3.episode-main-title{
    background: #000;
    color: #fff;
    font-size: 13px;
    padding: 15px 20px;
    border-radius: 10px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.episodes .thum-desc h3{ font-size: 12px;}
.episdetailpopup{ padding: 5px 20px; }

.episode-modal { display:none; position:fixed; z-index:9999; left:0; top:0; width:100%; height:100%; overflow:auto; background:rgba(0,0,0,0.8); }
.episode-modal-content { display:block; margin:5% auto; max-width:80%; background:#fff; border-radius:10px; position:relative; }
.episode-modal .epi-close { position:absolute; top:-30px; right:-10px; color:#fff; font-size:3rem; font-weight:bold; cursor:pointer; background:none; border:none; }

div.whatsincluded{
    font-size: 14px;
    font-weight: 500; 
}

.aligncenter{
    display: block;
    margin-left: auto;
    margin-right: auto;
}

h4{ margin-top: 10px; margin-bottom: 10px;}


/* ── Two-column layout ────────────────────────────────────────── */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 425px;
    gap: 36px;
    align-items: start;
    margin-top: 26px;
}
@media (max-width: 780px) {
    .content-grid { grid-template-columns: 1fr; }
}

/* ── Main column ──────────────────────────────────────────────── */
.free-notice {
    font-style: italic;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 22px;
}
.free-notice strong { color: var(--text); font-style: normal; }
.free-notice a { color: var(--accent); text-decoration: none; }

.section-heading {
    font-family: var(--font-head);
    font-size: 22px;
    letter-spacing: .06em;
    color: var(--accent);
    margin-bottom: 10px;
}
.epi-desc p{ margin-bottom: 20px; }
.prose p { margin-bottom: 20px; display: block; }
.prose p:last-child { margin-bottom: 0; }

.alignleft {
    float: left;
}
img.alignleft {
    margin: 7px 24px 7px 0;
}

/* ── Video player ─────────────────────────────────────────────── */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin: 24px 0;
}
.video-wrapper video,
.video-wrapper iframe {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.35);
    cursor: pointer;
    transition: background .2s;
}
.video-overlay:hover { background: rgba(0,0,0,.20); }
.video-overlay-text {
    font-family: var(--font-head);
    font-size: clamp(22px, 5vw, 42px);
    letter-spacing: .1em;
    text-shadow: 0 2px 20px rgba(0,0,0,.8);
    pointer-events: none;
}
.play-circle {
    position: absolute;
    width: 62px; height: 62px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.8);
    display: flex; align-items: center; justify-content: center;
}
.play-circle svg { width: 22px; height: 22px; fill: #fff; margin-left: 4px; }

/* ── Sidebar ──────────────────────────────────────────────────── */
.sidebar-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    position: sticky;
    top: 80px;
}
.sidebar-header {
    background: #1e1e1e;
    padding: 13px 20px;
    font-family: var(--font-head);
    font-size: 15px;
    letter-spacing: .14em;
    border-bottom: 1px solid var(--border);
}
.sidebar-body { padding: 18px 20px; }
.sidebar-body p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
}
.sidebar-body p strong { color: var(--text); }
.sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidebar-list li {
    padding-left: 18px;
    position: relative;
    font-size: 13px;
    line-height: 1.5;
    color: #ccc;
}
.sidebar-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 16px;
    line-height: 1.2;
}

.wp-video {
    width: 100% !important;
    max-width: 640px;
}

.wp-video video,
.wp-video .mejs-container {
    width: 100% !important;
    height: auto !important;
}

.mejs-container {
    width: 100% !important;
}

.mejs-mediaelement video {
    width: 100% !important;
    height: auto !important;
}

/* ── More to explore ──────────────────────────────────────────── */
.more-heading {
    font-family: var(--font-head);
    font-size: 26px;
    letter-spacing: .06em;
    margin: 56px 0 22px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.related-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    transition: transform .2s, border-color .2s;
    display: flex;
    flex-direction: column;
}
.related-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}
.related-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.related-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.related-card-thumb .play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.3);
}
.related-card-thumb .play-badge svg {
    width: 40px; height: 40px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.5;
}
.related-card-title-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    padding: 22px 10px 8px;
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: .09em;
    line-height: 1.2;
}
.related-card-body { padding: 12px 14px 14px; flex: 1; }
.related-card-body h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}
.related-card-body p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}
.learn-more {
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ── Divider ──────────────────────────────────────────────────── */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

/* ── Responsive tweaks ────────────────────────────────────────── */
@media (max-width: 520px) {
    .page-container { padding: 0 16px 60px; }
    .hero-banner { aspect-ratio: 16/9; }
}