/* ─────────────────────────────────────────────────────────
   SHEPLEY LIGHTING — STYLESHEET
   Sections: Reset · Tokens · Nav · Hero · Portfolio · Modal · Footer · Admin
   ───────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg:       #080808;
  --surface:  #111111;
  --surface2: #181818;
  --border:   #202020;
  --text:     #f0ede8;
  --muted:    #606060;
  --accent:   #be1e2d;   /* brand red */
  --accent-d: rgba(190,30,45,0.14);
  --t:        0.3s cubic-bezier(0.4,0,0.2,1);

  /* Admin */
  --sidebar-w: 220px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ──────────────────────────────────────────────── */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2.5rem;
  height: 76px;
  transition: background var(--t), border-color var(--t);
}
#navbar.scrolled {
  background: rgba(8,8,8,0.97);
  border-bottom: 1px solid var(--border);
}
.header-logo {
  width: min(62vw, 680px);
  height: auto;
  display: block;
  animation: logo-reveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.2s;
}
@keyframes logo-reveal {
  0%   { clip-path: inset(0 50% 0 50%); opacity: 0; }
  20%  { opacity: 1; }
  100% { clip-path: inset(0 0% 0 0%); opacity: 1; }
}
.nav-links {
  position: absolute;
  right: 2.5rem;
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--t);
}
.nav-links a:hover { color: var(--text); }

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh; min-height: 580px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; opacity: 0.28;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(8,8,8,0.1) 0%, var(--bg) 80%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 720px; padding: 0 2rem;
  display: flex; flex-direction: column; align-items: center;
}


.hero-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem; font-weight: 500;
}
.hero-sub {
  font-size: 0.95rem; color: var(--muted);
  font-weight: 300; margin-bottom: 2.2rem; line-height: 1.8;
  max-width: 500px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--text);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.2rem;
  transition: color var(--t), gap var(--t);
}
.hero-cta:hover { color: var(--accent); gap: 1rem; }

.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%); z-index: 2;
}
.scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ── PORTFOLIO ────────────────────────────────────────── */
#portfolio { padding: 6rem 2.5rem 8rem; max-width: 1700px; margin: 0 auto; }

.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 2.5rem; flex-wrap: wrap; gap: 1.5rem;
}
.section-label {
  font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; line-height: 1.1;
}

.filter-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.filter-btn {
  background: none; border: 1px solid var(--border);
  color: var(--muted); padding: 0.42rem 1rem;
  border-radius: 100px; font-family: 'Inter', sans-serif;
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.05em;
  cursor: pointer; transition: all var(--t);
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.filter-btn:hover { border-color: var(--muted); color: var(--text); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-btn .count { font-size: 0.68rem; font-weight: 600; opacity: 0.7; }

.stats-bar {
  display: flex; gap: 3rem;
  padding: 1.4rem 0 2.8rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.8rem;
}
.stat { display: flex; flex-direction: column; gap: 0.15rem; }
.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem; color: var(--text); line-height: 1;
}
.stat-label {
  font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}

/* ── CARD ─────────────────────────────────────────────── */
.card {
  position: relative; aspect-ratio: 16/10;
  overflow: hidden; cursor: pointer;
  background: var(--surface);
}
.card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1), filter 0.55s ease;
  filter: brightness(0.58) saturate(0.75);
}
.card:hover .card-img {
  transform: scale(1.06);
  filter: brightness(0.3) saturate(0.4);
}
.card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.92) 0%, transparent 55%);
}
.card-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--t); padding: 1.5rem;
  pointer-events: none;
}
.card:hover .card-center { opacity: 1; }
.card-logo {
  max-width: 150px; max-height: 64px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 0.75rem;
}
.card-expand-hint {
  font-size: 0.67rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(190,30,45,0.5);
  padding: 0.3rem 0.8rem; border-radius: 100px;
}
.card-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.1rem 1.25rem;
  transition: transform var(--t), opacity var(--t);
}
.card:hover .card-info { transform: translateY(6px); opacity: 0; }
.card-role {
  font-size: 0.63rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.2rem;
}
.card-title { font-size: 0.9rem; font-weight: 500; line-height: 1.3; }
.card-year  { font-size: 0.7rem; color: var(--muted); margin-top: 0.15rem; }

/* ── Card category badge ─────────────────────────────── */
.card-cat {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.22rem 0.55rem;
  border-radius: 100px; border: 1px solid currentColor;
  pointer-events: none;
}
.card-cat--commercial { color: #c8a96e; background: rgba(200,169,110,0.12); border-color: rgba(200,169,110,0.35); }
.card-cat--tv         { color: #6eafc8; background: rgba(110,175,200,0.12); border-color: rgba(110,175,200,0.35); }
.card-cat--live       { color: #be1e2d; background: rgba(190,30,45,0.12);   border-color: rgba(190,30,45,0.35);  }
.card-cat--feature    { color: #8a7ec8; background: rgba(138,126,200,0.12); border-color: rgba(138,126,200,0.35); }

/* ── Card placeholder (no image) ─────────────────────── */
.card-no-img {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 40%, #3d0b13 75%, #be1e2d 100%);
}
.card-no-img .card-overlay {
  background: linear-gradient(to top, rgba(8,8,8,0.75) 0%, rgba(8,8,8,0.1) 55%, transparent 100%);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card.anim { animation: fadeUp 0.4s ease both; }

/* ── MODAL ────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.88);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  width: 100%; max-width: 820px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(16px);
  transition: transform 0.28s ease;
  position: relative;
}
.modal-backdrop.open .modal { transform: translateY(0); }

.modal-banner {
  width: 100%; aspect-ratio: 16/7;
  object-fit: cover; display: block;
  filter: brightness(0.68);
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(8,8,8,0.75); border: 1px solid var(--border);
  color: var(--text); width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer; font-size: 1.2rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t); z-index: 10;
}
.modal-close:hover { background: var(--accent); border-color: var(--accent); }

.modal-body { padding: 2rem 2.25rem 2.5rem; }
.modal-category {
  font-size: 0.67rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.45rem;
}
.modal-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.15; margin-bottom: 0.3rem;
}
.modal-year { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.4rem; }
.modal-role-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent-d); border: 1px solid rgba(190,30,45,0.25);
  color: var(--accent); padding: 0.45rem 1rem;
  border-radius: 4px; font-size: 0.82rem; font-weight: 500;
  margin-bottom: 1.75rem;
}
.modal-role-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50; flex-shrink: 0;
}
.modal-divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.modal-crew {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem; margin-bottom: 1rem;
}
.crew-label {
  font-size: 0.65rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem;
}
.crew-value { font-size: 0.88rem; }
.modal-watch { margin-top: 1.5rem; }
.watch-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--text);
  background: var(--surface2); border: 1px solid var(--border);
  padding: 0.65rem 1.25rem; border-radius: 4px;
  font-size: 0.82rem; font-weight: 500;
  transition: border-color var(--t), color var(--t);
}
.watch-btn:hover { border-color: var(--accent); color: var(--accent); }
.watch-btn svg { width: 14px; height: 14px; fill: currentColor; }
.modal-embed { margin-top: 1.5rem; aspect-ratio: 16/9; background: #000; }
.modal-embed iframe { width: 100%; height: 100%; border: none; display: block; }
.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── FOOTER ───────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo {
  height: 28px;
  /* wide SVG has white elements — visible on dark bg */
  filter: opacity(0.6);
}
.footer-text { font-size: 0.76rem; color: var(--muted); }
.footer-contact a {
  color: var(--accent); text-decoration: none;
  font-size: 0.82rem; font-weight: 500;
  transition: opacity var(--t);
}
.footer-contact a:hover { opacity: 0.7; }

/* ── ADMIN LAYOUT ─────────────────────────────────────── */
.admin-body {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.admin-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  overflow-y: auto; z-index: 100;
  padding: 1.75rem 0;
}
.sidebar-logo {
  height: 40px; width: auto; display: block;
  margin: 0 auto 2rem;
  filter: opacity(0.85);
}
.sidebar-nav { display: flex; flex-direction: column; gap: 0.15rem; padding: 0 0.75rem; }
.sidebar-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.65rem 0.85rem; border-radius: 6px;
  text-decoration: none; color: var(--muted);
  font-size: 0.82rem; font-weight: 500;
  transition: all var(--t);
}
.sidebar-link svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.sidebar-link:hover { background: var(--surface2); color: var(--text); }
.sidebar-link.active { background: var(--accent-d); color: var(--accent); }
.sidebar-logout { margin-top: auto; color: var(--muted); }
.sidebar-logout:hover { color: #ef4444; }

.admin-main {
  margin-left: var(--sidebar-w);
  flex: 1; padding: 2.5rem;
  min-width: 0;
}
.admin-topbar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.admin-page-title {
  font-size: 1.4rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem;
}
.admin-page-sub { font-size: 0.82rem; color: var(--muted); }

/* Flash messages */
.flash-success, .flash-error {
  padding: 0.85rem 1.2rem; border-radius: 6px; margin-bottom: 1.5rem;
  font-size: 0.85rem; font-weight: 500;
}
.flash-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }
.flash-error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #f87171; }

/* Dashboard filters */
.dash-filters {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.dash-search-form { display: flex; }
.dash-search {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); padding: 0.55rem 1rem; border-radius: 6px;
  font-size: 0.82rem; outline: none; min-width: 220px;
  transition: border-color var(--t);
  font-family: 'Inter', sans-serif;
}
.dash-search:focus { border-color: var(--accent); }
.dash-cats { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.cat-pill {
  text-decoration: none; color: var(--muted);
  font-size: 0.75rem; padding: 0.35rem 0.85rem;
  border: 1px solid var(--border); border-radius: 100px;
  transition: all var(--t); display: inline-flex; align-items: center; gap: 0.4rem;
}
.cat-pill span { font-size: 0.67rem; opacity: 0.7; }
.cat-pill:hover { border-color: var(--muted); color: var(--text); }
.cat-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Table */
.table-wrap { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.credits-table { width: 100%; border-collapse: collapse; }
.credits-table thead { background: var(--surface2); }
.credits-table th {
  padding: 0.75rem 1rem; text-align: left;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--border);
}
.credits-table td {
  padding: 0.8rem 1rem; border-bottom: 1px solid var(--border);
  font-size: 0.85rem; vertical-align: middle;
}
.credits-table tbody tr:last-child td { border-bottom: none; }
.credits-table tbody tr:hover { background: var(--surface2); }
.table-empty { text-align: center; color: var(--muted); padding: 3rem !important; }
.th-actions { width: 90px; }
/* Use inner divs for flex — applying display:flex directly to <td> can break table alignment */
.td-title { display: flex; align-items: center; gap: 0.75rem; }
.table-thumb { width: 48px; height: 30px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.credits-table td:nth-child(3),
.credits-table td:nth-child(4) { color: var(--muted); white-space: nowrap; }
.td-actions { display: flex; gap: 0.5rem; align-items: center; }

/* Category badges */
.cat-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 500;
  padding: 0.2rem 0.65rem; border-radius: 100px; white-space: nowrap;
}
.cat-commercial { background: rgba(59,130,246,0.15); color: #60a5fa; }
.cat-tv         { background: rgba(168,85,247,0.15); color: #c084fc; }
.cat-live       { background: rgba(34,197,94,0.15);  color: #4ade80; }
.cat-feature    { background: rgba(251,191,36,0.15); color: #fbbf24; }

/* Inline category select — styled to look like a badge */
.cat-select {
  appearance: none; -webkit-appearance: none;
  border: none; border-radius: 100px;
  padding: 0.25rem 0.8rem;
  font-size: 0.7rem; font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer; outline: none;
  white-space: nowrap; transition: opacity var(--t);
}
.cat-select:hover { opacity: 0.8; }
.cat-select.cat-commercial { background: rgba(59,130,246,0.15); color: #60a5fa; }
.cat-select.cat-tv         { background: rgba(168,85,247,0.15); color: #c084fc; }
.cat-select.cat-live       { background: rgba(34,197,94,0.15);  color: #4ade80; }
.cat-select.cat-feature    { background: rgba(251,191,36,0.15); color: #fbbf24; }
/* Style the option elements on Chromium */
.cat-select option { background: var(--surface2); color: var(--text); }

/* Inline text editing */
.inline-hint {
  font-size: 0.74rem; color: var(--muted); margin-bottom: 0.75rem;
  padding-left: 0.1rem;
}
span.editable {
  cursor: text; border-radius: 3px;
  padding: 0.1rem 0.25rem; margin: -0.1rem -0.25rem;
  transition: background var(--t);
}
span.editable:hover { background: var(--surface2); }
.inline-input {
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  width: 100%; min-width: 120px;
  outline: none;
}

/* Action buttons */
.action-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 6px;
  border: 1px solid var(--border); background: none;
  cursor: pointer; transition: all var(--t); text-decoration: none;
}
.action-btn svg { width: 15px; height: 15px; fill: var(--muted); }
.action-edit:hover  { border-color: var(--accent); background: var(--accent-d); }
.action-edit:hover svg  { fill: var(--accent); }
.action-delete:hover { border-color: #ef4444; background: rgba(239,68,68,0.1); }
.action-delete:hover svg { fill: #ef4444; }

/* Edit form */
.edit-layout { display: flex; gap: 1.5rem; }
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 2rem; flex: 1; min-width: 0;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group-grow { flex: 1; }
.form-row { display: flex; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.form-label {
  font-size: 0.78rem; font-weight: 500; color: var(--text);
  display: flex; align-items: center; gap: 0.4rem;
}
.form-hint { color: var(--muted); font-weight: 400; }
.required { color: var(--accent); }
.form-input {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); padding: 0.6rem 0.85rem; border-radius: 6px;
  font-size: 0.85rem; font-family: 'Inter', sans-serif;
  outline: none; width: 100%;
  transition: border-color var(--t);
}
.form-input:focus { border-color: var(--accent); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23606060' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.5rem center; background-size: 20px; padding-right: 2rem; }
.form-divider { border: none; border-top: 1px solid var(--border); margin: 0.5rem 0 1.5rem; }
.form-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.form-section-label {
  font-size: 0.78rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 0.5rem;
}
.form-actions {
  display: flex; justify-content: flex-end; gap: 0.75rem;
  padding-top: 1.25rem; margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

/* Image preview */
.img-preview-wrap { margin-bottom: 1.25rem; }
.img-preview {
  height: 120px; border-radius: 4px;
  object-fit: cover; border: 1px solid var(--border);
  display: block;
}

/* Lookup */
.btn-lookup {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent-d); border: 1px solid rgba(190,30,45,0.3);
  color: var(--accent); padding: 0.45rem 0.9rem; border-radius: 6px;
  font-size: 0.78rem; font-weight: 500; cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background var(--t);
}
.btn-lookup:hover { background: rgba(190,30,45,0.25); }
.btn-lookup svg { width: 15px; height: 15px; fill: currentColor; }

.lookup-panel {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 1.25rem; overflow: hidden;
}
.lookup-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border);
}
.lookup-title { font-size: 0.82rem; font-weight: 600; }
.lookup-close {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0.1rem;
}
.lookup-search-row {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.1rem; border-bottom: 1px solid var(--border);
}
.lookup-result-title {
  display: flex; align-items: center; gap: 0.5rem;
}
.source-badge {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem; border-radius: 3px;
  flex-shrink: 0; text-transform: uppercase;
}
.source-tmdb { background: rgba(1,180,228,0.15); color: #01b4e4; }
.source-imdb { background: rgba(245,197,24,0.15); color: #c9a800; }
.lookup-search-input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 0.5rem 0.75rem;
  color: var(--text); font-size: 0.88rem; font-family: 'Inter', sans-serif;
  outline: none; transition: border-color var(--t);
}
.lookup-search-input:focus { border-color: var(--accent); }
.btn-lookup-search {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent); border: none; color: #fff;
  padding: 0.5rem 1rem; border-radius: 6px;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
  font-family: 'Inter', sans-serif; white-space: nowrap; transition: opacity var(--t);
}
.btn-lookup-search svg { width: 14px; height: 14px; fill: currentColor; }
.btn-lookup-search:hover { opacity: 0.85; }
.lookup-results { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 1rem; }
.lookup-loading, .lookup-empty { font-size: 0.83rem; color: var(--muted); text-align: center; padding: 0.5rem 0; }
.lookup-result { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.lookup-result-header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.75rem 1rem; background: var(--surface); flex-wrap: wrap; gap: 0.5rem;
}
.lookup-result-header strong { font-size: 0.9rem; }
.lookup-meta { font-size: 0.75rem; color: var(--muted); }
.lookup-meta a { color: var(--accent); text-decoration: none; }
.lookup-fields { display: flex; flex-direction: column; }
.lookup-field {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.55rem 1rem; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.lookup-field-label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); width: 55px; flex-shrink: 0;
}
.lookup-field-val { font-size: 0.84rem; flex: 1; }
.lookup-use {
  background: var(--accent); border: none; color: #fff;
  padding: 0.25rem 0.65rem; border-radius: 4px;
  font-size: 0.72rem; font-weight: 600; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: opacity var(--t); flex-shrink: 0;
}
.lookup-use:disabled { opacity: 0.5; cursor: default; background: var(--muted); }
.lookup-partial { font-size: 0.78rem; color: var(--muted); padding: 0.6rem 1rem; border-top: 1px solid var(--border); }

/* ── Image Picker ─────────────────────────────────────── */
.form-label-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.4rem;
}
.btn-label-action {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(190,30,45,0.1); border: 1px solid rgba(190,30,45,0.3);
  color: var(--accent); border-radius: 4px;
  font-size: 0.7rem; font-weight: 600; cursor: pointer; line-height: 1;
  font-family: 'Inter', sans-serif; padding: 0.25rem 0.55rem;
  transition: background var(--t), border-color var(--t);
  appearance: none; -webkit-appearance: none; text-decoration: none;
}
.btn-label-action svg { width: 11px; height: 11px; fill: currentColor; flex-shrink: 0; }
.btn-label-action:hover { background: rgba(190,30,45,0.2); border-color: rgba(190,30,45,0.6); }
.img-picker-panel {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 1.25rem; overflow: hidden;
}
.img-picker-header {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem; border-bottom: 1px solid var(--border);
}
.img-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem; padding: 0.75rem 1rem;
  max-height: 340px; overflow-y: auto;
}
.img-picker-item {
  background: none; border: 2px solid transparent; border-radius: 5px;
  overflow: hidden; cursor: pointer; padding: 0;
  transition: border-color var(--t);
  display: flex; flex-direction: column;
}
.img-picker-item:hover { border-color: var(--accent); }
.img-picker-item img { width: 100%; height: 88px; object-fit: cover; display: block; }
.img-picker-item.poster img { height: 110px; object-fit: cover; }
.img-picker-kind {
  font-size: 0.62rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--muted);
  padding: 0.2rem 0.4rem; text-align: center;
  background: var(--surface);
}

/* ── Batch toolbar ─────────────────────────────────────── */
.batch-toolbar {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.65rem 1.1rem;
  margin-bottom: 0.75rem;
}
.batch-count { font-size: 0.83rem; font-weight: 600; color: var(--text); }
.btn-batch {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent); border: none; color: #fff;
  padding: 0.45rem 1rem; border-radius: 6px;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: opacity var(--t);
}
.btn-batch svg { width: 14px; height: 14px; fill: currentColor; }
.btn-batch:hover { opacity: 0.85; }
.btn-batch-cancel {
  background: none; border: 1px solid var(--border); color: var(--muted);
  padding: 0.42rem 0.9rem; border-radius: 6px;
  font-size: 0.78rem; font-weight: 500; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: color var(--t), border-color var(--t);
}
.btn-batch-cancel:hover { color: var(--text); border-color: var(--text); }
.th-check, .td-check { width: 36px; text-align: center; }
.row-check { cursor: pointer; accent-color: var(--accent); width: 15px; height: 15px; }

/* ── Batch modal ───────────────────────────────────────── */
.batch-modal-backdrop {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.batch-modal {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; width: 100%; max-width: 660px;
  max-height: 80vh; display: flex; flex-direction: column;
  overflow: hidden;
}
.batch-modal-header {
  padding: 1.1rem 1.4rem 0.8rem;
  border-bottom: 1px solid var(--border);
}
.batch-modal-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.batch-modal-meta  { font-size: 0.78rem; color: var(--muted); }
.batch-modal-body  { flex: 1; overflow-y: auto; padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.batch-modal-footer {
  padding: 0.9rem 1.4rem; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 0.75rem;
}
.batch-item {
  border: 1px solid var(--border); border-radius: 6px;
  padding: 0.7rem 0.9rem; display: flex; flex-direction: column; gap: 0.4rem;
  transition: opacity 0.4s;
}
.batch-item-loading { opacity: 0.5; }
.batch-item-found   { border-color: rgba(34,197,94,0.35); }
.batch-item-none    { opacity: 0.45; }
.batch-item-error   { border-color: rgba(239,68,68,0.4); }
.batch-item-title   { font-size: 0.88rem; font-weight: 600; }
.batch-item-status  { font-size: 0.78rem; color: var(--muted); }
.batch-item-notfound { color: var(--muted); font-style: italic; }
.batch-item-fields  { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; }
.batch-field        { font-size: 0.78rem; color: var(--muted); }
.batch-field b      { color: var(--text); font-weight: 600; margin-right: 0.3rem; }
.batch-field-img img { height: 36px; border-radius: 3px; object-fit: cover; vertical-align: middle; margin-left: 0.3rem; }
.batch-skip-label   { font-size: 0.73rem; color: var(--muted); display: flex; align-items: center; gap: 0.3rem; cursor: pointer; margin-top: 0.1rem; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); border: 1px solid var(--accent);
  color: #fff; padding: 0.6rem 1.4rem; border-radius: 6px;
  font-size: 0.84rem; font-weight: 600;
  font-family: 'Inter', sans-serif; cursor: pointer;
  text-decoration: none; transition: opacity var(--t);
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.88; }
.btn-primary.btn-block { width: 100%; margin-top: 0.5rem; }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--border);
  color: var(--muted); padding: 0.6rem 1.4rem; border-radius: 6px;
  font-size: 0.84rem; font-weight: 500; cursor: pointer;
  font-family: 'Inter', sans-serif; text-decoration: none;
  transition: border-color var(--t), color var(--t);
}
.btn-secondary:hover { border-color: var(--muted); color: var(--text); }

/* Auth page */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.auth-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 2.5rem 2.25rem; width: 100%; max-width: 400px;
}
.auth-logo { height: 52px; width: auto; margin-bottom: 2rem; display: block; }
.auth-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4rem; }
.auth-hint { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.6; }
.auth-error {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  color: #f87171; padding: 0.75rem 1rem; border-radius: 6px;
  font-size: 0.83rem; margin-bottom: 1.25rem;
}
.auth-back {
  display: block; text-align: center; margin-top: 1.5rem;
  font-size: 0.8rem; color: var(--muted); text-decoration: none;
  transition: color var(--t);
}
.auth-back:hover { color: var(--text); }
.auth-card .form-group { margin-bottom: 1rem; }

/* ── CLIENTS CAROUSEL ─────────────────────────────────── */
.clients-strip {
  overflow: hidden;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: relative;
}
.clients-strip::before,
.clients-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.clients-strip::before { left: 0;  background: linear-gradient(to right, var(--surface), transparent); }
.clients-strip::after  { right: 0; background: linear-gradient(to left,  var(--surface), transparent); }

.clients-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 36s linear infinite;
  will-change: transform;
}
.clients-track:hover { animation-play-state: paused; }

.clients-track img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 4rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.clients-track img:hover { opacity: 1; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--marquee-dist, 50%))); }
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 900px) {
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
}
@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { display: none; }
  #portfolio { padding: 4rem 1.25rem 5rem; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .stats-bar { gap: 2rem; flex-wrap: wrap; }
  footer { flex-direction: column; text-align: center; }
  .modal-body { padding: 1.5rem 1.25rem; }
  .modal-crew { grid-template-columns: 1fr 1fr; }
  .form-row { flex-direction: column; }
}
