/* =====================================================
   OtakusCR User Profile — Styles
   ===================================================== */
.ocr-profile-wrap { background: var(--bg); min-height: 100vh; }

/* Banner */
.ocr-profile-banner {
    position: relative; height: 200px; overflow: hidden;
}
.ocr-profile-banner__glyph {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-jp); font-weight: 900;
    font-size: 200px; color: rgba(255,255,255,0.04);
    user-select: none;
}
.ocr-profile-banner__actions {
    position: absolute; top: 16px; right: 16px;
    display: flex; gap: 8px;
}

/* Identity */
.ocr-profile-identity {
    display: flex; align-items: flex-end; gap: 24px;
    padding: 0 0 24px;
    margin-top: -60px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.ocr-profile-avatar-wrap {
    position: relative; flex-shrink: 0;
}
.ocr-profile-avatar {
    width: 120px; height: 120px; border-radius: 50%;
    border: 4px solid var(--bg);
    outline: 3px solid;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.ocr-profile-verified {
    position: absolute; bottom: 4px; right: 4px;
    font-size: 18px;
}
.ocr-profile-id { flex: 1; min-width: 0; padding-top: 70px; }
.ocr-profile-name {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(22px, 4vw, 32px); letter-spacing: -0.5px; margin: 0;
}
.ocr-profile-role {
    font-family: var(--font-mono); font-size: 10px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    padding: 3px 10px; border-radius: 100px;
    background: rgba(255,255,255,0.08); color: var(--text3);
}
.ocr-profile-handle {
    font-family: var(--font-mono); font-size: 12px; color: var(--text3);
    margin: 4px 0;
}
.ocr-profile-bio {
    font-size: 14px; line-height: 1.6; color: var(--text2);
    margin: 8px 0; max-width: 560px;
}
.ocr-profile-details {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    font-family: var(--font-mono); font-size: 11px; color: var(--text2);
    margin-top: 8px;
}
.ocr-profile-socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ocr-social-chip {
    font-family: var(--font-mono); font-size: 10px; font-weight: 700;
    padding: 3px 10px; border-radius: 100px;
    border: 1px solid;
}

/* Stats */
.ocr-profile-stats {
    display: flex; align-items: center; gap: 0;
    background: var(--bg-1); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    margin: 20px 0 0;
}
.ocr-profile-stat {
    flex: 1; text-align: center; padding: 16px 8px;
    border-right: 1px solid var(--border);
}
.ocr-profile-stat:last-child { border-right: none; }
.ocr-profile-stat__val {
    font-family: var(--font-display); font-weight: 800;
    font-size: 22px; letter-spacing: -0.5px; line-height: 1;
}
.ocr-profile-stat__lbl {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--text3); margin-top: 4px;
}

/* Tabs */
.ocr-profile-tabs {
    display: flex; gap: 2px; margin-top: 20px;
    border-bottom: 1px solid var(--border);
}
.ocr-profile-tab {
    background: transparent; border: none; cursor: pointer;
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    letter-spacing: 0.5px; color: var(--text3);
    padding: 10px 18px; border-bottom: 2px solid transparent;
    transition: all 0.18s; display: flex; align-items: center; gap: 6px;
}
.ocr-profile-tab:hover { color: var(--text); }
.ocr-profile-tab.active {
    color: var(--text);
    border-bottom-color: var(--pink);
}
.ocr-tab-count {
    background: rgba(255,255,255,0.1); border-radius: 100px;
    padding: 2px 7px; font-size: 10px;
}
.ocr-tab-panel { padding-top: 20px; }

/* Watchlist */
.ocr-wl-filters {
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px;
}
.ocr-wl-filter-btn {
    background: rgba(255,255,255,0.04); border: 1px solid var(--border-2);
    border-radius: 6px; padding: 6px 12px; cursor: pointer;
    font-family: var(--font-mono); font-size: 10px; font-weight: 700;
    color: var(--text2); transition: all 0.18s;
}
.ocr-wl-filter-btn.active,
.ocr-wl-filter-btn:hover {
    background: var(--pink-soft); border-color: var(--pink);
    color: var(--pink);
}
.ocr-wl-list { display: flex; flex-direction: column; gap: 1px; }
.ocr-wl-row {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-2); padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 6px; margin-bottom: 4px;
    transition: border-color 0.18s;
}
.ocr-wl-row:hover { border-color: var(--border-2); }
.ocr-wl-row__poster {
    width: 48px; height: 64px; flex-shrink: 0;
    border-radius: 6px; overflow: hidden; display: block;
}
.ocr-wl-row__poster img { width: 100%; height: 100%; object-fit: cover; }
.ocr-wl-row__info { flex: 1; min-width: 0; }
.ocr-wl-row__title {
    font-family: var(--font-display); font-weight: 700; font-size: 13px;
    color: var(--text); display: block; margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ocr-wl-row__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ocr-wl-status {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    padding: 2px 7px; border-radius: 3px;
}
.ocr-wl-score, .ocr-wl-eps {
    font-family: var(--font-mono); font-size: 11px; color: var(--text3);
}
.ocr-wl-row__notes {
    font-size: 12px; color: var(--text3); font-style: italic; margin-top: 4px;
}
.ocr-wl-row__actions { display: flex; gap: 6px; flex-shrink: 0; }
.ocr-wl-edit-btn, .ocr-wl-remove-btn {
    background: transparent; border: none; cursor: pointer;
    font-size: 14px; padding: 4px 6px; border-radius: 4px;
    transition: background 0.15s;
}
.ocr-wl-edit-btn:hover { background: rgba(8,217,214,0.1); }
.ocr-wl-remove-btn:hover { background: rgba(255,46,99,0.1); }
.ocr-wl-empty { padding: 40px; text-align: center; color: var(--text3); }

/* Badges */
.ocr-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 14px;
}
.ocr-badge-item {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; text-align: center;
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 10px;
    transition: border-color 0.18s; position: relative;
    cursor: default;
}
.ocr-badge-item.earned:hover { border-color: var(--border-2); }
.ocr-badge-item__icon {
    width: 48px; height: 48px; border-radius: 12px; border: 2px solid;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.ocr-badge-item__name {
    font-family: var(--font-mono); font-size: 9px; font-weight: 700;
    letter-spacing: 0.5px; color: var(--text2); text-transform: uppercase;
    line-height: 1.3;
}
.ocr-badge-item__lock {
    position: absolute; top: 6px; right: 6px; font-size: 11px;
}
.ocr-badge-item__date {
    font-family: var(--font-mono); font-size: 9px; color: var(--text3);
}
.ocr-badge-item.locked { opacity: 0.4; }

/* Activity */
.ocr-activity-list { display: flex; flex-direction: column; gap: 10px; }
.ocr-activity-item {
    display: flex; align-items: flex-start; gap: 12px;
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: 8px; padding: 12px 14px;
}
.ocr-activity-item__icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.ocr-activity-item__body { flex: 1; }
.ocr-activity-item__text { font-size: 13px; color: var(--text2); }
.ocr-activity-item__link { color: var(--text); font-weight: 600; margin-left: 4px; }
.ocr-activity-item__link:hover { color: var(--pink); }
.ocr-activity-item__time {
    font-family: var(--font-mono); font-size: 10px; color: var(--text3); margin-top: 3px;
}

/* Watchlist Modal */
.ocr-wl-modal {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(5,5,7,0.85); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.ocr-wl-modal__inner {
    background: var(--bg-1); border: 1px solid var(--border-2);
    border-radius: var(--radius-lg); padding: 28px;
    width: 100%; max-width: 440px;
    animation: ocr-fadein 0.2s ease;
}

/* Edit Profile */
.ocr-edit-profile-form {
    background: var(--bg-1); border: 1px solid var(--border-2);
    border-radius: var(--radius-lg); padding: 28px;
    animation: ocr-fadein 0.2s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .ocr-profile-stats { flex-wrap: wrap; }
    .ocr-profile-stat { flex: 0 0 33%; }
    .ocr-badges-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
    .ocr-profile-banner { height: 140px; }
    .ocr-profile-avatar { width: 90px; height: 90px; }
}
