/* =========================================================
   FCA PODCAST PLAYER – CORE WRAPPER
   ========================================================= */
.fca-podcast-player {
    max-width: 960px;
    background: #f8fbff;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}


/* =========================================================
   MAIN PLAYER (CURRENTLY PLAYING)
   ========================================================= */

.fca-player-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px;
    padding-bottom: 0;
}

/* Main Play Button */
.fca-main-play {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: none !important;
    background: var( --e-global-color-primary ) !important;
    color: #fff !important;
    font-size: 18px !important;
    cursor: pointer !important;
    text-align: center !important;
    padding : 11px !important;
}
.fca-main-play:hover {
    background-color: var( --e-global-color-ee176c8 ) !important;
}



/* Cover Image */
.fca-player-cover {
    height: 120px;
    aspect-ratio: 7 / 4;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.fca-player-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Meta (Title + Time) */
.fca-player-meta {
    flex: 1;
}

.fca-player-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.fca-player-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fca-player-time {
    font-size: 14px;
    opacity: 0.8;
}

.fca-player-source-link a{
    color : #dc2626 !important;
    font-size: 14px !important;
    font-weight: bold !important;
}

.fca-player-source-link a:hover{
    text-decoration: underline !important;
}

/* Hide embedded YouTube iframe (audio only) */
.fca-youtube-iframe {
    position: absolute;
    width: 0;
    height: 0;
    visibility: hidden;
}


/* =========================================================
   EPISODE LIST
   ========================================================= */

.fca-episode-list {
    position: relative;
    border-top: 1px solid #e5e7eb;
    max-height: 70vh;
    overflow-y: auto;
}

.fca-episode-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
}

.fca-episode-item:hover {
    background: #eef3ff;
}

/* Episode Play Button */
.fca-episode-play {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    border: none !important;
    background: var( --e-global-color-primary ) !important;
    color: #fff !important;
    cursor: pointer !important;
    padding: 7px !important;
}

.fca-episode-play:hover {
    background-color: var( --e-global-color-ee176c8 ) !important;
}

/* Episode Text */
.fca-episode-info {
    flex: 1;
}

.fca-episode-title {
    font-weight: 500;
}

.fca-episode-meta{
    display: flex;
    align-items: center;
}

.fca-episode-date {
    font-size: 13px;
    opacity: 0.7;
}

.fca-episode-source-link{
    color : #dc2626 !important;
    font-size: 12px !important;
    font-weight: bold !important;
    margin-left: 8px;
}

.fca-episode-source-link:hover{
    text-decoration: underline !important;
}

.fca-episode-desc-and-duration {
    font-size: 13px;
    opacity: 0.8;
    text-align: center;
}


/* =========================================================
   INFO ICON BUTTON (INLINE, ICON-ONLY)
   ========================================================= */

.fca-episode-info-btn {
    background: var( --e-global-color-primary ) !important;
    border: none !important;
    padding: 0 !important;
    margin-left: 8px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 32px !important;
    width: 32px !important;
    line-height: 1 !important;
    font-size: 14px !important;
    color: #fff !important;
    cursor: pointer !important;

    box-shadow: none !important;
    outline: none !important;
    border-radius: 50% !important;
    padding : 8px !important;
    margin-bottom: 4px !important;
}

.fca-episode-info-btn:hover {
    background-color: var( --e-global-color-ee176c8 ) !important;
}

/* Clean focus / active states */
.fca-episode-info-btn:focus,
.fca-episode-info-btn:active,
.fca-episode-info-btn:focus-visible {
    outline: none;
    box-shadow: none;
    background: none;
}


/* =========================================================
   EPISODE INFO PANEL (SLIDE-UP PANEL)
   ========================================================= */

.fca-episode-info-panel {
    position: absolute;
    inset: auto 0 0 0;
    height: 70vh;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 20px;
    z-index: 10;

    display: none;
    overflow-y: auto;
}

.fca-episode-info-panel.active {
    display: block;
}

/* Close Button */
.fca-info-close {
    background-color: none !important;
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;

    background: none !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 16px !important;
    color: #aaa !important;
}

.fca-info-close:hover {
    background-color: none !important;
    color: #555 !important;
}

.fca-info-close:focus,
.fca-info-close:active,
.fca-info-close:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
}


/* =========================================================
   INFO PANEL CONTENT
   ========================================================= */

.fca-info-content {
    font-size: 14px;
    line-height: 1.5;
    padding-top: 16px;
    color: #111827;
}

/* Header layout */
.fca-info-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

/* Thumbnail */
.fca-info-thumb {
    width: 210px !important;
    aspect-ratio: 7 / 4 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.fca-info-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Meta */
.fca-info-meta {
    flex: 1;
}

.fca-info-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 6px;
}

.fca-info-duration {
    font-size: 13px;
    opacity: 0.75;
}

/* YouTube link */
.fca-info-youtube-link {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 500;
    color: #dc2626 !important;
    text-decoration: none;
    margin-left: 4px !important;
    font-weight: bold !important;
}

.fca-info-youtube-link:hover {
    text-decoration: underline !important;
}

/* Description */
.fca-info-description {
    font-size: 14px;
    line-height: 1.6;
}

/* Line breaks from YouTube formatting */
.spacer-line-break {
    height: 10px;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

/* Tablet and below */
@media (max-width: 1023px) {
    .fca-episode-info-btn {
        font-size: 24px;
        margin-bottom: 12px;
    }
}

/* Mobile phones */
@media (max-width: 767px) {

    .fca-player-main {
        flex-direction: column;
        gap: 8px;
    }

    .fca-player-cover {
        width: 100%;
        height: auto;
    }

    .fca-info-header {
        flex-direction: column;
    }
}
