/* =========================================
   T1 신고 아카이브 - Main Stylesheet
   ========================================= */

:root {
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-900: #7f1d1d;

  --bg-base: #0d0d14;
  --bg-surface: #13131d;
  --bg-card: #1a1a28;
  --bg-card-hover: #222235;
  --bg-input: #1e1e2e;

  /* 훨씬 밝은 테두리 — 요소가 뚜렷하게 보임 */
  --border: rgba(255, 255, 255, 0.14);
  --border-hover: rgba(239, 68, 68, 0.55);
  --border-focus: rgba(239, 68, 68, 0.85);

  /* 텍스트 밝기 대폭 개선 */
  --text-primary: #f5f5fa;
  --text-secondary: #b8b8cc;
  --text-muted: #7070a0;
  --text-accent: #ef4444;

  /* 글래스 배경 더 밝게 */
  --glass: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.14);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.7);
  --shadow-red: 0 0 30px rgba(239,68,68,0.2);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --font-sans: 'Noto Sans KR', 'Inter', sans-serif;
  --font-display: 'Orbitron', sans-serif;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
/* hidden 속성이 CSS display 값보다 항상 우선 적용되도록 */
[hidden] { display: none !important; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--red-700); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-500); }

/* Particle Canvas — 항상 가장 아래에 있어야 콘텐츠가 안 가려짐 */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.25;
}

/* =====================
   NAVBAR
   ===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  /* blur 제거 → 완전 불투명 배경으로 교체 */
  background: rgba(13, 13, 20, 0.98);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,0.5);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 2rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 0 16px rgba(239,68,68,0.4);
}
.brand-accent { color: var(--red-500); }
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 1rem;
}
.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}
.lang-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--glass);
}
.nav-link.active { color: var(--red-500); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 5px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-surface);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
}
.mobile-link {
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.mobile-link:last-child { border-bottom: none; }

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 5rem 2rem 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(239,68,68,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(139,0,0,0.14) 0%, transparent 50%),
    linear-gradient(180deg, #0d0d14 0%, #140608 50%, #0d0d14 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ef4444' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  animation: fadeInUp 0.8s ease both;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 100px;
  font-size: 0.75rem;
  font-family: var(--font-display);
  letter-spacing: 0.15em;
  color: var(--red-500);
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--red-500);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease infinite;
}
.hero-title {
  display: block;
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.title-line-1 {
  color: var(--text-primary);
}
.title-line-2 {
  background: linear-gradient(135deg, #ef4444 0%, #ff6b6b 50%, #fca5a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-display);
}
.hero-subtitle {
  font-size: clamp(0.875rem, 2vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem 2.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.hero-stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red-500);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
  display: block;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  animation: fadeIn 2s 1.5s both;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  color: white;
  box-shadow: 0 4px 20px rgba(239,68,68,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(239,68,68,0.5);
  background: linear-gradient(135deg, #f97070, var(--red-500));
}
.btn-secondary {
  background: var(--glass);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.btn-danger {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  box-shadow: 0 4px 20px rgba(220,38,38,0.4);
}
.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(220,38,38,0.6);
}

/* =====================
   SECTIONS
   ===================== */
.players-section,
.report-section,
.archive-section,
.stats-section {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}
/* 섹션 배경을 완전 불투명하게 — 파티클이 비치지 않도록 */
.players-section { background: var(--bg-surface); isolation: isolate; }
.report-section  { background: var(--bg-base);    isolation: isolate; }
.archive-section { background: var(--bg-surface); isolation: isolate; }
.stats-section   { background: var(--bg-base);    isolation: isolate; }

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--red-500);
  margin-bottom: 0.75rem;
  padding: 4px 12px;
  background: rgba(239,68,68,0.1);
  border-radius: 100px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* =====================
   PLAYERS GRID
   ===================== */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.player-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.player-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(239,68,68,0.1), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.player-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-red), var(--shadow-md);
}
.player-card:hover::before { opacity: 1; }
.player-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.player-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
  position: relative; z-index: 1;
}
.player-realname {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  position: relative; z-index: 1;
}
.player-role {
  display: inline-block;
  font-size: 0.72rem;
  padding: 2px 10px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 100px;
  color: var(--red-500);
  margin-bottom: 0.75rem;
  font-weight: 500;
  position: relative; z-index: 1;
}
.player-report-count {
  font-size: 0.8rem;
  color: var(--text-secondary);
  position: relative; z-index: 1;
}
.player-report-count strong {
  color: var(--red-500);
  font-family: var(--font-display);
}

/* =====================
   REPORT FORM
   ===================== */
.report-wrapper {
  max-width: 720px;
  margin: 0 auto;
}
.report-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

/* Step Indicator */
.form-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}
.form-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}
.step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition);
}
.form-step.active .step-circle,
.form-step.done .step-circle {
  background: linear-gradient(135deg, var(--red-500), var(--red-700));
  border-color: var(--red-500);
  color: white;
  box-shadow: 0 0 16px rgba(239,68,68,0.4);
}
.form-step span {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.form-step.active span { color: var(--red-500); }
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 60px;
  margin: 0 0.5rem;
  margin-bottom: 22px;
  transition: background var(--transition);
}
.step-line.done { background: var(--red-600); }

/* Form Step Content */
.form-step-content { display: none; }
.form-step-content.active { display: block; animation: fadeInUp 0.3s ease; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.label-optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.2);
}
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  transform: scale(1.4);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
select.form-control option { background: var(--bg-card); }
.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}
.char-counter {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.form-error {
  display: block;
  font-size: 0.78rem;
  color: var(--red-500);
  margin-top: 4px;
  min-height: 1em;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--red-500);
  background: rgba(239,68,68,0.05);
}
.upload-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.upload-text { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 4px; }
.upload-hint { font-size: 0.78rem; color: var(--text-muted); }
.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.preview-item {
  position: relative;
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.preview-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.preview-remove {
  position: absolute;
  top: 2px; right: 2px;
  width: 18px; height: 18px;
  background: rgba(0,0,0,0.8);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 0.6rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
/* 영상 파일 썸네일 */
.preview-video {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  gap: 4px;
}
.video-thumb { font-size: 1.6rem; }
.video-name {
  font-size: 0.6rem;
  color: var(--text-muted);
  word-break: break-all;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* Step 3 요약 뷰 */
.upload-preview-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.no-file-msg {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  display: block;
}

/* =====================
   LINK INPUT ROW
   ===================== */
.link-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.link-input-row .form-control { flex: 1; }
.btn-add-link {
  padding: 0.75rem 1rem;
  white-space: nowrap;
  flex-shrink: 0;
  gap: 6px;
}
.link-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.875rem;
  transition: border-color var(--transition);
}
.link-item:hover { border-color: var(--border-hover); }
.link-item-icon { font-size: 1rem; flex-shrink: 0; }
.link-item-url {
  flex: 1;
  font-size: 0.82rem;
  color: #60a5fa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
}
.link-item-remove:hover {
  background: rgba(239,68,68,0.15);
  color: var(--red-500);
}

/* Agree box */

.agree-box {
  padding: 1rem;
  background: rgba(239,68,68,0.05);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.checkbox-label input { display: none; }
.checkbox-custom {
  width: 18px; height: 18px;
  min-width: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--bg-input);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
  transition: all var(--transition);
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--red-500);
  border-color: var(--red-500);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: '✓';
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
}
.checkbox-text { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

.step-nav {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Success */
.success-message {
  text-align: center;
  padding: 4rem 2rem;
}
.success-icon { font-size: 4rem; margin-bottom: 1.5rem; }
.success-message h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.success-message p { color: var(--text-secondary); margin-bottom: 2rem; }

/* =====================
   FILTER BAR
   ===================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: 1;
}
.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  outline: none;
  transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--border-focus); }
.search-input::placeholder { color: var(--text-muted); }
.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.8rem;
  padding: 0.65rem 2rem 0.65rem 0.875rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  transition: border-color var(--transition);
}
.filter-select:focus { border-color: var(--border-focus); }
.filter-select option { background: var(--bg-card); }
.filter-sort {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
}
.sort-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.sort-btn.active, .sort-btn:hover {
  background: rgba(239,68,68,0.15);
  color: var(--red-500);
}
.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.clear-filter-btn {
  background: none;
  border: none;
  color: var(--red-500);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
}

/* =====================
   ARCHIVE LIST
   ===================== */
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.report-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  transition: opacity var(--transition);
  opacity: 0;
}
.report-card.sev-낮음::after { background: #22c55e; }
.report-card.sev-보통::after { background: #eab308; }
.report-card.sev-높음::after { background: #f97316; }
.report-card.sev-매우\ 높음::after { background: #ef4444; }
.report-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.report-card:hover::after { opacity: 1; }

.report-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.report-card-meta {
  flex: 1;
  min-width: 0;
}
.report-card-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.report-card-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.report-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
  color: var(--red-500);
}
.report-tag.player-tag {
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.2);
  color: #a78bfa;
}
.report-tag.category-tag { /* uses default red */ }
.report-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.severity-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.05em;
}
.sev-badge-낮음 { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.sev-badge-보통 { background: rgba(234,179,8,0.15); color: #facc15; border: 1px solid rgba(234,179,8,0.25); }
.sev-badge-높음 { background: rgba(249,115,22,0.15); color: #fb923c; border: 1px solid rgba(249,115,22,0.25); }
.sev-badge-매우\ 높음 { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }

.report-card-body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.report-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.report-evidence-count {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
}
.empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-secondary); }

/* Pagination */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}
.page-btn {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all var(--transition);
  cursor: pointer;
}
.page-btn:hover, .page-btn.active {
  background: rgba(239,68,68,0.15);
  border-color: var(--red-500);
  color: var(--red-500);
}

/* =====================
   STATS
   ===================== */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all var(--transition);
}
.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-card-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.stat-card-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: block;
  margin-top: 4px;
}
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.chart-card-wide {
  grid-column: 1 / -1;
}
.chart-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}
.chart-container {
  position: relative;
  min-height: 200px;
}

/* Bar Chart */
.bar-chart { display: flex; flex-direction: column; gap: 0.75rem; }
.bar-item { display: flex; align-items: center; gap: 0.75rem; }
.bar-label { font-size: 0.8rem; color: var(--text-secondary); width: 90px; flex-shrink: 0; font-weight: 600; }
.bar-track { flex: 1; height: 10px; background: var(--bg-input); border-radius: 5px; overflow: hidden; }
.bar-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--red-700), var(--red-500));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}
.bar-count { font-size: 0.8rem; color: var(--red-500); font-weight: 700; font-family: var(--font-display); width: 30px; text-align: right; flex-shrink: 0; }

/* Donut Chart */
.donut-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.donut-svg { flex-shrink: 0; }
.donut-legend { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-pct {
  margin-left: auto;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.78rem;
}

/* Severity Bars */
.severity-bars { display: flex; flex-direction: column; gap: 1rem; }
.sev-row { display: flex; align-items: center; gap: 1rem; }
.sev-label {
  font-size: 0.8rem;
  font-weight: 600;
  width: 80px;
  flex-shrink: 0;
}
.sev-track { flex: 1; height: 16px; background: var(--bg-input); border-radius: 8px; overflow: hidden; position: relative; }
.sev-fill {
  height: 100%;
  border-radius: 8px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  display: flex; align-items: center; padding-left: 10px;
}
.sev-fill-낮음 { background: linear-gradient(90deg, #16a34a, #22c55e); }
.sev-fill-보통 { background: linear-gradient(90deg, #ca8a04, #eab308); }
.sev-fill-높음 { background: linear-gradient(90deg, #ea580c, #f97316); }
.sev-fill-매우높음 { background: linear-gradient(90deg, #b91c1c, #ef4444); }
.sev-count { font-size: 0.8rem; font-weight: 700; width: 30px; text-align: right; font-family: var(--font-display); flex-shrink: 0; }

/* =====================
   MODAL
   ===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  /* blur 완전 제거 — 어두운 반투명 배경만 사용 */
  background: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: sticky;
  top: 1rem;
  float: right;
  margin: 1rem 1rem 0 0;
  width: 36px; height: 36px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.modal-close:hover {
  background: rgba(239,68,68,0.15);
  border-color: var(--red-500);
  color: var(--red-500);
}
.modal-content { padding: 1.5rem 2rem 2rem; }
.modal-header { margin-bottom: 1.5rem; }
.modal-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.modal-section { margin-bottom: 1.5rem; }
.modal-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.modal-body-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-wrap;
}
.modal-images { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.modal-img {
  width: 120px; height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform var(--transition);
}
.modal-img:hover { transform: scale(1.05); }
.modal-links { display: flex; flex-direction: column; gap: 0.5rem; }
.modal-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #60a5fa;
  text-decoration: underline;
  word-break: break-all;
}
.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.modal-info-item {
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}
.modal-info-key {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.modal-info-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* =====================
   LOADING SPINNER
   ===================== */
.archive-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.loading-spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--red-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================
   TOAST
   ===================== */

.toast-container {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
  pointer-events: auto;
}
.toast.success { border-left: 3px solid #22c55e; }
.toast.error { border-left: 3px solid #ef4444; }
.toast.info { border-left: 3px solid #3b82f6; }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-text { font-size: 0.85rem; flex: 1; }
.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 2px;
  flex-shrink: 0;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--red-500);
  margin-bottom: 0.75rem;
}
.footer-notice {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .hero-stat-divider { width: 40px; height: 1px; }
  .charts-grid { grid-template-columns: 1fr; }
  .chart-card-wide { grid-column: 1; }
  .filter-bar { flex-direction: column; }
  .players-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .report-form { padding: 1.5rem; }
  .step-line { min-width: 30px; }
  .modal { border-radius: var(--radius-lg); }
  .modal-content { padding: 1rem 1.25rem 1.5rem; }
}
@media (max-width: 480px) {
  .hero-title { font-size: clamp(1.3rem, 5vw, 2.3rem); }
  .stats-cards { grid-template-columns: 1fr 1fr; }
}
