/*
    Theme Name: Capital FM
    Version: 2.1 - Header Refactored (Unified Controls)
    Description: Consolidated header with unified search, dark mode, and listen-live controls
*/

/* ==========================================================================
   CRITICAL MOBILE FIXES - Prevents Horizontal Scroll
   ========================================================================== */

   * {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
    overflow: hidden;
}

a {
    text-decoration: none;
}

/* ==========================================================================
   HEADER - REFACTORED (Unified Controls, No Redundancy)
   ========================================================================== */

.site-header {
    background-color: #E91D1B;
    color: #fff;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    contain: layout style;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 0 15px;
}

.header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-logo img {
    max-height: 80px;
    max-width: 80px;
}

.header-logo a {
    display: flex;
    align-items: center;
    color: #fff;
}

/* Desktop Navigation - Centered */
.site-nav-desktop {
    flex: 1;
    display: none;  /* Hidden on mobile, shown at 768px+ */
    justify-content: center;
}

@media (min-width: 768px) {
    .site-nav-desktop {
        display: flex;
    }
}

/* Navigation Menu - Unified for Desktop & Mobile */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

/* Desktop: Horizontal layout */
.site-nav-desktop .nav-menu {
    flex-direction: row;
    gap: 0;
}

.site-nav-desktop .nav-menu > li {
    position: relative;
    margin-right: 1.5rem;
    font-size: medium;
    font-weight: 600;
}

.site-nav-desktop .nav-menu > li:last-child {
    margin-right: 0;
}

.site-nav-desktop .nav-menu > li > a {
    display: block;
    padding: 0px 5px;
    color: #fff;
    transition: background-color 0.2s ease;
}

.site-nav-desktop .nav-menu > li:hover > a {
    background-color: #ec4f4f;
}

.site-nav-desktop .nav-menu .sub-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav-desktop .nav-menu .sub-menu > li > a {
    padding: 10px 15px;
}

.site-nav-desktop .nav-menu > li:hover > .sub-menu {
    display: block;
}

/* Mobile: Vertical layout */
.site-nav-mobile {
    display: none;
    width: 100%;
}

.site-nav-mobile .nav-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.site-nav-mobile .nav-menu > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-nav-mobile .nav-menu > li > a {
    display: block;
    padding: 16px 20px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.site-nav-mobile .nav-menu > li > a:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Header Controls - UNIFIED (Right side icons) */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-radius: 4px;
}

.header-icon-btn:hover {
    opacity: 0.8;
    background-color: rgba(0, 0, 0, 0.15);
}

.header-icon-btn:active {
    transform: scale(0.95);
}

.header-icon-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* Search Toggle Icon */
.header-search-toggle {
    position: relative;
}

/* Dark Mode Toggle */
.dark-mode-toggle .icon-sun {
    display: none;
}

.dark-mode .dark-mode-toggle .icon-moon {
    display: none;
}

.dark-mode .dark-mode-toggle .icon-sun {
    display: block;
}

.dark-mode-toggle[aria-pressed="true"] .icon-moon {
    display: none;
}

.dark-mode-toggle[aria-pressed="true"] .icon-sun {
    display: block;
}

/* Listen Live Button */
.header-listen-live {
    position: relative;
}

.listen-live-button svg {
    width: 20px;
    height: 20px;
}

/* Mobile Menu Toggle (Hamburger) */
.header-menu-toggle {
    display: none; /* shown at 768px and below by the responsive block */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 4px;
}

.header-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.header-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.header-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ========================================================================
   SEARCH DRAWER (Unified for Desktop & Mobile)
   ======================================================================== */

   /* Search Loading State */
.search-loader {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.search-loader .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Search Results */
.search-results-container {
    display: grid;
    gap: 24px;
    margin: 32px 0;
}

.search-result-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    padding: 16px;
    background: var(--color-bg-secondary);
    border-radius: 8px;
    transition: all 0.2s;
}

.search-result-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-result-image {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-result-title a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.search-result-title a:hover {
    text-decoration: underline;
}

.search-result-categories {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.search-result-categories a {
    color: var(--color-accent);
    text-decoration: none;
}

.search-result-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.search-result-meta {
    font-size: 12px;
    color: var(--color-text-tertiary);
}

@media (max-width: 600px) {
    .search-result-card {
        grid-template-columns: 1fr;
    }
    
    .search-result-image {
        display: none;
    }
}

.search-drawer {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%; /* Don't let it overflow */
    box-sizing: border-box; /* Include padding in width */
}

.search-drawer[aria-hidden="false"] {
    display: block;
}

.search-form {
    display: flex;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.search-form-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    color: #333;
    outline: none;
}

.search-form-input::placeholder {
    color: #999;
}

.search-form-input:focus {
    border-color: #E91D1B;
    box-shadow: 0 0 0 2px rgba(233, 29, 27, 0.1);
}

.search-submit {
    padding: 10px 16px;
    background: #fff;
    color: #E91D1B;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.search-submit:hover {
    background: #f0f0f0;
}

.search-submit:active {
    transform: scale(0.95);
}

/* Tablet: 601px to 900px */
@media (max-width: 900px) {
    .search-result-card {
        grid-template-columns: 120px 1fr; /* Smaller image */
    }
}

/* Mobile: < 600px */
@media (max-width: 600px) {
    .search-result-card {
        grid-template-columns: 1fr; /* Stack vertically */
    }
    
    .search-result-image {
        display: none;
    }
}

.cfm-global-radio__info{
    display: flex;
    flex-direction: column;
}

.station-name{
    font-size: small;
    padding: 0px;
    margin: 0px;
}

.global-radio-show-name{
    font-size: small;
}

.global-radio-hosts-name{
    font-size: small;
}

/* ========================================================================
   MOBILE MENU PANEL (Sidebar/Drawer)
   ======================================================================== */

.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: #E91D1B;
    transition: height 0.35s ease;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.mobile-menu-panel[aria-hidden="false"] {
    height: 100vh;
    overflow-y: auto;
}

.site-nav-mobile {
    width: 100%;
    padding-top: 10px;
}

.mobile-menu-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.mobile-menu-close:hover {
    opacity: 0.8;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* ==========================================================================
   DARK MODE SUPPORT
   ========================================================================== */

html.dark-mode,
body.dark-mode {
    --bg-primary: #1e1e1e;
    --bg-secondary: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #444;
}

html.dark-mode .search-form-input,
body.dark-mode .search-form-input {
    background: #2d2d2d;
    color: #e0e0e0;
    border-color: #444;
}

html.dark-mode .search-form-input::placeholder,
body.dark-mode .search-form-input::placeholder {
    color: #888;
}

html.dark-mode .search-form-input:focus,
body.dark-mode .search-form-input:focus {
    border-color: #E91D1B;
    box-shadow: 0 0 0 2px rgba(233, 29, 27, 0.2);
}

html.dark-mode .search-submit,
body.dark-mode .search-submit {
    background: #E91D1B;
    color: #fff;
}

html.dark-mode .search-submit:hover,
body.dark-mode .search-submit:hover {
    background: #c01816;
}

/* ==========================================================================
   HOMEPAGE LAYOUT
   ========================================================================== */

.homepage-columns {
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr;
    gap: 20px;
    margin-top: 20px;
    contain: layout;
    width: 100%;
    max-width: 100%;
}

.feature-story {
    padding: 4%;
    contain: layout style paint;
}

.latest-stories,
.trending-stories {
    width: 100%;
    background: #fff;
    padding: 1px;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    contain: layout style paint;
}

.latest-stories h2 {
    font-size: 30px;
}

/* News Items */
.news-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    max-width: 100%;
}

.latest-stories .news-item {
    display: flex;
    flex-direction: row;
}

.latest-stories .news-item .image-container {
    flex: 0 0 45%;
    aspect-ratio: 1.35;
    margin-right: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.latest-stories .news-item .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.latest-stories .news-item .content-container {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    height: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.latest-stories .news-item .news-category {
    padding-top: 4%;
}

.latest-stories .news-item .content-container h3 {
    font-size: 14px;
    margin: 0px;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.latest-stories .news-item .content-container h3 a {
    color: black;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.latest-stories .news-item .content-container .news-category a {
    color: #787878;
    font-size: small;
}

/* Feature Story */
.feature-story .news-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
}

.feature-story .image-container {
    flex: 0 0 auto;
    aspect-ratio: 14 / 11;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.feature-story .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-story .content-container {
    flex: 1 1 auto;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.feature-story .news-category {
    font-size: 1em;
    color: #666;
    display: block;
    padding: 14px;
}

.feature-story .news-category a {
    color: #787878;
}

.feature-story .news-item h3 {
    margin: 0;
    font-size: 28px;
    color: #333;
    line-height: 35px;
    padding: 0px 12px;
}

.feature-story .news-item h3 a {
    color: black;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   CATEGORIES
   ========================================================================== */

.homepage-categories {
    display: flex;
}

.strokeline-cat,
.strokeline {
    width: 75%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: end;
}

.strokeline {
    width: 100%;
}

.thick-gray-line-cat {
    border: 0;
    height: 4px;
    background-color: #999;
    margin: 20px 0;
    width: 95%;
}

.thick-gray-line {
    border: 0;
    height: 4px;
    background-color: #999;
    margin: 34px 10px;
    width: 98%;
}

.category-title h2 {
    font-size: 28px;
}

.category-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.category-card {
    width: 25%;
    padding: 10px;
    box-sizing: border-box;
}

.category-card .category-title {
    background-color: #f4f4f4;
    margin: 0px;
    padding: 10px 10px 20px 10px;
    height: 30%;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.category-container .image-container {
    aspect-ratio: 10 / 7;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.post-card-image{
    height: 100%;
}

#section-fuel-prices{
    text-transform: capitalize;
}

/* Fallback for older browsers */
@supports not (aspect-ratio: 1) {
    .category-container .image-container {
        position: relative;
        width: 100%;
        padding-top: 70%;
    }

    .category-container .image-container img {
        position: absolute;
        top: 0;
        left: 0;
    }
}

.category-container .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-title a {
    text-align: center;
    color: #101010;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.category-title h3 {
    font-size: 20px;
}

.category-title h3 a {
    color: #333;
}

.latest-stories-container {
    width: 45%;
}

.latest-stories-container h2 {
    font-size: 30px;
    padding-right: 5%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */

.post-container {
    padding: 0% 5%;
    display: flex;
    max-width: 1600px;
    margin: auto;
}

.story-container {
    margin-right: 5%;
    width: 100%;
}

.story-container h2 {
    font-size: 30px;
    padding-right: 5%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.post-content {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    max-width: 950px;
    line-height: 1.5;
    font-size: 1.2rem;
}

.content {
    width: 100%;
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.author-time {
    display: flex;
    padding-right: 5%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    margin-bottom: 2%;
    color: #888888;
    text-transform: capitalize;
}

.tts-button{
    background-color: #e91d1b;
    color: white;
    display: flex;
    justify-content: center;
    padding: 1%;
    border-radius: 10%;
}

.tts-text{
    padding-top: 3%;
}

.stroke-line {
    padding: 0 1%;
}

.post-featured-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.post-featured-image img.post-thumbnail {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Article Enhancements */
.article-header {
    margin-bottom: 16px;
}

.article-title {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 800;
    color: #000;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 18px;
    text-transform: capitalize;
    color: #888;
    justify-content: space-between;
}

.meta-separator {
    color: #ddd;
}

.reading-time {
    color: #888;
}

.article-categories {
    margin-bottom: 25px;
}

.article-categories a {
    display: inline-block;
    background: #f0f0f0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.article-categories a:hover {
    background: #E91D1B;
    color: white;
}

/* Article Toolbar */
.article-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.tts-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    will-change: transform;
}

.tts-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.tts-btn.speaking {
    background: #34c759;
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: white;
    background: #000;
    will-change: transform;
}

.facebook-share {
    background: #1877f2;
}

.facebook-share:hover {
    background: #0e62c7;
    transform: scale(1.1);
}

.twitter-share {
    background: #1da1f2;
}

.twitter-share:hover {
    background: #0d8bd9;
    transform: scale(1.1);
}

.linkedin-share {
    background: #0077b5;
}

.linkedin-share:hover {
    background: #005885;
    transform: scale(1.1);
}

.whatsapp-share {
    background: #25d366;
}

.whatsapp-share:hover {
    background: #1fb855;
    transform: scale(1.1);
}

.copy-link {
    background: #6c757d;
}

.copy-link:hover {
    background: #545b62;
    transform: scale(1.1);
}

.copy-link.copied {
    background: #28a745;
}

/* Article Tags */
.article-tags {
    margin-top: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-top: 2px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tags-label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.article-tags a {
    display: inline-block;
    padding: 6px 14px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 13px;
    color: #495057;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.article-tags a:hover {
    background: #E91D1B;
    color: white;
    border-color: #E91D1B;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 40px;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.author-name a {
    color: #1a1a1a;
    transition: color 0.3s ease;
    text-transform: capitalize;
}

.author-name a:hover {
    color: #E91D1B;
}

.author-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.author-posts-link {
    color: #E91D1B;
    font-weight: 600;
    font-size: 10px;
    transition: color 0.3s ease;
    text-transform: capitalize;
}

.author-posts-link:hover {
    color: #c01816;
}

/* Related Stories */
.inline-related-stories {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.inline-related-title {
    font-size: 22px;
    margin: 0 0 20px 0;
    color: #1a1a1a;
    font-weight: 700;
    text-align: center;
}

.inline-related-grid {
    display: grid;
    gap: 20px;
}

.inline-related-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    will-change: transform;
}

.inline-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.inline-related-card .img-box {
    aspect-ratio: 5 / 3;
    overflow: hidden;
}

.inline-related-card .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.inline-related-card:hover .img-box img {
    transform: scale(1.05);
}

.inline-related-content {
    padding: 15px;
}

.inline-related-content h4 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.inline-related-content h4 a {
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.inline-related-content h4 a:hover {
    color: #E91D1B;
}

/* Full Related Stories Section */
.related-stories-section {
    background: #f8f9fa;
    margin-top: 20px;
    margin-bottom: 20px;
}

.related-stories-section .section-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 800;
}

.related-stories-grid {
    display: flex;
    flex-wrap: wrap;
}

.related-story-card {
    width: 30%;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.related-story-card:hover {
    transform: translateY(-8px);
}

.related-story-card .image-container{
    aspect-ratio: 5 / 3;
    overflow: hidden;
}

.related-story-card .image-container a {
    display: block;
    width: 100%;
    height: 100%;
}

.related-story-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-story-card:hover .image-container img {
    transform: scale(1.08);
}

.related-story-content {
    padding: 20px;
}

.story-category {
    font-size: 12px;
    margin-bottom: 10px;
}

.story-category a {
    color: #E91D1B;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-story-content h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
}

.related-story-content h3 a {
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.related-story-content h3 a:hover {
    color: #E91D1B;
}

/* ==========================================================================
   AUTHOR PAGE
   ========================================================================== */

.author-articles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.author-header h1 {
    text-transform: capitalize;
}

.author-item {
    display: flex;
    gap: 30px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.author-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.author-item-image {
    flex-shrink: 0;
    width: 260px;
    aspect-ratio: 26 / 17;
    overflow: hidden;
    border-radius: 6px;
}

.author-item-image a {
    display: block;
    width: 100%;
    height: 100%;
}

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

.author-item:hover .author-item-image img {
    transform: scale(1.05);
}

.author-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.author-item-title {
    margin: 0 0 15px 0;
    font-size: 24px !important;
    font-weight: 600;
    line-height: 1.3;
}

.author-item-title a {
    color: #333;
    transition: color 0.3s ease;
}

.author-item-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 14px;
    color: #7f8c8d;
}

.author-item-meta span:not(:last-child)::after {
    content: "•";
    margin-left: 15px;
    color: #bdc3c7;
}

.post-author {
    font-weight: 500;
    color: #888;
}

.post-author a {
    color: #888;
}

.post-category a {
    color: #787878;
}

.author-item-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    color: #3498db;
    font-weight: 500;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    color: #2980b9;
}

/* ==========================================================================
   SEARCH PAGE
   ========================================================================== */

.search-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.search-form-section {
    color: #333;
    text-align: center;
}

.search-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.search-page-title {
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 700;
}

.search-input-wrapper {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.search-field {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.search-submit {
    padding: 15px 30px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.search-submit:hover {
    transform: translateY(-2px);
}

.search-results-section {
    margin-top: 40px;
}

.search-results-container {
    max-width: 1200px;
    margin: 0 auto;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.search-result-item {
    display: flex;
    gap: 25px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.search-result-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.result-image {
    flex-shrink: 0;
    width: 250px;
    aspect-ratio: 25 / 18;
    overflow: hidden;
    border-radius: 8px;
}

.result-image a {
    display: block;
    width: 100%;
    height: 100%;
}

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

.search-result-item:hover .result-image img {
    transform: scale(1.05);
}

.result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.result-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}

.result-category a {
    color: #667eea;
    font-weight: 500;
}

.result-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.result-title a {
    color: #2c3e50;
    transition: color 0.3s ease;
}

.result-title a:hover {
    color: #667eea;
}

.result-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

.result-author {
    font-size: 14px;
    color: #666;
}

.read-more-link {
    color: #667eea;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: #764ba2;
}

/* ==========================================================================
   CARDS SECTION (Homepage)
   ========================================================================== */

.cards-section {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

.cards-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    height: 200px;
    width: 100%;
    max-width: 100%;
}

/* Capital Week Card */
.capital-week-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(138.15deg, #FDDC3F 0%, #000000 50%, #FF0000 100%);
    will-change: transform;
}

.capital-week-card:hover {
    transform: translateY(-5px);
}

.card-background {
    position: absolute;
    top: 3%;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-overlay {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-start;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    margin-left: 40%;
}

.card-title-info,
.card-title-description {
    display: flex;
    justify-content: center;
    width: 100%;
}

.card-title {
    color: white;
    font-size: 30px;
    font-weight: 700;
    margin: 0;
}

.card-desc {
    color: white;
    font-size: 22px;
    font-weight: 500;
    margin: 0;
}

/* Live Radio Card */
.live-radio-card {
    background: linear-gradient(127.87deg, #000000 39.77%, #FF0000 92.06%);
    border-radius: 15px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
    will-change: transform;
}

.live-radio-card:hover {
    transform: translateY(-5px);
}

.live-card-content {
    display: flex;
    flex-direction: column;
}

.live-title {
    font-size: 25px;
    font-weight: 700;
    margin: 0;
    text-align: left;
    color: white;
}

/* Show Details */
.show-details {
    text-align: left;
    padding: 2px 0;
}

.show-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: white;
}

.show-time {
    font-size: 16px;
    margin: 0 0 8px 0;
    opacity: 0.9;
}

.show-host {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
    opacity: 0.95;
}

/* Player Controls */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding-top: 10px;
}

.play-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    color: #333333;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    will-change: transform;
}

.play-icon{
    width: 30px;
    height: 30px;
}

.play-btn:hover {
    transform: scale(1.1);
}

.play-btn.playing {
    background: #333;
    color: white;
}

.play-icon,
.pause-icon {
    display: contents;
}

/* Volume Container */
.volume-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
}

.volume-icon {
    font-size: 18px;
}

.volume-range {
    width: 160px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    border-radius: 5px;
    cursor: pointer;
    -webkit-appearance: none;
}

.volume-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: white;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.volume-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: white;
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Player Drawer */
.player-drawer {
    position: relative;
    max-height: 1%;
    overflow: hidden;
    transition: max-height .35s ease;
}

.player-drawer.open {
    max-height: 0px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background-color: #CA0000;
    color: #ecf0f1;
    padding: 10px 0px 0px;
    margin-top: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-columns {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.footer-heading {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: auto;
    color: #fff;
    padding-bottom: 10px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
    line-height: 1.6;
    display: flex;
}

.footer-list a {
    color: #FFFF;
    transition: color 0.3s ease;
    padding-left: 2%;
}

.footer-list a:hover {
    color: #3498db;
}

.footer-list strong {
    color: #fff;
    display: block;
    margin-bottom: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #34495e;
    background-color: #FDDC3F;
}

.footer-bottom p {
    margin: 0;
    color: #000000;
    font-size: 14px;
    padding-bottom: 2%;
    font-weight: 700;
}

.footer-social ul{
    list-style: none;
    padding: 0px;
}

.footer-social-list li{
    padding: 10px;
}

.footer-social-list li a {
    color: white;
    display: flex;
}

.footer-social-list li a .social-label{
    padding-left: 10px;
    padding-top: 5px;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sidebar-news-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-news-item .img-box {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
}

.sidebar-news-item .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-news-item:hover .img-box img {
    transform: scale(1.1);
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-content .news-category {
    font-size: 11px;
}

.sidebar-content .news-category a {
    color: #E91D1B;
    font-weight: 600;
    text-transform: uppercase;
}

.sidebar-content h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.sidebar-content h3 a {
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.sidebar-content h3 a:hover {
    color: #E91D1B;
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: #E91D1B;
    color: white;
    text-decoration: none;
}

.skip-link:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

:focus-visible {
    outline: 2px solid #E91D1B;
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

@media (prefers-contrast: high) {
    .share-btn,
    .tts-btn,
    .article-toolbar {
        border: 2px solid currentColor;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN - TABLET & MOBILE
   ========================================================================== */

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

    .header-menu-toggle {
        display: flex;
    }
}

@media (max-width: 767px) {
    /* CRITICAL: Prevent horizontal scroll */
    body {
        overflow-x: hidden !important;
        width: 100vw;
        max-width: 100vw;
    }

    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Header */
    .site-header {
        padding: 8px 0;
    }

    .header-content {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 0 12px;
    }

    .header-logo img {
        max-height: 60px;
        max-width: 60px;
    }

    .header-controls {
        gap: 8px;
    }

    .header-icon-btn {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .header-icon-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Search Drawer */
    .search-drawer {
        padding: 10px 12px;
    }

    .search-form {
        gap: 6px;
    }

    .search-form-input {
        padding: 8px 10px;
        font-size: 14px;
    }

    .search-submit {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Mobile Menu */
    .mobile-menu-panel {
        top: 100%;  /* Below header */
    }

    .site-nav-mobile {
        display: flex;
        padding-top: 20px;
    }

    .site-nav-mobile .nav-menu > li > a {
        padding: 14px 16px;
        font-size: 15px;
    }

    .site-nav-mobile .sub-menu {
        display: none !important;
    }

    /* Homepage */
    .homepage-columns {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .homepage-columns > div {
        width: 100%;
        max-width: 100%;
    }

    .feature-story {
        padding: 0%;
        order: 1;
    }

    .latest-stories:first-child {
        order: 2;
    }

    .latest-stories:last-child {
        order: 3;
    }

    .feature-story .news-item h3 {
        font-size: 24px;
        padding: 0px 0px 15px 10px;
    }

    .feature-story .content-container {
        width: auto;
    }

    .latest-stories,
    .trending-stories {
        width: 100%;
        margin-bottom: 20px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Categories */
    .strokeline-cat {
        width: 72%;
    }

    .category-title h2 {
        font-size: 16px;
    }

    .category-card {
        width: 100%;
        padding: 10px 0px;
    }

    .category-container {
        display: grid;
        grid-template-columns: 1fr !important;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    /* Post */
    .post-container {
        flex-direction: column;
        padding: 2% 3% !important;
    }

    .story-container,
    .latest-stories-container {
        flex: none;
        width: 100%;
        margin-right: 0;
    }

    .latest-stories-container {
        margin-top: 2rem;
    }

    .story-container h2 {
        font-size: 24px !important;
    }

    .author-time {
        font-weight: 500;
        font-size: 14px;
    }

    .post-featured-image img.post-thumbnail {
        width: 100%;
        height: auto !important;
        max-width: 100%;
        object-fit: cover;
    }

    .site-content {
        padding: 2%;
    }

    /* Article */
    .article-title {
        font-size: 28px;
    }

    .article-meta {
        font-size: 15px !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .article-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .social-share {
        justify-content: center;
    }

    .tts-btn {
        justify-content: center;
        margin-left: 0;
    }

    /* Related Stories */
    .inline-related-grid {
        grid-template-columns: 1fr;
    }

    .related-story-card {
        width: 100%;
    }

    /* Author */
    .author-bio {
        flex-direction: column;
        text-align: center;
        padding: 2%;
        margin-top: 5%;
    }

    .author-avatar {
        display: flex;
        justify-content: center;
    }

    .author-item {
        flex-direction: column;
        width: 100%;
    }

    .author-item-image {
        width: 100%;
        height: 250px;
    }

    .author-item-title {
        font-size: 20px;
    }

    .author-item-meta {
        font-size: 12px;
        gap: 10px;
    }

    /* Search */
    .search-input-wrapper {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .search-form-input {
        width: 100%;
    }

    .search-submit {
        justify-content: center;
    }

    .search-result-item {
        flex-direction: column;
        width: 100%;
    }

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

    .result-title {
        font-size: 20px;
    }

    /* Footer */
    .footer-columns {
        flex-direction: column;
        gap: 40px;
    }

    .footer-column {
        max-width: 100%;
        text-align: center;
    }

    .footer-heading {
        text-align: center;
    }

    .footer-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-list li {
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .footer-social-list li {
        padding: 10px;
        display: flex;
        justify-content: center;
    }

    .site-footer {
        padding: 0px;
    }

    .footer-bottom{
        padding: 20px 0px 20px;
    }

    /* Terms */
    .page-title {
        font-size: 2rem;
    }

    .terms-section h2 {
        font-size: 1.3rem;
    }

    /* Fix images and containers */
    .image-container {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .image-container img {
        width: 100%;
        height: auto;
    }

    .news-item {
        width: 100%;
        max-width: 100%;
    }

    /* Fix tables */
    table {
        display: block;
        overflow-x: auto;
        max-width: 100%;
    }

    /* Fix pre/code */
    pre, code {
        overflow-x: auto;
        max-width: 100%;
        white-space: pre-wrap;
        word-wrap: break-word;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    /* Article */
    .article-title {
        font-size: 24px;
    }

    .share-btn {
        width: 36px;
        height: 36px;
    }

    .share-btn svg {
        width: 16px;
        height: 16px;
    }

    .inline-related-stories {
        padding: 20px 15px;
    }

    .related-stories-section {
        padding: 40px 0;
    }

    /* Author */
    .author-articles-container {
        padding: 20px 15px;
    }

    .author-item {
        padding: 15px;
        margin-bottom: 20px;
    }

    .author-item-image {
        height: 200px;
    }

    .author-item-title {
        font-size: 18px;
    }

    /* Search */
    .search-page-title {
        font-size: 20px;
    }

    .search-field {
        padding: 12px 15px;
        font-size: 14px;
    }

    .search-submit {
        padding: 12px 20px;
        font-size: 14px;
    }

    /* Cards */
    .cards-container {
        min-height: 175px;
    }

    .card-title {
        font-size: 14px !important;
    }

    /* Footer */
    .footer-heading {
        font-size: 18px;
    }

    .footer-list li {
        font-size: 14px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .cards-container {
        gap: 20px;
    }

    .card-title {
        font-size: 30px;
    }

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

/* ==========================================================================
   PERFORMANCE & SEO
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .share-btn,
    .related-story-card,
    .inline-related-card,
    .author-item,
    .search-result-item {
        transition: none;
    }

    .related-story-card:hover,
    .inline-related-card:hover,
    .author-item:hover,
    .search-result-item:hover {
        transform: none;
    }
}

@media print {
    .site-header,
    .site-footer,
    .mobile-menu-panel,
    .search-drawer,
    .article-toolbar,
    .social-share,
    .tts-btn,
    .related-stories-section,
    .sidebar {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    .post-content {
        max-width: 100%;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }

    .news-item,
    .category-card,
    .post-content p {
        page-break-inside: avoid;
    }
}

/* Podcast Tabs */
.cfm-podcast-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
    padding: 4px 0;
}

.cfm-podcast-tab {
    padding: 9px 22px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    white-space: nowrap;
    line-height: 1;
}

.cfm-podcast-tab:hover {
    border-color: #E91D1B;
    color: #E91D1B;
    background: #fff5f5;
}

.cfm-podcast-tab.active,
.cfm-podcast-tab[aria-selected="true"] {
    background: #E91D1B;
    border-color: #E91D1B;
    color: #fff;
}

.cfm-podcast-tab:focus-visible {
    outline: 2px solid #E91D1B;
    outline-offset: 2px;
}

html.dark-mode .cfm-podcast-tab,
body.dark-mode .cfm-podcast-tab {
    background: #1e1e1e;
    border-color: #444;
    color: #ccc;
}

html.dark-mode .cfm-podcast-tab:hover,
body.dark-mode .cfm-podcast-tab:hover {
    border-color: #E91D1B;
    color: #ff4d4b;
    background: #2a1a1a;
}

html.dark-mode .cfm-podcast-tab.active,
html.dark-mode .cfm-podcast-tab[aria-selected="true"],
body.dark-mode .cfm-podcast-tab.active,
body.dark-mode .cfm-podcast-tab[aria-selected="true"] {
    background: #E91D1B;
    border-color: #E91D1B;
    color: #fff;
}

@media (max-width: 600px) {
    .cfm-podcast-tabs {
        gap: 6px;
    }
    .cfm-podcast-tab {
        font-size: 12px;
        padding: 7px 14px;
    }
}

figcaption{
    font-style: italic;
    font-size: 10px;
    padding-top: 0.25%;
}

/* Subcategory Navigation */
.cfm-subnav-bar {
    background-color: #1a1a1a;
    border-bottom: 3px solid #E91D1B;
    position: sticky;
    top: 100px;
    z-index: 999;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cfm-subnav-bar::-webkit-scrollbar {
    display: none;
}

.cfm-subnav-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 15px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    flex-wrap: nowrap;
    justify-content: center;
}

.cfm-subnav-inner::-webkit-scrollbar {
    display: none;
}

.cfm-subnav-tab {
    display: inline-block;
    padding: 10px 18px;
    color: #cccccc;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.cfm-subnav-tab:hover {
    color: #ffffff;
    border-bottom-color: rgba(233, 29, 27, 0.5);
}

.cfm-subnav-tab--active {
    color: #ffffff;
    border-bottom-color: #E91D1B;
}

@media (max-width: 767px) {
    .cfm-subnav-bar {
        top: 70px;
    }

    .cfm-subnav-tab {
        font-size: 13px;
        padding: 9px 14px;
    }
}
/* ==========================================================================
   LOAD MORE BUTTON (category pages) - restored from style-back.css
   ========================================================================== */
.cfm-load-more-wrap {
    text-align: center;
    margin: 28px 0;
}

.cfm-load-more-btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #E91D1B;
    border: 2px solid #E91D1B;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .1s ease;
    letter-spacing: .02em;
}

.cfm-load-more-btn:hover {
    background: #fff;
    color: #E91D1B;
}

.cfm-load-more-btn:active {
    transform: translateY(1px);
}

.cfm-load-more-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    background: #999;
    border-color: #999;
    color: #fff;
}

html.dark-mode .cfm-load-more-btn:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* YouTube live prompt: hidden unless the live check marks it active (full styles to follow) */
.cfm-yt-live-wrap { display: none; }
.cfm-yt-live-wrap.cfm-yt-live-active { display: block; }

/* YouTube live prompt (non-home pages): red pill bottom-right while live */
.cfm-yt-live-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 1400; }
.cfm-yt-live-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #E91D1B; color: #fff; border: none; border-radius: 999px;
    padding: 8px 14px; font-size: 13px; font-weight: 600; line-height: 1;
    cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.cfm-yt-live-btn:hover { background: #c81714; }
.cfm-yt-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.cfm-yt-player { display: none; }
.cfm-yt-live-wrap.cfm-yt-open .cfm-yt-player {
    display: block; position: fixed; right: 20px; bottom: 70px;
    width: min(480px, calc(100vw - 40px)); aspect-ratio: 16 / 9;
    border-radius: 12px; overflow: hidden; background: #000;
}
.cfm-yt-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.cfm-yt-live-wrap.cfm-yt-open .cfm-yt-live-dot,
.cfm-yt-live-wrap.cfm-yt-open .cfm-yt-live-label { display: none; }
@media (max-width: 767px) { .cfm-yt-live-label { display: none; } }

/* ==========================================================================
   RADIO BUTTON (header): radio icon + LIVE marker, sound bars while playing
   ========================================================================== */
.listen-live-button {
    display: inline-flex; align-items: center; gap: 6px;
    width: auto; padding: 0 10px; border-radius: 999px;
}
.listen-live-button .cfm-radio-icon { width: 20px; height: 20px; flex: none; }
.cfm-onair {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.cfm-onair__dot {
    width: 8px; height: 8px; border-radius: 50%; background: currentColor;
    animation: cfm-onair-pulse 1.8s infinite;
}
.cfm-onair__bars { display: none; align-items: flex-end; gap: 2px; height: 12px; }
.cfm-onair__bars i {
    display: block; width: 3px; height: 4px; background: currentColor; border-radius: 1px;
    animation: cfm-onair-eq 1s ease-in-out infinite;
}
.cfm-onair__bars i:nth-child(2) { animation-delay: -.35s; }
.cfm-onair__bars i:nth-child(3) { animation-delay: -.7s; }
html.cfm-radio-playing .cfm-onair__dot  { display: none; }
html.cfm-radio-playing .cfm-onair__bars { display: inline-flex; }
.listen-live-button[aria-expanded="true"] { background: #fff; color: #E91D1B; }
@keyframes cfm-onair-eq    { 0%, 100% { height: 3px; } 50% { height: 12px; } }
@keyframes cfm-onair-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 767px) {
    .cfm-onair__text { display: none; }
    .listen-live-button { padding: 0 8px; }
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.cfm-back-to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 1400;
    width: 44px; height: 44px; border-radius: 50%; border: none;
    background: #E91D1B; color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.cfm-back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.cfm-back-to-top:hover { background: #c81714; }
.cfm-back-to-top:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cfm-back-to-top svg { width: 20px; height: 20px; }

/* Make room for the YouTube live pill, and step aside while its video is open */
body:has(.cfm-yt-live-wrap.cfm-yt-live-active) .cfm-back-to-top { bottom: 72px; }
body:has(.cfm-yt-live-wrap.cfm-yt-open) .cfm-back-to-top { display: none; }

/* Mobile: sit above the radio player while it is open */
@media (max-width: 767px) {
    body:has(#playerDrawer:not(.is-collapsed)) .cfm-back-to-top { bottom: 104px; }
}

@media (prefers-reduced-motion: reduce) {
    .cfm-onair__dot, .cfm-onair__bars i { animation: none; }
    .cfm-onair__bars i { height: 8px; }
    .cfm-back-to-top { transition: none; }
}

/* Radio player close button */
#playerDrawer .cfm-global-radio__close {
    background: rgba(255,255,255,.12); color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    transition: background .2s ease;
}
#playerDrawer .cfm-global-radio__close:hover { background: rgba(255,255,255,.25); }
#playerDrawer .cfm-global-radio__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ==========================================================================
   RADIO PLAYER LAYOUT - inner layout only (position/width/collapse stay in
   third-flow-media.css). #playerDrawer ID wins over that later stylesheet.
   ========================================================================== */
#playerDrawer:not(.is-collapsed) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas:
        "play signal volume close"
        "play info   volume close";
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
    padding: 10px 12px;
}
#playerDrawer .cfm-global-radio__play   { grid-area: play; }
#playerDrawer .cfm-global-radio__signal { grid-area: signal; }
#playerDrawer .cfm-global-radio__info   { grid-area: info; }
#playerDrawer .cfm-global-radio__volume { grid-area: volume; }
#playerDrawer .cfm-global-radio__close  { grid-area: close; }

#playerDrawer .cfm-global-radio__signal,
#playerDrawer .cfm-global-radio__close {
    position: static; inset: auto; transform: none; margin: 0;
}

#playerDrawer .cfm-global-radio__play {
    width: 44px; height: 44px; margin: 0; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}

#playerDrawer .cfm-global-radio__signal {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; line-height: 1; opacity: .9;
}

#playerDrawer .cfm-global-radio__info {
    display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0;
}
#playerDrawer .cfm-global-radio__info .station-name { display: none; }
#playerDrawer .global-radio-show-name {
    font-size: 14px; font-weight: 700; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#playerDrawer .global-radio-hosts-name {
    font-size: 12px; line-height: 1.2; opacity: .8;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

#playerDrawer .cfm-global-radio__volume { display: flex; align-items: center; margin: 0; }
#playerDrawer .cfm-global-radio__volume input[type="range"] { width: 96px; margin: 0; accent-color: #E91D1B; }

#playerDrawer .cfm-global-radio__close {
    width: 32px; height: 32px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer;
}

@media (max-width: 760px) {
    #playerDrawer:not(.is-collapsed) {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "play signal close"
            "play info   close";
    }
    #playerDrawer .cfm-global-radio__volume { display: none; }

    body:has(#playerDrawer:not(.is-collapsed)) .cfm-back-to-top {
        bottom: calc(157px + var(--cfm-footer-lift, 0px));
    }
}

/* ==========================================================================
   YOUTUBE LIVE BUTTON INSIDE THE RADIO PLAYER BOX (non-home pages)
   ========================================================================== */
#playerDrawer .cfm-yt-live-wrap { position: static; grid-area: yt; margin: 0; z-index: auto; }
#playerDrawer .cfm-yt-live-btn  { padding: 7px 12px; font-size: 12px; box-shadow: none; white-space: nowrap; }
#playerDrawer .cfm-yt-live-label { display: none; }

#playerDrawer:not(.is-collapsed):has(.cfm-yt-live-active) {
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    grid-template-areas:
        "play signal yt volume close"
        "play info   yt volume close";
}

/* Video opens just above the player, same width */
#playerDrawer:has(.cfm-yt-open) { overflow: visible; }
#playerDrawer .cfm-yt-live-wrap.cfm-yt-open .cfm-yt-player {
    display: block; position: absolute; left: 0; right: 0; bottom: calc(100% + 10px);
    width: auto; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
    background: #000; box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
#playerDrawer .cfm-yt-live-wrap.cfm-yt-open .cfm-yt-live-btn {
    width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: 50%; font-size: 14px;
}

@media (max-width: 760px) {
    #playerDrawer:not(.is-collapsed):has(.cfm-yt-live-active) {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        grid-template-areas:
            "play signal yt close"
            "play info   yt close";
    }
}

/* YouTube live pill: just "● Watch live" (no stream title) */
.cfm-yt-live-label { display: none !important; }
.cfm-yt-live-btn { white-space: nowrap; letter-spacing: .02em; }
.cfm-yt-live-dot { flex: none; animation: cfm-yt-pulse 1.6s infinite; }
@keyframes cfm-yt-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
    70%  { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
