/* ==========================================================================
   Featured Anime Podcast — WordPress / Kadence Custom CSS
   Paste into: Kadence → Customizer → Additional CSS
   Or use via a child theme's style.css
   ========================================================================== */

/* ── 1. CSS Custom Properties (Design Tokens) ── */
/* Site defaults to DARK mode (matching Kadence config).
   Use body.light-mode (toggled via JS) for light theme. */
:root {
    /* Brand palette */
    --brand-1: #ad966c;
    /* gold sand */
    --brand-2: #c4660e;
    /* burnt orange */
    --brand-3: #FF7F00;
    /* vivid orange */

    /* Semantic remap */
    --primary: var(--brand-3);
    --primary-600: #e57000;
    --primary-700: #c65f00;

    /* Dark defaults */
    --white: #111;
    --black: #fff;

    /* Neutral scale — dark */
    --gray-50: #0f0f0f;
    --gray-75: #141414;
    --gray-100: #1a1a1a;
    --gray-200: #222;
    --gray-300: #333;
    --gray-700: #bdbdbd;
    --gray-800: #e0e0e0;
    --gray-900: #f5f5f5;
    --accent-blue: #1f6feb;

    /* Typography */
    --font-primary: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    /* Layout */
    --border-radius: 12px;
    --transition: all .3s cubic-bezier(.4, 0, .2, 1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);

    /* Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--gray-200);
}


/* ── 3. Base / Global Overrides ── */
body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    background-color: var(--white);
}

/* Override Kadence's dynamically-generated container backgrounds.
   Kadence outputs rules like:
     body.page .content-bg { background: var(--kad-editor-content-bg, #fff) }
     body.single .content-bg { background: ... }
   Our selectors MUST match or exceed that specificity to win. */
body .content-bg,
body.page .content-bg,
body.single .content-bg,
body.archive .content-bg,
body.search-results .content-bg,
body.error404 .content-bg,
body.content-style-unboxed .site,
body .entry-content-wrap,
body .single-content,
body .entry-content,
body .site-container,
body article.entry {
    background-color: var(--white) !important;
    background: var(--white) !important;
    color: var(--gray-800);
}

/* ── Light-Mode Variable Inversion ── */
/* When JS toggles body.light-mode, swap all neutral variables
   so every rule using var(--white), var(--gray-*) etc. updates */
body.light-mode {
    --white: #fff;
    --black: #111;

    --gray-50: #fafafa;
    --gray-75: #f5f5f5;
    --gray-100: #f0f0f0;
    --gray-200: #e0e0e0;
    --gray-300: #d0d0d0;
    --gray-700: #555;
    --gray-800: #333;
    --gray-900: #1a1a1a;
}

/* Branded scrollbar (Webkit) */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: var(--gray-200);
}

body::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 20px;
    border: 3px solid var(--gray-200);
}

body::-webkit-scrollbar-thumb:hover {
    background-color: var(--primary-700);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}


/* ── 4. Typography ── */
h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.wp-block-post-title {
    font-family: var(--font-heading);
}

a {
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-700);
}


/* ── 5. Kadence Header Overrides ── */
.site-header {
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

/* Sticky header glass effect */
.item-is-fixed .site-header,
.site-header.item-is-stuck {
    background: color-mix(in srgb, var(--white) 95%, transparent) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

/* Site title & logo */
.site-branding .site-title a {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
}

.site-branding .site-title a:hover {
    color: var(--primary-700);
}

/* Navigation links — selectors match Kadence's dynamic CSS output
   from component.php (primary_navigation_color option) */
.main-navigation .primary-menu-container>ul>li.menu-item>a,
.secondary-navigation .secondary-menu-container>ul>li.menu-item>a,
.header-navigation .header-menu-container>ul>li.menu-item>a {
    font-weight: 500;
    color: var(--gray-800) !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

/* Nav hover & active — match Kadence selectors */
.main-navigation .primary-menu-container>ul>li.menu-item>a:hover,
.main-navigation .primary-menu-container>ul>li.menu-item.current-menu-item>a,
.main-navigation .primary-menu-container>ul>li.menu-item.current_page_item>a,
.header-navigation .header-menu-container>ul>li.menu-item>a:hover,
.header-navigation .current-menu-item>a {
    color: var(--primary) !important;
}

/* Mobile hamburger / popup toggle — matches Kadence's
   mobile_trigger_color selectors from component.php */
.mobile-toggle-open-container .menu-toggle-open,
.mobile-toggle-open-container .menu-toggle-open:focus,
.search-toggle-open-container .search-toggle-open,
.site-header .kadence-svg-iconset,
#mobile-drawer .drawer-header .drawer-toggle,
#mobile-drawer .drawer-header .drawer-toggle:focus {
    color: var(--gray-800) !important;
}

/* Kadence search */
.header-search-bar input[type="search"] {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border: 1px solid var(--gray-200);
}

.header-search-bar button {
    background: var(--primary);
    color: var(--gray-900);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.header-search-bar button:hover {
    background: var(--primary-700);
}

/* ── Kadence Posts Block — Latest Episode Image Constraint ── */
/* Prevents the featured image from dominating the viewport when
   Kadence Posts block is used with columns:1 / postsToShow:1 */
.kb-posts .loop-entry .post-thumbnail,
.wp-block-kadence-posts .loop-entry .post-thumbnail {
    padding-bottom: min(56.25%, 400px) !important;
    max-height: 400px;
}

.kb-posts .loop-entry .post-thumbnail img,
.wp-block-kadence-posts .loop-entry .post-thumbnail img {
    object-fit: cover;
    max-height: 400px;
}


/* ── 6. Podcast Post Content Styling ── */
/* These styles target the HTML inside Classic WordPress blocks 
   that was migrated from Blogger */

/* Hidden MP3 link (Sonaar reads this) */
.mp3-link {
    display: none !important;
}

/* Legacy play button (visible fallback when Sonaar isn't active) */
.podcast-player {
    margin-bottom: 1.5rem;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.play-btn:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Info Table (#podcast-info-table) */
#podcast-info-table {
    margin: 2rem 0;
}

#podcast-info-table table {
    width: 100%;
    border-collapse: collapse;
}

#podcast-info-table td {
    padding: 0.7rem 0;
    vertical-align: baseline;
    word-break: break-word;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-900);
}

#podcast-info-table td:first-child {
    font-weight: 600;
    width: 160px;
    color: var(--gray-700);
    font-size: 0.9rem;
    white-space: nowrap;
    padding-right: 1rem;
}

#podcast-info-table td:first-child b,
#podcast-info-table td:first-child strong {
    color: var(--gray-700);
}

/* Ratings list inside info table */
#podcast-info-table ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#podcast-info-table li {
    padding: 0.2rem 0;
    font-weight: 500;
}

/* Info table — dark border */
#podcast-info-table td {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}


/* ── 7. Tabbed Content Panes ── */
/* The Blogger content uses .fap-tab-pane divs with data-title attributes.
   These are converted into tabs by JavaScript on the front end. */

.fap-tabs-container {
    width: 100%;
    margin-top: 1.5rem;
    font-family: var(--font-primary);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
}

.fap-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
    background: var(--gray-50);
}

.fap-tab-link {
    padding: 0.9rem 1.5rem;
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-800);
}

.fap-tab-link:hover {
    color: var(--gray-900);
    background: var(--gray-100);
}

.fap-tab-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: none;
}

.fap-tab-pane {
    display: none;
    padding: 1.75rem;
    color: var(--gray-900);
    line-height: 1.75;
}

.fap-tab-pane.active {
    display: block;
}

.fap-tab-pane h3 {
    color: var(--gray-900);
    font-family: var(--font-heading);
    margin-top: 0;
    margin-bottom: 1rem;
}

.fap-tab-pane p {
    color: var(--gray-900);
    line-height: 1.75;
}

.fap-tab-pane a {
    color: var(--primary);
    text-decoration: none;
}

.fap-tab-pane a:hover {
    text-decoration: underline;
}

/* Tabs — dark defaults */
.fap-tabs-container {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
}

.fap-tabs-nav {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.fap-tab-link {
    color: #888;
}

.fap-tab-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.03);
}


/* ── 8. Character Layout (inside tab pane) ── */
.character-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.character-list {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.character-list::-webkit-scrollbar {
    width: 5px;
}

.character-list::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.character-list::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

.character-list button {
    display: block;
    width: 100%;
    padding: 0.85rem 1.25rem;
    margin-bottom: 0.4rem;
    text-align: left;
    background: var(--gray-50);
    border: 1px solid var(--gray-300);
    border-left: 3px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-800);
    transition: all 0.2s ease;
}

.character-list button.active,
.character-list button:hover {
    background: var(--gray-75);
    color: var(--primary);
    font-weight: 600;
    border-left-color: var(--primary);
}

.character-details-pane {
    display: none;
}

.character-details-pane.active {
    display: block;
}

.character-details-pane h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.character-details-pane p {
    color: var(--gray-900);
    line-height: 1.7;
}

.va-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.va-grid h5 {
    font-size: 0.8rem;
    color: var(--gray-700);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.va-grid p {
    font-weight: 600;
    margin-top: 0;
    color: var(--gray-900);
}

@media (max-width: 800px) {
    .character-layout {
        grid-template-columns: 1fr;
    }

    .character-list {
        max-height: 200px;
    }
}

/* Character layout — dark defaults */
.character-list button {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--gray-700);
}

.character-list button.active,
.character-list button:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.va-grid {
    border-top-color: rgba(255, 255, 255, 0.08);
}


/* ── 9. Score Visualization ── */
.score-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    padding: 0.4rem 0;
}

.score-label {
    font-weight: 600;
    min-width: 80px;
    font-size: 0.9rem;
    color: var(--gray-900);
}

.score-dots {
    display: flex;
    gap: 5px;
}

.score-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gray-200);
    border: 1px solid var(--gray-300);
    transition: transform 0.2s ease, background 0.2s ease;
}

.score-dot.filled {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(230, 126, 34, 0.4);
}

.score-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
    min-width: 40px;
}

/* Score dots — dark defaults */
.score-dot {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}


/* ── 10. Platform Listen Links ── */
.platform-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.75rem 0 1rem;
}

.platform-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gray-100);
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.platform-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(230, 126, 34, 0.08);
}

.platform-link .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.dot-spotify {
    background: #1DB954;
}

.dot-apple {
    background: #fc3c44;
}

.dot-youtube {
    background: #ff0000;
}


/* ── 11. Episode Badge ── */
.episode-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}


/* ── 12. Accordion (Collapsible Sections) ── */
.fap-accordion-container {
    margin-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    padding-top: 1rem;
}

.fap-accordion-button {
    background: var(--gray-100);
    color: var(--gray-900);
    cursor: pointer;
    padding: 1rem;
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    text-align: left;
    outline: none;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fap-accordion-button:hover,
.fap-accordion-button.active {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.fap-accordion-button::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.fap-accordion-button.active::after {
    content: "−";
    transform: rotate(180deg);
}

.fap-accordion-content {
    padding: 0 1rem;
    background: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    border-radius: 0 0 10px 10px;
    margin-top: -1px;
}

.fap-accordion-content .inner-content {
    padding: 1.5rem 0;
    color: var(--gray-900);
}

/* Accordion — dark defaults */
.fap-accordion-container {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.fap-accordion-button {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.fap-accordion-button:hover,
.fap-accordion-button.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.fap-accordion-content {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
}


/* ── 13. Info Tag Pills ── */
.info-tag {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-900);
    padding: 0.3rem 0.7rem;
    margin: 0 0.4rem 0.4rem 0;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.info-tag:hover {
    background: rgba(230, 126, 34, 0.1);
    color: var(--primary);
    border-color: rgba(230, 126, 34, 0.3);
}

/* Info tags — dark defaults */
.info-tag {
    background: rgba(255, 255, 255, 0.06);
    color: var(--gray-700);
    border-color: rgba(255, 255, 255, 0.1);
}

.info-tag:hover {
    background: rgba(230, 126, 34, 0.15);
    border-color: rgba(230, 126, 34, 0.3);
}


/* ── 14. Kadence Post Grid / Archive Cards ── */
/* Style Kadence's built-in post blocks to match FAP brand */

.loop-entry .entry-content-wrap {
    background: var(--gray-75);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    overflow: hidden;
}

.loop-entry .entry-content-wrap:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.loop-entry .entry-title a {
    font-family: var(--font-heading);
    color: var(--gray-900);
    text-decoration: none;
}

.loop-entry .entry-title a:hover {
    color: var(--primary);
}

.loop-entry .entry-meta {
    font-size: 0.8rem;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ── 15. Single Post Styling ── */
.single .entry-content {
    font-size: 18px;
    line-height: 1.8;
}

.single .entry-content p {
    margin-bottom: 1.5rem;
}

.single .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.single .entry-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--gray-700);
}

.single .entry-content h2,
.single .entry-content h3,
.single .entry-content h4 {
    font-family: var(--font-heading);
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}


/* ── 16. Footer Overrides ── */
.site-footer {
    background-color: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    color: var(--gray-700);
}


/* ── 17. Buttons (Global) ── */
.wp-block-button__link,
.button,
button.primary,
input[type="submit"] {
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.wp-block-button__link:hover,
.button:hover,
button.primary:hover,
input[type="submit"]:hover {
    background-color: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Ghost / outline button */
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--primary);
    color: #fff;
}


/* ── 18. WooCommerce Brand Overrides ── */
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .cart .button,
.woocommerce .checkout-button {
    background-color: var(--primary) !important;
    color: #fff !important;
    border-radius: var(--border-radius) !important;
    font-weight: 600;
    transition: var(--transition);
}

.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background-color: var(--primary-700) !important;
}

/* WooCommerce price accent */
.woocommerce .price .amount {
    color: var(--primary);
    font-weight: 700;
}

/* Product cards */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-heading);
}


/* ── 19. Scroll Reveal Animation ── */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ── 20. Back to Top Button ── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.2s;
    z-index: 90;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* Shift up when sticky player is active */
body.player-active .back-to-top {
    bottom: 5.5rem;
}


/* ── 21. Responsive Video Embeds ── */
.BLOG_video_class,
.wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.BLOG_video_class>iframe,
.wp-block-embed__wrapper>iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ── 22. Sonaar Player Overrides ── */
/* Match the Sonaar sticky player bar to FAP brand colors */
.srp_player_boxed,
.iron-audioplayer {
    --iron-player-color: var(--primary) !important;
}

/* Sonaar progress bar */
.sonaar-player .seekbar-played,
.sonaar-player .seekbar-loaded {
    background-color: var(--primary) !important;
}

/* Sonaar play button */
.sonaar-player .play-btn-container {
    color: var(--primary) !important;
}


/* ── 23. Accessibility ── */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip link (if using Kadence's) */
.skip-link:focus {
    background: var(--primary);
    color: #fff;
}

@media (prefers-contrast: high) {
    :root {
        --gray-700: #000000;
        --gray-800: #000000;
    }
}


/* ── 24. Misc Kadence Class Overrides ── */
/* Kadence sidebar widgets */
.widget-area .widget {
    background-color: var(--gray-75);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    margin-bottom: 1rem;
}

/* Section divider */
.section-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 4rem auto;
    width: 50%;
}

/* Post labels / tags */
.entry-tags a {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-900);
    padding: 0.3rem 0.7rem;
    margin: 0 0.4rem 0.4rem 0;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.entry-tags a:hover {
    background: rgba(230, 126, 34, 0.1);
    color: var(--primary);
    border-color: rgba(230, 126, 34, 0.3);
}


/* ── 25. Homepage — Hero Section ── */
/* Ported from Blogger theme for the homepage hero layout */

.homepage-sections {
    display: grid;
    gap: 4rem;
}

.hero-section-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    line-height: 1.15;
    color: #E67E22;
    margin-bottom: 0.75rem;
}

.hero-title span {
    display: block;
    font-size: 1.5rem;
    color: var(--black);
    font-weight: 500;
    margin-top: 0.25rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.hero-description {
    margin-bottom: 2rem;
    line-height: 1.7;
    color: var(--black);
}

.hero-button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-button,
.fap-hero-btn {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 0.8rem 1.75rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.hero-button:hover,
.fap-hero-btn:hover {
    background-color: var(--primary-700);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 127, 0, 0.35);
}

.hero-button--ghost {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.hero-button--ghost:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero mascot image + glow */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 75%;
    background-color: #E67E22;
    border-radius: 50%;
    z-index: 0;
    filter: blur(70px);
    opacity: 0.6;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    transform: scaleX(-1);
    position: relative;
    z-index: 1;
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: scaleX(-1) translateY(0);
    }

    50% {
        transform: scaleX(-1) translateY(-12px);
    }
}

/* Hero responsive */
@media (max-width: 768px) {
    .hero-section-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
        margin-bottom: 2rem;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image img {
        max-width: 280px;
    }

    .hero-button-group {
        justify-content: center;
    }

    /* Homepage HTML hero (inline grid) */
    .fap-hero>div {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .fap-hero>div>div:last-child {
        order: -1;
    }

    .fap-hero>div>div:last-child img {
        max-width: 280px !important;
    }
}


/* ── 26. Homepage — Offer Cards ── */
.offer-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.offer-card {
    background: var(--gray-50);
    border-radius: var(--border-radius);
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(230, 126, 34, 0.12);
    border-color: rgba(230, 126, 34, 0.25);
}

.offer-card:hover::before {
    opacity: 1;
}

.offer-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border-radius: 12px;
}

.offer-card__icon img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    border-radius: 4px;
}

.offer-card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--gray-900);
}

.offer-card__desc {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.offer-card__cta {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.65rem 1.75rem;
    text-decoration: none;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    margin-top: auto;
}

.offer-card__cta:hover {
    background: var(--primary-700);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

/* Offer cards responsive */
@media (max-width: 768px) {
    .offer-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .offer-cards-grid {
        grid-template-columns: 1fr;
    }
}


/* ── 27. Homepage — Host Cards ── */
.hosts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.host-card {
    background: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.host-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.host-card__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gray-300);
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    border: 3px solid var(--primary);
}

.host-card__name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.host-card__bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-800);
}

@media (max-width: 600px) {
    .hosts-grid {
        grid-template-columns: 1fr;
    }
}


/* ── 28. Kadence Posts — Dark Theme Overrides ── */
/* Ensure Kadence's auto-generated post cards look right on the dark homepage */
.entry-content .loop-entry .entry-content-wrap {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

.entry-content .loop-entry .entry-title a {
    color: #fff;
}

.entry-content .loop-entry .entry-title a:hover {
    color: var(--primary);
}

.entry-content .loop-entry .entry-meta,
.entry-content .loop-entry .entry-summary {
    color: #a0a0a0;
}

.entry-content .loop-entry .entry-readmore a {
    color: var(--primary);
    font-weight: 600;
}


/* ── 29. Dark / Light Mode Toggle ── */
.fap-theme-toggle {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: opacity 0.3s, transform 0.3s, background 0.2s, bottom 0.3s;
    z-index: 91;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
}

.fap-theme-toggle:hover {
    background: var(--gray-200);
    transform: translateY(-2px);
}

/* Shift up when sticky player is active */
body.player-active .fap-theme-toggle {
    bottom: 9.5rem;
}

/* Icons swap on toggle */
.fap-theme-toggle .icon-sun {
    display: none;
}

.fap-theme-toggle .icon-moon {
    display: inline;
}

body.light-mode .fap-theme-toggle .icon-sun {
    display: inline;
}

body.light-mode .fap-theme-toggle .icon-moon {
    display: none;
}

/* Light mode overrides — site defaults to dark via Kadence */
body.light-mode {
    --white: #ffffff;
    --black: #000000;
    --gray-50: #fafafa;
    --gray-75: #f7f7f9;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-700: #333333;
    --gray-800: #1a1a1a;
    --gray-900: #000000;
}

body.light-mode .site-header,
body.light-mode .site-footer {
    background: #fff;
    color: #1a1a1a;
}

body.light-mode .fap-hero {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%) !important;
}

body.light-mode .fap-hero h1 {
    color: var(--primary) !important;
}

body.light-mode .fap-hero p {
    color: #333 !important;
}

body.light-mode .offer-card,
body.light-mode .host-card {
    background: #fff;
    border-color: #e0e0e0;
}

body.light-mode .offer-card__title,
body.light-mode .host-card__name {
    color: #1a1a1a;
}

body.light-mode .offer-card__desc,
body.light-mode .host-card__bio {
    color: #555;
}

body.light-mode .entry-content .loop-entry .entry-content-wrap {
    background: #fff;
    border-color: #e0e0e0;
    color: #1a1a1a;
}

body.light-mode .entry-content .loop-entry .entry-title a {
    color: #1a1a1a;
}

body.light-mode .entry-content .loop-entry .entry-meta,
body.light-mode .entry-content .loop-entry .entry-summary {
    color: #555;
}

/* Reduce glow in light mode */
body.light-mode .hero-image::before {
    opacity: 0.25;
}


/* ==========================================================================
   SECTIONS 30–36: Ported from Blogger Theme
   ========================================================================== */


/* ── 30. Homepage "Latest Episode" Card ── */
/* Two variants: the grid card (.post-card--podcast-v2) for listings,
   and the compact hero card (.latest-ep-hero) for the homepage spotlight. */

.post-card--podcast-v2 {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    background: var(--gray-300);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.post-card--podcast-v2:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.podcast-v2-card__image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.podcast-v2-card__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0 0 0.5rem 0;
}

.podcast-v2-card__title a {
    text-decoration: none;
    color: var(--gray-900);
}

.podcast-v2-card__title a:hover {
    color: var(--primary);
}

.podcast-v2-card__meta {
    font-size: 0.8rem;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.podcast-v2-card__button-group {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.podcast-v2-card__play-btn {
    display: inline-block;
    background-color: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.podcast-v2-card__play-btn:hover {
    background-color: var(--primary-700);
    color: #fff;
}

.podcast-v2-card__secondary-btn {
    display: inline-block;
    background-color: #748b9f;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.podcast-v2-card__secondary-btn:hover {
    background-color: var(--primary-700);
    color: #fff;
    transform: translateY(-1px);
}

/* Info toggle button for expandable details */
.info-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--gray-300);
    color: var(--gray-800);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    margin-top: 1rem;
}

.info-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.info-toggle-btn .toggle-arrow {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.info-toggle-btn.is-open .toggle-arrow {
    transform: rotate(180deg);
}

.podcast-v2-card__info-target {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.podcast-v2-card__info-target.is-open {
    max-height: 600px;
    opacity: 1;
}

.podcast-v2-card__info-target table {
    width: 100%;
    font-size: 0.875rem;
    border-collapse: collapse;
}

.podcast-v2-card__info-target td {
    padding: 0.4rem 0;
    vertical-align: top;
    color: var(--gray-800);
}

.podcast-v2-card__info-target td:first-child {
    font-weight: 600;
    color: var(--gray-900);
    padding-right: 1rem;
    white-space: nowrap;
    width: 120px;
}

.podcast-v2-card__info-target .info-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--accent-blue);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    text-decoration: underline;
    font-size: 0.8rem;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
    transition: var(--transition);
}

.podcast-v2-card__info-target .info-tag:hover {
    background-color: var(--primary-700);
    color: #fff;
}

@media (max-width: 768px) {
    .post-card--podcast-v2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .podcast-v2-card__image {
        max-width: 250px;
        margin: 0 auto;
    }
}

/* Latest Episode — Compact Hero Variant */
.homepage-latest-episode .post-card--podcast-v2 {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

.latest-ep-hero {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.latest-ep-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(230, 126, 34, 0.15);
    border-color: rgba(230, 126, 34, 0.3);
}

.latest-ep-hero__art {
    flex-shrink: 0;
    width: 240px;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    display: block;
    text-decoration: none;
}

.latest-ep-hero__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.latest-ep-hero__art:hover img {
    transform: scale(1.05);
}

.latest-ep-hero__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
}

.latest-ep-hero__info .episode-badge {
    align-self: flex-start;
}

.latest-ep-hero__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--gray-900);
    margin: 0;
}

.latest-ep-hero__date {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-700);
}

.latest-ep-hero__buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.latest-ep-hero__play {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    border: none;
}

.latest-ep-hero__play:hover {
    background: var(--primary-700);
    color: #fff;
    transform: translateY(-1px);
}

.latest-ep-hero__view {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.65rem 1.5rem;
    background: transparent;
    color: var(--gray-900);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.latest-ep-hero__view:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .latest-ep-hero {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .latest-ep-hero__art {
        width: 200px;
        height: 200px;
        margin: 0 auto;
    }

    .latest-ep-hero__info .episode-badge {
        align-self: center;
    }

    .latest-ep-hero__buttons {
        justify-content: center;
    }

    .latest-ep-hero__title {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .latest-ep-hero {
        padding: 1.25rem;
    }

    .latest-ep-hero__art {
        width: 180px;
        height: 180px;
    }

    .latest-ep-hero__title {
        font-size: 1.15rem;
    }

    .latest-ep-hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .latest-ep-hero__play,
    .latest-ep-hero__view {
        width: 100%;
        justify-content: center;
    }
}


/* ── 31. Custom Sticky Audio Player (Enhanced) ── */
/* Full-featured HTML5 player: progress bar, volume, speed, timestamp */

#sticky-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    font-family: var(--font-primary);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

#sticky-player.hidden {
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

#sticky-player:not(.hidden) {
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

/* ── Progress bar (top edge of player) ── */
.player-progress-wrap {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.player-progress-wrap:hover {
    height: 10px;
}

.player-progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    border-radius: 0 3px 3px 0;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ── Controls row ── */
.player-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
}

/* Play/pause button */
#player-toggle {
    background: var(--primary);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background 0.2s;
}

#player-toggle:hover {
    background: var(--primary-700);
}

/* Title + timestamp */
.player-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

#current-title {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#player-time {
    font-size: 0.75rem;
    opacity: 0.7;
    font-variant-numeric: tabular-nums;
}

/* Volume control */
.player-volume {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.player-volume label {
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.8;
}

#player-volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

#player-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

#player-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
}

/* Speed selector */
#player-speed {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.3rem 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    font-family: var(--font-primary);
}

#player-speed:hover {
    border-color: var(--primary);
}

#player-speed option {
    background: #1a1a1a;
    color: #fff;
}

/* Close button */
#player-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.5;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

#player-close:hover {
    opacity: 1;
}

/* Hidden audio element */
#global-player {
    display: none;
}

/* Leave room for the player bar */
body.player-active {
    padding-bottom: 4.5rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    #current-title {
        font-size: 0.8rem;
    }

    .player-volume {
        display: none;
    }

    #player-speed {
        display: none;
    }

    .player-controls {
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 480px) {
    #player-time {
        display: none;
    }
}


/* ── 32. Episode Pager (Prev / Next) ── */

#episode-pager-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.episode-pager-link {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    background-color: var(--gray-75);
    color: var(--gray-800);
    min-width: 0;
}

.episode-pager-link:not(.disabled):hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.episode-pager-link.next {
    text-align: right;
}

.pager-direction {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.pager-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Dark defaults for episode pager */
.episode-pager-link {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--gray-900);
}

@media (max-width: 600px) {
    #episode-pager-container {
        grid-template-columns: 1fr;
    }
}


/* ── 33. In-Post Promo Grid ("Deals for You") — Podcast Only ── */
/* Only renders when the HTML is present in podcast post content */

.post-promo-section {
    padding: 3rem 1rem;
    margin-top: 3rem;
    border-top: 2px solid var(--gray-200);
    text-align: center;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.post-promo-section h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    text-align: center;
}

.post-promo-section>p {
    color: var(--gray-700);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    text-align: center;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.promo-card {
    background: var(--gray-50);
    border-radius: 4px;
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.promo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(230, 126, 34, 0.12);
    border-color: rgba(230, 126, 34, 0.25);
}

.promo-card:hover::before {
    opacity: 1;
}

.promo-card__logo {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border-radius: 12px;
}

.promo-card__logo img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
}

.promo-card__logo .emoji-icon {
    font-size: 2.5rem;
}

.promo-card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--gray-900);
    margin-bottom: 0.6rem;
}

.promo-card__desc {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.65;
    flex-grow: 1;
}

.promo-card__cta {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.65rem 1.75rem;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    margin-top: auto;
}

.promo-card__cta:hover {
    background: var(--primary-700);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

/* Dark defaults for promo section */
.post-promo-section {
    border-top-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1024px) {
    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .promo-grid {
        grid-template-columns: 1fr;
    }
}


/* ── 34. In-Post Support Banner — Podcast Only ── */

.support-banner {
    background: var(--gray-75);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.support-banner .support-text {
    flex: 1;
}

.support-banner h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.4rem;
    color: var(--gray-900);
}

.support-banner p {
    color: var(--gray-700);
    font-size: 0.9rem;
}

.support-banner ul {
    list-style: none;
    margin: 0.75rem 0 0 0;
    padding: 0;
}

.support-banner li {
    color: var(--gray-700);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.patreon-btn {
    display: inline-block;
    background: #f96854;
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.patreon-btn:hover {
    background: #e5533d;
    color: #fff;
    transform: translateY(-2px);
}

.support-subtitle {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    margin-top: 2rem;
}

.support-button {
    display: inline-block;
    background-color: #f96854;
    color: #fff;
    padding: 0.8rem 1.75rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.support-button:hover {
    background-color: #d84a38;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .support-banner {
        flex-direction: column;
        text-align: center;
    }
}


/* ── 35. Follow Us Footer Icons ── */
/* Targets Kadence footer widgets or custom HTML widgets */

.footer-social {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icons img {
    height: 40px;
    transition: var(--transition);
    width: auto;
    display: block;
}

.social-icons a:hover img {
    opacity: 0.8;
    transform: scale(1.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
    overflow-x: hidden;
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--gray-800);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-link-separator {
    margin: 0 0.75rem;
    color: var(--gray-300);
}

.footer-copyright {
    font-size: 0.875rem;
}


/* ── 36. Homepage Section Wrappers ── */

.homepage-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--gray-900);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-700);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Post card grid used in homepage recent posts */
.post-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

/* Blog card within homepage recent posts */
.blog-v2-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0 0 0.25rem 0;
}

.blog-v2-card__title a {
    text-decoration: none;
    color: var(--gray-900);
}

.blog-v2-card__title a:hover {
    color: var(--primary);
}

.blog-v2-card__meta {
    font-size: 0.8rem;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.blog-v2-card__snippet {
    color: var(--gray-800);
    line-height: 1.6;
}

/* Homepage recent posts — square image + title only */
.homepage-recent-posts .post-card--blog-v2 {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 0;
}

.homepage-recent-posts .blog-v2-card__image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    height: 0;
}

.homepage-recent-posts .blog-v2-card__image a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.homepage-recent-posts .blog-v2-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.homepage-recent-posts .blog-v2-card__content {
    padding: 1rem;
    text-align: center;
    background: var(--gray-75);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.homepage-recent-posts .blog-v2-card__meta,
.homepage-recent-posts .blog-v2-card__snippet {
    display: none;
}

.homepage-recent-posts .blog-v2-card__title {
    font-size: 1rem;
}

.homepage-recent-posts .blog-v2-card__image img.is-default-image {
    object-fit: contain;
    background: var(--gray-100);
}

/* View All button */
.view-all-container {
    text-align: center;
    margin-top: 2.5rem;
}

.view-all-button {
    display: inline-block;
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.8rem 1.75rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-all-button:hover {
    background-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Info / About sections */
.info-sections-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.info-section {
    text-align: center;
}

.info-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.hosts-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hosts-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-700);
}

/* Single podcast post container */
.single-podcast-post {
    background-color: var(--gray-75);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
}

.single-podcast-post .post-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.single-podcast-post .post-meta {
    color: var(--gray-700);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
}

.single-podcast-post .post-meta .post-author {
    display: none;
}

.single-podcast-post .episode-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

/* Homepage sections responsive */
@media (max-width: 1024px) {
    .post-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .homepage-sections {
        display: block;
    }

    .post-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .post-card-grid {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════
   SECTION 37 — Homepage Hero Section
   ═══════════════════════════════════════════════════════ */

.fap-hero {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%) !important;
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
    /* Break out of Kadence content container (uses Kadence's own --global-vw) */
    margin-left: calc(50% - var(--global-vw, 100vw) / 2) !important;
    margin-right: calc(50% - var(--global-vw, 100vw) / 2) !important;
    max-width: var(--global-vw, 100vw) !important;
    width: var(--global-vw, 100vw) !important;
    box-sizing: border-box;
    clear: both;
}

/* Override Kadence boxed content wrapper background for hero */
.content-style-boxed .entry-content .fap-hero,
.entry-content-wrap .fap-hero {
    margin-left: calc(50% - var(--global-vw, 100vw) / 2) !important;
    margin-right: calc(50% - var(--global-vw, 100vw) / 2) !important;
    width: var(--global-vw, 100vw) !important;
    max-width: var(--global-vw, 100vw) !important;
}

.fap-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.fap-hero__title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.fap-hero__subtitle {
    display: block;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 600;
    margin-top: 0.5rem;
}

.fap-hero__tagline {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.fap-hero__desc {
    font-size: 1rem;
    color: #a0a0a0;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.fap-hero__btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 14px 32px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.fap-hero__btn:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.fap-hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fap-hero__glow {
    position: absolute;
    width: 90%;
    height: 75%;
    background-color: #E67E22;
    border-radius: 50%;
    z-index: 0;
    filter: blur(70px);
    opacity: 0.6;
}

.fap-hero__mascot {
    max-width: 450px;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    transform: scaleX(-1);
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: scaleX(-1) translateY(0);
    }

    50% {
        transform: scaleX(-1) translateY(-20px);
    }
}

@media (max-width: 768px) {
    .fap-hero {
        padding: 50px 5%;
    }

    .fap-hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .fap-hero__title {
        font-size: 2rem;
    }

    .fap-hero__subtitle {
        font-size: 1.1rem;
    }

    .fap-hero__mascot {
        max-width: 280px;
    }

    .fap-hero__visual {
        order: -1;
        margin-bottom: 1rem;
    }
}


/* ═══════════════════════════════════════════════════════
   SECTION 38 — Offer Cards (Homepage "Special Offers")
   ═══════════════════════════════════════════════════════ */

.offer-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

/* Full-width wrapper for offer section (breaks out of Kadence container) */
.fap-offers-wrap {
    margin-left: calc(50% - var(--global-vw, 100vw) / 2) !important;
    margin-right: calc(50% - var(--global-vw, 100vw) / 2) !important;
    max-width: var(--global-vw, 100vw) !important;
    width: var(--global-vw, 100vw) !important;
    background: var(--gray-50);
    padding: 40px 0;
    box-sizing: border-box;
}

.content-style-boxed .entry-content .fap-offers-wrap,
.entry-content-wrap .fap-offers-wrap {
    margin-left: calc(50% - var(--global-vw, 100vw) / 2) !important;
    margin-right: calc(50% - var(--global-vw, 100vw) / 2) !important;
    width: var(--global-vw, 100vw) !important;
    max-width: var(--global-vw, 100vw) !important;
}

.offer-card {
    background: var(--gray-200);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.offer-card__logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 128, 128, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.offer-card__logo img {
    max-width: 80px;
    height: auto;
}

.offer-card__logo .emoji-icon {
    font-size: 3rem;
}

.offer-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.offer-card__desc {
    color: var(--gray-700);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.offer-card__desc strong {
    color: var(--primary);
}

.offer-card__cta {
    display: inline-block;
    background: var(--primary);
    color: var(--gray-900);
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.offer-card__cta:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .offer-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .offer-cards-grid {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════
   SECTION 39 — Host Cards ("Meet Your Hosts")
   ═══════════════════════════════════════════════════════ */

.host-card {
    background: var(--gray-200);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: var(--transition);
}

.host-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.host-card__avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 auto 1.25rem;
    background: rgba(255, 127, 0, 0.08);
}

.host-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.host-card__bio {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.65;
}


/* ── Light-Mode Overrides for Sections 30–36 ── */
/* These classes have dark-mode defaults set elsewhere (inline or templates).
   Variable inversion covers most cases, but these ensure correct
   backgrounds/borders for components that use hardcoded dark values. */

body.light-mode .post-card--podcast-v2 {
    background: var(--gray-100);
}

body.light-mode .latest-ep-hero {
    background: rgba(0, 0, 0, 0.02);
    border-color: var(--gray-200);
}

body.light-mode .latest-ep-hero__view {
    border-color: var(--gray-300);
    color: var(--gray-800);
}

body.light-mode .podcast-v2-card__info-target .info-tag {
    background-color: var(--gray-100);
}

body.light-mode .episode-pager-link {
    background-color: var(--gray-50);
    border-color: var(--gray-200);
    color: var(--gray-800);
}

body.light-mode .post-promo-section {
    border-top-color: var(--gray-200);
}

body.light-mode .promo-card {
    background: var(--white);
    border-color: var(--gray-200);
}

body.light-mode .promo-card__title {
    color: var(--gray-900);
}

body.light-mode .promo-card__desc {
    color: var(--gray-700);
}

body.light-mode .support-banner {
    background: var(--gray-75);
    border-color: var(--gray-200);
}

body.light-mode .footer-heading {
    color: var(--gray-900);
}

body.light-mode .footer-links a {
    color: var(--gray-800);
}

body.light-mode .homepage-recent-posts .blog-v2-card__content {
    background: var(--gray-75);
}

body.light-mode .single-podcast-post {
    background-color: var(--gray-75);
    border-color: var(--gray-200);
}

/* Sec 37 — Hero (only overrides that differ from auto-inverted variables) */
body.light-mode .fap-hero__title {
    color: var(--primary-700);
}

/* Sec 38–39 — Offer cards & host cards now auto-adapt via
   variable inversion in body.light-mode (no per-selector overrides needed) */