/* ============================================
   RADIO FENOUIL STORIES — Design System
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-card: rgba(0, 0, 0, 0.02);
    --bg-card-hover: rgba(0, 0, 0, 0.04);
    --bg-glass: rgba(0, 0, 0, 0.03);
    --bg-glass-border: rgba(0, 0, 0, 0.08);

    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;

    --accent: #2ca50e;
    --accent-light: #2ca50e;
    --accent-dark: #227d0b;
    --accent-glow: rgba(122, 27, 46, 0.2);
    --accent-glow-strong: rgba(122, 27, 46, 0.35);

    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px var(--accent-glow);

    --nav-height: 72px;
    --max-width: 1100px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-dark);
}

img {
    max-width: 100%;
    display: block;
}

ul,
ol {
    list-style: none;
}

/* --- Background subtle accent --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 20% 0%, rgba(122, 27, 46, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(122, 27, 46, 0.02) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: #2ca50e;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(122, 27, 46, 0.3);
    transition: background var(--transition-normal);
}

.navbar .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-brand:hover {
    color: #fff;
}

.nav-brand .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-brand .brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.75);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   LAYOUT
   ============================================ */

.page-content {
    position: relative;
    z-index: 1;
    padding-top: var(--nav-height);
    min-height: 100vh;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title .icon {
    font-size: 1.3rem;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border-hover), transparent);
    margin-left: 12px;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    padding: 80px 0 40px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 28px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hero h1 .stories {
    font-weight: 400;
    font-size: 0.6em;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-top: 4px;
}

.hero-description {
    max-width: 620px;
    margin: 0 auto 32px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow-strong);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ============================================
   EPISODE CARDS
   ============================================ */

.episodes-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.episode-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}

.episode-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--transition-fast);
    border-radius: 0 2px 2px 0;
}

.episode-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.episode-card:hover::before {
    opacity: 1;
}

.episode-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 10px;
}

.episode-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.02em;
    flex: 1;
}

.episode-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.episode-meta .date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.episode-meta .duration {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-glass);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
}

.episode-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   EPISODE DETAIL PAGE
   ============================================ */

.episode-detail {
    padding: 60px 0;
}

.episode-detail-header {
    margin-bottom: 40px;
}

.episode-detail-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 24px;
    transition: color var(--transition-fast);
}

.episode-detail-header .back-link:hover {
    color: var(--accent);
}

.episode-detail-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.3;
    margin-bottom: 16px;
}

.episode-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.episode-detail-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   CUSTOM AUDIO PLAYER (Episode Detail)
   ============================================ */

.custom-player {
    background: linear-gradient(135deg, #3d0f18 0%, #2a0b11 40%, #1f080d 100%);
    border: 1px solid rgba(122, 27, 46, 0.3);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.custom-player::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(122, 27, 46, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.custom-player-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.player-play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px var(--accent-glow-strong), 0 0 0 4px rgba(122, 27, 46, 0.1);
    position: relative;
}

.player-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 30px var(--accent-glow-strong), 0 0 0 6px rgba(122, 27, 46, 0.15);
}

.player-play-btn:active {
    transform: scale(0.95);
}

.player-play-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.player-play-btn .pause-icon {
    display: none;
}

.player-play-btn.playing .play-icon {
    display: none;
}

.player-play-btn.playing .pause-icon {
    display: block;
}

/* Ripple on play button */
.player-play-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0;
    animation: none;
}

.player-play-btn.playing::after {
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-info .player-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #f0f0f0;
}

.player-info .player-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.player-time-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
}

/* Progress bar */
.player-progress-area {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.player-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    transition: height var(--transition-fast);
}

.player-progress-bar:hover {
    height: 10px;
}

.player-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-light));
    border-radius: 3px;
    position: relative;
    width: 0%;
    transition: width 0.1s linear;
}

.player-progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: var(--accent-light);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow-strong);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.player-progress-bar:hover .player-progress-fill::after {
    opacity: 1;
}

.player-times {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'JetBrains Mono', monospace;
}

/* Player bottom controls */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.player-controls-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-skip-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 700;
}

.player-skip-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.player-speed-btn {
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    transition: all var(--transition-fast);
}

.player-speed-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.player-controls-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Volume */
.player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-volume-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    padding: 4px;
    transition: color var(--transition-fast);
}

.player-volume-btn:hover {
    color: #fff;
}

.player-volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.player-volume-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 80%;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.download-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* ============================================
   MINI PLAY BUTTON (on episode cards)
   ============================================ */

.mini-play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 12px var(--accent-glow);
    position: relative;
    z-index: 2;
}

.mini-play-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 20px var(--accent-glow-strong);
}

.mini-play-btn:active {
    transform: scale(0.92);
}

.mini-play-btn svg {
    width: 16px;
    height: 16px;
    fill: #fff;
}

.mini-play-btn .mini-pause-icon {
    display: none;
}

.mini-play-btn.playing .mini-play-icon {
    display: none;
}

.mini-play-btn.playing .mini-pause-icon {
    display: block;
}

/* Adjust episode card to fit play button */
.episode-card {
    display: flex;
    gap: 16px;
    align-items: center;
}

.episode-card-content {
    flex: 1;
    min-width: 0;
}

/* ============================================
   STICKY BOTTOM PLAYER BAR
   ============================================ */

body.has-sticky-player {
    padding-bottom: 84px;
}

.sticky-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: linear-gradient(180deg, #3d0f18 0%, #2a0b11 100%);
    border-top: 1px solid rgba(122, 27, 46, 0.3);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.sticky-player.visible {
    transform: translateY(0);
}

.sticky-player-progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    position: relative;
}

.sticky-player-progress:hover {
    height: 6px;
}

.sticky-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
    width: 0%;
    transition: width 0.1s linear;
}

.sticky-player-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sticky-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 12px var(--accent-glow);
}

.sticky-play-btn:hover {
    transform: scale(1.08);
}

.sticky-play-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.sticky-play-btn .pause-icon {
    display: none;
}

.sticky-play-btn.playing .play-icon {
    display: none;
}

.sticky-play-btn.playing .pause-icon {
    display: block;
}

.sticky-player-info {
    flex: 1;
    min-width: 0;
}

.sticky-player-title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #f0f0f0;
}

.sticky-player-time {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'JetBrains Mono', monospace;
    margin-top: 2px;
}

.sticky-skip-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    font-weight: 700;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.sticky-skip-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.sticky-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-left: 4px;
}

.sticky-close-btn:hover {
    background: rgba(255, 80, 80, 0.15);
    border-color: rgba(255, 80, 80, 0.3);
    color: #ff6b6b;
}

/* Episode description */
.episode-description {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.episode-description p {
    margin-bottom: 16px;
}

.episode-description a {
    color: var(--accent-light);
    word-break: break-all;
}

.episode-description a:hover {
    text-decoration: underline;
}

/* ============================================
   PLATFORMS GRID
   ============================================ */

.platforms-section {
    padding: 40px 0 60px;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.platform-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
    color: var(--text-primary);
}

.platform-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--text-primary);
}

.platform-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.platform-icon.spotify {
    background: #1DB954;
}

.platform-icon.pocket-casts {
    background: #F43E37;
}

.platform-icon.amazon {
    background: #25D1DA;
    color: #000;
}

.platform-icon.castbox {
    background: #F55B23;
}

.platform-icon.podcast-addict {
    background: #1B73E8;
}

.platform-icon.tunein {
    background: #14D8CC;
    color: #000;
}

.platform-icon.deezer {
    background: #A238FF;
}

.platform-icon.rss {
    background: #FF8C00;
}

.platform-info {
    display: flex;
    flex-direction: column;
}

.platform-info .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.platform-info .name {
    font-weight: 600;
    font-size: 1rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    text-decoration: none;
    color: var(--text-primary);
}

.contact-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    color: var(--text-primary);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.contact-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   SEARCH BAR
   ============================================ */

.search-bar {
    position: relative;
    margin-bottom: 32px;
}

.search-bar input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all var(--transition-fast);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-bar .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

/* ============================================
   PAGE HEADER (for inner pages)
   ============================================ */

.page-header {
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.page-header p {
    color: var(--text-secondary);
    margin-top: 8px;
    font-size: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-brand .brand-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow);
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-light);
}

/* ============================================
   LOADING STATE
   ============================================ */

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    gap: 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Error state */
.error-state {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
}

.error-state .error-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

/* ============================================
   CTA SECTION (listen everywhere)
   ============================================ */

.cta-section {
    padding: 48px 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(122, 27, 46, 0.08), rgba(122, 27, 46, 0.02));
    border: 1px solid rgba(122, 27, 46, 0.15);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    text-align: center;
}

.cta-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.cta-platforms {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-platforms a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.cta-platforms a:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    color: var(--text-primary);
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in:nth-child(1) {
    animation-delay: 0.05s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.15s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(5) {
    animation-delay: 0.25s;
}

.fade-in:nth-child(6) {
    animation-delay: 0.3s;
}

.fade-in:nth-child(7) {
    animation-delay: 0.35s;
}

.fade-in:nth-child(8) {
    animation-delay: 0.4s;
}

/* ============================================
   "MORE EPISODES" LINK
   ============================================ */

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.more-link:hover {
    gap: 12px;
    color: var(--accent);
}

/* Episode count badge */
.episode-count {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {

    /* --- Navigation --- */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #2ca50e;
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 4px;
        transition: right var(--transition-normal);
        border-left: 1px solid rgba(255, 255, 255, 0.15);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 12px 16px;
        width: 100%;
        border-radius: var(--radius-sm);
    }

    .hamburger {
        display: flex;
    }

    /* --- Hero --- */
    .hero {
        padding: 48px 0 24px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.9rem;
        padding: 0 8px;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
        font-size: 2.2rem;
        border-radius: 20px;
        margin-bottom: 20px;
    }

    /* --- Sections --- */
    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .container {
        padding: 0 16px;
    }

    /* --- Episode cards --- */
    .episode-card {
        padding: 16px;
        gap: 12px;
    }

    .episode-card-content {
        min-width: 0;
    }

    .episode-card-header {
        flex-direction: column;
        gap: 6px;
    }

    .episode-card h3 {
        font-size: 0.95rem;
    }

    .episode-meta {
        gap: 10px;
        font-size: 0.75rem;
    }

    .episode-card p {
        font-size: 0.82rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .mini-play-btn {
        width: 36px;
        height: 36px;
    }

    .mini-play-btn svg {
        width: 14px;
        height: 14px;
    }

    /* --- Custom Player (episode detail) --- */
    .custom-player {
        padding: 20px;
        border-radius: var(--radius-lg);
    }

    .custom-player-top {
        gap: 14px;
        margin-bottom: 18px;
    }

    .player-play-btn {
        width: 52px;
        height: 52px;
    }

    .player-play-btn svg {
        width: 20px;
        height: 20px;
    }

    .player-info .player-title {
        font-size: 0.88rem;
    }

    .player-info .player-subtitle {
        font-size: 0.72rem;
    }

    .player-progress-area {
        margin-bottom: 16px;
    }

    .player-times {
        font-size: 0.7rem;
    }

    .player-controls {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .player-controls-left {
        justify-content: center;
        gap: 10px;
    }

    .player-controls-right {
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .player-volume-slider {
        width: 60px;
    }

    .download-link {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    /* --- Episode detail --- */
    .episode-detail {
        padding: 32px 0;
    }

    .episode-detail-header {
        margin-bottom: 24px;
    }

    .episode-detail-header h1 {
        font-size: 1.4rem;
    }

    .episode-detail-meta {
        gap: 12px;
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    .episode-description {
        padding: 20px;
        font-size: 0.88rem;
    }

    /* --- Platforms grid --- */
    .platforms-grid {
        grid-template-columns: 1fr;
    }

    .platform-card {
        padding: 16px 18px;
    }

    /* --- Contact grid --- */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 20px;
        gap: 16px;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    /* --- CTA --- */
    .cta-box {
        padding: 28px 16px;
    }

    .cta-box h2 {
        font-size: 1.2rem;
    }

    .cta-platforms a {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    /* --- Page header --- */
    .page-header {
        padding: 32px 0 20px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header p {
        font-size: 0.9rem;
    }

    /* --- Footer --- */
    .footer {
        padding: 28px 0;
        margin-top: 32px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        gap: 16px;
    }

    /* --- Search --- */
    .search-bar input {
        padding: 12px 16px 12px 42px;
        font-size: 0.9rem;
    }

    /* --- RSS URL --- */
    .rss-url-box {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .rss-url-box code {
        font-size: 0.75rem;
    }

    /* --- Subscribe intro --- */
    .subscribe-intro {
        font-size: 0.9rem;
        margin-bottom: 28px;
    }

    /* --- Sticky player (already handled above but reinforce) --- */
    .sticky-player-content {
        padding: 8px 16px;
        gap: 10px;
    }

    .sticky-play-btn {
        width: 38px;
        height: 38px;
    }

    .sticky-skip-btn {
        display: none;
    }

    .sticky-player-title {
        font-size: 0.8rem;
    }

    .sticky-player-time {
        font-size: 0.65rem;
    }

    body.has-sticky-player {
        padding-bottom: 72px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero h1 .stories {
        font-size: 0.55em;
    }

    .hero-logo {
        width: 68px;
        height: 68px;
        font-size: 1.8rem;
        border-radius: 18px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Episode card: stack play + content vertically on very small */
    .episode-card {
        flex-direction: row;
        padding: 14px;
        gap: 10px;
    }

    .episode-card h3 {
        font-size: 0.88rem;
        line-height: 1.3;
    }

    .episode-meta .duration {
        display: none;
    }

    /* Custom player */
    .custom-player {
        padding: 16px;
    }

    .custom-player-top {
        gap: 12px;
        margin-bottom: 14px;
    }

    .player-play-btn {
        width: 44px;
        height: 44px;
    }

    .player-play-btn svg {
        width: 18px;
        height: 18px;
    }

    .player-skip-btn {
        width: 32px;
        height: 32px;
        font-size: 0.65rem;
    }

    .player-speed-btn {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    /* Hide volume on very small screens */
    .player-volume {
        display: none;
    }

    .download-link {
        width: 100%;
        justify-content: center;
    }

    .episode-detail-header h1 {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .cta-platforms {
        flex-direction: column;
        align-items: center;
    }

    .cta-platforms a {
        width: 100%;
        max-width: 240px;
        justify-content: center;
    }

    .contact-card {
        padding: 16px;
        gap: 12px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .contact-info h3 {
        font-size: 0.9rem;
    }

    .contact-info p {
        font-size: 0.78rem;
    }
}

/* Ensure touch targets are at least 44px */
@media (pointer: coarse) {
    .mini-play-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .player-skip-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .sticky-play-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .sticky-close-btn {
        min-width: 36px;
        min-height: 36px;
    }

    .player-progress-bar {
        height: 10px;
    }

    .sticky-player-progress {
        height: 6px;
    }
}

/* --- Mobile overlay --- */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.nav-overlay.open {
    display: block;
}

/* ============================================
   SUBSCRIBE PAGE SPECIFICS
   ============================================ */

.subscribe-intro {
    text-align: center;
    max-width: 550px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.rss-section {
    margin-top: 40px;
    text-align: center;
}

.rss-url-box {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-top: 12px;
    max-width: 100%;
    overflow: auto;
}

.rss-url-box code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-light);
    word-break: break-all;
}

.rss-url-box button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition-fast);
}

.rss-url-box button:hover {
    background: var(--accent-dark);
}

/* ============================================
   NO-EPISODES / EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .emoji {
    font-size: 3rem;
    margin-bottom: 16px;
}