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

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

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

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

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

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

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

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

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

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

.tc-case-details-link {
    display: none;
    font-size: 0.78rem;
    font-style: normal;
    color: var(--tc-color-accent);
    text-decoration: none;
    margin-left: 6px;
}
.tc-case-details-link:hover {
    text-decoration: underline;
}
.tc-case-details-link-solo {
    display: none;
    margin: 4px 0 0;
}
@media (max-width: 1040px) {
    .tc-case-details-link {
        display: inline;
    }
    .tc-case-details-link-solo {
        display: block;
    }
    html {
        scroll-behavior: smooth;
    }
}

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

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

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

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

/* ── Location template ──────────────────────────────────────────────── */
.tc-location-section {
    margin-bottom: 40px;
}
.tc-location-section:last-child {
    margin-bottom: 0;
}
.tc-section-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tc-color-text);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--tc-color-border);
    font-family: var(--tc-font);
}
.tc-section-count {
    font-weight: 400;
    color: var(--tc-color-text-light);
    font-size: 0.85em;
}
.tc-location-intro {
    margin-top: 12px;
    font-size: 0.88rem;
    color: var(--tc-color-text-light);
    line-height: 1.6;
}
.tc-location-intro p:last-child {
    margin-bottom: 0;
}
.tc-location-list {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--tc-color-text-light);
    text-align: center;
}
.tc-location-list a {
    color: var(--tc-color-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.tc-location-list a:hover {
    color: var(--tc-color-accent, #7d3de0);
}

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

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

.tc-dest-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--tc-color-text);
}
.tc-dest-country {
    font-size: 0.72rem;
    color: var(--tc-color-text-muted);
    margin-top: 2px;
}
.tc-dest-common {
    font-size: 0.8rem;
    color: #4a8abf;
    font-style: italic;
    margin-top: 2px;
}
.tc-dest-count {
    font-size: 0.67rem;
    color: var(--tc-color-text-light);
    margin-top: 6px;
}
.tc-dest-type {
    font-size: 0.7rem;
    color: var(--tc-color-text-muted);
    margin-top: 2px;
}

/* Card with image */
.tc-dest-card--has-image {
    padding-top: 0;
    overflow: hidden;
}
.tc-dest-image {
    display: block;
    width: calc(100% + 40px);
    margin: 0 -20px 12px;
    height: 140px;
    background-size: cover;
    background-position: center;
    border-radius: var(--tc-radius) var(--tc-radius) 0 0;
}

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

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

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

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

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

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

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

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

.tc-episode-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}

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

.tc-episode-content {
    min-width: 0;
}

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

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

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

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

.tc-desc-toggle {
    display: inline-block;
    font-size: 0.61rem;
    font-weight: 600;
    color: var(--tc-color-accent);
    background: var(--tc-color-highlight);
    border: 1px solid var(--tc-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;
}
.tc-desc-toggle:hover {
    background: var(--tc-color-accent);
    color: #fff;
    text-decoration: none;
}

.tc-episode-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 8px;
}
.tc-episode-link {
    font-size: 0.72rem;
    color: var(--tc-color-text-muted);
    display: inline-block;
}
.tc-episode-links .tc-episode-link {
    margin-top: 0;
}
.tc-episode-link:hover {
    color: var(--tc-color-accent);
}

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

.tc-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--tc-color-player-bg);
    background: transparent;
    color: var(--tc-color-player-bg);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.tc-play-btn:hover {
    background: var(--tc-color-player-bg);
    color: #fff;
}
.tc-play-btn.playing {
    background: var(--tc-color-player-bg);
    color: #fff;
}
.tc-play-btn.loading {
    background: var(--tc-color-player-bg);
    color: #fff;
}
.tc-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 */
.tc-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(--tc-color-player-bg);
    transition: border-color 0.2s;
}
.tc-play-btn:hover .tc-play-icon::before,
.tc-play-btn.playing .tc-play-icon::before {
    border-color: transparent transparent transparent #fff;
}
/* Pause state: two vertical bars */
.tc-play-icon.is-paused::before {
    border: none;
    width: 3px;
    height: 10px;
    background: var(--tc-color-player-bg);
    border-radius: 1px;
}
.tc-play-icon.is-paused::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 10px;
    background: var(--tc-color-player-bg);
    border-radius: 1px;
}
.tc-play-btn:hover .tc-play-icon.is-paused::before,
.tc-play-btn:hover .tc-play-icon.is-paused::after,
.tc-play-btn.playing .tc-play-icon.is-paused::before,
.tc-play-btn.playing .tc-play-icon.is-paused::after {
    background: #fff;
}

/* Loading state: spinner */
.tc-play-icon.is-loading::before {
    border: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border-top: 2px solid var(--tc-color-player-bg);
    border-right: 2px solid transparent;
    animation: tc-spin 0.7s linear infinite;
}
.tc-play-icon.is-loading::after {
    content: none;
}
.tc-play-btn.loading .tc-play-icon.is-loading::before,
.tc-play-btn:hover .tc-play-icon.is-loading::before {
    border-top-color: #fff;
}

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

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

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

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

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

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

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

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

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

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

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

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

.tc-podcast-filter {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tc-podcast-filter input {
    flex: 1;
    max-width: 360px;
    padding: 10px 16px;
    border: 1px solid var(--tc-color-border);
    border-radius: 8px;
    font-size: 0.89rem;
    background: var(--tc-color-surface);
    color: var(--tc-color-text);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.tc-podcast-filter input:focus {
    border-color: var(--tc-color-accent);
}
.tc-podcast-filter input::placeholder {
    color: var(--tc-color-text-light);
}
.tc-podcast-filter-count {
    font-size: 0.75rem;
    color: var(--tc-color-text-muted);
}

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

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

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

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

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

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

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

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

@media (max-width: 768px) {
    .tc-show-header { flex-direction: column; align-items: center; text-align: center; }
    .tc-show-art { width: 120px; height: 120px; }
    .tc-page-header h1 { font-size: 1.44rem; }
    .tc-episode-thumb { width: 48px; height: 48px; border-radius: 6px; }
    .tc-episode-thumb-placeholder { font-size: 1.2rem; }
    .tc-episode-head { gap: 12px; }
    .tc-episode-meta { margin-bottom: 0; }
    .tc-episode-podcast::before {
        display: block;
        font-size: 0.67rem;
        margin-bottom: -3px;
    }
    .tc-episode-links { margin-top: 18px; }
}

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

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

/* Now-playing ticker strip (mobile only) */
.tc-player-nowplaying {
    display: none;
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 22px;
}
@media (max-width: 768px) {
    .tc-player-nowplaying {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
.tc-player-nowplaying-inner {
    display: inline-block;
    padding: 0 16px;
    font-size: 0.67rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.02em;
}
.tc-player-nowplaying-inner a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.tc-player-nowplaying-inner.tc-ticker {
    display: flex;
    width: max-content;
    padding: 0;
    justify-content: flex-start;
    animation: tc-ticker linear infinite;
    will-change: transform;
}
.tc-ticker-copy {
    flex-shrink: 0;
    padding: 0 2em;
}
@keyframes tc-ticker {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Three-group layout: left | center | right */
.tc-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 */
.tc-player-group-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
    width: 95%;
    justify-self: start;
}
.tc-player-art {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.tc-player-info {
    min-width: 0;
    overflow: hidden;
}
.tc-player-title {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tc-player-podcast {
    display: block;
    font-size: 0.61rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

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

/* Loading state: spinner inside the circular button */
.tc-player-btn.is-loading .tc-player-pp-icon {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    border-top: 2px solid var(--tc-color-player-text);
    border-right: 2px solid transparent;
    animation: tc-spin 0.7s linear infinite;
}
.tc-player-btn.is-loading .tc-player-pp-icon::before,
.tc-player-btn.is-loading .tc-player-pp-icon::after {
    content: none;
}

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

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

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

/* Speed button */
.tc-player-speed {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--tc-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;
}
.tc-player-speed:hover {
    background: rgba(255,255,255,0.2);
}

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

/* Volume slider */
.tc-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;
}
.tc-player-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--tc-color-player-text);
    cursor: pointer;
}
.tc-player-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--tc-color-player-text);
    border: none;
}

/* Close button — white circle outline */
.tc-player-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.6);
    background: none;
    color: var(--tc-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;
}
.tc-player-close:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ── Bottom progress bar ────────────────────────────────────────────── */
.tc-player-progress-bar {
    position: relative;
    height: 4px;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    margin-bottom: 10px;
}
.tc-player-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255,255,255,0.15);
    pointer-events: none;
    transition: width 0.3s;
}
.tc-player-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #fff;
    pointer-events: none;
    transition: width 0.1s linear;
}
.tc-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;
}
.tc-player-seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--tc-color-player-text);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
}
.tc-player-progress-bar:hover .tc-player-seek::-webkit-slider-thumb {
    opacity: 1;
}
.tc-player-seek::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--tc-color-player-text);
    border: none;
    cursor: pointer;
}


/* ── Queue add button (on episode cards) ───────────────────────────── */
.tc-player-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tc-episode-single-player {
    display: flex;
    align-items: center;
    gap: 8px;
}
.tc-queue-add-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--tc-color-player-bg);
    background: transparent;
    color: var(--tc-color-player-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-right: 3px;
    transition: background 0.2s, color 0.2s;
}
.tc-queue-add-btn:hover {
    background: var(--tc-color-player-bg);
    color: #fff;
}
.tc-queue-add-btn.tc-queue-added {
    background: var(--tc-color-player-bg);
    color: #fff;
    pointer-events: none;
}
.tc-queue-add-btn.tc-queue-in-queue {
    background: rgba(125, 61, 224, 0.12);
    border-color: rgba(125, 61, 224, 0.3);
}
.tc-queue-add-btn.tc-queue-exists {
    width: auto;
    border-radius: 14px;
    padding: 0 10px;
    pointer-events: none;
    border-color: rgba(150,150,150,0.4);
    color: #888;
}
.tc-queue-exists-text {
    font-size: 0.61rem;
    white-space: nowrap;
}

/* ── Queue toggle button (sticky player) ───────────────────────────── */
.tc-player-queue-toggle {
    background: none;
    border: none;
    color: var(--tc-color-player-text);
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    opacity: 0.7;
    display: flex;
    align-items: center;
    position: relative;
}
.tc-player-queue-toggle:hover {
    opacity: 1;
}
.tc-player-queue-toggle.tc-queue-active {
    opacity: 1;
}
.tc-queue-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--tc-color-accent, #7d3de0);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    padding: 0 3px;
}

/* ── Queue panel ───────────────────────────────────────────────────── */
.tc-queue-panel {
    background: rgba(0, 0, 0, 0.4);
    max-height: 280px;
    overflow-y: auto;
}
.tc-queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px 6px;
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.tc-queue-title {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.6);
}
.tc-queue-clear {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 0.67rem;
    cursor: pointer;
}
.tc-queue-clear:hover {
    color: #fff;
}
.tc-queue-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tc-queue-header-sep {
    color: rgba(255,255,255,0.25);
    font-size: 0.67rem;
}
.tc-queue-hide {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 0.67rem;
    cursor: pointer;
}
.tc-queue-hide:hover {
    color: #fff;
}
.tc-queue-list {
    padding: 0 24px 10px;
}
.tc-queue-empty {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    padding: 12px 0;
    text-align: center;
}
.tc-queue-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.85);
    cursor: grab;
}
.tc-queue-item:active {
    cursor: grabbing;
}
.tc-queue-item.tc-queue-dragging {
    opacity: 0.4;
}
.tc-queue-item.tc-queue-dragover {
    border-top: 2px solid var(--tc-color-accent, #7d3de0);
}
.tc-queue-item-played {
    opacity: 0.35;
}
.tc-queue-item-played:hover {
    opacity: 0.55;
}
.tc-queue-item-active {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    padding-left: 6px;
    padding-right: 6px;
}
.tc-queue-waveform {
    position: absolute;
    right: 80px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    opacity: 0.12;
    pointer-events: none;
}
.tc-queue-waveform span {
    display: block;
    width: 3px;
    background: #fff;
    border-radius: 1.5px;
    animation: tc-waveform 1.2s ease-in-out infinite;
}
.tc-queue-waveform span:nth-child(1) {
    height: 40%;
    animation-delay: 0s;
}
.tc-queue-waveform span:nth-child(2) {
    height: 70%;
    animation-delay: 0.15s;
}
.tc-queue-waveform span:nth-child(3) {
    height: 50%;
    animation-delay: 0.3s;
}
.tc-queue-waveform span:nth-child(4) {
    height: 80%;
    animation-delay: 0.45s;
}
@keyframes tc-waveform {
    0%, 100% { transform: scaleY(0.3); }
    50%      { transform: scaleY(1); }
}
.tc-queue-played-status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-right: 4px;
}
.tc-queue-played-label {
    color: #fff;
    font-size: 0.72rem;
    font-style: italic;
}
.tc-queue-mark-unplayed {
    background: none;
    border: none;
    color: #fff;
    font-size: 0.72rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}
.tc-queue-mark-unplayed:hover {
    color: #fff;
}
.tc-queue-drag-handle {
    color: rgba(255,255,255,0.5);
    flex-shrink: 0;
    font-size: 16px;
    width: 24px;
    text-align: center;
    cursor: grab;
    user-select: none;
}
.tc-queue-item-play {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}
.tc-queue-item-play:hover {
    background: rgba(255,255,255,0.2);
}
.tc-queue-pp-icon {
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 0 4px 7px;
    border-color: transparent transparent transparent rgba(255,255,255,0.85);
    margin-left: 1px;
}
.tc-queue-item-info {
    flex: 1;
    min-width: 0;
}
.tc-queue-item-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}
.tc-queue-item-podcast {
    font-size: 0.61rem;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tc-queue-item-remove {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: none;
    color: rgba(255,255,255,0.5);
    font-size: 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    padding: 0;
}
.tc-queue-item-remove:hover {
    border-color: #d63638;
    color: #d63638;
    background: rgba(214,54,56,0.1);
}
@media (max-width: 768px) {
    .tc-queue-header { padding: 10px 16px 6px; }
    .tc-queue-list { padding: 0 16px 10px; }
}

/* ── Reopen player tab ─────────────────────────────────────────────── */
.tc-reopen-tab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    height: 42px;
    border-radius: 21px;
    border: none;
    background: var(--tc-color-player-bg);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px 0 14px;
    max-width: calc(100vw - 40px);
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: tc-reopen-in 0.3s ease-out;
}
.tc-reopen-tab:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.tc-reopen-tab svg {
    flex-shrink: 0;
}
.tc-reopen-label {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
@media (max-width: 450px) {
    .tc-reopen-label {
        max-width: 140px;
    }
}
@keyframes tc-reopen-in {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.tc-load-more-btn {
    display: inline-block;
    padding: 10px 28px;
    border: 1px solid var(--tc-color-border);
    background: transparent;
    color: var(--tc-color-text);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tc-load-more-btn:hover {
    background: var(--tc-color-player-bg);
    color: #fff;
    border-color: var(--tc-color-player-bg);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* Override search styles inside lightbox */
.tc-lightbox .tc-search-dest-wrap {
    max-width: 100%;
}
.tc-lightbox .tc-search-input {
    background: #fff;
    border-color: #fff;
    color: var(--tc-color-text);
    font-size: 1rem;
    padding: 16px 20px;
    border-radius: 10px;
}
.tc-lightbox .tc-search-input::placeholder {
    color: #666;
}
.tc-lightbox .tc-search-input:focus {
    border-color: #fff;
}
.tc-lightbox .tc-search-dropdown {
    position: static;
    background: var(--tc-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;
    margin-top: 5px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}
.tc-lightbox .tc-search-opt {
    color: #fff;
    padding: 12px 16px;
}
.tc-lightbox .tc-search-opt:hover,
.tc-lightbox .tc-search-opt.tc-search-active {
    background: #7d3de0;
}
.tc-lightbox .tc-search-type {
    color: rgba(255, 255, 255, 0.55);
}

/* Filtered inline search (case index pages) — match lightbox style */
.tc-search-filtered .tc-search-dropdown {
    background: var(--tc-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;
    max-height: 500px;
    overflow-y: auto;
}
.tc-search-filtered .tc-search-opt {
    color: #fff;
    padding: 12px 16px;
}
.tc-search-filtered .tc-search-opt:hover,
.tc-search-filtered .tc-search-opt.tc-search-active {
    background: #7d3de0;
}
.tc-search-filtered .tc-search-type {
    color: rgba(255, 255, 255, 0.55);
}
.tc-search-filtered .tc-search-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

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

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

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

/* Panel slides up from bottom */
.tc-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);
}
.tc-sheet-open .tc-sheet-panel {
    transform: translateY(0);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@media (max-width: 600px) {
    .tc-trending-grid {
        grid-template-columns: 1fr;
    }
}
.tc-episode-link-ext {
    display: none !important;
}
