/* ============================================================
   CUE Theme — Main Stylesheet
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Colors */
    --color-teal:         #1a7272;
    --color-teal-dark:    #145c5c;
    --color-teal-light:   #218f8f;
    --color-pink-light:   #f5ccd8;
    --color-pink-player:  #e0629a;
    --color-pink-player2: #d4447f;
    --color-white:        #ffffff;
    --color-dark:         #111111;
    --color-gray-100:     #f8f8f8;
    --color-gray-200:     #e8e8e8;
    --color-gray-600:     #666666;
    --color-card-bg:      rgba(255,255,255,0.08);
    --color-card-border:  rgba(255,255,255,0.12);

    /* Typography */
    --font-heading:  'Barlow Condensed', sans-serif;
    --font-body:     'Inter', sans-serif;
    --font-display:  'Chau Philomene One', sans-serif;
    --font-gantari:  'Gantari', sans-serif;
    --font-chango:   'Chango', cursive;

    /* Spacing */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  16px;
    --space-lg:  24px;
    --space-xl:  40px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    /* Layout */
    --container-width: 1200px;
    --container-pad:   24px;
    --header-offset:   110px; /* top padding to clear the fixed floating header */

    /* Radius */
    --radius-sm:   8px;
    --radius-md:   16px;
    --radius-lg:   24px;
    --radius-pill: 999px;

    /* Transitions */
    --transition: 0.2s ease;
    --transition-slow: 0.4s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-gantari);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-dark);
    /*background: var(--color-teal);*/
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Container ────────────────────────────────────────────── */
.container {
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* ── Utility ─────────────────────────────────────────────── */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}


/* ──────────────────────────────────────────────────────────────
   Scroll padding so anchor navigation and focus scrolls don't
   land behind the floating fixed header.
   ────────────────────────────────────────────────────────── */
html { scroll-padding-top: var(--header-offset); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    /*position: sticky;*/
    position: fixed;
    width: 100%;
    top: 30px;
    top: 0;
    z-index: 100;
    padding: 12px var(--container-pad);
}

.site-header--light {
    /*background: var(--color-pink-light);*/
    background: transparent;
}
.site-header--dark {
    background: var(--color-teal-dark);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    max-width: var(--container-width);
    margin-inline: auto;
    /*background: var(--color-white);*/
    background: #EE74B233;
    border-radius: var(--radius-pill);
    padding: 20px;
    box-shadow: -12px 8px 8px rgba(0,0,0,0.1);
}

.site-header--dark .site-header__inner {
    background: #1d8080;
    box-shadow: none;
}

/* Logo */
.site-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo img { height: 36px; width: auto; }
.site-header__logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
    color: var(--color-teal);
    background: var(--color-teal);
    color: var(--color-white);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

/* Nav */
.site-header__nav { flex: 1; }
.site-nav__list { display: flex; gap: 4px; align-items: center; }
.site-nav__list li a {
    font-size: 16px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    transition: background var(--transition);
    color: var(--color-dark);
}
.site-nav__list li a:hover,
.site-nav__list .current-menu-item a {
    background: #f8f8f8cc;
    font-weight: bold;
}
.site-header--dark .site-nav__list li a { color: rgba(255,255,255,0.85); }
.site-header--dark .site-nav__list li a:hover,
.site-header--dark .site-nav__list .current-menu-item a { background: rgba(255,255,255,0.12); }

/* ── Header Mini Player ───────────────────────────────────── */

/* Outer wrapper — flex row, no background */
.site-header__player {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
    margin-left: auto;
}

/* Hide on the homepage — the big "Playing Now" section already shows the
   same info + controls, so the header mini-player is redundant there.
   `.home` is the standard WordPress body class for front-page.php, and
   navigation.js syncs body classes across pjax swaps so this works on
   both initial load and client-side navigations. */
body.home .site-header__player { display: none !important; }

/* Info text — lives OUTSIDE the pink pill */
.header-player__info {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 220px;
}

.header-player__artist {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--color-dark);
}
.site-header--dark .header-player__artist { color: rgba(255,255,255,0.92); }

.header-player__title {
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--color-dark);
    opacity: 0.75;
}
.site-header--dark .header-player__title { color: rgba(255,255,255,0.7); }

.header-player__sep {
    color: var(--color-dark);
    opacity: 0.4;
    font-size: 12px;
    flex-shrink: 0;
}
.site-header--dark .header-player__sep { color: rgba(255,255,255,0.5); }

/* Pink pill — controls only */
.header-player {
    display: flex;
    align-items: center;
    background: var(--color-pink-player);
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    flex-shrink: 0;
    border: 2px solid #7b0000;
    border-top: 0;
    border-right: 0;
}

.header-player__controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header-player__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: var(--color-white);
    transition: background var(--transition);
    flex-shrink: 0;
}
.header-player__btn:hover { background: rgba(255,255,255,0.35); }

/* Action buttons — mic + calendar */
.header-player__actions {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.header-player__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
    color: var(--color-dark);
    transition: background var(--transition), color var(--transition);
    flex-shrink: 0;
}
.site-header--dark .header-player__action-btn {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
}
.header-player__action-btn:hover { background: rgba(0,0,0,0.15); }
.site-header--dark .header-player__action-btn:hover { background: rgba(255,255,255,0.22); }


/* ============================================================
   WAVEFORM
   ============================================================ */
.cue-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 24px;
}

.cue-waveform__bar {
    display: block;
    width: 4px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.85;
    animation: cue-wave 1.2s ease-in-out infinite;
    transform-origin: bottom;
}

.homepage-player .cue-waveform__bar{
    width: 6px;
    border-radius: 16px;
    margin: 0 1px;
}

.cue-waveform--playing .cue-waveform__bar { animation-play-state: running; }
.cue-waveform__bar { animation-play-state: paused; }

/* Stagger the bars */
.cue-waveform__bar:nth-child(1)  { height: 16px;  animation-delay: 0s;      }
.cue-waveform__bar:nth-child(2)  { height: 28px; animation-delay: 0.1s;    }
.cue-waveform__bar:nth-child(3)  { height: 40px; animation-delay: 0.05s;   }
.cue-waveform__bar:nth-child(4)  { height: 26px; animation-delay: 0.15s;   }
.cue-waveform__bar:nth-child(5)  { height: 32px; animation-delay: 0.2s;    }
.cue-waveform__bar:nth-child(6)  { height: 22px; animation-delay: 0.08s;   }
.cue-waveform__bar:nth-child(7)  { height: 12px; animation-delay: 0.18s;   }
.cue-waveform__bar:nth-child(8)  { height: 16px; animation-delay: 0.03s;   }
.cue-waveform__bar:nth-child(9)  { height: 16px;  animation-delay: 0.12s;   }
.cue-waveform__bar:nth-child(10) { height: 40px; animation-delay: 0.22s;   }
.cue-waveform__bar:nth-child(11) { height: 28px; animation-delay: 0.07s;   }
.cue-waveform__bar:nth-child(12) { height: 32px; animation-delay: 0.17s;   }
.cue-waveform__bar:nth-child(13) { height: 26px; animation-delay: 0.0s;    }
.cue-waveform__bar:nth-child(14) { height: 22px; animation-delay: 0.14s;   }
.cue-waveform__bar:nth-child(15) { height: 16px; animation-delay: 0.06s;   }
.cue-waveform__bar:nth-child(16) { height: 12px; animation-delay: 0.19s;   }
.cue-waveform__bar:nth-child(17) { height: 40px; animation-delay: 0.09s;   }
.cue-waveform__bar:nth-child(18) { height: 16px;  animation-delay: 0.21s;   }
.cue-waveform__bar:nth-child(19) { height: 28px; animation-delay: 0.1s;  }
.cue-waveform__bar:nth-child(20) { height: 40px; animation-delay: 0.22s;   }
.cue-waveform__bar:nth-child(21) { height: 28px; animation-delay: 0.07s;   }
.cue-waveform__bar:nth-child(22) { height: 32px; animation-delay: 0.17s;   }
.cue-waveform__bar:nth-child(23) { height: 26px; animation-delay: 0.0s;    }
.cue-waveform__bar:nth-child(24) { height: 22px; animation-delay: 0.14s;   }
.cue-waveform__bar:nth-child(25) { height: 16px; animation-delay: 0.06s;   }
.cue-waveform__bar:nth-child(26) { height: 12px; animation-delay: 0.19s;   }
.cue-waveform__bar:nth-child(27) { height: 40px; animation-delay: 0.09s;   }
.cue-waveform__bar:nth-child(28) { height: 16px;  animation-delay: 0.21s;   }
.cue-waveform__bar:nth-child(29) { height: 28px; animation-delay: 0.1s;  }
.cue-waveform__bar:nth-child(30) { height: 40px; animation-delay: 0.22s;   }
.cue-waveform__bar:nth-child(31) { height: 28px; animation-delay: 0.07s;   }
.cue-waveform__bar:nth-child(32) { height: 32px; animation-delay: 0.17s;   }
.cue-waveform__bar:nth-child(33) { height: 26px; animation-delay: 0.0s;    }
.cue-waveform__bar:nth-child(34) { height: 22px; animation-delay: 0.14s;   }
.cue-waveform__bar:nth-child(35) { height: 16px; animation-delay: 0.06s;   }
.cue-waveform__bar:nth-child(36) { height: 12px; animation-delay: 0.19s;   }
.cue-waveform__bar:nth-child(37) { height: 40px; animation-delay: 0.09s;   }
.cue-waveform__bar:nth-child(38) { height: 16px;  animation-delay: 0.21s;   }
.cue-waveform__bar:nth-child(n+39) { height: 28px; animation-delay: 0.1s;  }


@keyframes cue-wave {
    0%, 100% { transform: scaleY(0.4); }
    50%       { transform: scaleY(1.0); }
}

/* In the pink player bar */
.header-player .cue-waveform { color: var(--color-white); zoom: 80%; }
.homepage-player .cue-waveform { color: var(--color-white); }

/*
#main-content{
    margin-top: 60px;
}*/


/* ============================================================
   PLAYING NOW (Homepage)
   ============================================================ */
.playing-now {
    background: var(--color-pink-light);
    padding: var(--space-xl) 0;
    padding-top: var(--header-offset);
}

.playing-now__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: 0 auto;
    max-width: 600px;
}

.playing-now__label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 28px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-dark);
}

.playing-now__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46,204,113,0.25);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(46,204,113,0.25); }
    50%       { box-shadow: 0 0 0 6px rgba(46,204,113,0.1); }
}

.playing-now__track-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 14px;
    color: var(--color-dark);
}

.playing-now__thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.playing-now__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.playing-now__artist { font-weight: 700; }
.playing-now__sep { color: var(--color-gray-600); }
.playing-now__title { color: var(--color-dark); }

/* Player Bar */
.homepage-player {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    /*background: var(--color-pink-player);*/
    background: #EE74B2;
    border-radius: var(--radius-pill);
    padding: 16px 60px;
    max-width: 600px;
    border: 4px solid #7b0000;
    border-top: 0;
    border-right: 0;
}

.homepage-player__play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    color: var(--color-white);
    flex-shrink: 0;
    transition: background var(--transition);
}
.homepage-player__play:hover { background: rgba(255,255,255,0.4); }

.homepage-player .cue-waveform { flex: 1; }
.homepage-player .cue-waveform__bar { background: var(--color-white); }

.playing-now__next {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 13px;
    color: var(--color-dark);
    justify-content: right;
    margin-right: 30px;
}
.playing-now__next-label { font-weight: 600; }
.playing-now__schedule-link {
    text-decoration: underline;
    font-weight: 600;
    color: var(--color-dark);
    transition: color var(--transition);
}
.playing-now__schedule-link:hover { color: var(--color-pink-player2); }


/* ============================================================
   CHANNEL SECTION (shared wrapper: channel bar + episodes grid)
   Default background is teal; on taxonomy pages an inline
   background-color (channel color) overrides this.
   ============================================================ */
.channel-section {
    background: var(--color-teal);
    transition: background-color var(--transition);
}

/* ============================================================
   CHANNEL BAR
   ============================================================ */
.channel-bar {
    position: relative;
    background: transparent;
    padding: var(--space-lg) 0;
    max-width: var(--container-width);
    margin-inline: auto;
}

.channel-bar__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    /* Leave room on both sides so channels never slide under the nav arrows.
       60px = 44px arrow + 16px gap. */
    padding: 0 60px;
    cursor: grab;
}
.channel-bar__viewport::-webkit-scrollbar { display: none; }
.channel-bar__viewport.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.channel-bar__viewport.is-dragging a { pointer-events: none; }

.channel-bar__track {
    display: inline-flex;
    gap: var(--space-lg);
    min-width: 100%;
}

/* Prev / next navigation arrows */
.channel-bar__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition), opacity var(--transition), visibility var(--transition);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.channel-bar__nav:hover { background: rgba(0, 0, 0, 0.8); }
.channel-bar__nav--prev { left: 6px; }
.channel-bar__nav--next { right: 6px; }
.channel-bar__nav.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.channel-bar__item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    transition: border-color var(--transition), transform var(--transition);
    min-width: 100px;
    text-decoration: none;
    scroll-snap-align: start;
    user-select: none;
    -webkit-user-drag: none;
}
.channel-bar__item img { pointer-events: none; }
.channel-bar__item.current-term {
    /*border-color: var(--channel-color, rgba(255,255,255,0.7));*/
    background: rgba(255,255,255,0.08);
}

.channel-bar__logo { height: 72px; width: auto; object-fit: contain; display: block; }

.channel-bar__name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 13px;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.channel-bar__cue {
    display: block;
    font-size: 10px;
    opacity: 0.7;
}


/* ============================================================
   EPISODES SECTION (Homepage Grid)
   ============================================================ */
.episodes-section {
    background: transparent;
    padding: var(--space-xl) 0 var(--space-3xl);
}

.episodes-section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    gap: var(--space-lg);
}

.episodes-section__channel {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 48px;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
}

.episodes-section__subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-top: var(--space-sm);
}

.episodes-section__pagination {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.episodes-section__page-info {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
}

.episodes-section__page-btn,
.more-episodes__page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--color-white);
    transition: border-color var(--transition), background var(--transition);
}
.episodes-section__page-btn:hover,
.more-episodes__page-btn:hover {
    border-color: var(--color-white);
    background: rgba(255,255,255,0.1);
}

/* ── Episodes section empty state ─────────────────────────── */
.episodes-section__empty {
    color: rgba(255,255,255,0.5);
    font-size: 15px;
    padding: var(--space-xl) 0;
    grid-column: 1 / -1;
}

/* ── Episode Grid ─────────────────────────────────────────── */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    transition: opacity 0.2s ease;
    min-height: 200px;
    position: relative;
}

@media (max-width: 900px) { .episodes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .episodes-grid { grid-template-columns: 1fr; } }

/* ── Episode Card ─────────────────────────────────────────── */
.episode-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-card-border);
    /*border-radius: var(--radius-md);*/
    border-radius: 40px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.episode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.episode-card__thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
}
.episode-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.episode-card:hover .episode-card__thumb img { transform: scale(1.04); }
.episode-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e8585 0%, #0d5a5a 100%);
}

.episode-card__body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex: 1;
}

.episode-card__artist {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-white);
}
.episode-card__artist a:hover { text-decoration: underline; }

.episode-card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 17px;
    color: var(--color-white);
    line-height: 1.3;
}
.episode-card__title a:hover { text-decoration: underline; }

.episode-card__excerpt {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.episode-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-card-border);
}

.episode-card__duration {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.episode-card__play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: var(--color-white);
    transition: background var(--transition);
}
.episode-card__play-btn:hover { background: var(--color-pink-player); }


/* ============================================================
   EPISODE HERO (Single + Channel)
   ============================================================ */
.episode-hero {
    background: var(--color-teal);
    padding: var(--space-xl) 0 var(--space-2xl);
    padding-top: var(--header-offset);
    position: relative;
}

.episode-hero--channel {
    /* color set inline via style attribute */
}

.episode-hero__inner { position: relative; }

.episode-hero__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    transition: background var(--transition);
}
.episode-hero__back:hover { background: rgba(255,255,255,0.3); }

.episode-hero__layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-xl);
    align-items: center;
}
@media (max-width: 768px) {
    .episode-hero__layout { grid-template-columns: 1fr; }
}

.episode-hero__image {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
}
.episode-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-hero__channels { display: flex; gap: var(--space-sm); margin-bottom: var(--space-md); flex-wrap: wrap; }

.episode-hero__channel-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.15);
    color: var(--color-white);
    transition: background var(--transition);
}
.episode-hero__channel-tag:hover { background: rgba(255,255,255,0.25); }
.episode-hero__channel-tag--active { background: var(--color-white); color: var(--color-teal); }

.episode-hero__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(32px, 4.5vw, 54px);
    color: var(--color-white);
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: var(--space-lg);
}

.episode-hero__hosted-by {
    font-family: var(--font-heading);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.episode-hero__artist-link {
    text-decoration: none;
    font-weight: 700;
    color: var(--color-white);
}
.episode-hero__artist-link:hover { opacity: 0.85; }

.episode-hero__excerpt {
    font-size: 16px;
    color: var(--color-white);
    line-height: 1.55;
    margin-bottom: var(--space-lg);
    max-width: 560px;
}

/* Play Button */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn--play {
    background: var(--color-white);
    color: var(--color-dark);
    border: 3px solid var(--color-dark);
    padding: 14px 32px 14px 14px;
    gap: var(--space-md);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 22px;
    letter-spacing: 0.5px;
    box-shadow: none;
    text-transform: none;
}
.btn--play:hover {
    transform: translateY(-2px);
    background: var(--color-gray-100);
    box-shadow: 0 6px 0 var(--color-dark);
}
.btn--play svg { flex-shrink: 0; }

/* Circular play/pause icon badge inside .btn--play */
.btn--play .js-btn-play-icon,
.btn--play .js-btn-pause-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-dark);
    color: var(--color-white);
    flex-shrink: 0;
}
.btn--play .js-btn-play-icon svg,
.btn--play .js-btn-pause-icon svg {
    width: 18px;
    height: 18px;
    margin-left: 2px; /* optical balance for the play triangle */
}
.btn--play .js-btn-pause-icon svg { margin-left: 0; }

.episode-hero__player-wrap {
    margin-top: var(--space-xl);
    max-width: 700px;
}


/* ============================================================
   EPISODE BODY
   ============================================================ */
.episode-body {
    background: var(--color-white);
    padding: var(--space-xl) 0;
}

.episode-body__inner {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: var(--space-xl);
    align-items: start;
}
@media (max-width: 768px) { .episode-body__inner { grid-template-columns: 1fr; } }

.episode-body__content {
    color: var(--color-dark);
    line-height: 1.7;
    font-size: 15px;
}
.episode-body__content p { margin-bottom: var(--space-md); }
.episode-body__content h2,
.episode-body__content h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--space-sm);
    margin-top: var(--space-lg);
}

.episode-body__meta {
    background: var(--color-gray-100);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.episode-meta-item { display: flex; flex-direction: column; gap: 2px; }
.episode-meta-item__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-gray-600);
}
.episode-meta-item__value { font-size: 15px; font-weight: 600; color: var(--color-dark); }


/* ============================================================
   MORE EPISODES
   ============================================================ */
.more-episodes {
    background: var(--color-pink-light);
    padding: var(--space-xl) 0;
    position: relative;
    overflow: hidden;
}

/* Pattern background */
.more-episodes--channel {
    background-image: var(--pattern-url, none);
    background-repeat: repeat;
    background-size: contain;
    /*background-size: 200px;*/
    /*background-blend-mode: overlay;*/
}
.more-episodes--channel::before {
    /*content: '';*/
    position: absolute;
    inset: 0;
    background: var(--color-pink-light);
    opacity: 0.88;
    pointer-events: none;
}
.more-episodes--channel .more-episodes__inner { position: relative; z-index: 1; }

.more-episodes__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.more-episodes__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(28px, 3.5vw, 40px);
    text-transform: uppercase;
    color: var(--color-dark);
}

.more-episodes__pagination {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.more-episodes__page-info { font-size: 13px; color: var(--color-gray-600); white-space: nowrap; }
.more-episodes__page-btn { border-color: rgba(0,0,0,0.2); color: var(--color-dark); }
.more-episodes__page-btn:hover { border-color: var(--color-dark); background: rgba(0,0,0,0.05); }

.more-episodes__list { display: flex; flex-direction: column; gap: var(--space-sm); }

/* ── Episode Row ──────────────────────────────────────────── */
.episode-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    background: #EE74B233;
    backdrop-filter: blur(8px);
    border-radius: var(--radius-pill);
    padding: var(--space-md) var(--space-lg);
    transition: background var(--transition), transform var(--transition);
    /*border: 1px solid rgba(255,255,255,0.8);*/
    box-shadow: -12px 8px 8px rgba(0, 0, 0, 0.1);
}
.episode-row:hover {
    background: rgba(255,255,255,0.9);
    transform: translateX(4px);
}

.episode-row__body { flex: 1; min-width: 0; }

.episode-row__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.episode-row__title a:hover { text-decoration: underline; }
.episode-row__number { font-weight: 700; margin-right: 4px; }

.episode-row__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}
.episode-row__date,
.episode-row__duration {
    font-size: 12px;
    color: var(--color-gray-600);
}
.episode-row__dot { color: var(--color-gray-600); font-size: 12px; }

.episode-row__play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    /*background: var(--color-teal);*/
    background: var(--color-dark);
    color: var(--color-white);
    flex-shrink: 0;
    transition: background var(--transition), transform var(--transition);
}
.episode-row__play-btn:hover {
    background: var(--color-pink-player);
    transform: scale(1.1);
}


/* ============================================================
   ARTIST SECTION
   ============================================================ */
.artist-section {
    /* Matches the .more-episodes band directly above it so the two read
       as one continuous pink section. Previously this was gray-100 with
       white text, which rendered the whole block unreadable. */
    background: var(--color-pink-light);
    padding: var(--space-xl) 0 var(--space-3xl);
    color: var(--color-dark);
}

.artist-section__heading {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(32px, 4vw, 48px);
    text-transform: uppercase;
    color: var(--color-dark);
    margin-bottom: var(--space-lg);
}

.artist-section__socials {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}
.artist-section__follow {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-dark);
}
.artist-section__socials-list {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.artist-section__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: var(--color-dark);
    transition: opacity var(--transition), transform var(--transition);
}
.artist-section__social-link:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}
.artist-section__social-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}
.cue-icon svg { display: block; }

/* ── Artist Gallery ──────────────────────────────────────── */
/*
 * Layout (matches screenshot):
 *   [ 2×2 group ] [ single ] [ single ] [ single ]
 *
 * The 2×2 group only renders when there are 4+ photos — otherwise every
 * photo sits in .artist-gallery__singles as an equal-width flex row.
 * All items share the same row height (--gallery-h).
 */
.artist-gallery {
    --gallery-h: 220px;          /* row height */
    --gallery-gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--gallery-gap);
    align-items: stretch;
    height: var(--gallery-h);
}

/* 2×2 compact block — square cells, total size = --gallery-h × --gallery-h */
.artist-gallery__group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows:    repeat(2, 1fr);
    gap: var(--gallery-gap);
    flex: 0 0 var(--gallery-h);
    height: var(--gallery-h);
    min-width: 0;
}

/* Single photos — equal-width flex row filling remaining space */
.artist-gallery__singles {
    display: flex;
    flex-direction: row;
    gap: var(--gallery-gap);
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
}
.artist-gallery__singles .artist-gallery__photo {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
}

/* Photo button — shared styles. Inside the 2×2 group the cell sizes the
   button; in .artist-gallery__singles the flex row sizes it. No fixed
   height on the button itself, so it can never overflow its container. */
.artist-gallery__photo {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: zoom-in;
    border: none;
    padding: 0;
    margin: 0;
    position: relative;
    background: rgba(0,0,0,0.06);
}
.artist-gallery__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}
.artist-gallery__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: inherit;
    pointer-events: none;
}
.artist-gallery__photo:hover img { transform: scale(1.05); }
.artist-gallery__photo:hover::after { opacity: 1; }

/* ── Artist Photo Lightbox ───────────────────────────────── */
.artist-lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}
.artist-lightbox[hidden] { display: none !important; }

.artist-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    cursor: pointer;
}

.artist-lightbox__panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    max-width: 92vw;
    max-height: 90vh;
}

.artist-lightbox__img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 80vw;
    max-height: 80vh;
}

.artist-lightbox__img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    display: block;
}

.artist-lightbox__close {
    position: absolute;
    top: -44px;
    right: 0;
    color: #fff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: background var(--transition);
}
.artist-lightbox__close:hover { background: rgba(255,255,255,0.3); }

.artist-lightbox__nav {
    color: #fff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
    transition: background var(--transition), opacity var(--transition);
}
.artist-lightbox__nav:hover { background: rgba(255,255,255,0.3); }
.artist-lightbox__nav[hidden],
.artist-lightbox__nav.is-hidden { visibility: hidden; }

.artist-section__bio-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    color: var(--color-dark);
    margin-bottom: var(--space-md);
}
.artist-section__bio-text {
    font-family: var(--font-gantari);
    color: var(--color-dark);
    line-height: 1.7;
    font-size: 15px;
    max-width: 900px;
}
.artist-section__bio-text p { margin-bottom: var(--space-md); }


/* ============================================================
   ARTIST HERO PAGE
   ============================================================ */
.artist-hero {
    background: var(--color-teal);
    padding: var(--space-xl) 0 var(--space-2xl);
    padding-top: var(--header-offset);
}
.artist-hero__layout { /* same as episode-hero__layout */
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-xl);
    align-items: center;
}
@media (max-width: 768px) { .artist-hero__layout { grid-template-columns: 1fr; } }

.artist-hero__image {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
}
.artist-hero__image img { width: 100%; height: 100%; object-fit: cover; }

.artist-hero__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(24px, 4vw, 42px);
    color: var(--color-white);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}
.artist-hero__hosted-by {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-md);
}
.artist-hero__excerpt {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}
.artist-hero__name-only {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 64px;
    color: var(--color-white);
    text-transform: uppercase;
}


/* ============================================================
   NATIVE AUDIO PLAYER
   ============================================================ */
.cue-player { background: rgba(255,255,255,0.08); border-radius: var(--radius-lg); padding: var(--space-lg); }

.cue-player__controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.cue-player__play-pause {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-pink-player);
    color: var(--color-white);
    flex-shrink: 0;
    transition: background var(--transition), transform var(--transition);
}
.cue-player__play-pause:hover {
    background: var(--color-pink-player2);
    transform: scale(1.05);
}

.cue-player__progress-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.cue-player__progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}
.cue-player__progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--color-white);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    pointer-events: none;
}

.cue-player__time {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    white-space: nowrap;
    min-width: 36px;
}

.cue-player__volume {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.cue-player__mute {
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    transition: color var(--transition);
}
.cue-player__mute:hover { color: var(--color-white); }

.cue-player__vol-slider {
    width: 70px;
    accent-color: var(--color-white);
    cursor: pointer;
}

.cue-player .cue-waveform {
    margin-top: var(--space-md);
    color: rgba(255,255,255,0.6);
}

/* Embeds */
.cue-player__embed { border-radius: var(--radius-md); overflow: hidden; }
.cue-player__embed iframe { display: block; border-radius: var(--radius-md); }

/* SoundCloud + Spotify: persistent iframes live in the header,
   positioned off-screen via inline styles in header.php */


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.7);
    padding: var(--space-xl) 0 var(--space-lg);
}

.site-footer__top {
    display: flex;
    align-items: center;
    /*justify-content: space-between;*/
    justify-content: left;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.site-footer__logo img { height: 32px; width: auto; filter: brightness(0) invert(1); }

/* Inline CUE mark (cue_logo_svg). The mark is two-tone: `ink` draws the
   shell, `paper` the cut-outs. On the dark footer those roles invert so
   the logo reads as a white outline instead of a black-on-black block. */
.site-footer__logo .cue-logo {
    height: 44px;
    width: auto;
    display: block;
    --cue-logo-ink:   var(--color-white);
    --cue-logo-paper: var(--color-dark);
}

/* Header keeps the default black-on-light treatment. */
.site-header__logo .cue-logo {
    height: 47px;
    width: auto;
    display: block;
}
.site-header--dark .site-header__logo .cue-logo {
    --cue-logo-ink:   var(--color-white);
    --cue-logo-paper: var(--color-dark);
}

.site-footer__nav-list {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}
.site-footer__nav-list li a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
}
.site-footer__nav-list li a:hover { color: var(--color-white); }

/* ── Footer artist directory ─────────────────────────────────
   Full-width row beneath the page links. Wraps freely so a long
   roster degrades into as many lines as it needs. */
.site-footer__artists {
    flex-basis: 100%;
    order: 10;              /* always after logo + page nav, before socials wrap */
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.site-footer__artists-title {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: var(--space-md);
}
.site-footer__artists-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px var(--space-lg);
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer__artists-link {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
}
.site-footer__artists-link:hover { color: var(--color-white); }

.site-footer__socials { display: flex; gap: var(--space-md); }
.site-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    transition: background var(--transition), color var(--transition);
}
.site-footer__social-link:hover { background: rgba(255,255,255,0.16); color: var(--color-white); }
.site-footer__social-link svg { width: 16px; height: 16px; }

.site-footer__copy { font-size: 13px; color: rgba(255,255,255,0.4); }


/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page {
    position: relative;
    min-height: calc(100vh - 64px); /* full viewport minus header */
    background: var(--color-pink-light);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Pattern background — custom upload via --contact-pattern, fallback SVG wave */
.contact-page__bg {
    position: absolute;
    inset: 0;
    background-image: var(--contact-pattern,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cpath d='M-40 200 Q40 60 120 200 Q200 340 280 200 Q360 60 440 200' fill='none' stroke='%23e8abbe' stroke-width='72' stroke-linecap='round'/%3E%3C/svg%3E")
    );
    background-repeat: repeat;
    background-size: 320px 320px;
    opacity: 0.55;
    pointer-events: none;
}

.contact-page__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: calc(var(--header-offset) + var(--space-xl));
    padding-bottom: var(--space-3xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

/* Contact cards */
.contact-card {
    background: #EE74B233;
    backdrop-filter: blur(8px);
    /*border: 1px solid rgba(255, 255, 255, 0.9);*/
    border-radius: var(--radius-lg);
    /*padding: var(--space-xl) var(--space-2xl);*/
    padding: 20px 60px;
    text-align: center;
    width: 100%;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}
.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1);
}

.contact-card__label {
    font-size: 15px;
    color: var(--color-dark);
    line-height: 1.5;
}

.contact-card__value {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: -0.3px;
    transition: color var(--transition);
    word-break: break-all;
}
.contact-card__value:hover { color: var(--color-teal); }

.contact-card--empty {
    opacity: 0.7;
    border-style: dashed;
}
.contact-card--empty a {
    color: var(--color-teal);
    text-decoration: underline;
    font-weight: 600;
}

.contact-page__content {
    width: 100%;
    max-width: 540px;
    color: var(--color-dark);
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
}


/* ============================================================
   PJAX NAVIGATION — Progress bar + page transitions
   ============================================================ */

/* Thin loading bar at the top of the viewport */
#cue-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--color-pink-player);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    border-radius: 0 2px 2px 0;
}

/* Page exit (fade out before swap) */
.cue-page-exit {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
}

/* Page enter (invisible immediately after swap) */
.cue-page-enter {
    opacity: 0;
    transform: translateY(6px);
}

/* Page enter active (fades in) */
.cue-page-enter--active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}


/* ============================================================
   SCHEDULE MODAL
   ============================================================ */

/* Body lock when modal open */
body.modal-open { overflow: hidden; }

.cue-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}
.cue-modal[hidden] { display: none; }

.cue-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.cue-modal__panel {
    position: relative;
    z-index: 1;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 780px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: modal-in 0.22s ease;
}

@keyframes modal-in {
    from { transform: translateY(16px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.cue-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--color-gray-200);
    flex-shrink: 0;
}

.cue-modal__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-dark);
}

.cue-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-dark);
    color: var(--color-white);
    transition: background var(--transition);
    flex-shrink: 0;
}
.cue-modal__close:hover { background: #333; }

.cue-modal__body {
    overflow-y: auto;
    padding: var(--space-lg) var(--space-xl) var(--space-xl);
    flex: 1;
}

/* Schedule groups */
.schedule-group { margin-bottom: var(--space-xl); }
.schedule-group:last-child { margin-bottom: 0; }

.schedule-group__label {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--space-md);
}

.schedule-list { list-style: none; }

.schedule-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-gray-200);
}
.schedule-item:last-child { border-bottom: none; }

.schedule-item__time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-pink-light);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    min-width: 52px;
    flex-shrink: 0;
    text-align: center;
}
.schedule-item__time-num {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.1;
}
.schedule-item__time-ampm {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-item__info { flex: 1; min-width: 0; }

.schedule-item__artist {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition);
}
.schedule-item__artist:hover { color: var(--color-teal); }

.schedule-item__meta {
    font-size: 13px;
    color: var(--color-gray-600);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.schedule-item__dot { margin: 0 4px; }

.schedule-item__remind {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color var(--transition);
    padding: 4px 0;
}
.schedule-item__remind:hover { color: var(--color-teal); }
.schedule-item__remind.is-reminded {
    color: var(--color-teal);
    font-weight: 600;
    pointer-events: none; /* prevent double-download */
}
.schedule-item__remind.is-reminded svg { fill: var(--color-teal); }

.schedule-empty {
    text-align: center;
    color: var(--color-gray-600);
    padding: var(--space-xl) 0;
    font-size: 15px;
}

/* "View full schedule" trigger button */
.playing-now__schedule-link {
    background: none;
    border: none;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
    color: var(--color-dark);
    transition: color var(--transition);
    padding: 0;
}
.playing-now__schedule-link:hover { color: var(--color-pink-player2); }


/* ============================================================
   BURGER MENU
   ============================================================ */
.site-header__burger {
    display: none; /* shown only on mobile via media query */
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    border-radius: var(--radius-sm);
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition);
}
.site-header--light .site-header__burger { color: var(--color-dark); }
.site-header--dark  .site-header__burger { color: var(--color-white); }
.site-header__burger:hover { background: rgba(0,0,0,0.06); }
.site-header--dark .site-header__burger:hover { background: rgba(255,255,255,0.1); }

.burger__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

/* Animated X state */
.site-header__burger.is-open .burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__burger.is-open .burger__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-header__burger.is-open .burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   EPISODE CARD — reveal animation
   ============================================================ */
.episode-card {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.2s ease;
}
.episode-card.is-visible {
    opacity: 1;
    transform: translateY(0);
/*    border: 6px solid #ffffff7d;
    border-top: 0;
    border-right: 0;*/
    box-shadow: -8px 8px 0px rgba(255,255,255,0.6)
}
/* Fallback for no-JS */
.no-js .episode-card { opacity: 1; transform: none; }


/* ============================================================
   RESPONSIVE — Mobile-first overrides
   ============================================================ */

/* ── ≤ 900px ── */
@media (max-width: 900px) {
    .episodes-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── ≤ 768px ── */
@media (max-width: 768px) {

    /* Header */
    .site-header { padding: 8px var(--container-pad); }
    .site-header__inner {
        gap: var(--space-sm);
        padding: 8px 12px;
        position: relative;
        flex-wrap: wrap;
    }

    /* Show burger, hide desktop nav by default */
    .site-header__burger { display: flex; }

    .site-header__nav {
        order: 3;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .site-header__nav.is-open {
        max-height: 300px;
    }
    .site-nav__list {
        flex-direction: column;
        gap: 2px;
        padding: var(--space-sm) 0 var(--space-md);
    }
    .site-nav__list li a {
        display: block;
        padding: 10px 14px;
        border-radius: var(--radius-sm);
        font-size: 15px;
    }

    /* Header player: hide info + actions, keep pill only */
    .header-player__info   { display: none; }
    .header-player__actions { display: none; }

    /* Playing now */
    .playing-now { padding: var(--space-lg) 0; padding-top: var(--header-offset); }
    .playing-now__label { font-size: 22px; }
    .homepage-player { padding: 10px 16px; max-width: 100%; }

    /* Episodes */
    .episodes-section__channel { font-size: 32px; }

    /* More episodes header */
    .more-episodes__title { font-size: 28px; }
    .more-episodes__header { flex-wrap: wrap; gap: var(--space-sm); }

    /* Episode hero */
    .episode-hero__layout { grid-template-columns: 1fr; }
    .artist-hero__layout  { grid-template-columns: 1fr; }
    .episode-hero__title  { font-size: 28px; }

    /* Episode body */
    .episode-body__inner { grid-template-columns: 1fr; }

    /* Artist */
    .artist-section__heading { font-size: 30px; }
    .artist-gallery {
        --gallery-h: auto;
        height: auto;
        flex-wrap: wrap;
    }
    .artist-gallery__group {
        flex: 1 1 100%;
        height: auto;
        aspect-ratio: 1;
        max-width: 360px;
    }
    .artist-gallery__singles {
        flex: 1 1 100%;
        flex-wrap: wrap;
        height: auto;
    }
    .artist-gallery__singles .artist-gallery__photo {
        flex: 1 1 calc(33.333% - var(--gallery-gap));
        height: 160px;
    }

    /* Footer */
    .site-footer__top { flex-direction: column; align-items: flex-start; gap: var(--space-lg); }
    .site-footer__nav-list { gap: var(--space-md); }

    /* Schedule modal */
    .cue-modal { padding: var(--space-md); align-items: flex-end; }
    .cue-modal__panel { max-height: 90vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    @keyframes modal-in {
        from { transform: translateY(32px); opacity: 0; }
        to   { transform: translateY(0);    opacity: 1; }
    }
}

/* ── ≤ 480px ── */
@media (max-width: 480px) {
    :root { --container-pad: 16px; }

    .episodes-grid { grid-template-columns: 1fr; }
    .artist-gallery__group { max-width: 280px; }
    .artist-gallery__singles .artist-gallery__photo {
        flex: 1 1 calc(50% - var(--gallery-gap));
        height: 140px;
    }

    .channel-bar__item { min-width: 80px; padding: 6px 10px; }
    .channel-bar__name { font-size: 11px; }

    .playing-now__next { flex-wrap: wrap; gap: 4px; }

    .episode-row { padding: var(--space-md); }
    .episode-row__title { font-size: 14px; }

    .schedule-item__remind span { display: none; } /* show icon only on very small screens */

    .cue-modal__header { padding: var(--space-md) var(--space-lg); }
    .cue-modal__body   { padding: var(--space-md) var(--space-lg) var(--space-lg); }
}


/* ============================================================
   ABOUT PAGE
   ============================================================ */

/* ── Who Are We ──────────────────────────────────────────── */
.who-we-are {
    background: var(--color-pink-light);
    padding: var(--space-3xl) 0 calc(var(--space-3xl) + 8px);
    padding-top: calc(var(--header-offset) + var(--space-xl));
}

.who-we-are__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-dark);
    margin-bottom: var(--space-xl);
    line-height: 1.05;
}

.who-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.who-card {
    background: var(--card-bg, var(--color-teal));
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: 0 10px;
}

.who-card__cue {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    /*opacity: 0.75;*/
}

.who-card__description {
    font-family: var(--font-gantari);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.who-card__body {
    font-family: var(--font-gantari);
    font-size: 14px;
    line-height: 1.75;
    opacity: 0.82;
    flex: 1;
}

/* ── Quote Block ─────────────────────────────────────────── */
.about-quote {
    background: #fff;
    padding: var(--space-3xl) 0;
}

.about-quote__box {
    /*max-width: 780px;*/
    margin-inline: auto;
    padding: var(--space-xl) var(--space-2xl);
    /*border-left: 5px solid var(--color-teal);*/
    background: var(--color-gray-100);
    /*border-radius: 0 var(--radius-md) var(--radius-md) 0;*/
    border-radius: 48px;
    box-shadow: -12px 12px 0px rgba(0, 0, 0, 1);
}

.about-quote__text {
    font-family: var(--font-display);
    font-size: clamp(22px, 3.5vw, 38px);
    font-weight: 400;
    color: var(--color-dark);
    line-height: 1.3;
    margin-bottom: var(--space-md);
    quotes: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-quote__body {
    font-family: var(--font-gantari);
    font-size: 15px;
    color: var(--color-gray-600);
    line-height: 1.7;
}
.about-quote__body + .about-quote__body {
    margin-top: var(--space-sm);
}

/* ── Our Approach ────────────────────────────────────────── */
.our-approach {
    position: relative;
    background: var(--color-pink-light);
    padding: var(--space-3xl) 0;
    overflow: hidden;
    color: var(--color-dark);
}

/* Pattern: custom upload via --approach-pattern, fallback to pink medallion SVG */
.our-approach__bg {
    position: absolute;
    inset: 0;
    background-image: var(--approach-pattern,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Ccircle cx='60' cy='60' r='28' fill='none' stroke='%23e8abbe' stroke-width='18'/%3E%3Ccircle cx='0' cy='60' r='28' fill='none' stroke='%23e8abbe' stroke-width='18'/%3E%3Ccircle cx='120' cy='60' r='28' fill='none' stroke='%23e8abbe' stroke-width='18'/%3E%3Ccircle cx='60' cy='0' r='28' fill='none' stroke='%23e8abbe' stroke-width='18'/%3E%3Ccircle cx='60' cy='120' r='28' fill='none' stroke='%23e8abbe' stroke-width='18'/%3E%3C/svg%3E")
    );
    background-repeat: repeat;
    background-size: 120px 120px;
    opacity: 0.7;
    pointer-events: none;
}

.our-approach__inner {
    position: relative;
    z-index: 1;
}

.our-approach__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--color-dark);
    margin-bottom: var(--space-2xl);
    line-height: 1.05;
    text-transform: uppercase;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl) var(--space-3xl);
}

.approach-item__title {
    font-family: var(--font-chango);
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 400;
    /* color set inline from meta */
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    line-height: 1.1;
}

.approach-item__body {
    font-family: var(--font-gantari);
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-dark);
}

/* ── About page — responsive ────────────────────────────── */
@media (max-width: 900px) {
    .who-cards       { grid-template-columns: repeat(2, 1fr); }
    .approach-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .who-cards     { grid-template-columns: 1fr; }
    .approach-grid { grid-template-columns: 1fr; }
    .about-quote__box { padding: var(--space-lg); }
    .who-we-are__title, .our-approach__title { font-size: 36px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   PERSISTENT VIDEO PLAYER (v4.2)
   ══════════════════════════════════════════════════════════════════════════

   The video surface is a single element (iframe or <video>) that lives
   inside #cue-video-dock. The DOCK container's position/size is what we
   animate between the inline homepage slot and the floating PiP corner —
   moving the surface element in the DOM would reload the iframe. */

/* ── Inline slot (homepage "Playing Now") ─────────────────────────────── */
/* The slot on the page is what the JS measures via getBoundingClientRect.
   It's 160×90 (16:9), sits where the thumbnail used to be, and is
   visually empty until the dock positions itself over it. */
.playing-now__video-wrap {
    position: relative;
    width: 160px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: #000;
}
.playing-now__thumb--poster {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}

/* ── Dock container (the portable surface's parent) ───────────────────── */
.cue-video-dock {
    position: fixed;
    z-index: 40;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    /* Soft, left-offset drop shadow — matches .site-header__inner so the
       dock reads as part of the same visual system as the header pill. */
    box-shadow: -12px 8px 8px rgba(0, 0, 0, 0.1);
    /* Always render — :hidden attribute hides it entirely */
}
.cue-video-dock[hidden] { display: none !important; }

/* ── The video surface fills its dock container ───────────────────────── */
.cue-video-surface {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.cue-video-surface iframe,
.cue-video-surface video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ── Floating state: desktop — draggable PiP, bottom-right corner ────── */
.cue-video-dock--floating {
    aspect-ratio: 16 / 9;
    bottom: 24px;
    right: 24px;
    top: auto;
    left: auto;
    cursor: default;
    transition: width 0.18s ease;
}
.cue-video-dock--floating.cue-video-dock--size-sm { width: 260px; }
.cue-video-dock--floating.cue-video-dock--size-md { width: 400px; }
.cue-video-dock--floating.cue-video-dock--size-lg { width: 560px; }
.cue-video-dock--floating.cue-video-dock--dragging {
    transition: none;
    user-select: none;
}

/* ── Inline state: JS writes explicit top/left/width/height from the slot rect ── */
.cue-video-dock--inline {
    /* box-shadow suppressed in inline mode so it blends with the page */
    box-shadow: none;
    border-radius: var(--radius-md);
}

/* ── Dock chrome: drag handle (top-left) + controls group (top-right) ── */
.cue-video-dock__handle {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    z-index: 2;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.15s;
}

.cue-video-dock__controls {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 4px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.15s;
}

.cue-video-dock__btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background 0.1s ease;
}
.cue-video-dock__btn:hover { background: rgba(0, 0, 0, 0.85); }
.cue-video-dock__btn[hidden] { display: none; }

/* ── Progress bar (bottom edge of the dock) ──────────────────────────────
   Always visible as a slim 3px line so users who lost YouTube's native
   bar still see where they are; grows to 5px on hover to make the
   click-to-seek target easier to hit. The fill is a white bar inside a
   translucent track. */
.cue-video-dock__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    z-index: 2;
    cursor: pointer;
    transition: height 0.12s ease;
}
.cue-video-dock:hover .cue-video-dock__progress {
    height: 5px;
}
.cue-video-dock__progress-fill {
    height: 100%;
    width: 0;
    background: #fff;
    transition: width 0.1s linear;
    pointer-events: none;  /* click goes to the track, not the fill */
}

/* Reveal chrome on hover (desktop) / during drag */
.cue-video-dock:hover .cue-video-dock__handle,
.cue-video-dock:hover .cue-video-dock__controls,
.cue-video-dock--dragging .cue-video-dock__handle {
    opacity: 1;
}
.cue-video-dock--dragging .cue-video-dock__handle { cursor: grabbing; }

/* Hide drag handle and size-cycle in inline mode — both are only
   meaningful in the floating picture-in-picture view. */
.cue-video-dock--inline .cue-video-dock__handle,
.cue-video-dock--inline .js-video-size { display: none; }

/* ── Fullscreen state (4th stop of the size cycle) ─────────────────────
   requestFullscreen() is called on the dock so its controls stay
   accessible. The UA gives fullscreen elements a default fill, but
   our floating-mode width rules (260/400/560px) would otherwise win
   on specificity — !important forces the fill. Hide the drag handle
   since dragging a fullscreen element makes no sense. */
.cue-video-dock:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.cue-video-dock:fullscreen .cue-video-dock__handle { display: none; }
/* Keep the controls visible in fullscreen even without hover — the
   user needs a way back out that isn't the keyboard. */
.cue-video-dock:fullscreen .cue-video-dock__controls { opacity: 1; }

/* ── Mobile: floating dock becomes a bottom-pinned strip ─────────────── */
@media (pointer: coarse), (max-width: 640px) {
    .cue-video-dock--floating,
    .cue-video-dock--floating.cue-video-dock--size-sm,
    .cue-video-dock--floating.cue-video-dock--size-md,
    .cue-video-dock--floating.cue-video-dock--size-lg {
        width: 100vw;
        max-width: 100%;
        aspect-ratio: auto;
        height: 30vw;
        max-height: 220px;
        bottom: 0;
        right: 0;
        left: 0;
        top: auto;
        border-radius: 0;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
    }
    .cue-video-dock--floating .cue-video-dock__handle,
    .cue-video-dock--floating .js-video-size {
        /* Dock is pinned — no drag, no resize on mobile */
        display: none;
    }
    .cue-video-dock--floating .cue-video-dock__controls {
        opacity: 1;  /* Always visible; no hover state on touch */
    }
    .cue-video-dock--floating .cue-video-dock__btn {
        width: 32px;
        height: 32px;
    }
}

/* ── Restore-video button in header mini-player ──────────────────────── */
.header-player__action-btn.js-restore-video[hidden] { display: none; }


/* ============================================================
   LANGUAGE TOGGLE (site header)
   A small text-only pill button that sits between the nav and
   the burger. Clicking it POSTs the target lang to admin-ajax
   (sets the `cue_lang` cookie) and pjax-refreshes the page.
   ============================================================ */
.site-header__lang-toggle {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--color-dark);
    border: 1.5px solid currentColor;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
    line-height: 1;
}
.site-header__lang-toggle:hover {
    background: var(--color-dark);
    color: var(--color-white);
}
.site-header--dark .site-header__lang-toggle { color: var(--color-white); }
.site-header--dark .site-header__lang-toggle:hover {
    background: var(--color-white);
    color: var(--color-dark);
}
/* When it's showing the Arabic glyph on an English site, bump the
   font slightly so the Arabic letters read at the same optical size
   as the surrounding Latin nav labels. */
.cue-lang-en .site-header__lang-toggle {
    font-family: "Tajawal", var(--font-body);
    font-size: 15px;
}


/* ============================================================
   ARABIC FONT STACK
   Applied whenever `<html lang="ar">` or `body.cue-lang-ar`
   is active so every user-visible string picks up Tajawal.
   Nav labels, headings, paragraphs, buttons — all flow through.
   ============================================================ */
html[lang="ar"],
.cue-lang-ar,
.cue-lang-ar body {
    font-family: "Tajawal", var(--font-body);
}
.cue-lang-ar h1,
.cue-lang-ar h2,
.cue-lang-ar h3,
.cue-lang-ar h4,
.cue-lang-ar h5,
.cue-lang-ar h6,
.cue-lang-ar .episode-card__title,
.cue-lang-ar .playing-now__title,
.cue-lang-ar .artist-name,
.cue-lang-ar .channel-bar__name,
.cue-lang-ar .site-nav__list li a,
.cue-lang-ar .footer__nav a,
.cue-lang-ar button,
.cue-lang-ar input,
.cue-lang-ar textarea {
    font-family: "Tajawal", var(--font-heading);
}


/* ============================================================
   RTL OVERRIDES
   ------------------------------------------------------------
   Deliberately small. `dir="rtl"` on <html> already mirrors most
   of the layout for free:

     - `flex-direction: row` is DIRECTION-AWARE. A plain row flex
       container lays its items inline-start -> inline-end, which
       under RTL is right -> left. It needs no override at all.
       (Forcing `row-reverse` here double-reverses and puts the
       row back into LTR order — the bug this block used to have.)
     - `text-align` defaults to the start edge, so prose flips too.
     - `margin-inline`, `padding-inline` and other logical
       properties follow direction automatically.

   What genuinely needs help is anything anchored to a PHYSICAL
   edge (absolute left/right) and any glyph that encodes reading
   direction. That is all this block does.
   ============================================================ */

/* ── Directional glyphs ──────────────────────────────────────
   Chevrons and back arrows encode "previous / next" along the
   reading axis, so they must mirror. Note these are scoped to
   navigation controls only — the play/pause triangle is a
   universal transport glyph and must NOT flip. */
[dir="rtl"] .episode-hero__back svg,
[dir="rtl"] .more-episodes__page-btn svg,
[dir="rtl"] .episodes-section__page-btn svg,
[dir="rtl"] .channel-bar__nav svg,
[dir="rtl"] .artist-lightbox__nav svg {
    transform: scaleX(-1);
}

/* ── Channel carousel arrows ─────────────────────────────────
   Absolutely positioned against physical edges, so swap them.
   The viewport itself scrolls natively and needs no help: with
   dir=rtl the browser mirrors its scroll origin. */
[dir="rtl"] .channel-bar__nav--prev { left: auto;  right: 6px; }
[dir="rtl"] .channel-bar__nav--next { right: auto; left: 6px; }

/* ── Floating video dock ─────────────────────────────────────
   Pinned bottom-right in LTR; mirror to bottom-left so it sits
   on the same side relative to reading direction. */
[dir="rtl"] .cue-video-dock--floating {
    right: auto;
    left: 24px;
}
@media (pointer: coarse), (max-width: 640px) {
    /* Mobile strip spans the full width — nothing to mirror. */
    [dir="rtl"] .cue-video-dock--floating {
        left: 0;
        right: 0;
    }
}

/* ── Prose lists ─────────────────────────────────────────────
   Only editor-authored content renders real bullets; the theme's
   own navigation lists are list-style:none, so scope this to
   content areas rather than every <ul> on the page. */
[dir="rtl"] .entry-content ul,
[dir="rtl"] .entry-content ol,
[dir="rtl"] .artist-section__bio-text ul,
[dir="rtl"] .artist-section__bio-text ol,
[dir="rtl"] .contact-page__content ul,
[dir="rtl"] .contact-page__content ol {
    padding-right: 1.2em;
    padding-left: 0;
}

/* ── Form controls ───────────────────────────────────────────
   Inputs don't inherit direction from an ancestor in every
   browser, so set it explicitly. */
[dir="rtl"] input[type="text"],
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="url"],
[dir="rtl"] input[type="tel"],
[dir="rtl"] input[type="search"],
[dir="rtl"] textarea {
    text-align: right;
    direction: rtl;
}

/* ── Latin-only values inside RTL text ───────────────────────
   Phone numbers, emails and durations are Latin/numeric strings.
   Inside an RTL paragraph the bidi algorithm can reorder their
   leading "+" or trailing punctuation. Isolating them keeps each
   one internally LTR while still flowing right-to-left as a unit. */
[dir="rtl"] .contact-card__value,
[dir="rtl"] .episode-card__duration,
[dir="rtl"] .episode-row__duration,
[dir="rtl"] .episode-row__number,
[dir="rtl"] .schedule-item__time,
[dir="rtl"] .more-episodes__page-info,
[dir="rtl"] .episodes-section__page-info {
    unicode-bidi: isolate;
    direction: ltr;
}

/* The isolated runs above still need to sit on the correct edge
   inside their RTL parent. */
[dir="rtl"] .more-episodes__page-info,
[dir="rtl"] .episodes-section__page-info { text-align: right; }
