/* =============================================================
   GospelKingz — Artist Hub Embed Styles
   SCOPED: All rules live under .hub-legacy-wrapper to avoid
   polluting the global Bootstrap / GMP layout.
   ============================================================= */

/* ── CSS Variables (scoped, not :root) ── */
.hub-legacy-wrapper {
    --hub-bg:           #121212;
    --hub-surface:      #1e1e1e;
    --hub-surface-hover:#282828;
    --hub-text:         #ffffff;
    --hub-muted:        #a7a7a7;
    --hub-accent:       #f39c12;
    --hub-accent-hover: #e08e0b;
    --hub-border:       #2a2a2a;
    --hub-radius-sm:    6px;
    --hub-radius-md:    10px;
    --hub-radius-lg:    14px;

    background: var(--hub-bg);
    border-radius: var(--hub-radius-lg);
    padding: 20px;
    margin-top: 20px;
    color: var(--hub-text);
    font-family: 'Inter', -apple-system, sans-serif;
}

/* ── Stats Grid ── */
.hub-legacy-wrapper .artist-hub-stats-section {
    padding: 0 0 28px 0;
}

.hub-legacy-wrapper .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 14px;
}

.hub-legacy-wrapper .stat-card {
    background: var(--hub-surface);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius-md);
    padding: 18px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: background 0.25s;
}

.hub-legacy-wrapper .stat-card:hover {
    background: var(--hub-surface-hover);
}

.hub-legacy-wrapper .stat-icon {
    font-size: 1.4rem;
    color: var(--hub-muted);
}

.hub-legacy-wrapper .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--hub-text);
    line-height: 1;
}

.hub-legacy-wrapper .stat-label {
    font-size: 0.72rem;
    color: var(--hub-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* ── Section Layout ── */
.hub-legacy-wrapper .hub-section {
    margin-bottom: 36px;
}

.hub-legacy-wrapper .hub-section.mt-5 {
    margin-top: 36px;
}

.hub-legacy-wrapper .section-header {
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hub-border);
}

.hub-legacy-wrapper .section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--hub-text);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Latest Release Card ── */
.hub-legacy-wrapper .hub-latest-card {
    display: flex;
    background: linear-gradient(135deg, #1c1c28, #111116);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius-lg);
    overflow: hidden;
    margin-bottom: 36px;
    transition: transform 0.25s, box-shadow 0.25s;
}

.hub-legacy-wrapper .hub-latest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    border-color: var(--hub-accent);
}

.hub-legacy-wrapper .latest-cover-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    flex-shrink: 0;
}

.hub-legacy-wrapper .latest-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hub-legacy-wrapper .latest-play-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.25s;
    cursor: pointer;
    font-size: 36px;
    color: #fff;
}

.hub-legacy-wrapper .latest-cover-wrapper:hover .latest-play-overlay {
    opacity: 1;
}

.hub-legacy-wrapper .latest-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    gap: 8px;
}

.hub-legacy-wrapper .hub-badge {
    background: var(--hub-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    align-self: flex-start;
    letter-spacing: 1px;
}

.hub-legacy-wrapper .latest-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--hub-text);
    margin: 0;
}

.hub-legacy-wrapper .latest-meta {
    color: var(--hub-muted);
    font-size: 13px;
    margin: 0;
}

.hub-legacy-wrapper .latest-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.hub-legacy-wrapper .hub-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s;
}

.hub-legacy-wrapper .hub-btn-primary {
    background: var(--hub-accent);
    color: #fff;
}

.hub-legacy-wrapper .hub-btn-primary:hover {
    background: var(--hub-accent-hover);
    transform: scale(1.04);
    color: #fff;
    text-decoration: none;
}

.hub-legacy-wrapper .hub-btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}

.hub-legacy-wrapper .hub-btn-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}

/* ── Popular Tracks Table ── */
.hub-legacy-wrapper .popular-table-wrapper {
    background: var(--hub-surface);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius-md);
    overflow: hidden;
}

.hub-legacy-wrapper .popular-table {
    width: 100%;
    border-collapse: collapse;
}

.hub-legacy-wrapper .song-row {
    border-bottom: 1px solid var(--hub-border);
    transition: background 0.2s;
}

.hub-legacy-wrapper .song-row:last-child {
    border-bottom: none;
}

.hub-legacy-wrapper .song-row:hover {
    background: rgba(255,255,255,0.04);
}

.hub-legacy-wrapper .song-row td {
    padding: 11px 14px;
    vertical-align: middle;
    color: var(--hub-text);
}

.hub-legacy-wrapper .song-index {
    width: 36px;
    text-align: center;
    color: var(--hub-muted);
    font-weight: 600;
    font-size: 13px;
}

.hub-legacy-wrapper .song-cover-cell { width: 52px; }

.hub-legacy-wrapper .song-row-cover {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}

.hub-legacy-wrapper .song-info-cell .song-title {
    color: var(--hub-text);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.hub-legacy-wrapper .song-info-cell .song-title:hover {
    color: var(--hub-accent);
}

.hub-legacy-wrapper .song-plays-cell,
.hub-legacy-wrapper .song-duration-cell {
    color: var(--hub-muted);
    font-size: 12px;
    white-space: nowrap;
}

.hub-legacy-wrapper .song-actions-cell { text-align: right; }

.hub-legacy-wrapper .action-btn {
    background: none;
    border: none;
    color: var(--hub-muted);
    cursor: pointer;
    font-size: 15px;
    transition: color 0.2s;
    padding: 4px 8px;
}

.hub-legacy-wrapper .action-btn:hover {
    color: var(--hub-text);
}

/* ── Discography / Videos Grid ── */
.hub-legacy-wrapper .hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px;
}

.hub-legacy-wrapper .videos-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.hub-legacy-wrapper .hub-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    background: var(--hub-surface);
    border: 1px solid var(--hub-border);
    border-radius: var(--hub-radius-md);
    overflow: hidden;
    transition: background 0.25s, transform 0.25s, border-color 0.25s;
}

.hub-legacy-wrapper .hub-card:hover {
    background: var(--hub-surface-hover);
    transform: translateY(-4px);
    border-color: var(--hub-accent);
    text-decoration: none;
}

.hub-legacy-wrapper .card-info {
    flex-grow: 1;
}

.hub-legacy-wrapper .card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.hub-legacy-wrapper .video-wrapper {
    aspect-ratio: 16 / 9;
}

.hub-legacy-wrapper .card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hub-legacy-wrapper .video-thumb {
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
}

.hub-legacy-wrapper .video-thumb.no-thumb {
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 13px;
}

.hub-legacy-wrapper .card-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 1px;
}

.hub-legacy-wrapper .play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    opacity: 0;
    transition: opacity 0.25s;
}

.hub-legacy-wrapper .hub-card:hover .play-overlay {
    opacity: 1;
}

.hub-legacy-wrapper .card-info {
    padding: 10px 12px;
}

.hub-legacy-wrapper .card-title {
    color: var(--hub-text);
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-legacy-wrapper .card-meta {
    color: var(--hub-muted);
    font-size: 11px;
    margin: 0;
}

/* ── About Section ── */
.hub-legacy-wrapper .hub-about-text {
    font-size: 14px;
    color: #ccc;
    line-height: 1.7;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hub-legacy-wrapper .hub-latest-card {
        flex-direction: column;
    }
    .hub-legacy-wrapper .latest-cover-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
    .hub-legacy-wrapper .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hub-legacy-wrapper .hub-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    .hub-legacy-wrapper .videos-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .hub-legacy-wrapper .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hub-legacy-wrapper .videos-grid {
        grid-template-columns: 1fr;
    }
    .hub-legacy-wrapper .song-plays-cell,
    .hub-legacy-wrapper .song-duration-cell {
        display: none;
    }
}

/* Light Theme Overrides for Artist Hub */
:root.light-theme .hub-legacy-wrapper {
    --hub-bg:           #f8f9fa;
    --hub-surface:      #ffffff;
    --hub-surface-hover:#f1f1f1;
    --hub-text:         #111111;
    --hub-muted:        #666666;
    --hub-border:       #e0e0e0;
}
:root.light-theme .hub-latest-card {
    background: #ffffff;
    border-color: #e0e0e0;
}
:root.light-theme .song-row:hover {
    background: rgba(0,0,0,0.04);
}
:root.light-theme .video-thumb.no-thumb {
    background: #f1f1f1;
    color: #666;
}
