:root {
    /* Colors - 'Marina & Mist' Theme (Day) */
    /* Cool, Professional, Airy */

    /* Primary / Accent */
    --primary-color: #154c79;
    /* Marina Dark Blue */
    --primary-dark: #0c2e4e;
    /* Deep Midnight Blue */
    --accent-color: #154c79;

    /* Backgrounds - Cool Mist Grey */
    --bg-primary: #F3F4F6;
    /* Cool Light Grey (Mist) */
    --bg-secondary: #E5E7EB;
    /* Grey 200 */
    --bg-card: #FFFFFF;
    /* White */

    /* Special Sections (Hero/Footer) */
    --hero-bg: #154c79;
    /* Marina Blue Background */
    --hero-text: #FFFFFF;
    /* White text on Blue */
    --footer-bg: #154c79;
    /* Match Hero */
    --footer-text: #FFFFFF;

    /* Badge Colors */
    --badge-bg: rgba(255, 255, 255, 0.2);
    /* Transparent Grey for Day */
    --badge-text: #FFFFFF;

    /* Text - Cool Grey/Black */
    --text-primary: #111827;
    /* Grey 900 (Almost Black) */
    --text-secondary: #4B5563;
    /* Grey 600 */
    --text-light: #9CA3AF;
    /* Grey 400 */
    --border-color: #D1D5DB;
    /* Grey 300 */

    /* Typography */
    --font-primary: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing & Radius */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    /* Colors - 'Marina & Mist' Theme (Night) */
    /* Deep, Steel, Midnight */

    /* Primary / Accent - Lighter for visibility */
    --primary-color: #38BDF8;
    /* Sky Blue 400 */
    --primary-dark: #0EA5E9;
    /* Sky Blue 500 */
    --accent-color: #38BDF8;

    /* Backgrounds - Deep Steel/Charcoal */
    --bg-primary: #111827;
    /* Gray 900 */
    --bg-secondary: #374151;
    /* Gray 700 - Lighter than card for contrast (pills, etc) */
    --bg-card: #1F2937;
    /* Dark Card */

    /* Special Sections (Hero/Footer) */
    --hero-bg: #0c2e4e;
    /* Deep Midnight Blue (Darker than Day Marina) */
    --hero-text: #F3F4F6;
    /* Grey 100 */
    --footer-bg: #0c2e4e;
    /* Match Hero */
    --footer-text: #D1D5DB;
    /* Grey 300 */

    /* Badge Colors */
    --badge-bg: var(--primary-color);
    --badge-text: var(--bg-primary);

    /* Text */
    --text-primary: #F9FAFB;
    /* Grey 50 */
    --text-secondary: #9CA3AF;
    /* Grey 400 */
    --text-light: #6B7280;
    /* Grey 500 */
    --border-color: #4B5563;
    /* Grey 600 - Visible border to define cards */

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.5);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.theme-toggle:hover {
    color: var(--primary-color);
    background-color: var(--bg-secondary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Modern Select Dropdowns */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--bg-card);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23757575' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

select:hover {
    border-color: var(--primary-dark);
}

select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--border-color);
}

select option {
    font-weight: 400;
    padding: 0.5rem;
}

/* Label styling */
label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 1000;
    padding-top: 100px;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-menu.active {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    width: 100%;
}

.mobile-menu a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem;
    transition: color 0.3s;
    font-family: var(--font-heading);
}

.mobile-menu a:hover {
    color: var(--primary-color);
}

/* Responsive Mobile Styles */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    .container {
        padding: 0 1rem;
    }

    /* Hero section - stack vertically on mobile */
    .hero {
        padding: 2rem 0 !important;
    }

    .hero>.container>div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .hero h1 {
        font-size: 2rem !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    /* Controls bar - stack vertically */
    .episodes-section>.container>div:first-of-type>div {
        grid-template-columns: 1fr !important;
    }

    /* Episode cards - adjust for mobile */
    .episode-item>div:first-child>div {
        grid-template-columns: 80px 1fr !important;
        gap: 1rem !important;
    }

    .episode-item img {
        width: 80px !important;
        height: 80px !important;
    }

    /* Platform buttons - wrap better */
    .episode-item button,
    .episode-item a {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
    }

    /* Pagination - smaller on mobile */
    #pagination button {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.875rem !important;
    }

    /* Header - simplify on mobile */
    #siteHeader h1 {
        font-size: 1.25rem !important;
    }

    #siteHeader img {
        height: 35px !important;
    }

    #siteHeader nav {
        gap: 1rem !important;
        font-size: 0.875rem !important;
    }

    /* Newsletter section */
    .newsletter-form {
        flex-direction: column !important;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100% !important;
    }



    /* Footer navigation */
    #footerNav {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem !important;
    }

    #siteHeader h1 {
        font-size: 1.1rem !important;
    }

    .episode-item h3 {
        font-size: 1rem !important;
    }
}

/* Hero Section */
.hero {
    padding: var(--spacing-2xl) 0;
    /* Gradient: Dynamic Theme Based */
    background: var(--hero-bg);
    color: var(--hero-text);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.hero-left {
    animation: fadeInUp 0.8s ease-out;
}

.badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}

.h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--hero-text);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--primary-color);
    /* In day mode this is dark blue on dark blue which is bad.
       Fix: use a lighter accent or just hero text with opacity. 
       Let's use a specific color or just white with opacity. */
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.hero-right {
    position: relative;
    animation: fadeIn 1s ease-out;
}

.featured-episode {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

.add-artwork-btn {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: all 0.3s ease;
}

.add-artwork-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

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

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

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

/* Audio Player */
.audio-player {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    animation: slideUp 0.6s ease-out;
}

.player-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    min-width: 300px;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.play-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.play-btn svg {
    width: 24px;
    height: 24px;
}

.player-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.player-duration {
    color: var(--text-light);
    font-size: 0.9rem;
}

.player-controls {
    flex: 1;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: var(--spacing-xs);
}

.progress {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Episodes Section */
.episodes-section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-size: 1.1rem;
}

/* Filters */
.filters {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Episodes Grid */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

/* Redesigned Episode Card */


.episode-description-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-description-text.expanded {
    line-clamp: unset;
    -webkit-line-clamp: unset;
}

.see-more-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 0.25rem;
    font-family: var(--font-primary);
}

.see-more-btn:hover {
    text-decoration: underline;
}

.episode-footer-new {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.episode-platforms-new {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.platform-icon-link {
    display: inline-flex;
    /* Changed from inline-block to remove baseline gap */
    align-items: center;
    color: var(--text-secondary);
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}

.platform-icon-link:hover {
    transform: translateY(-2px);
}

.platform-icon-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.2s ease;
}

.platform-icon-img:hover,
a:hover .platform-icon-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.go-to-page-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.go-to-page-link:hover {
    color: var(--primary-color);
}

.episode-duration-new {
    font-size: 0.9rem;
    color: var(--text-light);
}

@media (max-width: 600px) {
    .episode-card-new {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .episode-image-container {
        width: 100%;
        height: 200px;
    }

    .episode-header-new {
        flex-direction: column;
        gap: 0.5rem;
    }

    .episode-date-new {
        margin-left: 0;
    }

    .episode-footer-new {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .episode-duration-new {
        align-self: flex-end;
    }
}

.episode-meta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.85rem;
    color: var(--text-light);
}

.episode-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Podcast Platforms */
.episode-actions-stacked {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.listen-on-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.listen-on-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.episode-platforms-list {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.go-to-page-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Space between logos and link if they were on same line, but here they are stacked */
}

/* Adjust platform icons if needed */
.platform-icon-link img,
.platform-icon-link svg {
    width: 24px;
    height: 24px;
    color: #757575;
    /* Default color for SVGs */
    transition: color 0.2s;
}

.platform-icon-link:hover svg {
    color: var(--primary-color);
}

.podcast-platforms {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.platform-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.platform-icons {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.platform-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: var(--primary-light);
    color: var(--primary-dark);
    border: 1px solid var(--primary-color);
}

.platform-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.episode-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.action-btn {
    flex: 1;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
}

/* Newsletter Section */
.newsletter-section {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-icon {
    margin-bottom: var(--spacing-md);
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.newsletter-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    outline: none;
}

.newsletter-form .btn-primary {
    background: white;
    color: var(--primary-color);
}

.newsletter-form .btn-primary:hover {
    background: var(--bg-primary);
}

.newsletter-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    font-weight: 500;
}

.newsletter-message.success {
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-message.error {
    background: rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--spacing-lg) 0;
    text-align: center;
}

/* Loading State */
.loading {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-light);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .audio-player {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .player-info {
        width: 100%;
    }

    .episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .newsletter-title {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Platform SVG Icons */
.platform-svg {
    width: 24px;
    height: 24px;
    color: #757575;
    transition: all 0.3s ease;
}

.platform-svg:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.platform-svg.spotify:hover {
    color: #1DB954;
}

.platform-svg.apple:hover {
    color: #000000;
}

.platform-svg.youtube:hover {
    color: #FF0000;
}

.platform-svg.google:hover {
    color: #4285F4;
}

/* Episode Detail Page Styles - Player Card Layout */
.episode-detail-section {
    padding: 4rem 0;
    background: #FAFAFA;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.episode-player-card {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: none;
    display: grid;
    grid-template-columns: 250px 1fr;
    overflow: hidden;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 1rem auto;
    min-height: 250px;
    min-width: 100%;
}

.episode-card-image {
    width: 250px;
    /* Increased width slightly */
    height: 250px;
    /* Fixed height to match width for square aspect ratio */
    flex-shrink: 0;
    position: relative;
    border-radius: 12px;
    /* Adding radius since container overflow might not clip now */
}

.episode-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.episode-card-content {
    padding: 1.5rem 2rem 1.5rem 2.5rem;
    /* Top, Right, Bottom, Left padding */
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    width: 100%;
    text-align: left;
    /* Enforce left align */
}

.prev-episode-label {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.prev-episode-label:hover {
    text-decoration: underline;
}

.episode-card-title {
    font-size: 2rem;
    /* Standardized size */
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.episode-card-meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.player-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.play-listen-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.play-button-small {
    width: 42px;
    height: 42px;
    background: #8C9EFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    border: none;
    color: white;
    flex-shrink: 0;
}

.play-button-small:hover {
    transform: scale(1.05);
    background: #7986CB;
}

.play-button-small svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-left: 3px;
}

.listen-on-group-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #E0E0E0;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    /* Pill shape */
}

.listen-on-label-inline {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1;
    /* Force line-height to match icon height logic */
    display: flex;
    align-items: center;
}

.platform-icons-inline {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #757575;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.share-button:hover {
    color: #212121;
}

.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0;
    /* Remove top margin */
}

#currentTime,
#totalDuration {
    font-size: 0.85rem;
    color: #757575;
    font-variant-numeric: tabular-nums;
    min-width: 40px;
}

/* Custom Progress Bar */
input[type=range] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
    height: 4px;
    border-radius: 2px;
}

input[type=range]:focus {
    outline: none;
}

/* Webkit (Chrome, Safari) */
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #E0E0E0;
    border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -4px;
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Firefox */
input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    background: #E0E0E0;
    border-radius: 2px;
}

input[type=range]::-moz-range-thumb {
    height: 12px;
    width: 12px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.episode-description-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Global Description Text */
.episode-description-text {
    color: #616161;
    line-height: 1.8;
    font-size: 0.8rem;
    font-weight: 400;
}

/* Specific Override for Episode Detail Page */
#episodeLayout .episode-description-text {
    font-size: 1rem;
}

/* Homepage List View Description: Smaller Size & Truncated */
.episode-card-new .episode-description-text {
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

/* Expanded state for Homepage List */
.episode-card-new .episode-description-text.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* WYSIWYG Content Styles */
.episode-description-text h1,
.episode-description-text h2,
.episode-description-text h3,
.episode-description-text h4,
.episode-description-text h5,
.episode-description-text h6 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.episode-description-text h1 {
    font-size: 1.75rem;
}

.episode-description-text h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.episode-description-text h3 {
    font-size: 1.25rem;
}

.episode-description-text h4 {
    font-size: 1.1rem;
}

.episode-description-text p {
    margin-bottom: 1rem;
}

.episode-description-text ul,
.episode-description-text ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.episode-description-text li {
    margin-bottom: 0.25rem;
}

.episode-description-text blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
    color: var(--text-secondary);
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 0 4px 4px 0;
}

.episode-description-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.episode-description-text strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 800px) {
    .episode-player-card {
        grid-template-columns: 1fr;
        max-width: 500px;
        /* Limit width on mobile */
    }

    .episode-card-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        /* Maintain square on mobile */
    }

    .episode-card-content {
        padding: 1.5rem;
    }

    .episode-card-title {
        font-size: 1.6rem;
    }

    .player-controls-row {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .share-button {
        align-self: center;
    }

    .share-text {
        display: none;
    }
}

/* Latest Episode Card - Modern Redesign */
.latest-episode-modern {
    display: flex;
    background-color: transparent;
    /* Removed gray background */
    border-radius: 24px;
    /* Large rounded corners */
    overflow: hidden;
    min-height: 400px;
    box-shadow: none;
    /* Removed shadow for cleaner look */
}

.latest-episode-image-wrapper {
    flex: 0 0 45%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.latest-episode-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.latest-episode-image-wrapper:hover .latest-episode-image {
    transform: scale(1.05);
}

.play-button-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: #2962FF;
    /* Bright Blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(41, 98, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
}

.play-button-large svg {
    width: 32px;
    height: 32px;
    fill: white;
    margin-left: 4px;
    /* Optical adjustment */
}

.latest-episode-image-wrapper:hover .play-button-large {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #1E88E5;
}

.latest-episode-content {
    flex: 1;
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

/* Standardized Content Card (Matches "Exact Card" Design) */
.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    /* Large rounded corners */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
    /* Horizontal layout by default */
    align-items: stretch;
    gap: 1.5rem;
    padding: 1rem;
    /* Uniform padding */
    height: 100%;
    min-height: 180px;
    /* Ensure sufficient height */
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.content-card-image-container {
    width: 180px;
    height: 180px;
    /* Force square */
    border-radius: 12px;
    /* Make image a rounded square */
    /* Fixed width for image part */
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.content-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.content-card:hover .content-card-image {
    transform: scale(1.05);
}

.content-card-body {
    flex: 1;
    padding: 0;
    /* padding removed to minimize space, relying on parent padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Category Pill */
.content-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Move date to right */
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.content-card-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    font-family: var(--font-primary);
}

.content-card-date {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    font-weight: 500;
    font-family: var(--font-primary);
}

/* Title */
.content-card-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    /* Reduced by 50% from 0.75rem */
    line-height: 1.3;
    transition: color 0.2s;
    cursor: pointer;
}

.content-card-title:hover {
    color: var(--primary-color);
}

/* Excerpt */
.content-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-family: var(--font-primary);
    margin-bottom: 0.625rem;
    /* Reduced by 50% from 1.25rem */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer / Author */
.content-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-card-author-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    object-fit: cover;
}

.content-card-author-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Play Button Overlay (for Episodes) */
.play-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.content-card:hover .play-overlay-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Duration Overlay */
.duration-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font-primary);
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    z-index: 2;
}

.duration-overlay svg {
    width: 12px;
    height: 12px;
    stroke-width: 2.5;
}

/* Responsive */

/* Responsive adjustments removed to maintain card consistency */
@media (max-width: 768px) {
    .content-card {
        flex-direction: column;
        height: auto;
        align-items: flex-start;
        gap: 1rem;
    }

    .content-card-image-container {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        /* Widescreen for mobile */
        margin-bottom: 0;
    }

    .content-card-header {
        margin-top: 0.5rem;
    }
}

/* Theme-aware components replacing inline styles */

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--badge-bg);
    /* Theme aware background */
    color: var(--badge-text);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.pagination-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 400;
    transition: all 0.3s ease;
}

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

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    font-weight: 600;
}

.status-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.status-message.error {
    color: var(--primary-color);
}

.status-message.success {
    color: #4CAF50;
}


.latest-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    /* Large title */
    font-weight: 700;
    line-height: 1.1;
    color: #1A1A1A;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.latest-title:hover {
    color: #2962FF;
}

.latest-description {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    color: #666666;
    /* Medium gray text */
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 90%;
}

.latest-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    color: #888888;
    font-weight: 500;
}

.latest-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot-separator {
    width: 6px;
    height: 6px;
    background-color: #AAAAAA;
    border-radius: 50%;
}

@media (max-width: 900px) {
    .latest-episode-modern {
        flex-direction: column;
        min-height: auto;
    }

    .latest-episode-image-wrapper {
        height: 300px;
        width: 100%;
    }

    .latest-episode-content {
        padding: 2rem;
    }

    .latest-title {
        font-size: 2rem;
    }
}

/* =========================================
   Recent/Latest Episode Card Styles
   ========================================= */
/* =========================================
   Recent/Latest Episode Card Styles (Grid Layout)
   ========================================= */
#episodesList {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    #episodesList {
        grid-template-columns: 1fr;
    }
}

.episode-card-new {
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    height: 100%;
    /* Full height of grid cell */
}

.episode-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.episode-image-container {
    width: 150px;
    height: 150px;
    min-width: 150px;
    /* Prevent shrinking */
    aspect-ratio: 1 / 1 !important;
    /* Force square aspect ratio */
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.episode-image-new {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.episode-card-new:hover .episode-image-new {
    transform: scale(1.05);
}

.episode-content-new {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    /* Take remaining height */
}

.episode-header-new {
    margin-bottom: 0.75rem;
}

.episode-title-new {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1.4;
    font-family: var(--font-primary);
}

.episode-date-new {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.episode-description-wrapper {
    flex: 1;
    /* Push footer to bottom */
    margin-bottom: 1.5rem;
}

.episode-description-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limit lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.see-more-btn {
    display: none;
    /* Hide see more for grid view cleanliness */
}

.episode-footer-new {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(233, 30, 99, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.episode-image-container:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-overlay svg {
    width: 20px;
    height: 20px;
    fill: white;
    margin-left: 2px;
}



.recent-episode-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.recent-card-image-wrapper {
    width: 120px;
    height: 120px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-play-overlay {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    /* Dynamic Theme Color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.recent-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-width: 0;
}

.recent-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.recent-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.recent-see-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.recent-card-date {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Mobile Responsiveness for Card */
@media (max-width: 600px) {
    .recent-episode-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
    }

    .recent-card-image-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        margin-bottom: 1rem;
    }

    .recent-play-overlay {
        bottom: -15px;
        right: 10px;
    }

    .recent-card-date {
        position: relative;
        margin-bottom: 0.5rem;
        display: block;
        text-align: right;
        width: 100%;
    }
}


/* =========================================
   Redesigned Episode Page (Page-Wide Desc)
   ========================================= */

#episodeLayout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    /* Space between player and description */
    padding-bottom: 4rem;
}

/* Hero Section (Player) */
.episode-hero-section {
    width: 100%;
    /* max-width: 1000px; - Removed to align with page container */
    margin: 0 auto;
}

/* Content Section (Description) */
.episode-content-section {
    width: 100%;
    /* max-width: 1000px; - Removed to match footer alignment */
    margin: 0 auto;
}

.episode-description-text {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    /* Slightly larger for readability */
    line-height: 1.8;
    color: var(--text-primary);
    /* Remove line-clamp or truncation */
    display: block;
    overflow: visible;
}

.episode-description-text p {
    margin-bottom: 1.5rem;
}

/* Footer Navigation Layout */
.episode-footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto 0;
}

.nav-widget {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--text-light);
}

.nav-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.sidebar-card-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Footer */
footer,
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

#copyrightText,
.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.site-footer a:hover {
    color: white !important;
    text-decoration: underline;
}

.sidebar-thumb {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.sidebar-cta {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .episode-footer-nav {
        grid-template-columns: 1fr;
    }
}

.episode-nav-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.5rem;
}

.nav-episode-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-color);
}

.nav-episode-link:hover {
    text-decoration: underline;
}

.nav-episode-link.prev-link {
    text-align: left;
}

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

/* Unified Content Toggle */
.unified-header h2 {
    font-family: var(--font-heading);
}

.toggle-container {
    background: #F3F4F6;
    padding: 0.5rem;
    border-radius: 50px;
    display: inline-flex !important;
    gap: 0.5rem;
    margin-bottom: 0;
}

.content-toggle-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
}

.content-toggle-btn.active {
    background: var(--primary-color);
    color: var(--bg-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.content-toggle-btn:hover:not(.active) {
    background: white;
    color: var(--text-primary);
}

/* Category Pills */
.category-pills {
    margin-top: 2rem;
}

.category-pill {
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.category-pill:hover {
    color: var(--primary-color);
    background: var(--bg-primary);
}

.category-pill.active {
    background: var(--primary-color);
    /* Site primary color */
    color: white;
    font-weight: 600;
}

/* Article Grid Adjustments */
#featuredArticlesList {
    margin-top: 1rem;
}

/* Unified Article Card Styles */
.article-card-new {
    display: flex;
    flex-direction: row;
    /* Horizontal Layout */
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

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

.article-image-container {
    width: 150px;
    height: 150px;
    min-width: 150px;
    /* Prevent shrinking */
    aspect-ratio: 1 / 1 !important;
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card-new:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.4;
    font-weight: 700;
}

.article-snippet {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.8rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
}

/* Mobile Spacing Optimization */
@media (max-width: 768px) {
    .category-pills {
        margin-top: 1rem;
        /* Reduced from 2rem on mobile */
    }
}

/* Latest Episode Hero Card */
.latest-episode-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    min-height: 200px;
    border: 1px solid var(--border-color);
    transform: scale(1.05);
    margin: 1rem 0;
    width: 95%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-episode-image-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 190px;
    height: 190px;
    cursor: pointer;
}

.latest-episode-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.latest-episode-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

/* Mobile Responsive Adjustments for Hero Card */
@media (max-width: 768px) {
    .latest-episode-card {
        flex-direction: column;
        height: auto;
        min-height: auto;
        width: 100%;
        transform: none;
        /* Disable scale on mobile to prevent overflow */
        margin: 1rem 0;
        gap: 0;
        padding: 1rem;
        /* Uniform padding for visual balance (1, 2, 3 equal) */
    }

    .latest-episode-content {
        padding: 0 !important;
        margin: 0 !important;
        margin-top: 1rem !important;
        /* Compact space above text */
        width: 100%;
    }

    .latest-episode-content h3,
    .latest-episode-content p,
    .latest-episode-content>div {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .latest-episode-image-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        /* Widescreen for mobile or keep square? User image suggests vertical stack. Let's try 1:1 or 16:9. 1:1 might be too tall. Let's go 100% width but maybe limit height or keep aspect ratio. */
        height: 200px;
        /* Fixed height for mobile looks better usually, or aspect ratio */
    }

    .latest-episode-image {
        /* object-fit cover is already set */
    }

    .hero-play-btn {
        width: 60px !important;
        /* Slightly larger touch target */
        height: 60px !important;
    }
}

/* Visibility Utilities for Hero Card Split */
.mobile-hero-view {
    display: none;
}

@media (max-width: 768px) {
    .desktop-hero-view {
        display: none !important;
    }

    .mobile-hero-view {
        display: block !important;
    }
}

/* Ensure Subscribe Platforms have no background and color hover */
#subscribePlatforms a,
#subscribePlatforms a:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Restore color on hover for hero card icons */
.platform-icon-link:hover .platform-icon-img,
.platform-icon-link:hover svg {
    filter: none !important;
    opacity: 1 !important;
    color: var(--primary-color) !important;
}

/* Specific override for subscribe widget if needed (JS handles most, but this helps) */
#subscribePlatforms a:hover img,
#subscribePlatforms a:hover svg {
    filter: none !important;
    opacity: 1 !important;
}

/* Mobile Icon Size Increase for Subscribe Platforms */
@media (max-width: 768px) {

    #subscribePlatforms img,
    #subscribePlatforms svg {
        height: 36px !important;
        /* 50% bigger than 24px */
        width: auto !important;
    }
}