/* ── SINGLE EPISODE / POST STYLES ── */

/* Episode Hero */
.episode-hero {
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
}
.show-ratm .episode-hero {
    background:
        radial-gradient(ellipse 100% 60% at 50% 100%, rgba(10,13,122,0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 80% 0%, rgba(179,140,30,0.07) 0%, transparent 50%),
        var(--bg);
}
.show-emb .episode-hero {
    background:
        radial-gradient(ellipse 80% 60% at 20% 100%, rgba(245,216,0,0.06) 0%, transparent 55%),
        var(--bg);
}
.episode-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-inner {
    position: relative;
    padding-top: 56px;
    padding-bottom: 56px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 24px;
}
.breadcrumb a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--cream); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: var(--cream-dim); }

/* Episode tag row */
.episode-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    list-style: none;
    padding: 0;
    margin-left: 0;
}

/* Episode title */
.episode-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 400;
    color: var(--cream);
    line-height: 1.1;
    margin-bottom: 16px;
    max-width: 820px;
}

/* Subtitle */
.episode-subtitle {
    font-size: 18px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 640px;
}

/* Byline */
.episode-byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    text-transform: uppercase;
}
.byline-author { color: var(--cream-dim); }
.byline-sep::before {
    content: '·';
    margin: 0 4px;
    opacity: 0.4;
}

/* ── CONTENT WRAPPER (sidebar layout) ── */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 80px;
    align-items: start;
}
.content-wrapper.no-sidebar {
    grid-template-columns: 1fr;
    max-width: 780px;
}

/* Main column */
.main-col {}

/* ── VIDEO PLAYER ── */
.video-player {
    position: relative;
    margin-bottom: 40px;
}
/* Bunny video 16:9 wrapper */
.bunny-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: var(--surface2);
}
.bunny-video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video placeholder (for locked members content) */
.video-placeholder {
    aspect-ratio: 16/9;
    background: var(--surface2);
    width: 100%;
}

/* Episode thumbnail when no video */
.episode-thumb {
    margin-bottom: 40px;
}
.episode-thumb img {
    width: 100%;
    height: auto;
}

/* ── EPISODE BODY (WordPress content) ── */
.episode-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-body);
}
.episode-body p { margin-bottom: 1.5em; color: var(--text-body); }
.episode-body h2 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--cream);
    margin: 2em 0 0.75em;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rule);
}
.episode-body h3 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--cream);
    margin: 1.8em 0 0.6em;
}
.episode-body h4 {
    font-size: 16px;
    font-weight: 500;
    color: var(--cream-dim);
    margin: 1.5em 0 0.5em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.episode-body a {
    color: var(--gold-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(179,140,30,0.3);
    transition: border-color 0.2s;
}
.episode-body a:hover { border-color: var(--gold-light); }
.episode-body ul,
.episode-body ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}
.episode-body li { margin-bottom: 0.4em; color: var(--text-body); }
.episode-body blockquote {
    margin: 2em 0;
    padding: 24px 28px;
    border-left: 3px solid var(--gold);
    background: var(--gold-glow);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 20px;
    color: var(--cream);
    line-height: 1.5;
}
.episode-body blockquote p { color: var(--cream); margin: 0; }
.episode-body img {
    max-width: 100%;
    height: auto;
    margin: 2em 0;
}
.episode-body figure {
    margin: 2em 0;
}
.episode-body .wp-block-embed {
    width: 100%;
    max-width: 100%;
}
.episode-body .wp-block-embed__wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
}
.episode-body .wp-block-embed.is-provider-tiktok .wp-block-embed__wrapper {
    aspect-ratio: unset;
    position: static;
    max-width: 385px;
    margin: 0 auto;
    height: auto;
}
.episode-body .wp-block-embed.is-provider-tiktok .wp-block-embed__wrapper > blockquote {
    margin: 0 !important;
}
.episode-body .wp-block-embed.is-provider-tiktok .wp-block-embed__wrapper iframe {
    position: static;
    width: 100%;
    height: auto;
}
.episode-body .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.episode-body figcaption {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    margin-top: 8px;
}
.episode-body strong { color: var(--cream-dim); font-weight: 500; }
.episode-body em { font-style: italic; }
.episode-body hr {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 2.5em 0;
}

/* Member extended content block */
.member-content {
    margin-top: 40px;
    border-top: 1px solid var(--rule);
    padding-top: 32px;
}
.member-content__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 8px;
}
.member-content-title {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-dim);
}
.member-content-badge {
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--dark-text);
    padding: 3px 10px;
    font-weight: 500;
}
.member-content__body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-body);
}
.member-content__body p { margin-bottom: 1.4em; }

/* Member lock inline */
.member-lock-inline {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--gold-rule);
    text-align: center;
}
.lock-inline-text {
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Member gate overlay */
.member-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 32px;
    text-align: center;
    background: rgba(14,14,22,0.90);
    backdrop-filter: blur(4px);
}
.member-gate--video {
    position: absolute;
    inset: 0;
}
.member-gate__icon { font-size: 28px; }
.member-gate__text { font-size: 14px; color: var(--text-dim); max-width: 300px; line-height: 1.6; }

/* Comments */
.comments-section {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
}
.comments-title {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--cream);
    margin-bottom: 24px;
}

/* Comment list */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.mbr-comment {
    padding: 24px 0;
    border-bottom: 1px solid var(--rule);
}
.mbr-comment:first-child {
    padding-top: 0;
}
.comment-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.comment-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.comment-meta-top {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}
.comment-meta-actions {
    display: flex;
    gap: 12px;
}
.comment-author-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--cream);
    letter-spacing: 0.04em;
}
.comment-date {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    text-decoration: none;
    text-transform: uppercase;
}
.comment-date:hover {
    color: var(--cream-dim);
}
.comment-edit a,
.comment-reply a {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}
.comment-edit a:hover,
.comment-reply a:hover {
    color: var(--cream);
    border-color: var(--cream-dim);
}
.comment-content p {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.7;
    margin: 0;
}
.comment-awaiting {
    font-size: 12px;
    color: var(--text-dim);
    font-style: italic;
}
/* Nested replies */
.comment-list .children {
    list-style: none;
    margin: 16px 0 0 0;
    padding: 16px 0 0 20px;
    border-left: 2px solid var(--surface3);
}
.comment-list .children .mbr-comment {
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
}
.comment-list .children .mbr-comment:first-child {
    padding-top: 0;
}
.comment-list .children .mbr-comment:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Comment form */
#respond {
    /* margin-top: 20px; */
    padding-top: 20px;
}
#respond h3#reply-title {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--cream);
    margin-bottom: 8px;
    font-weight: 400;
}
#respond .logged-in-as {
    font-size: 13px;
    color: var(--text-dim);
    /* margin-bottom: 24px; */
}
#respond .logged-in-as a {
    color: var(--text-dim);
    text-decoration: underline;
    text-underline-offset: 3px;
}
#respond .logged-in-as a:hover {
    color: var(--cream);
}
#respond .comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
#respond .comment-form-comment {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#respond .comment-form-comment label {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
}
#respond textarea#comment {
    width: 100%;
    min-height: 120px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 4px;
    color: var(--text);
    font-family: var(--font-body, inherit);
    font-size: 15px;
    line-height: 1.6;
    padding: 14px 16px;
    resize: vertical;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
#respond textarea#comment:focus {
    outline: none;
    border-color: var(--cream-dim);
}
#respond textarea#comment::placeholder {
    color: var(--text-dim);
}
#respond .form-submit {
    margin: 0;
}
#respond .submit {
    display: inline-block;
    background: var(--cream);
    color: var(--bg);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 12px 28px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: opacity 0.2s;
}
#respond .submit:hover {
    opacity: 0.85;
}

/* ── SIDEBAR ── */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.sidebar-block {
    background: var(--surface);
    padding: 24px;
}
.sidebar-label {
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 10px;
    display: block;
}

/* Rating display */
.rating-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.rating-number {
    font-family: var(--font-cinema);
    font-size: 56px;
    color: var(--gold-light);
    line-height: 1;
}
.rating-denom {
    font-size: 18px;
    color: var(--text-dim);
}

/* Film detail list */
.ep-detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ep-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 13px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule);
}
.ep-detail-item:last-child { border-bottom: none; padding-bottom: 0; }
.ep-detail-label { color: var(--text-dim); flex-shrink: 0; }
.ep-detail-value { color: var(--cream); text-align: right; }

/* Segment list (other parts of same episode) */
.segment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.segment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-dim);
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s;
    border-bottom: 1px solid var(--rule);
}
.segment-item:last-child { border-bottom: none; }
.segment-item:hover { color: var(--cream); }
.seg-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--show-accent, var(--gold));
    flex-shrink: 0;
}

/* Related list */
.related-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 8px;
}
.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.related-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.related-item {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    transition: background 0.2s;
}
.related-item:last-child { border-bottom: none; }
.related-ep {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}
.related-title {
    font-size: 14px;
    color: var(--cream-dim);
    line-height: 1.4;
    transition: color 0.2s;
}
.related-item:hover .related-title { color: var(--cream); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
        border-top: 1px solid var(--rule);
        padding-top: 32px;
    }
}
@media (max-width: 600px) {
    .hero-inner {
        padding-top: 32px;
        padding-bottom: 40px;
    }
    .episode-title { font-size: clamp(28px, 8vw, 40px); }
    .content-wrapper { padding-top: 32px; padding-bottom: 56px; }
}
