/* Audio section wrapper */
.audio-section {
    background: #f0f4f8;
    padding: 40px 0;
}

.audio-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Spotify fallback */
.audio-label {
    font-size: 16px;
    color: #003366;
    font-weight: 600;
    margin-bottom: 15px;
}

.audio-player {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

/* Section label */
.audio-section-label {
    font-size: 13px;
    font-weight: 600;
    color: #003366;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

/* ── Custom Player Card ── */
.player-card {
    --navy:       #003366;
    --orange:     #FF8C00;
    --orange-dim: rgba(255,140,0,0.12);
    --border:     #e5e7eb;
    --muted:      #6b7280;
    --track-bg:   #e5e7eb;
    --buffered:   #c0cfe0;

    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,51,102,0.08), 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    width: 100%;
}

/* Artwork */
.player-card .player-artwork {
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
    align-self: stretch;
    min-width: 80px;
    max-width: 140px;
    background: linear-gradient(135deg, var(--navy) 0%, #005599 50%, var(--orange) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.player-card .player-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.player-card .artwork-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px;
    text-align: center;
}

.player-card .artwork-plane {
    font-size: 24px;
    line-height: 1;
}

.player-card .artwork-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    line-height: 1.2;
}

/* Player body */
.player-card .player-body {
    flex: 1;
    padding: 10px 14px 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    gap: 6px;
}

/* Meta row */
.player-card .player-meta {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;
}

.player-card .player-meta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.player-card .player-episode-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--orange);
}

.player-card .player-episode-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Download button */
.player-card .player-btn-download {
    background: none;
    border: none;
    cursor: pointer;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
    text-decoration: none;
    margin-left: auto;
}

.player-card .player-btn-download:hover {
    color: var(--navy);
    background: var(--orange-dim);
}

/* Controls row */
.player-card .player-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.player-card .player-ctrl {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    border-radius: 50%;
    transition: background 0.15s, color 0.15s, transform 0.1s;
    flex-shrink: 0;
}

.player-card .player-ctrl:hover  { background: var(--orange-dim); color: var(--orange); }
.player-card .player-ctrl:active { transform: scale(0.93); }

.player-card .player-btn-skip { width: 34px; height: 34px; }

.player-card .player-btn-play {
    width: 36px;
    height: 36px;
    background: var(--navy);
    color: #fff;
}

.player-card .player-btn-play:hover { background: var(--orange); color: #fff; }

.player-card .player-btn-speed {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--navy);
    padding: 2px 5px;
    height: 22px;
    min-width: 34px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.player-card .player-btn-speed:hover {
    background: var(--orange-dim);
    border-color: var(--orange);
    color: var(--orange);
}

/* Progress bar */
.player-card .player-progress-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.player-card .player-progress-track {
    position: relative;
    height: 5px;
    border-radius: 99px;
    background: var(--track-bg);
    cursor: pointer;
    overflow: hidden;
    transition: height 0.15s;
}

.player-card .player-progress-track:hover { height: 7px; }

.player-card .player-progress-buffered {
    position: absolute;
    left: 0; top: 0; height: 100%;
    background: var(--buffered);
    border-radius: 99px;
    pointer-events: none;
}

.player-card .player-progress-played {
    position: absolute;
    left: 0; top: 0; height: 100%;
    background: var(--orange);
    border-radius: 99px;
    pointer-events: none;
    transition: width 0.1s linear;
}

.player-card .player-progress-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 13px; height: 13px;
    background: var(--orange);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,51,102,0.25);
    pointer-events: none;
    transition: transform 0.15s;
}

.player-card .player-progress-track:hover .player-progress-thumb {
    transform: translate(-50%, -50%) scale(1);
}

.player-card .player-time-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.04em;
    padding: 0 1px;
}

.player-card svg { display: block; }

/* Tablet and up */
@media (min-width: 641px) {
    .player-card .player-episode-label { font-size: 11px; }
    .player-card .player-episode-title { font-size: 16px; }
    .player-card .player-btn-speed     { font-size: 12px; min-width: 38px; height: 24px; }
    .player-card .player-time-row      { font-size: 11px; }
}

/* Desktop */
@media (min-width: 1025px) {
    .player-card .player-episode-label { font-size: 12px; }
    .player-card .player-episode-title { font-size: 17px; }
    .player-card .player-btn-speed     { font-size: 13px; min-width: 40px; height: 26px; }
    .player-card .player-time-row      { font-size: 12px; }
    .player-card .player-body          { padding: 14px 18px 14px 14px; }
}

/* Mobile */
@media (max-width: 480px) {
    .player-card .player-artwork { min-width: 65px; max-width: 100px; }
    .player-card .artwork-plane  { font-size: 20px; }
    .player-card .artwork-label  { font-size: 7px; }
    .player-card .player-body    { padding: 8px 10px; gap: 5px; }
    .player-card .player-episode-label { font-size: 9px; }
    .player-card .player-episode-title { font-size: 12px; }
    .player-card .player-controls      { gap: 3px; }
    .player-card .player-btn-skip { width: 28px; height: 28px; }
    .player-card .player-btn-play { width: 30px; height: 30px; }
    .player-card .player-btn-speed { font-size: 10px; min-width: 28px; height: 20px; padding: 1px 4px; }
    .player-card .player-time-row { font-size: 9px; }
}

@media (max-width: 360px) {
    .player-card .player-artwork       { min-width: 55px; max-width: 80px; }
    .player-card .artwork-plane        { font-size: 16px; }
    .player-card .player-episode-title { font-size: 11px; }
    .player-card .player-btn-skip { width: 24px; height: 24px; }
    .player-card .player-btn-play { width: 26px; height: 26px; }
}

/* Available on / Platform Links */
.podcast-platformlinks {
    margin-top: 20px;
    font-size: 15px;
}

.podcast-platformlinks .label {
    margin-right: 8px;
    color: #666;
    font-size: 15px;
    font-weight: 700;
}

.pod-platform-link {
    color: #FF8C00;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.pod-platform-link:hover { color: #ca6f01; }

.separator { margin: 0 6px; color: #999; }
