/* sinreel — core styles (Crimson Velvet theme). Font: self-hosted Outfit (static/fonts/). */

@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/outfit-300.9b74615df586.woff2") format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/outfit-400.23191c444b9e.woff2") format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/outfit-500.c5138e4c72ea.woff2") format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/outfit-600.778dd8bec372.woff2") format('woff2'); }

:root {
  --bg: #100406;
  --bg-2: #16070a;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.09);
  --crimson: #e8556a;
  --crimson-deep: #a11e35;
  --text: #f6e7e6;
  --muted: rgba(246, 231, 230, 0.52);
  --faint: rgba(246, 231, 230, 0.34);
  --line: rgba(246, 231, 230, 0.12);
  --line-soft: rgba(246, 231, 230, 0.07);
  --vidW: min(82vw, 1340px, 122vh);
  --vidH: calc(var(--vidW) * 9 / 16);
}
* { box-sizing: border-box; }
body {
  margin: 0; height: 100vh; overflow: hidden;
  background: var(--bg); color: var(--text);
  font-family: 'Outfit', sans-serif; font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* Logo is a strict vector asset — see templates/partials/_logo.html and docs/LOGO.md */
.sinreel-logo, .sinreel-mark { display: block; }

.app { display: flex; height: 100vh; }

/* ---------- sidebar ---------- */
.sidebar {
  width: 210px; flex: 0 0 210px;
  border-right: 1px solid var(--line-soft);
  background: var(--bg-2);
  display: flex; flex-direction: column;
  padding: 26px 18px 22px;
}
.logo { display: inline-flex; align-items: center; color: #f8eeec; padding: 0 8px; margin-bottom: 38px; }
.logo svg.sinreel-logo { height: 23px; width: auto; }
.logo svg.sinreel-mark { display: none; height: 30px; width: auto; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 15px;
  padding: 12px 14px; border-radius: 11px; color: var(--muted);
  font-size: 15px; transition: all .18s;
}
.nav a svg { width: 21px; height: 21px; flex: 0 0 auto; }
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a.active { background: var(--surface); color: var(--text); }
.nav a.active svg { color: var(--crimson); }

.side-spacer { flex: 1; }
.side-cta { display: flex; flex-direction: column; gap: 10px; }
.btn {
  font-family: inherit; font-size: 14px; font-weight: 500; border: none; cursor: pointer;
  border-radius: 999px; padding: 12px; transition: all .2s; width: 100%;
}
.btn-primary { background: linear-gradient(150deg, #e8556a, #a11e35); color: #fff; box-shadow: 0 8px 22px rgba(168, 30, 53, 0.32); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.side-foot { margin-top: 16px; font-size: 11px; color: var(--faint); letter-spacing: 0.04em; display: flex; align-items: center; gap: 8px; padding: 0 6px; }
.badge18 { border: 1px solid var(--crimson); color: var(--crimson); border-radius: 5px; font-size: 10px; font-weight: 600; padding: 2px 5px; }

/* ---------- stage ---------- */
.stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; }
.stage::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 80% at 50% 0%, rgba(168, 30, 53, 0.16) 0%, transparent 60%);
  pointer-events: none;
}

/* player = video column + vertical action rail */
.player { display: flex; align-items: center; justify-content: center; gap: 24px; position: relative; z-index: 1; }

.vcol { width: var(--vidW); display: flex; flex-direction: column; gap: 14px; }

/* vertical action rail, to the right of the video */
.rail { display: flex; flex-direction: column; gap: 16px; align-items: center; flex: 0 0 auto; }
.rail-sep { width: 28px; height: 1px; background: var(--line); margin: 2px 0; }

/* clean video area — nothing inside */
.video {
  width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  background:
    repeating-linear-gradient(135deg, rgba(232, 85, 106, 0.06) 0 14px, rgba(232, 85, 106, 0.015) 14px 28px),
    linear-gradient(160deg, #22090e, #140508);
  transition: opacity .28s ease, transform .28s ease;
}

/* control bar below video */
.controls { display: flex; align-items: center; gap: 13px; }
.pp {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto; cursor: pointer; border: none;
  background: linear-gradient(150deg, #e8556a, #a11e35); color: #fff;
  display: flex; align-items: center; justify-content: center; transition: filter .2s;
}
.pp:hover { filter: brightness(1.08); }
.pp svg { width: 17px; height: 17px; }
.scrub { flex: 1; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.13); overflow: hidden; cursor: pointer; }
.scrub i { display: block; height: 100%; width: 32%; background: var(--crimson); border-radius: 5px; }
.time { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* caption + socials row below the video */
.underbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.caption { flex: 1; min-width: 0; }
.caption .who { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.caption .who .av { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; background: linear-gradient(150deg, #3a1016, #1a0508); border: 1px solid var(--line); }
.caption .who .h { font-size: 15px; font-weight: 500; color: var(--text); }
.caption .who .follow {
  margin-left: 4px; font-size: 12.5px; font-weight: 500; color: var(--crimson);
  border: 1px solid rgba(232, 85, 106, 0.5); border-radius: 999px; padding: 5px 14px; cursor: pointer; transition: all .2s; white-space: nowrap;
}
.caption .who .follow:hover { background: var(--crimson); color: #fff; border-color: transparent; }
.caption .txt { font-size: 14.5px; color: rgba(246, 231, 230, 0.9); line-height: 1.45; }
.caption .tags { color: var(--crimson); }
.caption .meta { margin-top: 9px; font-size: 12.5px; color: var(--faint); display: flex; gap: 14px; white-space: nowrap; }

/* social actions + nav, horizontal row right of caption */
.socials { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; padding-top: 2px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.act .ic {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--text); transition: all .18s;
}
.act:hover .ic { background: var(--surface-2); transform: translateY(-2px); }
.act.liked .ic { color: var(--crimson); border-color: rgba(232, 85, 106, 0.55); background: rgba(232, 85, 106, 0.12); }
.act .ic svg { width: 22px; height: 22px; }
.act .n { font-size: 12px; color: var(--muted); font-weight: 400; }

.divider { width: 1px; height: 40px; background: var(--line); margin: 0 2px; flex: 0 0 auto; }

/* next / prev nav — horizontal */
.feednav { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: 0 0 auto; }
.navbtn {
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .18s;
}
.navbtn:hover { background: var(--surface-2); border-color: rgba(232, 85, 106, 0.5); color: var(--crimson); }
.navbtn svg { width: 23px; height: 23px; }
.feednav .count { font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.feednav .count b { color: var(--text); font-weight: 500; }

/* top-right utility */
.stage-top { position: absolute; top: 22px; right: 40px; z-index: 5; display: flex; gap: 12px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn svg { width: 17px; height: 17px; }

@media (max-width: 880px) {
  .sidebar { width: 76px; flex-basis: 76px; padding: 22px 12px; align-items: center; }
  .logo { margin-bottom: 28px; padding: 0; }
  .logo svg.sinreel-logo { display: none; }
  .logo svg.sinreel-mark { display: block; }
  .nav a { justify-content: center; padding: 12px; }
  .nav a span { display: none; }
  .side-cta .btn { font-size: 0; padding: 12px; height: 44px; }
  .side-foot { display: none; }
}

/* ---------- coming soon / construction ---------- */
.cs-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; position: relative; }
.cs-wrap::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 30%, rgba(168, 30, 53, 0.16) 0%, transparent 60%);
  pointer-events: none;
}
.cs-logo { display: inline-flex; align-items: center; color: #f8eeec; z-index: 1; }
.cs-logo svg { height: 72px; width: auto; }
.cs-title { margin-top: 30px; font-size: 22px; font-weight: 400; color: var(--text); z-index: 1; }
.cs-sub { margin-top: 12px; font-size: 15px; color: var(--muted); max-width: 440px; line-height: 1.55; z-index: 1; }
.cs-login { position: absolute; bottom: 28px; left: 0; right: 0; font-size: 12.5px; color: var(--faint); letter-spacing: 0.04em; z-index: 1; }
.cs-login a { color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: all .2s; }
.cs-login a:hover { color: var(--crimson); border-color: rgba(232, 85, 106, 0.5); }

/* ---------- auth (login) ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card { width: 100%; max-width: 360px; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 18px; padding: 36px 32px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5); }
.auth-logo { display: flex; align-items: center; justify-content: center; color: #f8eeec; }
.auth-logo svg { height: 30px; width: auto; }
.auth-card h1 { text-align: center; font-weight: 500; font-size: 16px; color: var(--muted); margin: 14px 0 26px; letter-spacing: 0.02em; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.auth-card input[type="text"], .auth-card input[type="password"] {
  width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: 14.5px;
  outline: none; transition: border-color .2s;
}
.auth-card input[type="text"]:focus, .auth-card input[type="password"]:focus { border-color: rgba(232, 85, 106, 0.55); }
.auth-card .btn { margin-top: 6px; }
.auth-error { background: rgba(232, 85, 106, 0.12); border: 1px solid rgba(232, 85, 106, 0.4); color: #f6c9cf; font-size: 13px; padding: 10px 12px; border-radius: 10px; margin-bottom: 18px; }
.auth-back { text-align: center; margin-top: 18px; font-size: 12.5px; }
.auth-back a { color: var(--faint); transition: color .2s; }
.auth-back a:hover { color: var(--crimson); }

/* logout button (stage top, staff view) */
.logout-form { margin: 0; }

/* ---------- app content pages (upload / studio / detail) ---------- */
.content { flex: 1; height: 100vh; overflow-y: auto; padding: 40px 48px 64px; }
.page { max-width: 980px; }
.page-narrow { max-width: 560px; }
.page-title { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--text); }
.page-sub { font-size: 14px; color: var(--muted); margin: 0 0 26px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }

a.btn { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }
.btn-inline, a.btn-inline { display: inline-block; width: auto; padding: 11px 22px; }

.flashes { margin-bottom: 22px; display: flex; flex-direction: column; gap: 10px; }
.flash { font-size: 13.5px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); }
.flash-success { background: rgba(46, 168, 116, 0.12); border-color: rgba(46, 168, 116, 0.4); color: #b9efd4; }
.flash-error { background: rgba(232, 85, 106, 0.12); border-color: rgba(232, 85, 106, 0.4); color: #f6c9cf; }

.form-card { display: flex; flex-direction: column; gap: 18px; }
.form-field { display: flex; flex-direction: column; }
.form-field label { font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.form-field .req { color: var(--crimson); }
.form-card input[type="text"], .form-card input[type="url"], .form-card textarea, .form-card input[type="file"] {
  width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: 14.5px;
  outline: none; transition: border-color .2s;
}
.form-card textarea { resize: vertical; }
.form-card input[type="file"] { padding: 10px 12px; cursor: pointer; }
.form-card input:focus, .form-card textarea:focus { border-color: rgba(232, 85, 106, 0.55); }
.field-help { font-size: 12px; color: var(--faint); margin-top: 6px; }
.field-error { font-size: 12.5px; color: #f6a6b1; margin-top: 6px; }
.form-card .btn { margin-top: 6px; }

.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.vid-card { display: flex; flex-direction: column; gap: 11px; }
.vid-thumb {
  position: relative;
  aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(160deg, #22090e, #140508);
  display: flex; align-items: center; justify-content: center; transition: border-color .2s;
}
.vid-card:hover .vid-thumb { border-color: rgba(232, 85, 106, 0.5); }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vid-thumb-ph { font-size: 28px; color: var(--crimson); opacity: 0.8; }
.vid-dur { position: absolute; right: 8px; bottom: 8px; font-size: 11.5px; font-variant-numeric: tabular-nums;
  background: rgba(8, 3, 5, 0.78); color: #f6e7e6; padding: 2px 7px; border-radius: 6px; }
.vid-title { font-size: 14.5px; font-weight: 500; color: var(--text); }
.vid-sub { font-size: 12.5px; color: var(--faint); margin-top: 3px; }

.vid-card-wrap { position: relative; }
.vid-del { position: absolute; top: 8px; right: 8px; margin: 0; z-index: 2; }
.vid-del-btn {
  width: 30px; height: 30px; padding: 0; border: none; border-radius: 8px; cursor: pointer;
  background: rgba(8, 3, 5, 0.72); color: #f6e7e6; font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s, background .2s, color .2s;
}
.vid-card-wrap:hover .vid-del-btn, .vid-del-btn:focus-visible { opacity: 1; }
.vid-del-btn:hover { background: var(--crimson); color: #fff; }
@media (hover: none) { .vid-del-btn { opacity: 1; } }

.empty { border: 1px dashed var(--line); border-radius: 16px; padding: 48px; text-align: center; color: var(--muted); }
.empty p { margin: 0 0 18px; }

.back-link { display: inline-block; font-size: 13px; color: var(--muted); margin-bottom: 18px; transition: color .2s; }
.back-link:hover { color: var(--crimson); }
.player-card {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); background: #000; margin-bottom: 22px;
}
.detail-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.detail-desc { font-size: 14.5px; color: rgba(246, 231, 230, 0.85); line-height: 1.5; margin-top: 16px; }
.detail-tech { margin-top: 14px; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
