
/* ── Profile card ─────────────────────────────────────────────────────────── */
.mp-profile-card {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 28px;
    text-align: center;
}
.mp-avatar-wrap {
    position: relative; display: inline-block; margin: 0 auto 14px;
}
.mp-avatar-wrap.mp-avatar-editable { cursor: pointer; }
.mp-avatar-wrap.mp-avatar-editable:hover .mp-avatar-overlay { opacity: 1; }
.mp-avatar-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%; background: rgba(0,0,0,0.55);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s;
    color: #fff; font-size: 1.1rem;
}
.mp-profile-avatar {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    background: rgba(255,255,255,0.08); display: block;
    border: 3px solid rgba(245,197,24,0.3);
}
.mp-avatar-reset {
    display: block; font-size: 0.7rem; color: rgba(255,255,255,0.25);
    margin-top: 4px; cursor: pointer; background: none; border: none;
    font-family: "Josefin Sans", sans-serif; transition: color 0.12s;
}
.mp-avatar-reset:hover { color: #f5c518; }
.mp-online-dot {
    position: absolute; bottom: 4px; right: 4px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #2ecc71; border: 2px solid #1a1a1a;
}
.mp-profile-name {
    font-family: "Josefin Sans", sans-serif;
    font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 6px;
}
.mp-name-editor {
    margin: 10px auto 0; max-width: 320px; text-align: center;
}
.mp-name-input {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px; color: #fff;
    font-family: "Josefin Sans", sans-serif;
    font-size: 1rem; font-weight: 700;
    padding: 6px 12px; text-align: center;
    outline: none; width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.mp-name-input:focus { border-color: rgba(245,197,24,0.5); }
.mp-badge-tc {
    display: inline-block;
    background: rgba(245,197,24,0.15);
    border: 1px solid rgba(245,197,24,0.35);
    color: #f5c518; font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.5px; padding: 2px 10px; border-radius: 3px;
    text-transform: uppercase; margin-bottom: 16px;
}
.mp-badge-bot {
    display: inline-block;
    background: rgba(100,149,237,0.15);
    border: 1px solid rgba(100,149,237,0.35);
    color: #6495ed; font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.5px; padding: 2px 10px; border-radius: 3px;
    text-transform: uppercase; margin-bottom: 16px;
}
.mp-profile-stats {
    display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
}
.mp-stat { text-align: center; }
.mp-stat-clickable { cursor: pointer; border-radius: 8px; padding: 4px 8px; transition: background 0.15s; }
.mp-stat-clickable:hover { background: rgba(255,255,255,0.06); }

/* ── Achievement badges ──────────────────────────────────────────────────── */
.mp-badge-row { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.mp-user-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 12px;
    border: 1px solid; font-family: "Josefin Sans", sans-serif;
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.3px;
    cursor: default;
}
.mp-user-badge i { font-size: 0.62rem; }
.mp-stat-val   { font-family: "Josefin Sans", sans-serif; font-size: 1.4rem; font-weight: 700; color: #f5c518; }
.mp-stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Identity tags (favorite band/genre) ─────────────────────────────────── */
.mp-profile-identity { margin-top: 12px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.mp-identity-tag {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 12px; border-radius: 16px;
    background: rgba(245,197,24,0.08); border: 1px solid rgba(245,197,24,0.2);
    font-family: "Josefin Sans", sans-serif; font-size: 0.72rem; color: rgba(255,255,255,0.55);
}
.mp-identity-tag i { color: #f5c518; font-size: 0.65rem; }
.mp-identity-placeholder { font-family: "Josefin Sans", sans-serif; font-size: 0.72rem; color: rgba(255,255,255,0.18); font-style: italic; }
.mp-identity-edit-btn {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 6px;
    background: none; border: none; color: rgba(255,255,255,0.2);
    font-family: "Josefin Sans", sans-serif; font-size: 0.68rem; cursor: pointer;
    transition: color 0.15s;
}
.mp-identity-edit-btn:hover { color: #f5c518; }
.mp-identity-editor { margin-top: 10px; }
.mp-identity-field { margin-bottom: 8px; text-align: left; }
.mp-identity-field label {
    display: block; font-family: "Josefin Sans", sans-serif; font-size: 0.68rem;
    color: rgba(255,255,255,0.35); margin-bottom: 3px;
}
.mp-identity-field input {
    width: 100%; max-width: 280px; padding: 6px 10px; border-radius: 6px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8); font-family: "Josefin Sans", sans-serif; font-size: 0.78rem;
    outline: none; transition: border-color 0.15s;
}
.mp-identity-field input:focus { border-color: rgba(245,197,24,0.4); }

/* ── Follow list modal ───────────────────────────────────────────────────── */
.mp-follow-modal-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.75); display: flex;
    align-items: center; justify-content: center;
}
.mp-follow-modal {
    background: #1a1a1a; border-radius: 12px; width: 360px; max-width: 92vw;
    max-height: 80vh; display: flex; flex-direction: column;
    border: 1px solid rgba(255,255,255,0.1);
}
.mp-follow-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mp-follow-modal-title {
    font-family: "Josefin Sans", sans-serif; font-size: 0.88rem; font-weight: 700;
    color: rgba(255,255,255,0.7); margin: 0; text-transform: uppercase; letter-spacing: 0.5px;
}
.mp-follow-modal-close {
    background: none; border: none; color: rgba(255,255,255,0.4);
    font-size: 1.3rem; cursor: pointer; padding: 0; line-height: 1;
    transition: color 0.15s;
}
.mp-follow-modal-close:hover { color: #fff; }
.mp-follow-modal-body { overflow-y: auto; padding: 8px 0; flex: 1; }
.mp-follow-user-row {
    display: flex; align-items: center; gap: 10px; padding: 8px 18px;
    text-decoration: none; transition: background 0.12s;
}
.mp-follow-user-row:hover { background: rgba(255,255,255,0.04); }
.mp-follow-user-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mp-follow-user-info { flex: 1; min-width: 0; }
.mp-follow-user-name {
    display: block; font-family: "Josefin Sans", sans-serif; font-size: 0.82rem;
    color: rgba(255,255,255,0.7); font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-follow-user-handle {
    display: block; font-family: "Josefin Sans", sans-serif; font-size: 0.68rem;
    color: rgba(255,255,255,0.3);
}
.mp-follow-pagination { display: flex; gap: 4px; justify-content: center; padding: 12px 0; }
.mp-follow-page-btn {
    width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1);
    background: none; color: rgba(255,255,255,0.4); font-size: 0.72rem; cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.mp-follow-page-btn:hover { background: rgba(255,255,255,0.06); color: #fff; }
.mp-follow-page-btn.active { background: #f5c518; color: #111; border-color: #f5c518; }

/* ── Send Message button ──────────────────────────────────────────────────── */
.mp-send-msg-btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 14px;
    padding: 6px 18px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    background: none; color: rgba(255,255,255,0.5);
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.78rem; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.mp-send-msg-btn:hover {
    border-color: #f5c518; color: #f5c518;
    background: rgba(245,197,24,0.08);
}

/* ── Section headers ──────────────────────────────────────────────────────── */
.mp-section-title {
    font-family: "Josefin Sans", sans-serif; font-size: 0.88rem; font-weight: 700;
    letter-spacing: 1px; color: rgba(255,255,255,0.5); text-transform: uppercase;
    margin: 28px 0 14px; display: flex; align-items: center; gap: 8px;
}
.mp-section-title:first-child { margin-top: 0; }

/* ── Recent topics — block layout (force left-align over container center) ── */
.mp-recent-topic {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 8px;
    text-align: left;
}
.mp-recent-topic-title {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.9rem; font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    display: block;
    transition: color 0.12s;
}
.mp-recent-topic-title:hover { color: #f5c518; }
.mp-recent-topic-preview {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
    margin: 5px 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mp-recent-topic-preview.mp-preview-expanded {
    display: block; overflow: visible; -webkit-line-clamp: unset;
}
.mp-recent-topic-meta {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.72rem; color: rgba(255,255,255,0.3);
    margin-top: 6px;
}
.mp-preview-more {
    display: inline-block; background: none; border: none;
    color: rgba(255,255,255,0.35); font-size: 0.78rem;
    font-family: "Josefin Sans", sans-serif; cursor: pointer;
    padding: 0; margin-top: 2px; transition: color 0.12s;
}
.mp-preview-more:hover { color: #f5c518; }

/* ── Recent photos grid ───────────────────────────────────────────────────── */
.mp-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 28px;
}
.mp-photo-thumb-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    transition: border-color 0.15s, transform 0.15s;
}
.mp-photo-thumb-link:hover { border-color: rgba(255,255,255,0.28); transform: translateY(-2px); }
.mp-photo-wrap {
    position: relative;
    width: 100%;
    padding-top: 66.66%; /* 3:2 ratio */
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}
.mp-photo-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.mp-photo-thumb-link:hover .mp-photo-wrap img { transform: scale(1.05); }

/* ── Favorites episodes grid ──────────────────────────────────────────────── */
.mp-fav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}
.mp-fav-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.mp-fav-card:hover {
    border-color: #f5c518;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
.mp-fav-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}
.mp-fav-thumb-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.mp-fav-card:hover .mp-fav-thumb-img { transform: scale(1.04); }
.mp-fav-title {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.8rem; font-weight: 600;
    color: rgba(255,255,255,0.75);
    line-height: 1.35;
    padding: 8px 10px 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Handle ───────────────────────────────────────────────────────────────── */
.mp-handle {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    margin-bottom: 8px;
}
.mp-handle-claim-btn {
    background: none; border: 1px dashed rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.3); border-radius: 4px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.75rem; padding: 3px 12px; cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.mp-handle-claim-btn:hover { border-color: #f5c518; color: #f5c518; }
.mp-handle-editor {
    margin: 10px auto 0; max-width: 320px; text-align: center;
}
.mp-handle-input-row {
    display: flex; align-items: center; justify-content: center; gap: 0;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px; overflow: hidden;
    transition: border-color 0.15s;
}
.mp-handle-input-row:focus-within { border-color: rgba(245,197,24,0.5); }
.mp-handle-prefix {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.88rem; color: rgba(255,255,255,0.3);
    padding: 6px 0 6px 12px; user-select: none;
}
.mp-handle-input {
    background: none; border: none; outline: none;
    color: #fff; font-family: "Josefin Sans", sans-serif;
    font-size: 0.88rem; padding: 6px 8px; flex: 1; min-width: 0;
}
.mp-handle-input::placeholder { color: rgba(255,255,255,0.18); }
.mp-handle-status {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.72rem; padding: 0 10px; white-space: nowrap;
}
.mp-handle-checking { color: rgba(255,255,255,0.3); }
.mp-handle-available { color: #2ecc71; }
.mp-handle-invalid { color: #e74c3c; }
/* ── Bio ──────────────────────────────────────────────────────────────────── */
.mp-profile-bio {
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.55;
    margin: 14px auto 0;
    max-width: 500px;
}
.mp-bio-placeholder {
    font-style: italic;
    color: rgba(255,255,255,0.2);
}
.mp-bio-edit-btn {
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.2); padding: 0 0 0 7px;
    font-size: 0.72rem; line-height: 1;
    transition: color 0.12s; vertical-align: middle;
}
.mp-bio-edit-btn:hover { color: #f5c518; }
.mp-bio-editor { margin-top: 14px; }
.mp-bio-textarea {
    width: 100%; max-width: 500px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: #fff;
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.85rem;
    line-height: 1.55;
    padding: 8px 12px;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.mp-bio-textarea:focus { border-color: rgba(245,197,24,0.5); }
.mp-bio-char-count {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.22);
    margin-top: 4px;
    display: block;
    transition: color 0.15s;
}
.mp-bio-char-count.near-limit { color: #f5c518; }
.mp-bio-actions {
    display: flex; justify-content: center; gap: 8px; margin-top: 10px;
}
.mp-bio-save-btn {
    background: #f5c518; color: #000;
    border: none; border-radius: 4px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.78rem; font-weight: 700;
    padding: 5px 16px; cursor: pointer;
    transition: opacity 0.12s;
}
.mp-bio-save-btn:hover { opacity: 0.85; }
.mp-bio-save-btn:disabled { opacity: 0.5; cursor: default; }
.mp-bio-cancel-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.4); border-radius: 4px;
    font-family: "Josefin Sans", sans-serif;
    font-size: 0.78rem; padding: 5px 16px; cursor: pointer;
    transition: border-color 0.12s, color 0.12s;
}
.mp-bio-cancel-btn:hover { border-color: rgba(255,255,255,0.35); color: rgba(255,255,255,0.7); }

/* ── Utility ──────────────────────────────────────────────────────────────── */
.mp-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.4); font-size: 0.82rem;
    text-decoration: none; margin-bottom: 20px; transition: color 0.15s;
}
.mp-back-link:hover { color: #f5c518; }
.mp-spinner {
    display: inline-block; width: 24px; height: 24px;
    border: 2px solid rgba(255,255,255,0.1); border-top-color: #f5c518;
    border-radius: 50%; animation: mp-spin 0.7s linear infinite;
}
@keyframes mp-spin { to { transform: rotate(360deg); } }

/* Markup styles in /css/moshpit-markup.css */

