/* Spotify-style Mobile Artist Profile */
.gmp-mobile-ui {
    display: none;
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 80px; /* Space for mini player/nav */
}

@media (max-width: 767px) {
    .gmp-mobile-ui {
        display: block !important;
    }
}

.mob-header-banner {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center top;
}
.mob-header-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(18,18,18,0.7) 60%, rgba(18,18,18,1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}
.mob-top-nav {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    font-size: 24px;
    z-index: 10;
}
.mob-top-nav i {
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.mob-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text);
    text-transform: uppercase;
    margin-bottom: 4px;
    /* removed text shadow */
    animation: verifiedPulse 3s ease-in-out infinite;
}
@keyframes verifiedPulse {
    0%, 100% { text-shadow: 0 0 6px rgba(240,165,0,0.5); }
    50% { text-shadow: 0 0 16px rgba(240,165,0,0.9), 0 0 30px rgba(240,165,0,0.4); }
}
.mob-verified-icon {
    color: #000;
    background: linear-gradient(135deg, #f0a500, #ffdc80);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    box-shadow: 0 0 8px rgba(240,165,0,0.7);
}

.mob-artist-name {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 8px 0;
    color: var(--text);
}
.mob-genre-loc {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 15px;
}
.mob-listeners {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #ccc;
    margin-bottom: 20px;
}
.mob-avatars {
    display: flex;
}
.mob-avatars img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #121212;
    margin-left: -8px;
}
.mob-avatars img:first-child {
    margin-left: 0;
}

.mob-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mob-btn-play {
    background: linear-gradient(135deg, #7b1fa2, #f0a500);
    color: var(--text);
    border: none;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(123,31,162,0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}
.mob-btn-play:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(123,31,162,0.3);
}
.mob-btn-follow {
    background-color: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    flex-grow: 1;
    text-align: center;
}
.mob-btn-more {
    background-color: var(--surface);
    color: var(--text);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.mob-content-pad {
    padding: 20px;
}

.mob-section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text);
}
.mob-about-text {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
    margin-bottom: 15px;
}
.mob-socials {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    color: var(--text);
    font-size: 18px;
    margin-bottom: 30px;
}
.mob-socials a {
    color: var(--text);
}

.mob-popular-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.mob-see-all {
    color: #ab47bc;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.mob-song-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.mob-song-img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
}
.mob-song-no {
    font-weight: 700;
    font-size: 14px;
    width: 15px;
    text-align: center;
}
.mob-song-info {
    flex-grow: 1;
}
.mob-song-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.mob-song-plays {
    font-size: 12px;
    color: var(--muted);
}
.mob-song-dur {
    font-size: 12px;
    color: var(--muted);
}
.mob-song-more {
    color: var(--muted);
    font-size: 18px;
    background: none;
    border: none;
    padding: 5px;
}

/* Stats Row */
.mob-stats-row {
    display: flex;
    justify-content: space-around;
    padding: 15px 10px;
    background-color: var(--surface);
    border-bottom: 1px solid #333;
}
.mob-stats-row > div {
    text-align: center;
}
.mob-stat-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.mob-stat-lbl {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Tabs */
.mob-tabs {
    display: flex;
    border-bottom: 1px solid #333;
}
.mob-tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 3px solid transparent;
}
.mob-tab.active {
    color: var(--text);
    border-bottom: 3px solid #ab47bc;
}

/* Dropdown */
.mob-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface);
    min-width: 150px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 100;
    overflow: hidden;
    margin-top: 8px;
}
.mob-dropdown-show {
    display: block !important;
}
.mob-dropdown a {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #333;
}
.mob-dropdown a:last-child {
    border-bottom: none;
}
.mob-dropdown a:hover {
    background: #333;
}

/* ── Mobile Action Sheet (Bottom Sheet) ── */
.mob-action-sheet {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.mob-action-sheet.mob-sheet-show {
    opacity: 1;
    pointer-events: auto;
}
.mob-sheet-inner {
    background: #1e1e1e !important;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px;
    padding-bottom: 100px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 85vh;
    overflow-y: auto;
}
.mob-action-sheet.mob-sheet-show .mob-sheet-inner {
    transform: translateY(0);
}
.mob-sheet-handle {
    width: 40px;
    height: 4px;
    background: #555;
    border-radius: 2px;
    margin: 0 auto 20px;
}
.mob-sheet-artist {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}
.mob-sheet-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.mob-sheet-divider {
    height: 1px;
    background: #333;
    margin: 10px 0;
}
.mob-sheet-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 10px;
    color: #fff !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}
.mob-sheet-item:hover, .mob-sheet-item:active {
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    text-decoration: none;
}
.mob-sheet-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: #c0c0c0 !important;
}
.mob-sheet-close {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: none;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
}
/* Force white text inside the action sheet regardless of theme */
.mob-sheet-inner .mob-sheet-artist div {
    color: #fff !important;
}
.mob-sheet-inner [style*="color:var(--text)"],
.mob-sheet-inner [style*="color: var(--text)"] {
    color: #fff !important;
}
.mob-sheet-inner [style*="color:var(--muted)"],
.mob-sheet-inner [style*="color: var(--muted)"] {
    color: #aaa !important;
}

/* ── Mobile Tab Sticky Nav ── */
.mob-tab-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(18,18,18,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    padding: 0 16px;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.mob-tab-nav::-webkit-scrollbar { display: none; }
.mob-tab {
    position: relative;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.25s;
    background: none;
    border: none;
    text-decoration: none;
    display: block;
}
.mob-tab::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 2px;
    background: linear-gradient(90deg, #f0a500, #e95d3a);
    border-radius: 2px 2px 0 0;
    transition: left 0.3s cubic-bezier(0.4,0,0.2,1), right 0.3s cubic-bezier(0.4,0,0.2,1);
}
.mob-tab.active {
    color: #f0a500;
}
.mob-tab.active::after {
    left: 0;
    right: 0;
}

/* ── Transparent nav morphing on scroll ── */
.mob-top-nav {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    font-size: 24px;
    z-index: 10;
    padding: 10px 16px;
    border-radius: 12px;
    background: transparent;
    transition: background 0.3s;
}
.mob-top-nav.scrolled {
    background: rgba(18,18,18,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* ── Light Theme Overrides ── */
:root.light-theme .gmp-mobile-ui {
    background-color: var(--bg);
    color: var(--text);
}
:root.light-theme .mob-artist-name,
:root.light-theme .mob-song-title {
    color: var(--text) !important;
}
:root.light-theme .mob-genre-loc,
:root.light-theme .mob-listeners,
:root.light-theme .mob-song-plays,
:root.light-theme .mob-song-dur,
:root.light-theme .mob-song-no {
    color: var(--muted) !important;
}
:root.light-theme .mob-popular-list {
    background: var(--surface);
}
:root.light-theme .mob-song-row {
    border-bottom: 1px solid var(--border);
}
:root.light-theme .mob-header-gradient {
    /* Make the gradient transition to light background instead of dark */
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(255,255,255,0.7) 60%, rgba(255,255,255,1) 100%);
}

/* Light Theme Overrides for Mobile UI */
:root.light-theme .mob-tab-nav {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
}
:root.light-theme .mob-tab {
    color: #666;
}



.apx-section-title, .mob-section-title, .mob-grid-title { text-align: center !important; justify-content: center !important; }

