/* ==========================================================================
   Global Demonlist - Pixel-Accurate Minimalist Modern Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@500;600;700;800&display=swap');

:root {
  --bg-body: #050505;
  --bg-header: #0a0305;
  --bg-card: #0f0507;
  --bg-card-hover: #19090d;
  --bg-input: #0d0406;
  --bg-control: #0f0507;
  
  --border-color: #260a0f;
  --border-hover: #dc2626;
  
  --primary-red: #dc2626;
  --primary-red-hover: #991b1b;
  --primary-blue: var(--primary-red);
  --primary-blue-hover: var(--primary-red-hover);
  
  --text-white: #ffffff;
  --text-gray: #a1a1aa;
  --text-muted: #71717a;
  --verifier-green: #22c55e;
  
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 14px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  zoom: 1.75;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-white);
  min-height: 100vh;
  line-height: 1.4;
  overflow-x: hidden;
  position: relative;
}

/* Background art from sviaz.jpg */
.bg-art-layer {
  position: fixed;
  inset: 0;
  background-image: url('../images/sviaz.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

/* Typography */
h1, h2, h3, h4, .font-heading {
  font-family: 'Montserrat', sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: #260a0f;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #45101a;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.65rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
}

.logo-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.45);
  border: 1px solid var(--border-color);
  background: #000;
  flex-shrink: 0;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.logo-brand-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: #fff;
}

/* Header Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-dropdown-item {
  position: relative;
}

.nav-link-btn {
  background: transparent;
  border: none;
  color: var(--text-gray);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link-btn:hover, .nav-link-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.4rem;
  background: #0d0406;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-width: 180px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85);
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 60;
}

.nav-dropdown-item:hover .nav-dropdown-menu {
  display: flex;
}

.dropdown-action-btn {
  background: transparent;
  border: none;
  color: var(--text-gray);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropdown-action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.icon-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease;
}

.icon-action-btn:hover {
  color: #fff;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.user-profile-badge:hover {
  background: rgba(220, 38, 38, 0.12);
  border-color: var(--primary-red);
}

/* Notifications Bell & Popover */
.notif-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.notif-btn {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 15px;
  height: 15px;
  background: var(--primary-red);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.7);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.notif-badge.hidden {
  display: none;
}

.notif-popover-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  width: 320px;
  max-width: 90vw;
  background: #0d0406;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.95);
  display: none;
  flex-direction: column;
  z-index: 80;
  overflow: hidden;
}

.notif-popover-menu.open {
  display: flex;
}

.notif-header {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(220, 38, 38, 0.05);
}

.notif-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.notif-action-btn {
  background: transparent;
  border: none;
  color: var(--primary-red);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.notif-action-btn:hover {
  text-decoration: underline;
}

.notif-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.notif-item {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  gap: 0.6rem;
  cursor: pointer;
  transition: background 0.15s ease;
  position: relative;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.notif-item.unread {
  background: rgba(220, 38, 38, 0.06);
}

.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-red);
}

.notif-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.15);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.notif-icon-box.verified {
  background: rgba(34, 197, 94, 0.15);
  color: var(--verifier-green);
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.notif-item-body {
  font-size: 0.72rem;
  color: var(--text-gray);
  line-height: 1.35;
}

.notif-item-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.user-avatar-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Zoom / Scale Selector */
.zoom-selector-wrapper {
  position: relative;
}

.zoom-indicator-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--primary-red);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.zoom-indicator-btn:hover {
  border-color: var(--primary-red);
  background: rgba(220, 38, 38, 0.12);
}

.zoom-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.4rem;
  background: #0d0406;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-width: 150px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.95);
  padding: 0.35rem;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  z-index: 70;
}

.zoom-dropdown-menu.open {
  display: flex;
}

.zoom-opt-btn {
  background: transparent;
  border: none;
  color: var(--text-gray);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.zoom-opt-btn:hover, .zoom-opt-btn.active {
  background: rgba(220, 38, 38, 0.18);
  color: #fff;
}

.zoom-opt-btn.active::after {
  content: '✓';
  color: var(--primary-red);
  font-weight: 700;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 5rem 1rem;
}

/* Controls Bar (Filter + Search + View toggles) */
.controls-bar {
  width: 100%;
  max-width: 740px;
  margin: 1rem auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Filter Square Button */
.filter-toggle-btn {
  width: 44px;
  height: 44px;
  background: var(--primary-blue);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.filter-toggle-btn:hover {
  background: var(--primary-blue-hover);
}

/* Search Box */
.search-box-container {
  flex: 1;
  position: relative;
  height: 44px;
}

.search-box-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
  pointer-events: none;
}

.search-box-input {
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 1rem 0 2.5rem;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.search-box-input:focus {
  border-color: var(--primary-blue);
}

.search-box-input::placeholder {
  color: var(--text-muted);
}

/* View Mode Switcher */
.view-mode-group {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 3px;
  height: 44px;
  align-items: center;
  flex-shrink: 0;
}

.view-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-mode-btn.active {
  background: #260a0f;
  color: var(--primary-blue);
}

/* Time Machine Button */
.time-machine-btn {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.time-machine-btn:hover {
  color: #fff;
  border-color: #45101a;
}

/* Filter Dropdown Popover */
.filter-dropdown-popover {
  position: relative;
}

.filter-menu-popover {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: #0d0406;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 200px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 50;
}

.filter-menu-popover.open {
  display: flex;
}

.filter-item-btn {
  background: transparent;
  border: none;
  color: var(--text-gray);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.filter-item-btn:hover, .filter-item-btn.active {
  background: rgba(220, 38, 38, 0.15);
  color: #fff;
}

.filter-item-btn.active::after {
  content: '✓';
  color: var(--primary-blue);
  font-weight: 700;
}

/* ==========================================================================
   Demon List (Single Column Layout)
   ========================================================================== */
.demon-list-column {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* The Demon Card */
.demon-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
  width: 100%;
}

.demon-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.15);
  transform: translateY(-1px);
}

/* Thumbnail */
.card-thumbnail-container {
  position: relative;
  width: 180px;
  height: 102px;
  flex-shrink: 0;
  background: #000;
  border-radius: 9px;
  overflow: hidden;
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.demon-card:hover .card-thumb-img {
  transform: scale(1.04);
}

/* NEW badge */
.badge-new {
  position: absolute;
  top: 6px;
  left: 6px;
  background: linear-gradient(135deg, #eab308, #f97316);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Info Section */
.card-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

/* Top line: #1 Artemis 13 */
.card-title-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.placement-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-blue) !important; /* Uniform Blue for ALL numbers */
  flex-shrink: 0;
}

.level-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Bottom line: mvngo | Zoink · 250.00 — 1000.00 points */
.card-meta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-name {
  color: var(--text-gray);
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-divider {
  color: #521c24;
}

.verifier-name {
  color: var(--verifier-green);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-dot {
  color: #521c24;
}

.points-range {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-gray);
}

.points-min-val {
  color: var(--text-gray);
}

.points-dash-char {
  color: #521c24;
}

.points-max-val {
  color: var(--primary-blue);
  font-weight: 600;
}

.points-suffix {
  color: var(--text-muted);
}

/* ==========================================================================
   Floating Scroll To Top
   ========================================================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  background: var(--primary-blue);
  border: none;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
  transition: transform 0.2s ease, background 0.15s ease;
  z-index: 40;
}

.scroll-top-btn:hover {
  background: var(--primary-blue-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   Modal & Detail
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #0d0406;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.95);
}

.modal-box-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.modal-box-title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.modal-box-placement {
  color: var(--primary-blue);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-box-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-box-close {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-gray);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-box-close:hover {
  color: #fff;
}

.modal-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}

.modal-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.5rem;
  padding: 1.25rem;
}

.stat-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.stat-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.copy-icon-btn {
  background: transparent;
  border: none;
  color: var(--primary-blue);
  cursor: pointer;
  display: inline-flex;
}

.modal-records-wrap {
  padding: 0 1.25rem 1.25rem 1.25rem;
}

.records-subheading {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  display: flex;
  justify-content: space-between;
}

.records-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 240px;
  overflow-y: auto;
}

.rec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Leaderboards & Changelog Views
   ========================================================================== */
.custom-table-container {
  max-width: 800px;
  margin: 1.5rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
}

.clean-table th {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.clean-table td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
}

.clean-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.table-rank {
  color: var(--primary-blue);
  font-weight: 700;
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #18070b;
  border: 1px solid var(--primary-blue);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 200;
  pointer-events: none;
}

.toast-msg.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Profile Modal Specifics */
.profile-modal-box {
  max-width: 600px;
}

.profile-header-card {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.015);
}

.profile-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary-red);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.45);
  flex-shrink: 0;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-user-info {
  flex: 1;
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.profile-username {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.profile-role-badge {
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid var(--primary-red);
  color: #ff6b6b;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.profile-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-gray);
}

.profile-rank-badge {
  color: var(--primary-red);
  font-weight: 700;
}

.profile-rec-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease;
}

.profile-rec-card:hover {
  border-color: var(--border-hover);
}

.profile-rec-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-rec-rank {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 0.9rem;
}

.profile-rec-name {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.profile-rec-percent {
  color: var(--verifier-green);
  font-weight: 700;
  font-size: 0.8rem;
  margin-left: 4px;
}

.profile-video-btn {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid var(--primary-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.profile-video-btn:hover {
  background: var(--primary-red);
  color: #fff;
}

/* Responsive */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    gap: 0.75rem;
  }
  .controls-bar {
    flex-wrap: wrap;
  }
  .demon-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-thumbnail-container {
    width: 100%;
    height: 180px;
  }
  .card-meta-line {
    flex-wrap: wrap;
  }
}
