/* =========================================================
   Podcast Manager — Frontend Styles
   ========================================================= */

.pm-podcast-wrap {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header */
.pm-podcast-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.pm-cover-art {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}
.pm-podcast-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 .5rem;
    color: #111;
}
.pm-podcast-desc {
    font-size: .95rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* ---- Sticky Player Bar ---- */
.pm-player-bar {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #1a1a2e;
    color: #fff;
    padding: .75rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.pm-player-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}
.pm-player-info {
    flex: 1;
    min-width: 150px;
    overflow: hidden;
}
.pm-player-ep-label {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #a5b4fc;
    margin-bottom: 2px;
}
.pm-player-ep-title {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pm-player-controls {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.pm-btn-play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #6366f1;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
}
.pm-btn-play:hover { background: #4f46e5; }
.pm-btn-skip {
    background: none;
    border: 1px solid rgba(255,255,255,.25);
    color: #e0e7ff;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: .78rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.pm-btn-skip:hover { background: rgba(255,255,255,.1); }
.pm-seek-bar {
    width: 140px;
    accent-color: #6366f1;
    cursor: pointer;
}
.pm-volume-bar {
    width: 70px;
    accent-color: #6366f1;
    cursor: pointer;
}
.pm-time {
    font-size: .75rem;
    color: #c7d2fe;
    white-space: nowrap;
    min-width: 90px;
}
.pm-speed-select {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #e0e7ff;
    border-radius: 6px;
    padding: 3px 6px;
    font-size: .78rem;
    cursor: pointer;
}

/* ---- Episode Cards ---- */
.pm-episode-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.pm-episode-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    background: #fff;
}
.pm-episode-card:hover {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.pm-episode-card.pm-playing {
    border-color: #6366f1;
    background: #f5f3ff;
}
.pm-ep-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    padding-left: 3px;
    transition: background .15s;
}
.pm-episode-card:hover .pm-ep-play-btn,
.pm-episode-card.pm-playing .pm-ep-play-btn {
    background: #4f46e5;
}
.pm-ep-info { flex: 1; }
.pm-ep-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .4rem;
}
.pm-ep-num, .pm-ep-date, .pm-ep-dur {
    font-size: .78rem;
    color: #6b7280;
}
.pm-ep-num { color: #6366f1; font-weight: 600; }
.pm-ep-dur::before { content: "· "; }
.pm-ep-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 .4rem;
    color: #111;
    line-height: 1.4;
}
.pm-ep-desc {
    font-size: .88rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pm-no-episodes {
    color: #777;
    font-style: italic;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .pm-podcast-header { flex-direction: column; align-items: center; text-align: center; }
    .pm-seek-bar { width: 90px; }
    .pm-volume-bar { display: none; }
    .pm-player-info { width: 100%; }
}
