/**
 * showcase.css - Letterboxd-inspired tabbed Showcase Profile
 */

/* ==========================================
   ENTITY LINKS — posters wrapped in <a> for navigation
   ========================================== */
.sc-entity-link { text-decoration: none; color: inherit; display: inline-block; cursor: pointer; transition: transform 0.15s ease, opacity 0.15s ease; }
.sc-entity-link:hover { text-decoration: none; color: inherit; opacity: 0.88; transform: translateY(-1px); }
.sc-entity-link:focus { outline: 2px solid var(--mv-primary, #0d6efd); outline-offset: 2px; border-radius: 4px; }

/* ==========================================
   BACKDROP (Phase 5)
   ========================================== */
.sc-backdrop { position: relative; width: 100%; height: 240px; overflow: hidden; border-radius: 0 0 12px 12px; margin-bottom: 0; }
.sc-backdrop-img { width: 100%; height: 100%; object-fit: cover; }
.sc-backdrop-overlay { position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: rgba(0,0,0,0.4); }

/* ==========================================
   HEADER
   ========================================== */
.sc-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: nowrap; gap: 12px; padding: 12px 0 4px; }
.sc-header-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.sc-header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.sc-avatar-wrap { flex-shrink: 0; position: relative; }
.sc-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--mv-border-color, #e9ecef); }
.sc-avatar-placeholder { width: 72px; height: 72px; border-radius: 50%; background-color: var(--mv-bg-hover, #e9ecef); color: var(--mv-text-muted, #6c757d); display: inline-flex; align-items: center; justify-content: center; font-size: 34px; border: 3px solid var(--mv-border-color, #e9ecef); }
.sc-avatar-wrap.editable { cursor: pointer; }
.sc-avatar-overlay { position: absolute; bottom: 0; right: 0; width: 24px; height: 24px; border-radius: 50%; background-color: #0d6efd; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; border: 2px solid var(--mv-bg-card, #fff); cursor: pointer; }
.sc-avatar-wrap.editable:hover .sc-avatar-overlay { background-color: #0b5ed7; }
.sc-name { font-weight: 700; margin-bottom: 2px; color: var(--mv-text-primary, #212529); }
.sc-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Level badge */
.sc-level-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; background-color: var(--mv-bg-hover, #f8f9fa); }
.sc-level-badge i { font-size: 11px; }
.sc-level-badge.badge-success { background-color: #d1e7dd; color: #0f5132; }
.sc-level-badge.badge-info { background-color: #cff4fc; color: #055160; }
.sc-level-badge.badge-primary { background-color: #cfe2ff; color: #084298; }
.sc-level-badge.badge-warning { background-color: #fff3cd; color: #664d03; }
.sc-level-badge.badge-secondary { background-color: #e2e3e5; color: #41464b; }

/* Info row */
.sc-info-row { display: flex; flex-wrap: wrap; gap: 16px; padding: 10px 0 4px; font-size: 14px; color: var(--mv-text-muted, #6c757d); }
.sc-info-row strong { color: var(--mv-text-primary, #212529); }
.sc-info-row i { font-size: 13px; }

/* Bio */
.sc-bio { color: var(--mv-text-secondary, #495057); line-height: 1.6; padding: 2px 0; margin-bottom: 0; max-width: 720px; font-size: 14px; }

/* Signature picks placeholder */
.sc-signature-section { padding: 8px 0; }
.sc-signature-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; max-width: 700px; }

/* ==========================================
   STATS
   ========================================== */
.sc-stats-section { padding: 4px 0; }
.sc-stats-row { display: flex; flex-wrap: wrap; gap: 0; }
.sc-stat { text-align: center; padding: 6px 16px; }
.sc-stat-value { font-size: 22px; font-weight: 700; color: var(--mv-text-primary, #212529); line-height: 1.1; }
.sc-stat-label { font-size: 11px; color: var(--mv-text-muted, #6c757d); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.sc-year-review-link { font-size: 12px; padding: 2px 0 0; }
.sc-year-review-link a { color: #0d6efd; text-decoration: none; }
.sc-year-review-link a:hover { text-decoration: underline; }

/* Rating distribution header row */
.sc-rating-dist-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sc-chart-wrap { max-width: 500px; }

/* ==========================================
   TAB CONTENT
   ========================================== */
.sc-tab-content { min-height: 300px; }

/* Tab section blocks */
.sc-tab-section { padding: 16px 0; border-bottom: 1px solid var(--mv-border-color, #e9ecef); }
.sc-tab-section:last-child { border-bottom: none; }
.sc-tab-section h6 { margin: 0 0 12px; font-weight: 600; color: var(--mv-text-primary, #212529); }
.sc-tab-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sc-tab-section-header h6 { margin: 0; }
.sc-see-all { font-size: 13px; color: #0d6efd; text-decoration: none; }
.sc-see-all:hover { text-decoration: underline; }

/* ==========================================
   POSTER CARDS (Activity, Watchlist)
   ========================================== */
.sc-poster-wrap { width: 100%; aspect-ratio: 2/3; border-radius: 6px; overflow: hidden; background: var(--mv-bg-hover, #e9ecef); position: relative; }
.sc-poster-wrap img { width: 100%; height: 100%; object-fit: cover; }
.sc-card-title { font-size: 12px; font-weight: 500; color: var(--mv-text-primary, #212529); margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-card-meta { font-size: 11px; color: var(--mv-text-muted, #6c757d); }
.sc-ep-count-badge { position: absolute; top: 4px; right: 4px; min-width: 20px; height: 20px; border-radius: 10px; background: #0d6efd; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; z-index: 1; }
.sc-activity-rating { font-weight: 600; color: var(--mv-text-secondary, #495057); }

/* Activity shelf — overview in Profile tab: small horizontal flex row */
.sc-activity-shelf { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.sc-activity-shelf .sc-activity-card { flex: 0 0 auto; width: 72px; text-align: center; }
.sc-activity-shelf .sc-poster-wrap { width: 72px; height: 108px; }

/* Activity grid — full tab = responsive grid */
.sc-activity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; }

/* Rating histogram in profile tab */
.sc-rating-dist-tab { padding: 0; }
.sc-rating-dist-tab .sc-chart-wrap { max-width: 500px; }

/* Poster grid (watchlist) */
.sc-poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; padding: 16px 0; }
.sc-poster-card { text-align: center; }

/* ==========================================
   FAVORITES
   ========================================== */
.sc-favorites-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.sc-fav-section { margin-bottom: 20px; }
.sc-fav-header { font-size: 13px; font-weight: 600; color: var(--mv-text-secondary, #495057); margin-bottom: 8px; }
.sc-fav-shelf { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.sc-fav-item { flex: 0 0 auto; width: 72px; text-align: center; }
.sc-fav-poster-wrap { position: relative; width: 72px; height: 108px; border-radius: 6px; overflow: hidden; background: var(--mv-bg-hover, #e9ecef); }
.sc-fav-poster-wrap img { width: 100%; height: 100%; object-fit: cover; }
.sc-fav-poster-wrap.sc-fav-square { width: 72px; height: 72px; }
.sc-rank-badge { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #ffc107; color: #212529; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; z-index: 1; }
.sc-fav-title { font-size: 11px; font-weight: 500; color: var(--mv-text-primary, #212529); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-fav-year { font-size: 10px; color: var(--mv-text-muted, #6c757d); }

/* ==========================================
   GENRES (Tags)
   ========================================== */
.sc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-tag { background: var(--mv-bg-hover, #e9ecef); padding: 6px 14px; border-radius: 16px; font-size: 13px; color: var(--mv-text-secondary, #495057); }
.sc-tag-score { font-size: 11px; color: var(--mv-text-muted, #6c757d); margin-left: 4px; }

/* ==========================================
   PEOPLE
   ========================================== */
.sc-people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sc-person { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--mv-bg-surface, #f8f9fa); border-radius: 8px; }
.sc-person-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.sc-person-placeholder { width: 44px; height: 44px; border-radius: 50%; background: var(--mv-bg-hover, #e9ecef); display: flex; align-items: center; justify-content: center; color: var(--mv-text-muted, #6c757d); flex-shrink: 0; }
.sc-person-name { font-size: 13px; font-weight: 500; color: var(--mv-text-primary, #212529); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==========================================
   COLLECTION SUMMARY
   ========================================== */
.sc-collection-total { font-size: 1.5rem; font-weight: 700; color: var(--mv-text-primary, #212529); margin-bottom: 8px; }
.sc-collection-detail { font-size: 13px; color: var(--mv-text-secondary, #495057); margin-bottom: 4px; }
.sc-collection-detail i { color: var(--mv-text-muted, #6c757d); }
.sc-person-score { font-size: 11px; color: var(--mv-text-muted, #6c757d); }

/* ==========================================
   REVIEWS — most review surfaces use the shared CommunityCards component
   (.ct-review-card etc.) for consistency with Community Thoughts. The
   classes below are still used by the Pinned Reviews section on the
   Profile tab, which keeps a compact left-rule layout to set it apart.
   ========================================== */
.sc-review-content { flex: 1; min-width: 0; }
.sc-review-title { font-size: 14px; font-weight: 600; color: var(--mv-text-primary, #212529); margin-bottom: 2px; }
.sc-review-headline { font-size: 13px; font-weight: 500; color: var(--mv-text-secondary, #495057); font-style: italic; margin-bottom: 2px; }
.sc-review-snippet { font-size: 12px; color: var(--mv-text-muted, #6c757d); line-height: 1.4; margin-bottom: 4px; }
.sc-review-date { font-size: 11px; color: var(--mv-text-muted, #6c757d); }

/* ==========================================
   DIARY
   ========================================== */
.sc-diary-month { margin-bottom: 20px; }
.sc-diary-month-name { font-weight: 600; color: var(--mv-text-primary, #212529); margin-bottom: 8px; padding-bottom: 4px; border-bottom: 2px solid var(--mv-border-color, #e9ecef); }
.sc-diary-table { margin-bottom: 0; }
.sc-diary-table td { vertical-align: middle; padding: 6px 8px; border-color: var(--mv-border-color, #f0f0f0); }
.sc-diary-day { width: 30px; font-weight: 600; color: var(--mv-text-muted, #6c757d); font-size: 14px; }
.sc-diary-poster { width: 32px; }
.sc-diary-poster img { width: 28px; height: 42px; object-fit: cover; border-radius: 3px; }
.sc-diary-title { font-size: 14px; font-weight: 500; color: var(--mv-text-primary, #212529); }
.sc-diary-episode { font-size: 11px; color: var(--mv-text-muted, #6c757d); margin-top: 1px; }
.sc-diary-rating-cell { width: 40px; text-align: center; }
.sc-diary-rating { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #0d6efd; color: #fff; font-size: 12px; font-weight: 700; }

/* Lists rendering moved to CommunityCards (.ct-list-card etc.) so the
   profile and Community Thoughts pages stay in sync. */

/* ==========================================
   ACTIVITY TYPE SELECTOR (Category Pills)
   ========================================== */
.sc-category-bar { padding: 8px 0 0; }
.sc-category-pills { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 8px; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
.sc-category-pills::-webkit-scrollbar { display: none; }
.sc-category-pills .nav-link { white-space: nowrap; font-size: 13px; font-weight: 500; padding: 5px 14px; border-radius: 16px; color: var(--mv-text-secondary, #495057); background: var(--mv-bg-surface, #f8f9fa); border: 1px solid var(--mv-border-color, var(--mv-border-color)); transition: all 0.15s; }
.sc-category-pills .nav-link:hover { color: #0d6efd; border-color: #0d6efd; }
.sc-category-pills .nav-link.active { background: #0d6efd; color: #fff; border-color: #0d6efd; }
.sc-category-pills .nav-link i { margin-right: 4px; font-size: 12px; }

/* ==========================================
   SIGNATURE PICKS
   ========================================== */
.sc-signature-section { padding: 8px 0; }
.sc-signature-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; max-width: 700px; position: relative; }
.sc-signature-item { text-align: center; }
.sc-signature-edit { position: absolute; top: -8px; right: -8px; border-radius: 50%; width: 28px; height: 28px; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.sc-signature-empty { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px dashed var(--mv-border-color, var(--mv-border-color)); border-radius: 16px; color: var(--mv-text-muted, #6c757d); cursor: pointer; font-size: 13px; }
.sc-signature-empty:hover { border-color: #0d6efd; color: #0d6efd; }
.sc-signature-empty i { font-size: 14px; }

/* Per-category signature pick rows */
.sc-signature-category-row { margin-bottom: 14px; }
.sc-signature-category-row:last-child { margin-bottom: 0; }
.sc-signature-category-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; max-width: 700px; }
.sc-signature-category-label { font-size: 13px; font-weight: 600; color: var(--mv-text-secondary, #495057); display: flex; align-items: center; gap: 5px; }
.sc-signature-category-label i { font-size: 12px; }
.sc-signature-edit-cat { border-radius: 50%; width: 26px; height: 26px; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; }
/* Empty-state CTA: amber so first-time users see where to click. Fixed amber bg
   with dark text reads correctly in both light and dark themes. Pulses a few
   times on appearance, then rests; the quiet pencil edit button takes over once
   picks exist. Same treatment is applied to .sc-backdrop-empty-btn below. */
.sc-signature-empty-cat { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid #e0a800; border-radius: 16px; color: #212529; background: #ffc107; cursor: pointer; font-size: 12px; font-weight: 600; animation: scCtaPulse 1.8s ease-out 3; }
.sc-signature-empty-cat:hover { background: #e0a800; border-color: #c69500; color: #212529; }

@keyframes scCtaPulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .sc-signature-empty-cat, .sc-backdrop-empty-btn { animation: none; }
}

/* Category deep-dive content */
#scCategoryContent .sc-stats-section { padding: 4px 0 8px; }
#scCategoryContent .sc-tab-section { padding: 16px 0; border-bottom: 1px solid var(--mv-border-color, #e9ecef); }
#scCategoryContent .sc-tab-section:last-child { border-bottom: none; }
#scCategoryContent .sc-tab-section h6 { margin: 0 0 12px; font-weight: 600; color: var(--mv-text-primary, #212529); }

/* Sports game rows */
.sc-recent-games { }
.sc-game-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--mv-border-color, #f0f0f0); }
.sc-game-row:last-child { border-bottom: none; }
.sc-game-teams { display: flex; align-items: center; gap: 8px; }
.sc-team-logo { width: 24px; height: 24px; object-fit: contain; }
.sc-game-vs { font-size: 14px; font-weight: 500; color: var(--mv-text-primary, #212529); }
.sc-game-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* Play session rows (video games, board games) */
.sc-session-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--mv-border-color, #f0f0f0); }
.sc-session-row:last-child { border-bottom: none; }
.sc-session-row img { width: 40px; height: 60px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.sc-session-info { flex: 1; min-width: 0; }
.sc-session-title { font-size: 14px; font-weight: 500; color: var(--mv-text-primary, #212529); }
.sc-session-meta { font-size: 12px; color: var(--mv-text-muted, #6c757d); }

/* Concert rows */
.sc-concert-row { display: flex; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--mv-border-color, #f0f0f0); gap: 0; }
.sc-concert-row:last-child { border-bottom: none; }
.sc-concert-info { flex: 1; }
.sc-concert-venue { font-size: 14px; font-weight: 500; color: var(--mv-text-primary, #212529); }
.sc-concert-date { font-size: 12px; color: var(--mv-text-muted, #6c757d); }

/* Signature grid poster sizes — fixed width+height so every item in a row is identical */
.sc-signature-grid .sc-signature-item { width: 100%; max-width: 120px; margin: 0 auto; position: relative; transition: z-index 0s; }
/* Stack order: #1 on top, others behind — so the top pick is most visible */
.sc-signature-grid .sc-signature-item:nth-child(1) { z-index: 5; }
.sc-signature-grid .sc-signature-item:nth-child(2) { z-index: 4; }
.sc-signature-grid .sc-signature-item:nth-child(3) { z-index: 3; }
.sc-signature-grid .sc-signature-item:nth-child(4) { z-index: 2; }
.sc-signature-grid .sc-signature-item:nth-child(5) { z-index: 1; }
/* Hover/touch: bring poster to front so it's fully visible */
.sc-signature-grid .sc-signature-item:hover,
.sc-signature-grid .sc-signature-item:active { z-index: 10; }
.sc-signature-grid .sc-signature-item:hover .sc-poster-wrap,
.sc-signature-grid .sc-signature-item:active .sc-poster-wrap { box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.sc-signature-grid .sc-poster-wrap { width: 120px; height: 160px; margin: 0 auto; }
.sc-signature-grid .sc-poster-wrap img { width: 120px; height: 160px; object-fit: cover; display: block; }
.sc-signature-grid .square-item .sc-poster-wrap,
.sc-signature-grid .square-item .sc-poster-wrap img { width: 120px; height: 120px; }
.sc-signature-grid .book-item .sc-poster-wrap,
.sc-signature-grid .book-item .sc-poster-wrap img { width: 120px; height: 160px; }
.sc-signature-grid .book-item .sc-poster-wrap img { object-fit: contain; }
.sc-signature-grid .artist-item .sc-poster-wrap,
.sc-signature-grid .artist-item .sc-poster-wrap img { width: 120px; height: 120px; }
.sc-signature-grid .artist-item .sc-poster-wrap { border-radius: 50%; }
.sc-signature-grid .team-item .sc-poster-wrap { width: 120px; height: 120px; border-radius: 8px; padding: 18px; background: #fff; box-sizing: border-box; }
.sc-signature-grid .team-item .sc-poster-wrap img { width: 100%; height: 100%; object-fit: contain; }

/* ==========================================
   BACKDROP
   ========================================== */
/* Controls overlay on backdrop (gear + view toggle) */
.sc-backdrop-controls { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.sc-backdrop-btn { width: 32px; height: 32px; border-radius: 50%; padding: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.4); border: none; color: rgba(255,255,255,0.7); font-size: 14px; cursor: pointer; }
.sc-backdrop-btn:hover { background: rgba(0,0,0,0.6); color: #fff; }
/* View toggle dropdown on backdrop */
.sc-backdrop-controls .dropdown-menu { min-width: 140px; }
.sc-backdrop-empty-btn { display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 16px; font-size: 12px; font-weight: 600; color: #212529; background: #ffc107; border: 1px solid #e0a800; cursor: pointer; animation: scCtaPulse 1.8s ease-out 3; }
.sc-backdrop-empty-btn:hover { background: #e0a800; border-color: #c69500; color: #212529; }

/* Backdrop modal */
.sc-backdrop-results { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-height: 400px; overflow-y: auto; }
.sc-backdrop-option { cursor: pointer; border-radius: 6px; overflow: hidden; border: 2px solid transparent; }
.sc-backdrop-option:hover { border-color: #0d6efd; }
.sc-backdrop-option img { width: 100%; height: 120px; object-fit: cover; }
.sc-backdrop-option-title { padding: 4px 8px; font-size: 12px; color: var(--mv-text-primary, #212529); }

/* ==========================================
   SIGNATURE PICKS MODAL
   ========================================== */
.sc-modal-results { max-height: 250px; overflow-y: auto; }
.sc-pick-result { display: flex; align-items: center; gap: 8px; padding: 6px 8px; cursor: pointer; border-radius: 4px; }
.sc-pick-result:hover { background: var(--mv-bg-hover, #f8f9fa); }
.sc-pick-result.picked { opacity: 0.5; cursor: default; }
.sc-pick-result img { width: 32px; height: 48px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.sc-pick-result span { flex: 1; font-size: 13px; }
.sc-pick-result i { font-size: 16px; }
.sc-pick-slots { }
.sc-pick-slot { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--mv-border-color, #f0f0f0); }
.sc-pick-slot:last-child { border-bottom: none; }
.sc-pick-order { width: 20px; height: 20px; border-radius: 50%; background: #ffc107; color: #212529; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sc-pick-title { flex: 1; font-size: 13px; }
.sc-pick-reorder { display: flex; flex-direction: column; gap: 1px; flex-shrink: 0; }
.sc-pick-reorder .sc-pick-move { padding: 0; width: 20px; height: 14px; display: flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1; border-radius: 3px; }
.sc-pick-move-placeholder { display: block; width: 20px; height: 14px; }

/* ==========================================
   PINNED REVIEWS
   ========================================== */
.sc-pinned-reviews { }
.sc-pinned-review { display: flex; gap: 12px; padding: 12px; border-left: 3px solid #0d6efd; margin-bottom: 12px; background: var(--mv-bg-surface, #f8f9fa); border-radius: 0 8px 8px 0; }
.sc-pinned-review > img,
.sc-pinned-review > a.sc-entity-link > img { width: 56px; height: 84px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.sc-pinned-review > a.sc-entity-link { flex-shrink: 0; line-height: 0; }
.sc-pin-btn { font-size: 12px; padding: 1px 6px; }

/* ==========================================
   LOADING / ERROR
   ========================================== */
#scLoading, #scError { min-height: 300px; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .sc-backdrop { height: 160px; }
    .sc-avatar, .sc-avatar-placeholder { width: 56px; height: 56px; font-size: 24px; }
    .sc-stat { padding: 6px 12px; }
    .sc-stat-value { font-size: 18px; }
    .sc-activity-shelf .sc-activity-card { width: 72px; }
    .sc-activity-shelf .sc-poster-wrap { width: 72px; height: 108px; }
    .sc-activity-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
    .sc-favorites-body { grid-template-columns: 1fr; }
    .sc-people-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .sc-signature-grid { grid-template-columns: repeat(5, 56px); gap: 10px; }
    /* Signature poster sizes — 90% of desktop, books match movie size */
    .sc-signature-grid .sc-signature-item { max-width: 108px; }
    .sc-signature-grid .sc-poster-wrap { width: 108px; height: 144px; }
    .sc-signature-grid .sc-poster-wrap img { width: 108px; height: 144px; }
    .sc-signature-grid .square-item .sc-poster-wrap,
    .sc-signature-grid .square-item .sc-poster-wrap img { width: 108px; height: 108px; }
    .sc-signature-grid .book-item .sc-poster-wrap,
    .sc-signature-grid .book-item .sc-poster-wrap img { width: 108px; height: 144px; }
    .sc-signature-grid .artist-item .sc-poster-wrap,
    .sc-signature-grid .artist-item .sc-poster-wrap img { width: 108px; height: 108px; }
    .sc-signature-grid .team-item .sc-poster-wrap { width: 108px; height: 108px; }
    .sc-category-pills .nav-link { font-size: 12px; padding: 4px 10px; }
}
@media (max-width: 576px) {
    .sc-header { flex-direction: column; }
    .sc-info-row { gap: 10px; }
    .sc-stat { padding: 4px 10px; }
    .sc-stat-value { font-size: 16px; }
    .sc-poster-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
    .sc-signature-grid { grid-template-columns: repeat(5, 56px); gap: 8px; }
    .sc-category-pills .nav-link { font-size: 11px; padding: 3px 8px; }
}

/* ==========================================
   DARK MODE
   ========================================== */
[data-bs-theme="dark"] .sc-level-badge.badge-success { background-color: rgba(25,135,84,0.2); color: #75b798; }
[data-bs-theme="dark"] .sc-level-badge.badge-info { background-color: rgba(13,202,240,0.2); color: #6edff6; }
[data-bs-theme="dark"] .sc-level-badge.badge-primary { background-color: rgba(13,110,253,0.2); color: #6ea8fe; }
[data-bs-theme="dark"] .sc-level-badge.badge-warning { background-color: rgba(255,193,7,0.2); color: #ffda6a; }
[data-bs-theme="dark"] .sc-level-badge.badge-secondary { background-color: var(--mv-bg-hover); color: var(--mv-text-secondary); }
[data-bs-theme="dark"] .sc-diary-rating { background: #0d6efd; }

/* Category pills dark mode */
[data-bs-theme="dark"] .sc-category-pills .nav-link { color: var(--mv-text-secondary); background: var(--mv-bg-hover); border-color: var(--mv-border-color); }
[data-bs-theme="dark"] .sc-category-pills .nav-link:hover { color: #6ea8fe; border-color: #6ea8fe; }
[data-bs-theme="dark"] .sc-category-pills .nav-link.active { background: #0d6efd; color: #fff; border-color: #0d6efd; }
/* Team logos need white background even in dark mode */
[data-bs-theme="dark"] .sc-signature-item.team-item .sc-poster-wrap { background: #fff; }
