/* Másvida Podcast Player — player.css */

.mvp-player {
    background: #ffffff;
    border: 0.5px solid #d1d5db;
    border-radius: 12px;
    max-width: 560px;
    width: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
}

.mvp-player *,
.mvp-player *::before,
.mvp-player *::after {
    box-sizing: border-box;
}

/* ── Header ── */
.mvp-header {
    padding: 20px 24px 16px;
    border-bottom: 0.5px solid #e5e7eb;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.mvp-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 0.5px solid #e5e7eb;
    background: #f5f3ee;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.mvp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mvp-meta {
    flex: 1;
    min-width: 0;
}

.mvp-campus {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #9c8a64;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.mvp-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mvp-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mvp-date {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 5px;
}

/* ── Controls ── */
.mvp-controls {
    padding: 16px 24px 14px;
}

/* Waveform */
.mvp-wave {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 36px;
    cursor: pointer;
    outline: none;
    width: 100%;
}

.mvp-wave-bar {
    flex: 1;
    min-width: 0;
    border-radius: 2px;
    flex-shrink: 0;
    transition: background-color 0.1s;
}

.mvp-wave-bar.played   { background: #9c8a64; }
.mvp-wave-bar.unplayed { background: #e5e7eb; }

.mvp-wave:hover .mvp-wave-bar.unplayed { background: #d1ccc3; }

.mvp-time-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
}

/* Buttons */
.mvp-btn-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.mvp-btn-ghost {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}

.mvp-btn-ghost:hover {
    background: #f3f4f6;
    color: #374151;
}

.mvp-btn-play {
    background: #6b7280;
    border: none;
    cursor: pointer;
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s;
}

.mvp-btn-play:hover { background: #4b5563; }
.mvp-btn-play:active { transform: scale(0.96); }

.mvp-speed {
    background: none;
    border: 0.5px solid #d1d5db;
    cursor: pointer;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 6px;
    font-family: inherit;
    transition: background 0.15s;
    line-height: 1;
}

.mvp-speed:hover { background: #f3f4f6; }

/* Volume */
.mvp-vol-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.mvp-vol-track {
    flex: 1;
    height: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    outline: none;
}

.mvp-vol-track::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 6px;
    background: #e5e7eb;
    border-radius: 99px;
    pointer-events: none;
}

.mvp-vol-fill {
    position: absolute;
    left: 0;
    height: 6px;
    background: #c4b89a;
    border-radius: 99px;
    pointer-events: none;
    transition: width 0.05s;
}

/* ── Footer ── */
.mvp-footer {
    padding: 10px 24px 14px;
    border-top: 0.5px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.mvp-share-label {
    font-size: 11px;
    color: #9ca3af;
}

.mvp-share-btns {
    display: flex;
    gap: 6px;
}

.mvp-share-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    border: 0.5px solid #d1d5db;
    background: #ffffff;
    cursor: pointer;
    color: #374151;
    text-decoration: none;
    font-family: inherit;
    transition: background 0.15s;
    line-height: 1;
}

.mvp-share-btn:hover { background: #f9fafb; text-decoration: none; }

.mvp-wa {
    color: #15803d !important;
    border-color: #bbf7d0 !important;
    background: #f0fdf4 !important;
}

.mvp-wa:hover { background: #dcfce7 !important; }

/* ── Empty state ── */
.mvp-empty {
    padding: 16px;
    font-size: 13px;
    color: #9ca3af;
    border: 0.5px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .mvp-header { padding: 16px 16px 14px; gap: 12px; }
    .mvp-thumb { width: 52px; height: 52px; }
    .mvp-title { font-size: 14px; }
    .mvp-controls { padding: 14px 16px 12px; }
    .mvp-footer { padding: 10px 16px 12px; }
    .mvp-share-btn span { display: none; }
    .mvp-share-btn { padding: 7px 10px; }
}

/* ── Playlist ── */
.mvp-playlist {
    border-top: 0.5px solid #e5e7eb;
}

.mvp-playlist-header {
    padding: 10px 24px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mvp-playlist-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9ca3af;
}

.mvp-playlist-count {
    font-size: 11px;
    color: #d1d5db;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 99px;
}

.mvp-playlist-list {
    list-style: none;
    margin: 0;
    padding: 0 0 6px;
    max-height: 260px;
    overflow-y: auto;
}

.mvp-playlist-list::-webkit-scrollbar { width: 3px; }
.mvp-playlist-list::-webkit-scrollbar-track { background: transparent; }
.mvp-playlist-list::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 99px; }

.mvp-pl-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 24px;
    cursor: pointer;
    border-left: 2px solid transparent;
    transition: background 0.12s, border-color 0.12s;
}

.mvp-pl-item:hover {
    background: #faf9f7;
}

.mvp-pl-item.active {
    border-left-color: #9c8a64;
    background: #faf9f6;
}

.mvp-pl-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #f5f3ee;
    border: 0.5px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.mvp-pl-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mvp-pl-info {
    flex: 1;
    min-width: 0;
}

.mvp-pl-title {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.mvp-pl-item.active .mvp-pl-title {
    color: #9c8a64;
}

.mvp-pl-date {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

.mvp-pl-state {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
}

.mvp-pl-item.active .mvp-pl-state {
    color: #9c8a64;
}

@media (max-width: 480px) {
    .mvp-pl-item { padding: 9px 16px; }
    .mvp-playlist-header { padding: 10px 16px 8px; }
}
