/* ================================================================
   Artist / Band Profile Styles — FriendRewind
   Supports: Modern Light, Modern Dark (theme-dark), Classic (skin-classic)
   ================================================================ */

/* ── Artist Header ── */
.artist-header {
    position: relative;
    margin-bottom: 0;
}
.artist-banner {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #003399 0%, #0066cc 50%, #003366 100%);
    background-size: cover;
    background-position: center;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}
.artist-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.artist-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    pointer-events: none;
}
.artist-name-bar {
    background: linear-gradient(to bottom, #3066cc 0%, #1e4390 100%);
    color: #fff;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid #1e4390;
}
.artist-name-bar h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.artist-genre-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.artist-genre-tag {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    text-decoration: none;
    letter-spacing: 0.02em;
}

/* ── Artist Stats Bar (like MySpace: Total Plays | Downloads Today | Plays Today) ── */
.artist-stats-bar {
    display: flex;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-top: none;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}
.artist-stats-bar .stat-item {
    flex: 1;
    text-align: center;
    padding: 6px 8px;
    border-right: 1px solid #ccc;
}
.artist-stats-bar .stat-item:last-child { border-right: none; }
.artist-stats-bar .stat-label { color: #666; font-weight: 400; }
.artist-stats-bar .stat-value { font-weight: 700; color: #003399; }

/* ── Artist Music Player (Classic MySpace Style) ── */
.artist-player {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    -webkit-font-smoothing: antialiased;
    border: 1px solid #d5d5d5;
    background: #e0e0e0;
}

/* Main player shell — 2-column grid: controls left, meta right */
.mmp-control-container {
    background: linear-gradient(180deg, #f4f4f4 3%, #d7d8d5 26%, #bcbdbb 43%, #898989 79%, #e2e0e1 96%, #ece8e8 100%);
    border-bottom: 1px solid #b0b0b0;
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: auto 1fr;
    min-height: 75px;
}

/* Left: transport buttons */
.mmp-button-controls {
    display: flex;
    align-items: center;
    padding: 8px 4px 8px 8px;
    gap: 3px;
}
.mmp-button-controls button {
    width: 42px;
    height: 42px;
    border-radius: 5px;
    border: 2px solid #939397;
    background: linear-gradient(180deg, rgba(250,250,250,1) 12%, rgba(176,176,176,1) 64%, rgba(134,133,136,1) 81%, rgba(225,226,224,1) 94%);
    box-shadow: 1px 1px 1px #ececec inset;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #555;
    padding: 0;
    transition: background 0.1s;
}
.mmp-button-controls button:hover {
    background: linear-gradient(180deg, #fff 12%, #c0c0c0 64%, #a0a0a0 81%, #e8e8e8 94%);
}
.mmp-button-controls button:active {
    background: linear-gradient(180deg, #b3b3b3 1%, #b0b0b0 8%, #848484 22%, #525252 100%);
    box-shadow: 1px 1px 1px #4a4a4a inset;
}
.mmp-button-controls button i {
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.4);
}

/* Right: dark meta area with album art, song info, EQ */
.mmp-meta-container {
    background: linear-gradient(180deg, #5e5e5e 0%, #333 7%, #000 100%);
    border-radius: 3px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 8px 8px 3px;
    padding: 8px 10px;
    min-width: 0;
    overflow: hidden;
}
.mmp-cover-art {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: #222;
}
.mmp-cover-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
}
.mmp-song-text {
    flex: 1;
    min-width: 0;
}
.mmp-song-name {
    font-family: Verdana, Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.mmp-song-artist {
    font-family: Verdana, Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 100;
    color: #ccc;
    text-shadow: 1px 1px 1px #000;
    display: block;
}
.mmp-time-container {
    font-family: Verdana, Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 100;
    color: #fff;
    opacity: 0.5;
    margin-top: 2px;
}
.mmp-time-container .mmp-divider { margin: 0 2px; }

/* EQ Visualizer */
.mmp-eq-container {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 40px;
    flex-shrink: 0;
    padding: 0 4px;
}
.mmp-eq-bar {
    width: 3px;
    background: #00a0ff;
    border-radius: 1px 1px 0 0;
    min-height: 2px;
    transition: height 0.08s ease-out;
}
.mmp-eq-container.paused .mmp-eq-bar {
    height: 2px !important;
    background: #444;
}

/* Progress bar below player */
.mmp-progress-wrap {
    height: 6px;
    background: #313252;
    cursor: pointer;
    position: relative;
}
.mmp-progress-bar {
    height: 100%;
    background: #00a0ff;
    width: 0%;
    transition: width 0.15s linear;
}

/* ── Track List ── */
.artist-tracklist {
    display: flex;
    gap: 0;
}
.artist-tracklist-cover {
    width: 140px;
    min-width: 140px;
    padding: 10px;
    text-align: center;
}
.artist-tracklist-cover img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 1px solid #ccc;
    display: block;
    margin: 0 auto 6px;
}
.artist-tracklist-cover .atc-album {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}
.artist-tracklist-cover .atc-year {
    font-size: 10px;
    color: #888;
}
.artist-tracklist-songs {
    flex: 1;
    min-width: 0;
    padding: 8px 10px 8px 0;
}
.artist-track-row {
    display: flex;
    align-items: center;
    padding: 5px 6px;
    border-bottom: 1px dotted #ccc;
    gap: 8px;
    font-size: 13px;
    transition: background 0.1s;
}
.artist-track-row:hover {
    background: rgba(0, 51, 153, 0.04);
}
.artist-track-row:last-child { border-bottom: none; }
.artist-track-row .atr-play {
    cursor: pointer;
    color: #003399;
    font-size: 11px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.artist-track-row .atr-play:hover { color: #0066cc; }
.artist-track-row .atr-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.artist-track-row .atr-title a {
    color: #003399;
    text-decoration: none;
    font-weight: 500;
}
.artist-track-row .atr-title a:hover { text-decoration: underline; }
.artist-track-row .atr-plays {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}
.artist-track-row .atr-plays b { color: #333; }
.artist-track-row .atr-actions {
    font-size: 11px;
    color: #888;
    white-space: nowrap;
}
.artist-track-row .atr-actions a {
    color: #003399;
    text-decoration: none;
    margin-left: 4px;
}
.artist-track-row .atr-actions a:hover { text-decoration: underline; }
.artist-track-row.playing {
    background: rgba(0, 51, 153, 0.08);
    font-weight: 600;
}
.artist-track-row.playing .atr-title a { color: #8b0000; }

/* ── Track Number Column ── */
.artist-track-row .atr-num {
    font-size: 11px;
    color: #999;
    width: 18px;
    text-align: right;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* ── Album Sections ── */
.artist-album-section {
    border-bottom: 1px solid #e0e0e0;
}
.artist-album-section:last-child { border-bottom: none; }
.artist-tracklist-cover .atc-count {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}
.artist-tracklist-cover-noart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.artist-tracklist-cover-noart .atc-noart-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
    border: 1px solid #ccc;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #aaa;
    margin-bottom: 6px;
}

.artist-player-open-link {
    text-align: right;
    padding: 4px 10px 6px;
    font-size: 11px;
    border-top: 1px solid #eee;
}
.artist-player-open-link a { color: #003399; text-decoration: none; }
.artist-player-open-link a:hover { text-decoration: underline; }

/* ── Subscribe Button ── */
.artist-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(to bottom, #1e4390, #0a2a78);
    color: #fff;
    border: 1px solid #0f2f7d;
    border-radius: 4px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.artist-subscribe-btn:hover {
    background: linear-gradient(to bottom, #2a5ab0, #1e4390);
    color: #fff;
    text-decoration: none;
}
.artist-subscribe-btn.subscribed {
    background: linear-gradient(to bottom, #666, #444);
    border-color: #333;
}
.artist-subscribe-count {
    font-size: 11px;
    color: #fff;
    margin-left: 4px;
}

/* ── Left Column Artist Details ── */
.artist-detail-row {
    display: flex;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.4;
}
.artist-detail-row .adr-label {
    font-weight: 600;
    color: #666;
    min-width: 50px;
    flex-shrink: 0;
}
.artist-detail-row .adr-value { color: #333; }

.artist-verification-banner {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-align: center;
}
.artist-verification-banner i { margin-right: 4px; }

/* No tracks placeholder */
.artist-no-tracks {
    padding: 30px 20px;
    text-align: center;
    color: #888;
    font-size: 13px;
}
.artist-no-tracks i { font-size: 24px; display: block; margin-bottom: 8px; color: #ccc; }

/* ================================================================
   Dark Mode Overrides (body.theme-dark)
   ================================================================ */
body.theme-dark .artist-name-bar {
    background: linear-gradient(to bottom, #1e3a6e, #142d5a);
    border-color: #0f2548;
}
body.theme-dark .artist-stats-bar {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}
body.theme-dark .artist-stats-bar .stat-label { color: #9ca3af; }
body.theme-dark .artist-stats-bar .stat-value { color: #93c5fd; }
body.theme-dark .artist-stats-bar .stat-item { border-color: #374151; }

body.theme-dark .artist-player {
    border-color: #374151;
    background: #111827;
}
body.theme-dark .mmp-control-container {
    background: linear-gradient(180deg, #2d2d2d 3%, #222 26%, #1a1a1a 43%, #111 79%, #252525 96%);
    border-color: #374151;
}
body.theme-dark .mmp-button-controls button {
    background: linear-gradient(180deg, #444 12%, #333 64%, #282828 81%, #3a3a3a 94%);
    border-color: #555;
    color: #ccc;
    box-shadow: 1px 1px 1px #1a1a1a inset;
}
body.theme-dark .mmp-button-controls button:hover {
    background: linear-gradient(180deg, #555 12%, #444 64%, #333 81%, #4a4a4a 94%);
}
body.theme-dark .mmp-meta-container {
    background: linear-gradient(180deg, #333 0%, #1a1a1a 7%, #000 100%);
}
body.theme-dark .mmp-progress-wrap { background: #1a1a2e; }
body.theme-dark .mmp-eq-container.paused .mmp-eq-bar { background: #333; }

body.theme-dark .artist-tracklist-cover img { border-color: #374151; }
body.theme-dark .artist-tracklist-cover .atc-album { color: #e5e7eb; }
body.theme-dark .artist-tracklist-cover .atc-year { color: #9ca3af; }

body.theme-dark .artist-track-row { border-color: #374151; }
body.theme-dark .artist-track-row:hover { background: rgba(59, 130, 246, 0.08); }
body.theme-dark .artist-track-row .atr-title a { color: #93c5fd; }
body.theme-dark .artist-track-row .atr-plays { color: #9ca3af; }
body.theme-dark .artist-track-row .atr-plays b { color: #e5e7eb; }
body.theme-dark .artist-track-row .atr-actions a { color: #93c5fd; }
body.theme-dark .artist-track-row.playing { background: rgba(59, 130, 246, 0.12); }
body.theme-dark .artist-track-row.playing .atr-title a { color: #fca5a5; }

body.theme-dark .artist-album-section { border-color: #374151; }
body.theme-dark .artist-track-row .atr-num { color: #6b7280; }
body.theme-dark .artist-tracklist-cover .atc-count { color: #6b7280; }
body.theme-dark .artist-tracklist-cover-noart .atc-noart-icon {
    background: linear-gradient(135deg, #1f2937, #374151);
    border-color: #4b5563;
    color: #6b7280;
}

body.theme-dark .artist-player-open-link { border-color: #374151; }
body.theme-dark .artist-player-open-link a { color: #93c5fd; }

body.theme-dark .artist-detail-row .adr-label { color: #9ca3af; }
body.theme-dark .artist-detail-row .adr-value { color: #e5e7eb; }

body.theme-dark .artist-verification-banner {
    background: #422006;
    border-color: #92400e;
    color: #fbbf24;
}
body.theme-dark .artist-no-tracks { color: #9ca3af; }
body.theme-dark .artist-no-tracks i { color: #4b5563; }

body.theme-dark .artist-subscribe-count { color: #e5e7eb; }

/* ================================================================
   Classic Skin Overrides (body.skin-classic)
   ================================================================ */
body.skin-classic .artist-name-bar {
    background: #69c;
    font-family: Arial, Helvetica, sans-serif;
}
body.skin-classic .artist-genre-tag {
    background: rgba(255,255,255,0.25);
}
body.skin-classic .artist-stats-bar {
    background: #eee;
    border-color: #999;
    font-family: Arial, Helvetica, sans-serif;
}
body.skin-classic .artist-stats-bar .stat-value { color: #003399; }

body.skin-classic .artist-player {
    border-color: #999;
    border-radius: 6px;
}
body.skin-classic .mmp-song-name,
body.skin-classic .mmp-song-artist,
body.skin-classic .mmp-time-container {
    font-family: Arial, Helvetica, sans-serif;
}

body.skin-classic .artist-track-row .atr-title a { color: #003399; }
body.skin-classic .artist-track-row.playing .atr-title a { color: #990000; }

body.skin-classic .artist-subscribe-btn {
    border-radius: 2px;
    font-family: Arial, Helvetica, sans-serif;
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 768px) {
    .artist-banner { height: 140px; }
    .artist-name-bar { padding: 6px 12px; }
    .artist-name-bar h1 { font-size: 16px; }
    .artist-stats-bar { font-size: 10px; flex-wrap: wrap; }
    .artist-stats-bar .stat-item { padding: 4px 6px; }
    .artist-tracklist { flex-direction: column; }
    .artist-tracklist-cover { width: 100%; display: flex; gap: 10px; align-items: center; padding: 8px 10px; }
    .artist-tracklist-cover img { width: 70px; height: 70px; margin: 0; }
    .artist-tracklist-songs { padding: 0 10px 8px; }
    .artist-track-row { font-size: 12px; }
    .mmp-button-controls button { width: 34px; height: 34px; font-size: 12px; }
    .mmp-button-controls { padding: 6px 3px 6px 6px; gap: 2px; }
    .mmp-cover-art, .mmp-cover-placeholder { width: 40px; height: 40px; }
    .mmp-song-name { font-size: 12px; }
    .mmp-song-artist { font-size: 10px; }
    .mmp-eq-container { height: 30px; }
}
