/* PK Music Hub & Player Front-End CSS */
.pk-music-hub {
    background: #0b1329;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 24px;
    margin: 25px 0;
    color: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.pk-hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #1e293b;
}

.pk-hub-title h2 {
    margin: 0 0 5px 0;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.pk-hub-title p {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.pk-hub-search input {
    background: #1e293b;
    border: 1px solid #334155;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    min-width: 250px;
    outline: none;
    transition: all 0.3s ease;
}

.pk-hub-search input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* Category Filter Tabs */
.pk-hub-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.pk-cat-tab {
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pk-cat-tab:hover,
.pk-cat-tab.active {
    background: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}

/* Music Cards Grid */
.pk-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pk-music-card {
    background: #162032;
    border: 1px solid #1e293b;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.pk-music-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: #38bdf8;
}

.pk-card-cover {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pk-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pk-cover-placeholder {
    font-size: 48px;
    color: #38bdf8;
}

.pk-play-btn {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.9);
    color: #0f172a;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
    transition: all 0.2s ease;
}

.pk-play-btn:hover {
    transform: scale(1.1);
    background: #ffffff;
}

.pk-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pk-card-title {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.pk-card-tags {
    font-size: 12px;
    color: #38bdf8;
    margin-bottom: 12px;
    line-height: 1.4;
}

.pk-audio-inline-player audio {
    width: 100%;
    height: 36px;
    outline: none;
}

.pk-card-lyrics {
    margin-top: 10px;
    font-size: 12px;
}

.pk-card-lyrics summary {
    cursor: pointer;
    color: #94a3b8;
    font-weight: 600;
}

.pk-lyric-content {
    background: #090d16;
    padding: 10px;
    border-radius: 6px;
    margin-top: 6px;
    max-height: 150px;
    overflow-y: auto;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.5;
}

/* Floating Player Bar */
.pk-floating-player {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #38bdf8;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.3);
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 99999;
}

.pk-float-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pk-float-icon {
    font-size: 24px;
}

.pk-float-info strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
}

.pk-float-info small {
    color: #38bdf8;
    font-size: 11px;
}

.pk-float-controls audio {
    height: 35px;
    width: 250px;
}

#pk-float-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
}

#pk-float-close:hover { color: #f87171; }

/* ── YouTube Button ─────────────────────────────────────────────── */
.pk-player-yt-link {
    margin-top: 12px;
    text-align: center;
}
.pk-yt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ff0000;
    color: #fff !important;
    text-decoration: none !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
}
.pk-yt-btn:hover {
    background: #cc0000;
    transform: scale(1.04);
}
.pk-yt-icon { font-size: 15px; }

/* ── Live Waveform Canvas Visualizer ────────────────────────────── */
.pk-visualizer-wrap {
    margin: 12px 0 6px 0;
    background: #090d16;
    border-radius: 8px;
    padding: 8px;
    border: 1px solid #1e293b;
    position: relative;
    overflow: hidden;
}
.pk-visualizer-canvas {
    width: 100%;
    height: 48px;
    display: block;
    border-radius: 4px;
}
.pk-visualizer-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    box-shadow: inset 0 0 15px rgba(56, 189, 248, 0.15);
    border-radius: 8px;
}

