/* ── PT Mixcloud Player — Styles ── */

.pt-mc-player {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0d0d0d;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* ── Embed wrap ── */
.pt-mc-embed-wrap {
    display: none;
    background: #111;
    border-bottom: 1px solid rgba(255, 85, 0, 0.1);
}
.pt-mc-embed-wrap.active { display: block; }
.pt-mc-embed-wrap iframe {
    display: block;
    width: 100%;
    height: 60px;
    border: none;
}

/* ── Now playing bar ── */
.pt-mc-now-playing {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 85, 0, 0.08);
    border-bottom: 1px solid rgba(255, 85, 0, 0.15);
}
.pt-mc-now-playing.active { display: flex; }

.pt-mc-np-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff5500;
    flex-shrink: 0;
    animation: pt-mc-pulse 1.4s ease-in-out infinite;
}
@keyframes pt-mc-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.75); }
}

.pt-mc-np-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.pt-mc-np-stop {
    background: transparent;
    border: 1px solid rgba(255, 85, 0, 0.3);
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    font-family: inherit;
    transition: all 0.2s;
}
.pt-mc-np-stop:hover {
    border-color: #ff5500;
    color: #ff5500;
}

/* ── Header ── */
.pt-mc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255, 85, 0, 0.15);
}
.pt-mc-header-left { display: flex; flex-direction: column; gap: 3px; }

.pt-mc-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ff5500;
}

.pt-mc-title-bar {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.pt-mc-mixcloud-link {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.pt-mc-mixcloud-link:hover { color: #ff5500; }
.pt-mc-mixcloud-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ── Mix list ── */
.pt-mc-list {
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 85, 0, 0.3) transparent;
}
.pt-mc-list::-webkit-scrollbar { width: 4px; }
.pt-mc-list::-webkit-scrollbar-track { background: transparent; }
.pt-mc-list::-webkit-scrollbar-thumb {
    background: rgba(255, 85, 0, 0.3);
    border-radius: 2px;
}

/* ── Mix card ── */
.pt-mc-mix {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: background 0.15s;
    box-sizing: border-box;
}
.pt-mc-mix:last-child { border-bottom: none; }
.pt-mc-mix:hover      { background: rgba(255, 255, 255, 0.04); }
.pt-mc-mix.playing    { background: rgba(255, 85, 0, 0.07); }

/* ── Artwork ── */
.pt-mc-art {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 6px;
    overflow: hidden;
    background: #1a1a1a;
}
.pt-mc-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}
.pt-mc-art-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
}
.pt-mc-mix:hover .pt-mc-art-overlay,
.pt-mc-mix.playing .pt-mc-art-overlay { opacity: 1; }

/* ── Play icon ── */
.pt-mc-play-icon { width: 22px; height: 22px; }
.pt-mc-play-icon path { fill: #ff5500; }

/* ── Animated bars (playing state) ── */
.pt-mc-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}
.pt-mc-bars span {
    display: block;
    width: 3px;
    background: #ff5500;
    border-radius: 1px;
    animation: pt-mc-bar 0.9s ease-in-out infinite;
}
.pt-mc-bars span:nth-child(1) { height: 6px;  animation-delay: 0s; }
.pt-mc-bars span:nth-child(2) { height: 12px; animation-delay: 0.2s; }
.pt-mc-bars span:nth-child(3) { height: 8px;  animation-delay: 0.4s; }
.pt-mc-bars span:nth-child(4) { height: 14px; animation-delay: 0.1s; }
@keyframes pt-mc-bar {
    0%, 100% { transform: scaleY(1); }
    50%       { transform: scaleY(0.4); }
}

/* ── Mix info ── */
.pt-mc-info { flex: 1; min-width: 0; }

.pt-mc-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    line-height: 1.3;
}
.pt-mc-mix.playing .pt-mc-name { color: #ff5500; }

.pt-mc-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    flex-wrap: wrap;
}
.pt-mc-meta-dot { color: rgba(255, 255, 255, 0.15); }

/* ── Duration ── */
.pt-mc-duration {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.25);
    font-variant-numeric: tabular-nums;
}

/* ── Load more ── */
.pt-mc-loadmore {
    display: block;
    width: 100%;
    padding: 14px;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s;
    text-align: center;
    box-sizing: border-box;
}
.pt-mc-loadmore:hover    { color: #ff5500; }
.pt-mc-loadmore:disabled { opacity: 0.3; cursor: default; }

/* ── Loading / error ── */
.pt-mc-loading {
    padding: 40px 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}
.pt-mc-spinner {
    width: 20px;
    height: 20px;
    margin: 0 auto 12px;
    border: 2px solid rgba(255, 85, 0, 0.2);
    border-top-color: #ff5500;
    border-radius: 50%;
    animation: pt-mc-spin 0.7s linear infinite;
}
@keyframes pt-mc-spin { to { transform: rotate(360deg); } }

/* ── Footer ── */
.pt-mc-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pt-mc-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.2);
}
.pt-mc-viewall {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 0.2s;
}
.pt-mc-viewall:hover { color: #ff5500; }
