/* Rutledge Admin: functional dark theme. Scoped to .admin. */
.admin {
  --bg: #0c0c0d; --panel: #141416; --line: #26262a;
  --text: #ece8e1; --muted: #9b948b; --red: #c1121f;
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Barlow", system-ui, sans-serif; line-height: 1.5;
}
.admin *, .admin *::before, .admin *::after { box-sizing: border-box; }
.admin a { color: inherit; }

.adm-hdr { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .9rem 1.5rem; background: #08080a; border-bottom: 3px solid var(--red); }
.adm-brand { font-family: "Bebas Neue", Impact, sans-serif; font-size: 1.8rem; letter-spacing: .04em; text-decoration: none; }
.adm-brand em { font-style: normal; color: var(--red); }
.adm-nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; font-family: "Barlow Condensed", sans-serif; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; }
.adm-nav a { text-decoration: none; color: var(--muted); }
.adm-nav a:hover { color: var(--text); }
.adm-nav form { display: inline; }
.adm-nav button { background: none; border: 1px solid var(--line); color: var(--muted); padding: .3rem .8rem; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.adm-nav button:hover { color: var(--text); border-color: var(--muted); }

.adm-main { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.adm-title { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 2.8rem; line-height: 1; margin: 0; }
.adm-muted { color: var(--muted); font-size: .9rem; }

.adm-flash { padding: .75rem 1rem; margin-bottom: 1.25rem; border-left: 3px solid #3a8d4f; background: rgba(58,141,79,.12); }
.adm-flash--alert { border-left-color: var(--red); background: rgba(193,18,31,.12); }

.adm-btn { display: inline-flex; align-items: center; gap: .4rem; font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; padding: .6rem 1.1rem; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; cursor: pointer; }
.adm-btn:hover { border-color: var(--muted); }
.adm-btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.adm-btn--red:hover { background: #e0142a; border-color: #e0142a; }
.adm-btn--danger { color: #ff6b6b; border-color: rgba(255,107,107,.4); background: transparent; }
.adm-btn--sm { padding: .35rem .7rem; font-size: .8rem; }

.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.adm-stat { background: var(--panel); border: 1px solid var(--line); padding: 1.25rem; }
.adm-stat b { display: block; font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 3rem; line-height: 1; }
.adm-stat span { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }

.adm-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); }
.adm-table th, .adm-table td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.adm-table th { font-family: "Barlow Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--muted); font-weight: 600; }
.adm-table img { width: 44px; height: 66px; object-fit: cover; display: block; background: #000; }
.adm-thumb-empty { width: 44px; height: 66px; background: #1f1f22; }
.adm-actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.adm-actions form { display: inline; }
.adm-tag { display: inline-block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; padding: .15rem .5rem; border: 1px solid var(--line); color: var(--muted); }

.adm-form { display: grid; gap: 1.5rem; }
.adm-fieldset { background: var(--panel); border: 1px solid var(--line); padding: 1.25rem 1.25rem 1.5rem; margin: 0; }
.adm-fieldset legend { font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); padding: 0 .5rem; font-size: .85rem; }
.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem 1.25rem; }
.adm-field { display: grid; gap: .35rem; align-content: start; }
.adm-field--wide { grid-column: 1 / -1; }
.adm-field label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.adm-field input[type=text], .adm-field input[type=url], .adm-field input[type=number], .adm-field select, .adm-field textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid #333; padding: .65rem .8rem; font: inherit; }
.adm-field textarea { min-height: 110px; resize: vertical; }
.adm-field input:focus, .adm-field select:focus, .adm-field textarea:focus { outline: none; border-color: var(--red); }
.adm-hint { font-size: .8rem; color: var(--muted); }
.adm-preview { max-height: 180px; width: auto; max-width: 100%; border: 1px solid var(--line); }
.adm-errors { border-left: 3px solid var(--red); background: rgba(193,18,31,.12); padding: .75rem 1rem; }
.adm-errors ul { margin: .25rem 0 0; padding-left: 1.25rem; }
.adm-form-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }

@media (max-width: 800px) {
  .adm-table th:nth-child(2), .adm-table td:nth-child(2),
  .adm-table th:nth-child(6), .adm-table td:nth-child(6) { display: none; }
}

/* Cast & crew editing */
.adm-subtitle { font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; font-size: 1.1rem; margin: 2rem 0 .75rem; }
.adm-star { color: var(--red); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.adm-label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.adm-check { display: flex; align-items: center; gap: .5rem; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--text); padding-top: .5rem; }
.adm-check input { accent-color: var(--red); width: 1.1rem; height: 1.1rem; }

/* People & links */
.adm-search { display: flex; gap: .4rem; }
.adm-search input { background: var(--bg); color: var(--text); border: 1px solid #333; padding: .55rem .8rem; font: inherit; min-width: 220px; }
.adm-search input:focus { outline: none; border-color: var(--red); }
.adm-headshot { width: 40px; height: 50px; object-fit: cover; display: block; }
.adm-table img.adm-headshot { width: 40px; height: 50px; }
.adm-headshot--empty { background: #1f1f22; }
.adm-url { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-spacer { height: 1.5rem; }
.adm-field textarea#person_bio { min-height: 160px; }

/* Actor sites */
.adm-tabs { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 1.5rem; border-bottom: 1px solid var(--line); }
.adm-tabs a { padding: .6rem 1rem; text-decoration: none; color: var(--muted); font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.adm-tabs a:hover { color: var(--text); }
.adm-tabs a.is-active { color: var(--text); border-bottom-color: var(--red); }
.adm-headshot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.adm-headshot-grid img { width: 100%; aspect-ratio: 480 / 560; object-fit: cover; border: 1px solid var(--line); margin-bottom: .4rem; }
.adm-table img.adm-logo { width: 56px; height: 56px; object-fit: contain; background: #fff; }
.adm-field input[type=password] { width: 100%; background: var(--bg); color: var(--text); border: 1px solid #333; padding: .65rem .8rem; font: inherit; }
.adm-field input[type=password]:focus { outline: none; border-color: var(--red); }

/* Dashboard cards */
.dash { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:1.25rem; align-items:start; }
.dash-top { display:flex; align-items:baseline; gap:.75rem; margin-bottom:1rem; padding-bottom:.75rem; border-bottom:1px solid rgba(255,255,255,.08); }
.dash-num { font-size:2.6rem; font-weight:700; line-height:1; }
.dash-label { letter-spacing:.15em; text-transform:uppercase; font-size:.8rem; opacity:.7; }
.dash-more { margin-left:auto; font-size:.8rem; letter-spacing:.1em; text-transform:uppercase; }
.dash-new { margin-left:auto; padding:.15rem .55rem; border:1px solid #c1121f; color:#f0b3b8; font-size:.75rem; letter-spacing:.1em; text-transform:uppercase; }
.dash-list { list-style:none; margin:0; padding:0; }
.dash-list li { display:flex; justify-content:space-between; gap:1rem; padding:.55rem 0; border-bottom:1px solid rgba(255,255,255,.06); }
.dash-list li:last-child { border-bottom:0; }
.dash-list li > span:last-child { text-align:right; white-space:nowrap; }
.dash-is-new { border-left:3px solid #c1121f; padding-left:.6rem !important; }

/* Actors */
.actors-sub{opacity:.7;margin-top:-.5rem}
.actors-wrap{overflow-x:auto}
.actors-table{width:100%;border-collapse:collapse;margin-top:1rem}
.actors-table th,.actors-table td{padding:.6rem .75rem;border-bottom:1px solid color-mix(in srgb,currentColor 15%,transparent);text-align:left;vertical-align:middle}
.actors-table th{font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;opacity:.6}
.actors-thumb img{width:44px;height:44px;object-fit:cover;border-radius:4px;display:block}
.actors-tag{display:inline-block;font-size:.7rem;padding:.1rem .4rem;border:1px solid #c8202f;color:#c8202f;border-radius:3px;margin-left:.4rem;vertical-align:middle}
.actors-profile{display:grid;grid-template-columns:220px 1fr;gap:2rem;align-items:start;margin:1rem 0 2rem}
.actors-photo img{width:100%;border-radius:6px;display:block}
.actors-nophoto{aspect-ratio:3/4;display:grid;place-items:center;border:1px dashed color-mix(in srgb,currentColor 30%,transparent);border-radius:6px;opacity:.6}
.actors-dl{display:grid;grid-template-columns:max-content 1fr;gap:.4rem 1.25rem;margin:1rem 0}
.actors-dl dt{opacity:.6;font-size:.85rem}
.actors-dl dd{margin:0}
@media (max-width:640px){.actors-profile{grid-template-columns:1fr}}
.actors-invite{margin:0 0 2rem}.actors-invite select,.actors-invite textarea{width:100%;max-width:520px}
