/* ═══════════════════════════════════════════════
   BridgeCast — 프리미엄 캐스팅 앱 스타일 v2
   ═══════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────── */
:root {
  --bg-primary: #07070d;
  --bg-secondary: #0e0e18;
  --bg-card: #12121e;
  --bg-card-hover: #191930;
  --bg-modal: #0c0c16;
  --bg-glass: rgba(18, 18, 30, 0.85);
  --text-primary: #e8e6f0;
  --text-secondary: #8a88a0;
  --text-muted: #5c5a70;
  --accent: #d4a853;
  --accent-dim: rgba(212, 168, 83, 0.15);
  --accent-glow: rgba(212, 168, 83, 0.3);
  --badge-agency: #d4a853;
  --badge-external: #5a7fcc;
  --success: #4ade80;
  --danger: #f87171;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --header-height: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-modal: 0 24px 80px rgba(0,0,0,0.7);
}

/* ─── Reset & Base ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ─── Header ───────────────────────────────── */
#app-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: rgba(7, 7, 13, 0.8);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-left { display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-img { height: 36px; width: auto; }
.logo-text { font-size: 15px; font-weight: 600; color: #e8a070; letter-spacing: 0.5px; }
.logo h1 { font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: -0.5px; color: #e8a070; }
.accent { color: var(--accent); }
.header-right { display: flex; align-items: center; gap: 12px; }

/* Search */
.search-box {
  position: relative; display: flex; align-items: center;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0 14px;
  transition: all 0.3s ease;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.search-icon { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
#search-input {
  background: none; border: none; outline: none;
  color: var(--text-primary); font-size: 14px; font-family: inherit;
  padding: 10px 12px; width: 240px;
}
#search-input::placeholder { color: var(--text-muted); }
.search-shortcut {
  font-size: 11px; color: var(--text-muted); background: var(--bg-primary);
  padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border); font-family: 'Inter', monospace;
}

/* Buttons */
.btn-icon {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s ease;
}
.btn-icon svg { width: 18px; height: 18px; }
.btn-icon:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.btn-icon.spinning svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Notification Badge */
.notification-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700; font-family: 'Inter', sans-serif;
  border-radius: 10px; padding: 0 5px;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ─── Admin Bar ────────────────────────────── */
#admin-bar {
  margin-top: var(--header-height);
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 8px 32px;
  background: linear-gradient(90deg, rgba(212,168,83,0.15), rgba(212,168,83,0.05));
  border-bottom: 1px solid rgba(212,168,83,0.2);
  font-size: 13px; font-weight: 600; color: var(--accent);
}
#admin-bar button {
  padding: 4px 12px; font-size: 12px; font-family: inherit;
  background: transparent; border: 1px solid var(--accent);
  color: var(--accent); border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s ease;
}
#admin-bar button:hover { background: var(--accent-dim); }
#admin-bar.hidden + #stats-bar { margin-top: var(--header-height); }

/* ─── Stats Bar ────────────────────────────── */
#stats-bar {
  margin-top: var(--header-height);
  display: flex; align-items: center; justify-content: center; gap: 24px;
  padding: 16px 32px;
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
}
body.admin-mode #stats-bar { margin-top: 0; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat-number { font-size: 22px; font-weight: 700; font-family: 'Inter', sans-serif; }
.stat-number.accent { color: var(--accent); }
.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* ─── Filter Bar ───────────────────────────── */
#filter-bar {
  display: flex; align-items: center; gap: 24px;
  padding: 16px 32px; background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  overflow-x: auto; flex-wrap: wrap;
}
.filter-group { display: flex; align-items: center; gap: 10px; }
.filter-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.filter-buttons { display: flex; gap: 4px; }
.filter-btn {
  padding: 6px 14px; font-size: 13px; font-family: inherit; font-weight: 500;
  color: var(--text-secondary); background: transparent;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
}
.filter-btn:hover { color: var(--text-primary); background: var(--bg-card); border-color: var(--border); }
.filter-btn.active { color: var(--accent); background: var(--accent-dim); border-color: rgba(212, 168, 83, 0.3); }

/* ─── Actor Grid ───────────────────────────── */
#actor-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px; padding: 28px 32px 60px; max-width: 1600px; margin: 0 auto;
}

/* ─── Actor Card ───────────────────────────── */
.actor-card {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  animation: fadeInUp 0.4s ease-out both;
}
.actor-card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: var(--shadow-card); }
.actor-card:hover .card-image img { transform: scale(1.08); }
.actor-card.agency:hover { border-color: rgba(212, 168, 83, 0.3); box-shadow: var(--shadow-card), 0 0 40px rgba(212, 168, 83, 0.08); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.card-image { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-secondary); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.card-image .no-photo {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--text-muted);
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
}
.card-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase; border-radius: 20px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.card-badge.agency { background: rgba(212, 168, 83, 0.25); color: var(--badge-agency); border: 1px solid rgba(212, 168, 83, 0.3); }
.card-badge.external { background: rgba(90, 127, 204, 0.2); color: var(--badge-external); border: 1px solid rgba(90, 127, 204, 0.25); }
.card-media-icons { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.media-icon {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); border-radius: 50%; font-size: 12px;
}
.card-order-btns { position: absolute; top: 10px; right: 10px; display: none; flex-direction: column; gap: 4px; z-index: 5; }
.admin-mode .card-order-btns { display: flex; }
.order-btn { width: 28px; height: 28px; border: none; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.order-btn:hover { background: var(--accent); }
.card-info { padding: 14px 16px 16px; }
.card-name { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.card-typecasting { font-size: 12px; color: var(--accent); margin-bottom: 4px; }
.card-meta { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.card-meta span { display: flex; align-items: center; gap: 3px; }
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }

/* ─── Loading ──────────────────────────────── */
#loading-overlay {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: var(--bg-primary); z-index: 200; transition: opacity 0.4s ease;
}
#loading-overlay.hidden { opacity: 0; pointer-events: none; }
.loader { text-align: center; }
.loader-ring { width: 48px; height: 48px; margin: 0 auto 16px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
.loader p { color: var(--text-secondary); font-size: 14px; }

/* ─── Empty State ──────────────────────────── */
#empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
#empty-state svg { margin-bottom: 16px; opacity: 0.4; }
#empty-state h3 { font-size: 18px; color: var(--text-secondary); margin-bottom: 6px; }
.hidden { display: none !important; }

/* ─── Modal (공통) ─────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 300; padding: 24px;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
  position: relative; background: var(--bg-modal);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  width: 100%; max-width: 1100px; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--shadow-modal);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.modal-close-btn {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 50%; color: var(--text-secondary); cursor: pointer; z-index: 10;
  transition: all 0.2s ease;
}
#modal-close {
  position: sticky; top: 8px; float: right; margin-right: 8px; margin-top: 8px; z-index: 20;
}
.modal-close-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: var(--border-hover); }

/* ─── Actor Modal ──────────────────────────── */
.modal-body { display: grid; grid-template-columns: 380px 1fr; min-height: 500px; }
.modal-gallery { border-right: 1px solid var(--border); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.gallery-main { width: 100%; aspect-ratio: 3 / 4; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-secondary); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumb {
  width: 56px; height: 56px; border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; border: 2px solid transparent; transition: all 0.2s ease; opacity: 0.6;
}
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.modal-info { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.modal-header-info { display: flex; flex-direction: column; gap: 6px; }
.modal-badge { display: inline-block; width: fit-content; padding: 4px 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; border-radius: 20px; }
.modal-badge.agency { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(212, 168, 83, 0.3); }
.modal-badge.external { background: rgba(90, 127, 204, 0.15); color: var(--badge-external); border: 1px solid rgba(90, 127, 204, 0.25); }
#modal-name { font-size: 28px; font-weight: 700; margin-top: 4px; }
.modal-meta { font-size: 14px; color: var(--text-secondary); }

/* Casting Button */
.casting-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 24px;
  font-size: 15px; font-weight: 600; font-family: inherit;
  color: #0a0a0f; background: linear-gradient(135deg, var(--accent), #e8c675);
  border: none; border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}
.casting-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(212, 168, 83, 0.4);
}
.casting-btn:active { transform: translateY(0); }

/* Video Section */
.modal-section h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.admin-only-tag { font-size: 10px; color: var(--accent); background: var(--accent-dim); padding: 2px 8px; border-radius: 10px; margin-left: 8px; }
.video-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.video-tab {
  padding: 6px 14px; font-size: 12px; font-family: inherit; font-weight: 500;
  color: var(--text-secondary); background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
}
.video-tab:hover { border-color: var(--border-hover); color: var(--text-primary); }
.video-tab.active { color: var(--accent); background: var(--accent-dim); border-color: rgba(212, 168, 83, 0.3); }
.video-player-wrap { width: 100%; border-radius: var(--radius-md); overflow: hidden; background: #000; }
#modal-video { width: 100%; max-height: 360px; outline: none; background: #000; }

/* Document List */
.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); text-decoration: none; color: var(--text-primary);
  font-size: 13px; transition: all 0.2s ease;
}
.doc-item:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }
.doc-icon { font-size: 18px; flex-shrink: 0; }
.doc-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-ext { font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); background: var(--bg-primary); padding: 2px 8px; border-radius: 4px; }

/* ─── Casting Form ─────────────────────────── */
.casting-form-content { max-width: 560px; }
.casting-form-body { padding: 36px; }
.casting-form-header { margin-bottom: 24px; }
.casting-form-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.casting-form-actor { font-size: 14px; color: var(--text-secondary); }
.casting-form-actor span { color: var(--accent); font-weight: 600; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.required { color: var(--danger); }
.form-group input[type="text"], .form-group textarea {
  width: 100%; padding: 10px 14px;
  font-size: 14px; font-family: inherit; color: var(--text-primary);
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); outline: none; transition: all 0.2s ease;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-label {
  display: flex; align-items: center; gap: 6px; padding: 6px 14px;
  font-size: 13px; color: var(--text-secondary);
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s ease;
}
.radio-label:has(input:checked) { color: var(--accent); background: var(--accent-dim); border-color: rgba(212, 168, 83, 0.3); }
.radio-label input[type="radio"] { accent-color: var(--accent); }

.submit-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; margin-top: 8px;
  font-size: 15px; font-weight: 600; font-family: inherit;
  color: #0a0a0f; background: linear-gradient(135deg, var(--accent), #e8c675);
  border: none; border-radius: var(--radius-md);
  cursor: pointer; transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(212, 168, 83, 0.4); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ─── Toast ────────────────────────────────── */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px);
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  z-index: 500; opacity: 0; transition: all 0.3s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-icon { font-size: 18px; }
.toast-text { font-size: 14px; font-weight: 500; }

/* ─── Requests Panel ───────────────────────── */
.requests-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 350; animation: fadeIn 0.2s ease;
}
.requests-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 440px; max-width: 100vw;
  background: var(--bg-modal); border-left: 1px solid var(--border);
  z-index: 400; overflow-y: auto;
  animation: slideInRight 0.3s ease;
}
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
.requests-panel-header {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: var(--bg-modal);
  border-bottom: 1px solid var(--border);
}
.requests-panel-header h2 { font-size: 18px; font-weight: 700; }
.requests-panel-header .modal-close-btn { position: static; }
.requests-list { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.request-card {
  padding: 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: all 0.2s ease;
}
.request-card.unread { border-left: 3px solid var(--accent); }
.request-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.request-actor { font-size: 15px; font-weight: 600; color: var(--accent); }
.request-time { font-size: 11px; color: var(--text-muted); }
.request-project { font-size: 13px; color: var(--text-primary); margin-bottom: 4px; }
.request-project-type {
  display: inline-block; font-size: 10px; font-weight: 600; color: var(--badge-external);
  background: rgba(90, 127, 204, 0.15); padding: 2px 8px;
  border-radius: 10px; margin-bottom: 8px;
}
.request-requester { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.request-message { font-size: 12px; color: var(--text-muted); font-style: italic; margin-bottom: 10px; }
.request-actions { display: flex; gap: 8px; }
.request-actions button {
  padding: 5px 12px; font-size: 11px; font-family: inherit; font-weight: 500;
  border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s ease;
}
.req-btn-read {
  color: var(--success); background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
}
.req-btn-read:hover { background: rgba(74, 222, 128, 0.2); }
.req-btn-delete {
  color: var(--danger); background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
}
.req-btn-delete:hover { background: rgba(248, 113, 113, 0.2); }

.requests-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 14px; }

/* ─── Responsive ───────────────────────────── */
@media (max-width: 900px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-gallery { border-right: none; border-bottom: 1px solid var(--border); }
  .gallery-main { aspect-ratio: 3 / 4; max-height: none; }
  .gallery-main img { object-fit: contain; }
}
@media (max-width: 768px) {
  #app-header { padding: 0 16px; }
  .header-subtitle { display: none; }
  #search-input { width: 160px; }
  .search-shortcut { display: none; }
  #stats-bar { gap: 16px; padding: 12px 16px; }
  .stat-number { font-size: 18px; }
  #filter-bar { padding: 12px 16px; gap: 16px; }
  #actor-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; padding: 16px; }
  .card-name { font-size: 14px; }
  .modal-content { max-width: 100%; max-height: 95vh; border-radius: var(--radius-lg); }
  .modal-info { padding: 20px; }
  .requests-panel { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  #actor-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px; }
  .stat-divider:nth-child(8), .stat-item:nth-child(5) { display: none; }
  #filter-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ─── 한줄소개 & 태그라인 ─────────────────── */
.modal-tagline {
  color: var(--accent);
  font-size: 13px;
  font-style: italic;
  margin-top: 4px;
  line-height: 1.5;
}

/* ─── 연락처 바 ───────────────────────────── */
.contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.contact-btn.link {
  background: rgba(196, 181, 253, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(196, 181, 253, 0.25);
}
.contact-btn.link:hover {
  background: rgba(196, 181, 253, 0.2);
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.contact-btn.phone {
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.25);
}
.contact-btn.phone:hover {
  background: rgba(74, 222, 128, 0.2);
}
.contact-btn.casting {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
}
.contact-btn.casting:hover {
  background: var(--accent-glow);
}
.contact-btn.pdf {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.25);
}
#company-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: #60a5fa;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
#company-pdf-btn:hover {
  background: rgba(96, 165, 250, 0.2);
}
.contact-btn.pdf:hover {
  background: rgba(96, 165, 250, 0.2);
}

/* ─── 경력 섹션 ──────────────────────────── */
.career-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.career-category h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.career-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.career-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.6;
  align-items: baseline;
}
.career-year {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.career-title {
  color: var(--text-primary);
}
.career-role {
  color: var(--text-secondary);
  font-size: 12px;
}

/* ─── 관리자 편집 영역 ─────────────────────── */
.admin-edit-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-edit-row {
  display: flex;
  gap: 8px;
}
.admin-upload-btn {
  flex: 1;
  padding: 10px 16px;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.admin-upload-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.admin-edit-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-field.full {
  grid-column: 1 / -1;
}
.admin-field label {
  font-size: 12px;
  color: var(--text-muted);
}
.admin-input {
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 6px;
  font-size: 13px;
}
.admin-input:focus {
  outline: none;
  border-color: var(--accent);
}
.admin-save-btn {
  padding: 8px 16px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.admin-save-btn:hover {
  background: #d4912f;
}
.admin-save-btn.full-width {
  width: 100%;
  padding: 12px;
  font-size: 14px;
}

/* 경력 편집 */
.admin-career-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.admin-career-section h4 {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 10px;
}
.admin-career-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.admin-career-tab {
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.admin-career-tab.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.admin-career-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 8px;
}
.admin-career-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--surface);
  border-radius: 6px;
  margin-bottom: 4px;
  font-size: 13px;
}
.admin-career-item .year { color: var(--accent); min-width: 40px; }
.admin-career-item .title { flex: 1; color: var(--text-primary); }
.admin-career-item .role { color: var(--text-muted); font-size: 12px; }
.admin-career-item .del-btn {
  background: none;
  border: none;
  color: #ff4444;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
}
.admin-career-add {
  display: flex;
  gap: 6px;
  align-items: center;
}
.career-year-input { width: 70px !important; }
.career-title-input { flex: 1; }
.career-role-input { width: 100px !important; }

/* 사진 삭제 버튼 */
.thumb-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(255, 50, 50, 0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  z-index: 5;
  display: none;
}
.admin-mode .thumb-delete-btn { display: block; }
.gallery-thumb { position: relative; }

/* 영상 삭제 버튼 */
.video-delete-btn {
  margin-left: 6px;
  color: #ff4444;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  display: none;
}
.admin-mode .video-delete-btn { display: inline; }

/* 경력 인라인 편집 */
.career-edit-input {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 12px;
}
.career-edit-input:focus {
  border-color: var(--accent);
  outline: none;
}
