/*
 * YonderCast — Frontend Styles
 *
 * Clean, content-focused design.
 * Uses CSS custom properties for easy theming.
 */

/* ===================================================================
   CSS VARIABLES
   =================================================================== */

:root {
    --yc-color-bg:         #fafaf8;
    --yc-color-surface:    #ffffff;
    --yc-color-text:       #1a1a1a;
    --yc-color-text-muted: #6b6b6b;
    --yc-color-text-light: #999999;
    --yc-color-accent:     #1a6b4e;
    --yc-color-accent-hover:#145a40;
    --yc-color-border:     #e4e4e0;
    --yc-color-border-light:#f0f0ec;
    --yc-color-highlight:  #e8f5f0;
    --yc-color-tour-bg:    #fff4ee;
    --yc-color-tour-accent:#f7783a;
    --yc-color-player-bg:  #6a1fd6;
    --yc-color-player-text:#f5f5f3;
    --yc-radius:           8px;
    --yc-radius-sm:        4px;
    --yc-shadow:           0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --yc-shadow-md:        0 4px 12px rgba(0,0,0,0.08);
    --yc-max-width:        1100px;
    --yc-font:             -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --yc-font-display:     Georgia, "Times New Roman", serif;
}

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

body.yc-page {
    background: var(--yc-color-bg);
    color: var(--yc-color-text);
    font-family: var(--yc-font);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* ===================================================================
   BREADCRUMB
   =================================================================== */

.yc-breadcrumb {
    font-size: 0.72rem;
    color: var(--yc-color-text-muted);
    padding: 20px 0 0;
}
.yc-breadcrumb a { color: var(--yc-color-text-muted); }
.yc-breadcrumb a:hover { color: var(--yc-color-accent); }
.yc-sep { margin: 0 6px; color: var(--yc-color-text-light); }

/* ===================================================================
   PAGE HEADERS
   =================================================================== */

.yc-main { padding: 0 0 60px; }

.yc-page-header {
    padding: 40px 0 32px;
}
.yc-page-header h1 {
    font-family: var(--yc-font-display);
    font-size: 1.67rem;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.yc-subtitle {
    font-size: 0.89rem;
    color: var(--yc-color-text-muted);
    margin: 0;
}

.yc-page-header .yc-search-dest-wrap {
    margin-top: 20px;
}

.yc-empty {
    font-size: 1rem;
    color: var(--yc-color-text-muted);
    padding: 40px 0;
}

/* ===================================================================
   DESTINATIONS INDEX
   =================================================================== */

.yc-dest-section { margin-bottom: 40px; }
.yc-dest-section h2 {
    font-size: 1.11rem;
    font-weight: 600;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--yc-color-border);
    color: var(--yc-color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--yc-font);
}

.yc-dest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.yc-dest-card {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    background: var(--yc-color-surface);
    border: 1px solid var(--yc-color-border);
    border-radius: var(--yc-radius);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.yc-dest-card:hover {
    border-color: var(--yc-color-accent);
    box-shadow: var(--yc-shadow);
}

.yc-dest-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--yc-color-text);
}
.yc-dest-country {
    font-size: 0.72rem;
    color: var(--yc-color-text-muted);
    margin-top: 2px;
}
.yc-dest-count {
    font-size: 0.67rem;
    color: var(--yc-color-text-light);
    margin-top: 6px;
}

/* ===================================================================
   DESTINATION PAGE LAYOUT
   =================================================================== */

.yc-dest-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1040px) {
    .yc-dest-layout {
        grid-template-columns: 1fr;
    }
}

/* ===================================================================
   EPISODE CARDS
   =================================================================== */

.yc-episodes-col,
.yc-episodes-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.yc-episode-card {
    background: var(--yc-color-surface);
    border: 1px solid var(--yc-color-border-light);
    border-radius: var(--yc-radius);
    padding: 20px 24px;
    transition: border-color 0.2s;
}
.yc-episode-card:hover {
    border-color: var(--yc-color-border);
}

.yc-episode-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--yc-color-text-light);
    margin-bottom: 10px;
}

/* Date + duration line under episode title */
.yc-episode-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--yc-color-text-muted);
    margin-bottom: 10px;
}
.yc-episode-detail {
    white-space: nowrap;
}
.yc-episode-detail:not(:first-child)::before {
    content: '·';
    margin-right: 6px;
    color: #ccc;
}
.yc-detail-label {
    color: #999;
}

.yc-episode-body {
    display: flex;
    gap: 26px;
    align-items: flex-start;
}

.yc-episode-thumb {
    width: 124px;
    height: 124px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.yc-episode-thumb-placeholder {
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #bbb;
}

.yc-episode-content {
    flex: 1;
    min-width: 0;
}

.yc-episode-podcast {
    color: #444;
    font-weight: 600;
}
.yc-episode-podcast::before {
    content: 'Podcast: ';
    color: #999;
    font-weight: 400;
}

.yc-episode-duration {
    color: var(--yc-color-text-light);
}

.yc-episode-title {
    font-size: 1.12rem;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.35;
}
.yc-episode-card h3.yc-episode-title {
    font-size: 1rem;
}

.yc-episode-desc {
    font-size: 1rem;
    color: var(--yc-color-text-muted);
    margin: 0 0 12px;
    line-height: 1.55;
}

.yc-desc-toggle {
    display: inline-block;
    font-size: 0.61rem;
    font-weight: 600;
    color: var(--yc-color-accent);
    background: var(--yc-color-highlight);
    border: 1px solid var(--yc-color-accent);
    border-radius: 20px;
    padding: 2px 10px;
    margin-left: 6px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.4;
    vertical-align: middle;
    transition: background 0.15s, color 0.15s;
}
.yc-desc-toggle:hover {
    background: var(--yc-color-accent);
    color: #fff;
    text-decoration: none;
}

.yc-episode-link {
    font-size: 0.72rem;
    color: var(--yc-color-text-muted);
    display: inline-block;
    margin-top: 8px;
}
.yc-episode-link:hover {
    color: var(--yc-color-accent);
}

/* ===================================================================
   PLAY BUTTON
   =================================================================== */

.yc-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--yc-color-player-bg);
    background: transparent;
    color: var(--yc-color-player-bg);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.yc-play-btn:hover {
    background: var(--yc-color-player-bg);
    color: #fff;
}
.yc-play-btn.playing {
    background: var(--yc-color-player-bg);
    color: #fff;
}
.yc-play-icon {
    display: inline-block;
    width: 9px;
    height: 10px;
    position: relative;
    vertical-align: middle;
    flex-shrink: 0;
    font-size: 0;
    overflow: hidden;
}
/* Play state: triangle via border */
.yc-play-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 9px;
    border-color: transparent transparent transparent var(--yc-color-player-bg);
    transition: border-color 0.2s;
}
.yc-play-btn:hover .yc-play-icon::before,
.yc-play-btn.playing .yc-play-icon::before {
    border-color: transparent transparent transparent #fff;
}
/* Pause state: two vertical bars */
.yc-play-icon.is-paused::before {
    border: none;
    width: 3px;
    height: 10px;
    background: var(--yc-color-player-bg);
    border-radius: 1px;
}
.yc-play-icon.is-paused::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 10px;
    background: var(--yc-color-player-bg);
    border-radius: 1px;
}
.yc-play-btn:hover .yc-play-icon.is-paused::before,
.yc-play-btn:hover .yc-play-icon.is-paused::after,
.yc-play-btn.playing .yc-play-icon.is-paused::before,
.yc-play-btn.playing .yc-play-icon.is-paused::after {
    background: #fff;
}

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

.yc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 24px;
    align-self: start;
}

@media (max-width: 1040px) {
    .yc-sidebar {
        position: static;
    }
}

.yc-sidebar-section {
    background: var(--yc-color-surface);
    border: 1px solid var(--yc-color-border);
    border-radius: var(--yc-radius);
    padding: 20px;
}

.yc-sidebar-section h3 {
    font-size: 0.83rem;
    font-weight: 600;
    margin: 0 0 12px;
}
.yc-sidebar-section h4 {
    font-size: 0.72rem;
    font-weight: 600;
    margin: 16px 0 8px;
    color: var(--yc-color-text-muted);
}

/* Tours widget */
.yc-tours-widget {
    background: var(--yc-color-tour-bg);
    border-color: #fcdcc8;
}
.yc-tours-intro {
    font-size: 0.89rem;
    color: var(--yc-color-text-muted);
    margin: 0 0 16px;
}

.yc-tour-btn {
    display: block;
    text-align: center;
    padding: 12px 20px;
    background: var(--yc-color-tour-accent);
    color: #fff;
    border-radius: var(--yc-radius);
    font-weight: 600;
    font-size: 0.83rem;
    transition: background 0.2s;
}
.yc-tour-btn:hover {
    background: #e0632a;
    color: #fff;
}

/* Destination info */
.yc-dest-info {
    margin: 0;
    font-size: 0.78rem;
}
.yc-dest-info dt {
    color: var(--yc-color-text-muted);
    font-size: 0.67rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 8px;
}
.yc-dest-info dd {
    margin: 2px 0 0;
    font-weight: 600;
}

.yc-podcast-list-mini {
    list-style: none;
    margin: 0;
    padding: 0;
}
.yc-podcast-list-mini li {
    padding: 3px 0;
    font-size: 0.72rem;
}

/* ===================================================================
   PODCASTS INDEX
   =================================================================== */

.yc-podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.yc-podcast-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    background: var(--yc-color-surface);
    border: 1px solid var(--yc-color-border-light);
    border-radius: var(--yc-radius);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.yc-podcast-card:hover {
    border-color: var(--yc-color-accent);
    box-shadow: var(--yc-shadow);
}

.yc-podcast-art {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 12px;
}
.yc-podcast-art-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--yc-color-border-light);
    font-size: 2rem;
}

.yc-podcast-name {
    font-weight: 600;
    font-size: 0.83rem;
    color: var(--yc-color-text);
    line-height: 1.3;
}
.yc-podcast-author {
    font-size: 0.67rem;
    color: var(--yc-color-text-muted);
    margin-top: 2px;
}
.yc-podcast-ep-count {
    font-size: 0.61rem;
    color: var(--yc-color-text-light);
    margin-top: 4px;
}

/* ===================================================================
   PODCAST SHOW PAGE
   =================================================================== */

.yc-show-header {
    display: flex;
    gap: 28px;
    padding: 24px 0 32px;
    align-items: flex-start;
}

.yc-show-art {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--yc-shadow-md);
}

.yc-show-info h1 {
    font-family: var(--yc-font-display);
    font-size: 1.44rem;
    margin: 0 0 4px;
    line-height: 1.2;
}
.yc-show-author {
    font-size: 0.83rem;
    color: var(--yc-color-text-muted);
    margin: 0 0 12px;
}
.yc-show-desc {
    font-size: 1rem;
    color: var(--yc-color-text-muted);
    line-height: 1.6;
    margin: 0 0 12px;
}
.yc-show-stats {
    font-size: 0.78rem;
    color: var(--yc-color-text-light);
    margin: 0 0 8px;
}
.yc-show-link {
    font-size: 0.72rem;
}

.yc-episodes-heading {
    font-size: 1.11rem;
    font-weight: 600;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--yc-color-border);
}

@media (max-width: 768px) {
    .yc-show-header { flex-direction: column; align-items: center; text-align: center; }
    .yc-show-art { width: 120px; height: 120px; }
    .yc-page-header h1 { font-size: 1.44rem; }
    .yc-episode-body { flex-direction: column; }
    .yc-episode-thumb { width: 48px; height: 48px; border-radius: 6px; }
    .yc-episode-thumb-placeholder { font-size: 1.2rem; }
}

/* ===================================================================
   STICKY AUDIO PLAYER (enhanced)
   =================================================================== */

.yc-sticky-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--yc-color-player-bg);
    color: var(--yc-color-player-text);
    z-index: 1000;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}

/* Three-group layout: left | center | right */
.yc-player-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    padding: 8px 24px;
    max-width: 1420px;
    margin: 0 auto;
}

/* LEFT: Artwork + episode info */
.yc-player-group-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
    width: 95%;
    justify-self: start;
}
.yc-player-art {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.yc-player-info {
    min-width: 0;
    overflow: hidden;
}
.yc-player-title {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.yc-player-podcast {
    display: block;
    font-size: 0.61rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CENTER: Transport controls */
.yc-player-group-center {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: center;
}

/* Play/pause button */
.yc-player-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--yc-color-player-text);
    background: transparent;
    color: var(--yc-color-player-text);
    cursor: pointer;
    font-size: 0.83rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.yc-player-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* Sticky player play/pause icon (CSS-only) */
.yc-player-pp-icon {
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent var(--yc-color-player-text);
    transition: border-color 0.15s;
}
/* Pause state: two vertical bars */
.yc-player-btn.is-playing .yc-player-pp-icon {
    width: 10px;
    height: 12px;
    border: none;
    position: relative;
}
.yc-player-btn.is-playing .yc-player-pp-icon::before,
.yc-player-btn.is-playing .yc-player-pp-icon::after {
    content: '';
    position: absolute;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--yc-color-player-text);
    border-radius: 1px;
}
.yc-player-btn.is-playing .yc-player-pp-icon::before { left: 0; }
.yc-player-btn.is-playing .yc-player-pp-icon::after { right: 0; }

/* Skip buttons */
.yc-player-skip {
    background: none;
    border: none;
    color: var(--yc-color-player-text);
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.15s;
    display: flex;
    align-items: center;
}
.yc-player-skip:hover {
    opacity: 1;
}

/* RIGHT: Time, speed, volume, close */
.yc-player-group-right {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
}

/* Time display */
.yc-player-time {
    font-size: 0.61rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Speed button */
.yc-player-speed {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--yc-color-player-text);
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.61rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
    font-variant-numeric: tabular-nums;
}
.yc-player-speed:hover {
    background: rgba(255,255,255,0.2);
}

/* Mute button */
.yc-player-mute {
    background: none;
    border: none;
    color: var(--yc-color-player-text);
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    opacity: 0.7;
    display: flex;
    align-items: center;
}
.yc-player-mute:hover {
    opacity: 1;
}

/* Volume slider */
.yc-player-volume {
    width: 70px;
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
}
.yc-player-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--yc-color-player-text);
    cursor: pointer;
}
.yc-player-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--yc-color-player-text);
    border: none;
}

/* Close button — white circle outline */
.yc-player-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.6);
    background: none;
    color: var(--yc-color-player-text);
    font-size: 0.72rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
}
.yc-player-close:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ── Bottom progress bar ────────────────────────────────────────────── */
.yc-player-progress-bar {
    position: relative;
    height: 4px;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
}
.yc-player-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255,255,255,0.15);
    pointer-events: none;
    transition: width 0.3s;
}
.yc-player-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #fff;
    pointer-events: none;
    transition: width 0.1s linear;
}
.yc-player-seek {
    position: absolute;
    top: -6px;
    left: 0;
    width: 100%;
    height: 16px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    margin: 0;
    z-index: 2;
}
.yc-player-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--yc-color-player-text);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
}
.yc-player-progress-bar:hover .yc-player-seek::-webkit-slider-thumb {
    opacity: 1;
}
.yc-player-seek::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--yc-color-player-text);
    border: none;
    cursor: pointer;
}


/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .yc-player-inner {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding: 8px 16px;
    }
    .yc-player-group-left {
        display: none;
    }
    .yc-player-group-center {
        order: 1;
    }
    .yc-player-group-right {
        order: 2;
        justify-self: auto;
    }
}
@media (max-width: 540px) {
    .yc-player-volume,
    .yc-player-mute {
        display: none;
    }
}

/* ── Larger player ~20% on wider screens ────────────────────────────── */
@media (min-width: 860px) {
    .yc-player-inner {
        padding: 10px 28px;
        gap: 16px;
    }
    .yc-player-btn {
        width: 46px;
        height: 46px;
    }
    .yc-player-pp-icon {
        border-width: 6px 0 6px 11px;
    }
    .yc-player-btn.is-playing .yc-player-pp-icon {
        width: 11px;
        height: 14px;
    }
    .yc-player-btn.is-playing .yc-player-pp-icon::before,
    .yc-player-btn.is-playing .yc-player-pp-icon::after {
        width: 4px;
    }
    .yc-player-skip svg {
        width: 26px;
        height: 26px;
    }
    .yc-player-group-center {
        gap: 14px;
    }
    .yc-player-group-right {
        gap: 12px;
    }
    .yc-player-art {
        width: 53px;
        height: 53px;
        border-radius: 7px;
    }
    .yc-player-title {
        font-size: 0.83rem;
    }
    .yc-player-podcast {
        font-size: 0.72rem;
    }
    .yc-player-time {
        font-size: 0.72rem;
    }
    .yc-player-speed {
        font-size: 0.72rem;
        padding: 4px 10px;
    }
    .yc-player-mute svg {
        width: 22px;
        height: 22px;
    }
    .yc-player-volume {
        width: 84px;
        height: 4px;
    }
    .yc-player-volume::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
    }
    .yc-player-volume::-moz-range-thumb {
        width: 14px;
        height: 14px;
    }
    .yc-player-close {
        width: 36px;
        height: 36px;
        font-size: 0.83rem;
    }
    .yc-player-progress-bar {
        height: 5px;
    }
    .yc-player-seek {
        top: -6px;
        height: 18px;
    }
    .yc-player-seek::-webkit-slider-thumb {
        width: 16px;
        height: 16px;
    }
    .yc-player-seek::-moz-range-thumb {
        width: 16px;
        height: 16px;
    }
}

/* ── Larger player ~40% on desktop ──────────────────────────────────── */
@media (min-width: 1024px) {
    .yc-player-inner {
        padding: 12px 32px;
        gap: 20px;
    }
    .yc-player-btn {
        width: 53px;
        height: 53px;
        border-width: 3px;
    }
    .yc-player-pp-icon {
        border-width: 8px 0 8px 14px;
    }
    .yc-player-btn.is-playing .yc-player-pp-icon {
        width: 14px;
        height: 17px;
    }
    .yc-player-btn.is-playing .yc-player-pp-icon::before,
    .yc-player-btn.is-playing .yc-player-pp-icon::after {
        width: 4px;
    }
    .yc-player-skip svg {
        width: 31px;
        height: 31px;
    }
    .yc-player-group-center {
        gap: 16px;
    }
    .yc-player-group-right {
        gap: 14px;
    }
    .yc-player-art {
        width: 62px;
        height: 62px;
        border-radius: 8px;
    }
    .yc-player-title {
        font-size: 1rem;
    }
    .yc-player-podcast {
        font-size: 0.83rem;
    }
    .yc-player-time {
        font-size: 0.83rem;
    }
    .yc-player-speed {
        font-size: 0.83rem;
        padding: 4px 12px;
    }
    .yc-player-mute svg {
        width: 25px;
        height: 25px;
    }
    .yc-player-volume {
        width: 98px;
        height: 4px;
    }
    .yc-player-volume::-webkit-slider-thumb {
        width: 17px;
        height: 17px;
    }
    .yc-player-volume::-moz-range-thumb {
        width: 17px;
        height: 17px;
    }
    .yc-player-close {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
    .yc-player-progress-bar {
        height: 6px;
    }
    .yc-player-seek {
        top: -7px;
        height: 20px;
    }
    .yc-player-seek::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }
    .yc-player-seek::-moz-range-thumb {
        width: 18px;
        height: 18px;
    }
}

/* ===================================================================
   EPISODE TITLE LINKS
   =================================================================== */

.yc-episode-title a {
    color: var(--yc-color-player-bg);
    text-decoration: none;
}
.yc-episode-title a:hover {
    color: #5518b0;
}

/* ===================================================================
   SINGLE EPISODE PAGE
   =================================================================== */

.yc-episode-single {
    max-width: 100%;
}

.yc-episode-single-title {
    font-family: var(--yc-font-display);
    font-size: 1.44rem;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.yc-episode-single-podcast {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--yc-color-bg);
    border-radius: var(--yc-radius);
}

.yc-episode-single-art {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.yc-episode-podcast-link {
    font-weight: 600;
    font-size: 0.83rem;
    display: block;
}

.yc-episode-single-player {
    margin: 24px 0;
}

.yc-play-btn-large {
    padding: 12px 24px;
    font-size: 0.83rem;
    border-radius: 24px;
}

.yc-episode-single-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--yc-color-text);
    margin-bottom: 24px;
}

.yc-episode-number {
    color: var(--yc-color-text-light);
    font-size: 0.67rem;
}

/* Episode tags (destinations/attractions this episode matches) */

.yc-episode-tags {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--yc-color-border-light);
}
.yc-episode-tags h3 {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--yc-color-text-muted);
    margin: 0 0 10px;
}

.yc-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.yc-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--yc-color-accent);
    background: var(--yc-color-highlight);
    border-radius: 20px;
    border: 1px solid transparent;
    transition: border-color 0.2s;
}
.yc-tag:hover {
    border-color: var(--yc-color-accent);
}
.yc-tag-attr {
    color: var(--yc-color-tour-accent);
    background: var(--yc-color-tour-bg);
}
.yc-tag-attr:hover {
    border-color: var(--yc-color-tour-accent);
}

/* ===================================================================
   INFINITE SCROLL SENTINEL
   =================================================================== */

.yc-scroll-sentinel {
    text-align: center;
    padding: 30px 0;
    color: var(--yc-color-text-light);
    font-size: 0.78rem;
}

.yc-loading-text {
    display: inline-block;
}

.yc-loading-text::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--yc-color-border);
    border-top-color: var(--yc-color-accent);
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
    animation: yc-spin 0.8s linear infinite;
}

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

/* ===================================================================
   SEARCH BAR
   =================================================================== */

.yc-search-dest-wrap {
    position: relative;
    max-width: 500px;
    z-index: 100;
}

/* Ensure no ancestor clips the dropdown */
.yc-page-header {
    overflow: visible !important;
}
.yc-page-header,
.si-container {
    position: relative;
}

.yc-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--yc-color-border);
    border-radius: 8px;
    font-size: 0.89rem;
    background: var(--yc-color-surface);
    color: var(--yc-color-text);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.yc-search-input:focus {
    border-color: var(--yc-color-accent);
}
.yc-search-input::placeholder {
    color: var(--yc-color-text-light);
}

/* Dropdown */
.yc-search-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--yc-color-surface);
    border: 1px solid var(--yc-color-border);
    border-radius: 8px;
    overflow: hidden;
    z-index: 9999;
    display: none;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15);
}
.yc-search-dropdown.open {
    display: block;
}

.yc-search-opt {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--yc-color-text);
    transition: background 0.12s;
}
.yc-search-opt:hover,
.yc-search-opt.yc-search-active {
    background: var(--yc-color-highlight);
}

.yc-search-type {
    font-size: 0.61rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--yc-color-text-light);
    flex-shrink: 0;
    margin-left: 12px;
}

/* ===================================================================
   SEARCH LIGHTBOX
   =================================================================== */

.yc-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.yc-lightbox.yc-lightbox-open {
    opacity: 1;
    visibility: visible;
}

.yc-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
}

.yc-lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    z-index: 2;
    background: var(--yc-color-player-bg);
    border: none;
    color: #fff;
    font-size: 2.4rem;
    font-weight: 400;
    line-height: 0;
    cursor: pointer;
    padding: 0 0 7px 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity 0.2s;
}
.yc-lightbox-close:hover {
    opacity: 0.85;
}

.yc-lightbox-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 540px;
    text-align: center;
}

.yc-lightbox-heading {
    color: #fff;
    font-family: var(--yc-font-display);
    font-size: 1.22rem;
    font-weight: 400;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}

/* Override search styles inside lightbox */
.yc-lightbox .yc-search-dest-wrap {
    max-width: 100%;
}
.yc-lightbox .yc-search-input {
    background: #fff;
    border-color: #fff;
    color: var(--yc-color-text);
    font-size: 1rem;
    padding: 16px 20px;
    border-radius: 10px;
}
.yc-lightbox .yc-search-input::placeholder {
    color: #666;
}
.yc-lightbox .yc-search-input:focus {
    border-color: #fff;
}
.yc-lightbox .yc-search-dropdown {
    background: var(--yc-color-player-bg);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}
.yc-lightbox .yc-search-opt {
    color: #fff;
    padding: 12px 16px;
}
.yc-lightbox .yc-search-opt:hover,
.yc-lightbox .yc-search-opt.yc-search-active {
    background: #7d3de0;
}
.yc-lightbox .yc-search-type {
    color: rgba(255, 255, 255, 0.55);
}

/* ===================================================================
   SHOW NOTES BOTTOM SHEET (mobile)
   =================================================================== */

.yc-sheet {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
    pointer-events: none;
    visibility: hidden;
}
.yc-sheet.yc-sheet-open {
    pointer-events: auto;
    visibility: visible;
}

/* Dark overlay */
.yc-sheet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}
.yc-sheet-open .yc-sheet-overlay {
    background: rgba(0, 0, 0, 0.6);
}

/* Panel slides up from bottom */
.yc-sheet-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 0 24px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}
.yc-sheet-open .yc-sheet-panel {
    transform: translateY(0);
}

/* Grab handle */
.yc-sheet-handle {
    width: 40px;
    height: 4px;
    background: #d0d0d0;
    border-radius: 2px;
    margin: 12px auto 0;
    cursor: pointer;
}

/* Title */
.yc-sheet-title {
    font-family: var(--yc-font-display);
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--yc-color-text);
    margin: 16px 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--yc-color-border-light);
    line-height: 1.3;
}

/* Body content */
.yc-sheet-body {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--yc-color-text-muted);
}

/* Hide sheet on desktop — inline toggle handles it */
@media (min-width: 768px) {
    .yc-sheet {
        display: none !important;
    }
}

/* ===================================================================
   TRENDING GRID
   =================================================================== */

.yc-trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.yc-trending-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--yc-color-surface);
    border: 1px solid var(--yc-color-border);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 110px;
    overflow: hidden;
}
.yc-trending-card:not(.yc-trending-card-img) {
    padding: 20px 22px;
}
.yc-trending-card:hover {
    border-color: var(--yc-color-player-bg);
    box-shadow: 0 4px 16px rgba(106, 31, 214, 0.1);
}

/* Image header */
.yc-trending-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.yc-trending-image .yc-trending-badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

/* Body section below image */
.yc-trending-card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: 14px 18px 16px;
}
.yc-trending-card:not(.yc-trending-card-img) .yc-trending-card-body {
    padding: 0;
}

.yc-trending-card-top {
    margin-bottom: 12px;
}

.yc-trending-name {
    display: block;
    font-family: var(--yc-font-display);
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--yc-color-text);
    line-height: 1.3;
}

.yc-trending-country {
    display: block;
    font-size: 0.72rem;
    color: var(--yc-color-text-light);
    margin-top: 2px;
}

.yc-trending-card-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yc-trending-badge {
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--yc-color-highlight);
    color: var(--yc-color-accent);
    flex-shrink: 0;
}
.yc-trending-badge-attr {
    background: var(--yc-color-tour-bg);
    color: var(--yc-color-tour-accent);
}

.yc-trending-stats {
    font-size: 0.67rem;
    color: var(--yc-color-text-muted);
}

/* CTA button */
.yc-trending-cta {
    text-align: center;
    margin-top: 8px;
}
.yc-trending-cta-btn {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid var(--yc-color-player-bg);
    color: var(--yc-color-player-bg);
    border-radius: 24px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.yc-trending-cta-btn:hover {
    background: var(--yc-color-player-bg);
    color: #fff;
}

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