/* Faith Cast Player – list and sticky player */

.fcp-podcast-list {
    max-width: 640px;
    margin: 0 auto;
}

.fcp-no-episodes {
    color: #666;
    font-style: italic;
}

.fcp-episode {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.fcp-episode:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.fcp-episode-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
}

.fcp-episode-play {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #2c5aa0;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
    font-size: 20px;
    padding: 0;
    line-height: 1;
}

.fcp-episode-play:hover {
    background: #1e3d6f;
}

.fcp-episode-play:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

.fcp-episode-play::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent currentColor;
    margin-left: 4px;
}

.fcp-episode-info {
    flex: 1;
    min-width: 0;
}

.fcp-episode-title {
    margin: 0 0 6px;
    font-size: 1.1em;
    line-height: 1.3;
}

.fcp-episode-title-link {
    color: inherit;
    text-decoration: none;
}

.fcp-episode-title-link:hover {
    text-decoration: underline;
}

.fcp-episode-desc {
    margin: 0 0 8px;
    font-size: 0.9em;
    color: #555;
    line-height: 1.4;
}

.fcp-episode-meta {
    font-size: 0.85em;
    color: #777;
}

.fcp-episode-meta-text {
    white-space: nowrap;
}

/* Pagination */
.fcp-pagination {
    margin-top: 24px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.fcp-pagination-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.fcp-pagination a {
    color: #2c5aa0;
    text-decoration: none;
}

.fcp-pagination a:hover {
    text-decoration: underline;
}

.fcp-pagination-info {
    color: #666;
    font-size: 0.95em;
}

/* Sticky bottom player – visible when a track is loaded */
.fcp-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    color: #eee;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
}

.fcp-player[aria-hidden="false"] {
    display: block !important;
}

.fcp-player-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    max-width: 900px;
    margin: 0 auto;
}

.fcp-player-track {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fcp-player-title {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fcp-player-time {
    font-size: 0.8rem;
    opacity: 0.85;
}

.fcp-player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fcp-player-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    font-size: 18px;
    padding: 0;
}

.fcp-player-btn:hover {
    background: rgba(255, 255, 255, 0.22);
}

.fcp-player-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.fcp-player-play {
    width: 52px;
    height: 52px;
    background: #4a7ac9;
    font-size: 22px;
}

.fcp-player-play:hover {
    background: #5b8ad4;
}

.fcp-player-play.is-playing::before {
    content: "";
    width: 10px;
    height: 16px;
    background: currentColor;
    border-radius: 2px;
    display: block;
}

.fcp-player-play:not(.is-playing)::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent currentColor;
    margin-left: 4px;
}

.fcp-player-progress-wrap {
    flex: 0 1 180px;
    min-width: 100px;
}

.fcp-player-progress {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
}

.fcp-player-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.fcp-player-progress::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.fcp-player-progress::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
}

.fcp-player-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.2s ease, background 0.2s ease;
}

.fcp-player-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.fcp-player-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Ensure page content isn’t hidden behind fixed player */
body.fcp-player-visible {
    padding-bottom: 80px;
}
