/* Orange V1 is independent of the preserved Midnight V2 skin. */
body.theme-orange-v1 {
  --bg: #111214;
  --bg2: #191a1d;
  --bg3: #202125;
  --bg4: #2a2b30;
  --line: #2a2c30;
  --line2: #3a3c41;
  --tx: #f5f5f4;
  --tx2: #c6c7cc;
  --tx3: #a2a4ad;
  --tx4: #858891;
  --acc: #ff922f;
  --acc2: #ffb76c;
  --acc-deep: #e47b21;
  --acc-ink: #19130d;
  --acc-soft: rgba(255, 146, 47, .12);
  --leaf: #b6d681;
  background: var(--bg);
  color: var(--tx);
}
.theme-orange-v1, .theme-orange-v1 * { letter-spacing: 0; }
.theme-orange-v1 ::selection { background: var(--acc); color: var(--acc-ink); }
.theme-orange-v1 :is(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 4px;
}
.theme-orange-v1 .wrap { max-width: 1600px; }

/* Brand and navigation */
.theme-orange-v1 .site-head {
  background: rgba(17, 18, 20, .97);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: blur(12px);
}
.theme-orange-v1 .head-row { min-width: 0; height: 80px; gap: 24px; }
.theme-orange-v1 .logo {
  flex-shrink: 0;
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  color: var(--acc);
}
.theme-orange-v1 .logo span { color: var(--tx); }
.theme-orange-v1 .logo-mark { width: 36px; height: 36px; margin-right: 10px; }
.theme-orange-v1 .tabs { align-self: stretch; align-items: stretch; gap: 4px; min-width: 0; }
.theme-orange-v1 .tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 10px;
  border-radius: 0;
  color: var(--tx3);
  font-size: 15px;
  transition: color .18s;
}
.theme-orange-v1 .tabs a:hover { color: var(--tx); }
.theme-orange-v1 .tabs a.on { color: var(--acc); background: transparent; font-weight: 700; }
.theme-orange-v1 .tabs a.on::after {
  left: 50%; right: auto; bottom: 15px;
  width: 18px; height: 3px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: var(--acc);
}
.theme-orange-v1 .search-box { flex-shrink: 0; }
.theme-orange-v1 .search-box input,
.theme-orange-v1 .search-box input:focus {
  width: 210px;
  height: 40px;
  padding: 0 40px 0 14px;
  border-radius: 6px;
  background: var(--bg2);
  color: var(--tx);
  font-size: 14px;
  transition: border-color .18s;
}
.theme-orange-v1 .search-box input::placeholder { color: var(--tx4); }
.theme-orange-v1 .search-go { width: 34px; height: 34px; right: 3px; }
.theme-orange-v1 .search-go svg { width: 18px; height: 18px; }
.theme-orange-v1 .me-link { color: var(--tx2); font-size: 14px; }
.theme-orange-v1 .me-link:hover, .theme-orange-v1 .me-link.on { color: var(--acc); }

/* Content stays unframed, with orange used for actions and selection. */
.theme-orange-v1 main.wrap { padding-top: 32px; padding-bottom: 64px; }
.theme-orange-v1 .sec { margin-bottom: 44px; }
.theme-orange-v1 .sec-title { min-height: 32px; margin-bottom: 20px; font-size: 23px; font-weight: 700; }
.theme-orange-v1 .sec-title::before {
  content: '';
  align-self: center;
  flex: 0 0 4px;
  height: 19px;
  border-radius: 2px;
  background: var(--acc);
}
.theme-orange-v1 .sec-more { color: var(--tx3); font-weight: 400; }
.theme-orange-v1 .sec-more:hover { color: var(--acc); }
.theme-orange-v1 .page-h1 { font-size: 27px; font-weight: 700; overflow-wrap: anywhere; }
.theme-orange-v1 .page-lead, .theme-orange-v1 .crumb { color: var(--tx3); }
.theme-orange-v1 .continue-strip {
  padding: 14px 0;
  margin-bottom: 28px;
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--line2) transparent;
}
.theme-orange-v1 .strip-label { font-size: 13px; color: var(--tx3); }
.theme-orange-v1 .strip-items { gap: 10px; }
.theme-orange-v1 .strip-items a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg2);
  font-size: 13px;
}
.theme-orange-v1 .strip-items a b { color: var(--tx); }
.theme-orange-v1 .strip-items a:hover { border-color: var(--acc); color: var(--acc); }

/* Posters */
.theme-orange-v1 :is(.grid, .grid-feat, .grid-browse) { gap: 24px; }
.theme-orange-v1 .card-cover {
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg2);
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}
.theme-orange-v1 .card:hover .card-cover {
  border-color: var(--acc);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
}
.theme-orange-v1 .card:hover .card-cover img { transform: scale(1.025); }
.theme-orange-v1 .card-line {
  top: 8px; left: 8px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 4px;
  color: #f5f5f4;
  background: rgba(17, 18, 20, .84);
}
.theme-orange-v1 .card-ep {
  right: 8px; bottom: 8px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(17, 18, 20, .88);
  color: #f5f5f4;
}
.theme-orange-v1 .card-playhint {
  width: 48px; height: 48px;
  border: 0;
  background: var(--acc);
  color: var(--acc-ink);
}
.theme-orange-v1 .card-title { margin-top: 11px; color: var(--tx); font-size: 15px; font-weight: 600; }
.theme-orange-v1 .card:hover .card-title { color: var(--acc2); }
.theme-orange-v1 .card-meta { margin-top: 4px; color: var(--tx4); font-size: 12px; }

/* Details, forms and interactive states */
.theme-orange-v1 .detail { gap: 28px; }
.theme-orange-v1 .detail-cover img { border-radius: 8px; border: 1px solid var(--line); }
.theme-orange-v1 .detail-actions { flex-wrap: wrap; }
.theme-orange-v1 :is(.btn-primary, .btn-ghost) { min-height: 42px; border-radius: 6px; font-size: 15px; }
.theme-orange-v1 .btn-primary {
  border: 1px solid var(--acc);
  background: var(--acc);
  color: var(--acc-ink);
  box-shadow: none;
  font-weight: 700;
}
.theme-orange-v1 .btn-primary:hover { background: var(--acc2); border-color: var(--acc2); filter: none; }
.theme-orange-v1 .btn-ghost { background: var(--bg2); border-color: var(--line2); }
.theme-orange-v1 .btn-ghost:hover, .theme-orange-v1 .btn-ghost.active { border-color: var(--acc); color: var(--acc); }
.theme-orange-v1 :is(.pill, .ep-link, .tag-chip, .load-more, .pager a, .vote-btn, .fb-type) {
  border-radius: 6px;
  background: var(--bg2);
  border: 1px solid var(--line);
}
.theme-orange-v1 :is(.pill.on, .pill:hover, .pill-line, .ep-link:hover, .pager a.on, .vote-btn.voted) {
  border-color: rgba(255, 146, 47, .5);
  background: var(--acc-soft);
  color: var(--acc2);
}
.theme-orange-v1 .pill-online { color: var(--leaf); background: rgba(182, 214, 129, .1); }
.theme-orange-v1 .filters { padding: 4px 0 12px; border-width: 0 0 1px; border-radius: 0; background: transparent; }
.theme-orange-v1 .filter-row { gap: 8px; padding: 10px 0; }
.theme-orange-v1 .wish-form { padding: 0 0 24px; border-width: 0 0 1px; border-radius: 0; background: transparent; }
.theme-orange-v1 :is(.ipt, .auth-tabs, .seg, .notice, .history-list a, .wish-item) { border-radius: 6px; }
.theme-orange-v1 .ipt { background: var(--bg2); border-color: var(--line2); color: var(--tx); }
.theme-orange-v1 .ipt::placeholder { color: var(--tx4); }
.theme-orange-v1 .ipt:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.theme-orange-v1 .auth-panel { border-radius: 8px; border-color: var(--line2); padding: 30px 26px; background: var(--bg2); }
.theme-orange-v1 .auth-tabs { background: var(--bg); }
.theme-orange-v1 .seg.on { background: var(--acc-soft); color: var(--acc2); }
.theme-orange-v1 .wish-item.top3 { border-color: rgba(255, 146, 47, .35); }
.theme-orange-v1 .cmt-avatar { background: var(--bg3); color: var(--leaf); }
.theme-orange-v1 .cmt-replies { border-radius: 6px; background: var(--bg2); }

/* Footer */
.theme-orange-v1 .site-foot { background: #0d0e10; border-top-color: var(--line); }
.theme-orange-v1 .foot-brand .logo { font-size: 25px; }
.theme-orange-v1 .foot-slogan { color: var(--tx3); }
.theme-orange-v1 .foot-social a { border-radius: 6px; background: var(--bg2); border-color: var(--line); }
.theme-orange-v1 .foot-social a:hover { color: var(--acc); background: var(--acc-soft); border-color: var(--acc); }
.theme-orange-v1 .foot-col b, .theme-orange-v1 .foot-road b { color: var(--tx3); }
.theme-orange-v1 .foot-road { border-width: 0 0 0 1px; border-radius: 0; padding: 0 0 0 24px; background: transparent; }
.theme-orange-v1 .road-pill, .theme-orange-v1 .road-btn { border-radius: 6px; overflow-wrap: anywhere; }
.theme-orange-v1 .road-pill.main, .theme-orange-v1 .road-btn--gold {
  border-color: rgba(255, 146, 47, .45);
  background: var(--acc-soft);
  color: var(--acc2);
}

@media (max-width: 1300px) and (min-width: 1101px) {
  .theme-orange-v1 .head-row { gap: 16px; }
  .theme-orange-v1 .tabs { gap: 0; }
  .theme-orange-v1 .tabs a { padding: 0 8px; font-size: 14px; }
  .theme-orange-v1 .search-box input, .theme-orange-v1 .search-box input:focus { width: 180px; }
}
@media (max-width: 1100px) {
  .theme-orange-v1 .head-row { height: auto; flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 0; }
  .theme-orange-v1 .logo { order: 1; }
  .theme-orange-v1 .search-box { order: 2; }
  .theme-orange-v1 .me-link { order: 3; }
  .theme-orange-v1 .tabs { order: 4; width: 100%; flex-wrap: wrap; overflow: visible; gap: 0 12px; border-top: 1px solid var(--line); }
  .theme-orange-v1 .tabs a { min-height: 46px; padding: 0 8px; }
  .theme-orange-v1 .tabs a.on::after { bottom: 3px; }
}
@media (max-width: 960px) {
  .theme-orange-v1 .foot-road { border-width: 1px 0 0; padding: 22px 0 0; }
}
@media (max-width: 640px) {
  .theme-orange-v1 .wrap { padding-left: 16px; padding-right: 16px; }
  .theme-orange-v1 .head-row { column-gap: 10px; }
  .theme-orange-v1 .logo { font-size: 21px; }
  .theme-orange-v1 .logo-mark { width: 32px; height: 32px; margin-right: 7px; }
  .theme-orange-v1 .search-box { flex: 1; min-width: 68px; max-width: 200px; }
  .theme-orange-v1 .search-box input, .theme-orange-v1 .search-box input:focus { width: 100%; min-width: 0; height: 36px; padding-left: 10px; font-size: 12px; }
  .theme-orange-v1 .me-link { padding: 8px 0; font-size: 13px; }
  .theme-orange-v1 .tabs { gap: 0 6px; padding-top: 3px; padding-bottom: 5px; }
  .theme-orange-v1 .tabs a { min-height: 38px; padding: 0 7px; font-size: 14px; }
  .theme-orange-v1 main.wrap { padding-top: 24px; padding-bottom: 44px; }
  .theme-orange-v1 .sec { margin-bottom: 32px; }
  .theme-orange-v1 .sec-title { font-size: 20px; margin-bottom: 16px; gap: 8px; }
  .theme-orange-v1 .page-h1 { font-size: 23px; }
  .theme-orange-v1 :is(.grid, .grid-feat, .grid-browse) { gap: 18px 10px; }
  .theme-orange-v1 .card-cover { border-radius: 6px; }
  .theme-orange-v1 .card-title { font-size: 14px; margin-top: 8px; }
  .theme-orange-v1 .card-meta { font-size: 11px; }
  .theme-orange-v1 .card-line { top: 5px; left: 5px; padding: 2px 5px; font-size: 10px; }
  .theme-orange-v1 .card-ep { right: 5px; bottom: 5px; padding: 2px 5px; font-size: 10px; }
  .theme-orange-v1 .detail { gap: 16px; }
  .theme-orange-v1 .detail-actions { gap: 8px; }
  .theme-orange-v1 .detail-actions :is(.btn-primary, .btn-ghost) { padding: 8px 12px; font-size: 13px; }
  .theme-orange-v1 .filter-label { width: 100%; }
  .theme-orange-v1 .auth-wrap { padding-left: 0; padding-right: 0; }
  .theme-orange-v1 .auth-panel { padding: 26px 20px; }
  .theme-orange-v1 .foot-grid { gap: 24px; }
}
@media (max-width: 360px) {
  .theme-orange-v1 .wrap { padding-left: 12px; padding-right: 12px; }
  .theme-orange-v1 .tabs { column-gap: 3px; }
  .theme-orange-v1 .tabs a { padding: 0 5px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-orange-v1 *, .theme-orange-v1 *::before, .theme-orange-v1 *::after { transition: none !important; }
}
