:root {
  color-scheme: dark;
  --bg: #111412;
  --sidebar: #161a17;
  --panel: #1b201c;
  --panel-light: #242a25;
  --border: #2c332d;
  --text: #f2f4ed;
  --muted: #9da79c;
  --accent: #d9f778;
  --accent-dark: #1e2c0d;
  --danger: #ff9b94;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  font-size: 16px;
}
.operations-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}
.operations-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.operations-layout > div,
.operations-layout > aside {
  min-width: 0;
}
.operations-layout p.muted,
.operations-note p {
  font-size: 14px;
  margin: 10px 0 18px;
}
.operations-layout .form-grid {
  gap: 0 16px;
}
.mapping-details {
  margin: 22px 0;
}
.mapping-details summary,
.operations-note summary {
  cursor: pointer;
}
.mapping-details select {
  max-width: 280px;
  width: 100%;
  font-size: 14px;
}
.collection-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 22px 0;
}
.collection-metrics span {
  color: var(--muted);
  font-size: 14px;
}
.collection-metrics strong {
  color: var(--text);
  font-size: 22px;
  margin-left: 6px;
}
.collection-progress {
  width: 100%;
  height: 8px;
  border: 0;
  accent-color: var(--accent);
  margin-bottom: 15px;
}
.collection-logs {
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #121a10;
  padding: 18px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.8;
  color: #b8c8ab;
}
.url-preview {
  margin: 20px 0;
}
.url-preview dt {
  font-size: 14px;
  color: var(--muted);
  margin: 15px 0 7px;
}
.url-preview dd {
  margin: 0;
  padding: 12px;
  background: #121a10;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 14px;
}
.config-path {
  display: block;
  overflow-wrap: anywhere;
  padding: 12px;
  background: #121a10;
  font-size: 14px;
  margin-top: 12px;
}
.operations-note {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 25px;
}
.operations-note h3 {
  font-size: 17px;
}
.success-message {
  color: var(--accent);
  font-size: 14px;
  margin-top: 20px;
}
.episode-derived {
  grid-column: 1/-1;
  grid-row: 2;
  display: flex;
  gap: 12px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
}
.episode-derived code {
  overflow-wrap: anywhere;
  min-width: 0;
}
.admin-mode .sidebar nav {
  overflow-y: auto;
  min-height: 0;
  margin-bottom: 0;
}
.admin-mode .sidebar .brand {
  margin-bottom: 28px;
}
@media (max-width: 1300px) {
  .operations-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .episode-derived {
    grid-row: 3;
  }
}
@media (max-width: 1050px) {
  .operations-layout {
    grid-template-columns: 1fr;
  }
  .operations-layout > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}
@media (max-width: 760px) {
  .operations-layout > aside {
    display: block;
  }
  .collection-metrics {
    gap: 14px;
  }
  .collection-metrics strong {
    font-size: 19px;
  }
  .operations-actions .button {
    white-space: normal;
  }
  .operations-layout .form-grid {
    grid-template-columns: 1fr;
  }
  .episode-derived {
    font-size: 12px;
  }
  .collection-logs {
    font-size: 12px;
    padding: 12px;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
a,
button,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button {
  border: 0;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
}
h1 {
  font-size: 30px;
  letter-spacing: 0.02em;
}
h2 {
  font-size: 22px;
}
small {
  font-size: 13px;
}
p {
  line-height: 1.8;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.muted {
  color: var(--muted);
}
.icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  vertical-align: middle;
}
.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 200;
  background: var(--accent);
  color: #111;
  padding: 14px;
}
.skip:focus {
  top: 10px;
}
.loading {
  min-height: 400px;
  display: grid;
  place-content: center;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 220px;
  padding: 34px 22px 24px;
  background: var(--sidebar);
  border-right: 1px solid #252b25;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 6px 41px;
  letter-spacing: 0.12em;
  font-size: 23px;
  font-weight: 700;
  white-space: nowrap;
}
.brand img {
  width: 38px;
  height: 38px;
}
.brand small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 2px;
}
.nav-caption {
  color: #778375;
  font-size: 12px;
  letter-spacing: 0.14em;
  margin: 0 15px 12px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 34px;
}
.nav-link {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 13px 14px;
  color: #a8b1a5;
  border-radius: 8px;
  font-size: 15px;
  transition: 0.15s;
}
.nav-link:hover {
  color: var(--text);
  background: #222922;
}
.nav-link.active {
  background: var(--accent);
  color: #202b16;
  font-weight: 600;
}
.nav-link .icon {
  width: 19px;
  height: 19px;
}
.sidebar-note {
  margin: 6px 15px;
  color: #8b9885;
}
.sidebar-note > span {
  font-size: 12px;
  letter-spacing: 0.12em;
}
.sidebar-note p {
  font-size: 21px;
  line-height: 1.85;
  letter-spacing: 0.08em;
  margin-top: 12px;
  font-weight: 300;
}
.note-line {
  height: 1px;
  background: #3b4934;
  width: 36px;
  margin-top: 23px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 28px;
}
.sidebar-bottom > span {
  display: block;
  color: #687362;
  font-size: 9px;
  letter-spacing: 0.15em;
  margin: 18px 14px 0;
}
.workspace {
  margin-left: 220px;
  min-width: 0;
}
.topbar {
  height: 94px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 42px;
  border-bottom: 1px solid #222822;
  background: var(--bg);
}
.topbar-label {
  font-size: 13px;
  white-space: nowrap;
}
.topbar-label > .muted {
  font-size: 12px;
}
.topbar-divider {
  color: #485342;
  padding: 0 12px;
}
.searchbox {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1d231e;
  border: 1px solid #30392f;
  border-radius: 7px;
  padding: 9px 13px;
  max-width: 320px;
  width: 28%;
}
.searchbox .icon {
  width: 17px;
  color: #8c9885;
}
.searchbox input {
  border: none;
  outline: 0;
  background: none;
  padding: 0;
  width: 100%;
  font-size: 12px;
  min-width: 0;
}
.searchbox input::placeholder {
  color: #84907e;
}
.searchbox kbd {
  color: #8d9b84;
  font-size: 16px;
}
.user-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  white-space: nowrap;
  background: none;
  color: #dbe1d5;
}
.user-pill .icon {
  width: 17px;
}
.mobile-menu,
.mobile-overlay {
  display: none;
}
.home-content {
  padding: 0 42px 30px;
}
.hero {
  height: 420px;
  position: relative;
  overflow: hidden;
  border-radius: 11px;
  margin-top: 24px;
  background: #22362f;
}
.hero-image {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  object-position: center 57%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(11, 24, 20, 0.95) 0%,
      rgba(11, 24, 20, 0.62) 42%,
      rgba(11, 24, 20, 0.08) 100%
    ),
    linear-gradient(0deg, rgba(9, 21, 17, 0.88), transparent 50%);
}
.hero-copy {
  position: absolute;
  left: 42px;
  top: 40px;
  max-width: 490px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.tiny-line {
  width: 20px;
  height: 1px;
  background: var(--accent);
}
.hero-quality {
  margin-left: 4px;
  color: #d5dfc9;
  font-size: 10px;
  letter-spacing: 0.1em;
  border: 1px solid #86947a;
  padding: 2px 6px;
  border-radius: 3px;
}
.hero-copy h1 {
  font-size: 53px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
  margin: 15px 0;
}
.hero-meta {
  font-size: 12px;
  display: flex;
  gap: 14px;
  color: #b7c4ad;
}
.hero-meta span + span:before {
  content: "·";
  padding-right: 14px;
  color: #8a9b7b;
}
.hero-copy > p {
  color: #b2c0a9;
  font-size: 13px;
  line-height: 1.9;
  margin-top: 17px;
  max-width: 410px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 12px 21px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button .icon {
  width: 17px;
  height: 17px;
}
.button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.button.primary {
  color: #1a2710;
  background: var(--accent);
}
.button.secondary {
  background: #272f27;
  border-color: #3a4537;
  color: #e2e9db;
}
.button.glass {
  border-color: #738267;
  background: #14211570;
  color: #e5ecdd;
}
.button.small {
  padding: 8px 12px;
  font-size: 13px;
}
.button.full,
.full {
  width: 100%;
}
.hero-bottom {
  position: absolute;
  left: 42px;
  right: 30px;
  bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #b3c3a7;
}
.hero-bottom > span:last-child {
  font-size: 16px;
  color: #e9f4e1;
}
.hero-bottom i {
  font-size: 11px;
  color: #a7b49b;
  font-style: normal;
}
.hero-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}
.hero-dots button {
  height: 5px;
  width: 5px;
  border-radius: 10px;
  background: #a9b59c88;
  padding: 0;
  position: relative;
}
.hero-dots button:before {
  content: "";
  position: absolute;
  inset: -10px -4px;
}
.hero-dots button.active {
  width: 24px;
  background: var(--accent);
}
.genre-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}
.genre {
  background: #202720;
  padding: 9px 20px;
  white-space: nowrap;
  font-size: 13px;
  border-radius: 5px;
  color: #b5c1ad;
  flex: 1;
  text-align: center;
}
.genre .icon {
  width: 14px;
  height: 14px;
  margin-right: 7px;
}
.genre:hover {
  background: #303c2a;
  color: #fff;
}
.genre.active {
  color: var(--accent);
  background: #2b3523;
}
.notice {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #1b221a;
  border: 1px solid #303a2a;
  border-radius: 5px;
  padding: 9px 13px;
  margin-top: 20px;
  font-size: 11px;
  color: #93a087;
}
.notice > span {
  color: #c9d9b8;
  border: 1px solid #576747;
  border-radius: 3px;
  font-size: 10px;
  padding: 0 5px;
  white-space: nowrap;
}
.notice p {
  line-height: 1.6;
}
.shelf {
  margin: 30px 0 40px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-heading > div {
  display: flex;
  align-items: center;
  gap: 18px;
}
.section-heading h2 {
  font-size: 21px;
  letter-spacing: 0.03em;
}
.section-heading > div > span {
  font-size: 11px;
  color: #7f8e77;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a7b59a;
  font-size: 12px;
}
.text-link:hover {
  color: var(--accent);
}
.text-link .icon {
  width: 13px;
  height: 13px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 25px 18px;
}
.video-card {
  min-width: 0;
}
.poster {
  aspect-ratio: 2/2.85;
  position: relative;
  display: block;
  border-radius: 7px;
  overflow: hidden;
  background: #273326;
  isolation: isolate;
}
.poster img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition:
    transform 0.5s,
    filter 0.4s;
  filter: brightness(0.85);
}
.poster:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #07110d0d 20%,
    #07110d55 46%,
    #07110ddb 100%
  );
  z-index: 0;
}
.poster:hover img {
  transform: scale(1.055);
  filter: brightness(1.05);
}
.poster-label {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 1;
  border-radius: 3px;
  background: var(--accent);
  color: #253616;
  font-size: 10px;
  padding: 2px 7px;
}
.poster-title {
  position: absolute;
  z-index: 1;
  left: 12px;
  right: 12px;
  bottom: 39px;
  text-align: center;
  text-shadow: 0 2px 20px #000;
}
.poster-title small {
  font-size: 6px;
  letter-spacing: 0.18em;
  opacity: 0.7;
  display: block;
  margin-bottom: 7px;
}
.poster-title strong {
  font-family: "STSong", "SimSun", serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.4;
  display: block;
}
.poster-status {
  position: absolute;
  bottom: 10px;
  left: 12px;
  right: 12px;
  text-align: right;
  font-size: 10px;
  z-index: 2;
  color: #e0e9d9;
}
.poster-play {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  color: #192213;
  background: var(--accent);
  z-index: 2;
  opacity: 0;
  transition: 0.2s;
}
.poster:hover .poster-play {
  opacity: 1;
}
.poster-play svg {
  width: 18px;
  height: 18px;
  margin-left: 3px;
}
.card-title {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 14px;
}
.card-title > a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-title > a:hover {
  color: var(--accent);
}
.save-button {
  margin-left: auto;
  background: none;
  color: #84917c;
  padding: 2px;
}
.save-button .icon {
  width: 16px;
  height: 16px;
}
.save-button:hover {
  color: var(--accent);
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #819077;
  font-size: 10px;
  margin-top: 4px;
}
.card-views {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 3px;
}
.card-views .icon {
  width: 10px;
  height: 10px;
}
.rank-number {
  position: absolute;
  z-index: 2;
  top: 5px;
  right: 10px;
  color: var(--accent);
  font-size: 40px;
  font-weight: 700;
  font-style: italic;
  text-shadow: 0 2px 5px #000;
}
.editorial {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(110deg, #273523, #19221b);
  border: 1px solid #384932;
  border-radius: 10px;
  padding: 35px;
  margin: 10px 0 24px;
  gap: 24px;
}
.editorial h2 {
  margin: 8px 0;
  font-size: 29px;
  letter-spacing: 0.1em;
}
.editorial p {
  font-size: 12px;
  color: #9baa8f;
}
.editorial .eyebrow {
  font-size: 9px;
}
footer {
  border-top: 1px solid #272e25;
  margin: 0 42px;
  padding: 25px 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: #7b8972;
}
footer > div {
  display: flex;
  gap: 20px;
}
.page-content {
  padding: 30px 42px 50px;
  min-height: calc(100vh - 190px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.page-heading p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}
.filter-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 30px;
}
.filter-row {
  display: flex;
  gap: 24px;
  align-items: baseline;
  margin-bottom: 16px;
  font-size: 14px;
}
.filter-row > span {
  color: var(--muted);
  white-space: nowrap;
}
.filter-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  display: block;
  border-radius: 4px;
  padding: 5px 12px;
  color: #b5c0ad;
}
.filter-chip.active {
  background: #364127;
  color: var(--accent);
}
.filter-selects {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.filter-selects label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
}
.filter-selects select {
  min-width: 100px;
  padding: 6px 30px 6px 10px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 25px;
  align-items: center;
  margin-top: 35px;
  font-size: 14px;
  color: var(--muted);
}
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 75px 20px;
  min-height: 350px;
}
.empty > .icon {
  height: 52px;
  width: 52px;
  color: #7d8c6b;
  margin-bottom: 22px;
}
.empty p {
  color: var(--muted);
  margin: 12px 0 25px;
  font-size: 14px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #92a085;
  font-size: 13px;
  margin: 0 0 24px;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.detail-hero {
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #35412e;
  padding: 35px;
  gap: 35px;
  isolation: isolate;
}
.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(45px);
  opacity: 0.17;
  z-index: -1;
}
.detail-poster {
  width: 220px;
  flex-shrink: 0;
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: 7px;
}
.detail-poster img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.detail-copy {
  padding: 12px 0;
  max-width: 720px;
}
.detail-copy h1 {
  font-size: 38px;
  margin: 12px 0 15px;
}
.detail-meta {
  font-size: 13px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #b9c6ae;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}
.tag {
  font-size: 12px;
  border: 1px solid #57654b;
  border-radius: 4px;
  padding: 3px 9px;
  color: #c7d8b8;
}
.detail-copy p {
  font-size: 14px;
  color: #a9b79e;
  white-space: pre-wrap;
}
.detail-copy > small {
  display: block;
  margin-top: 25px;
}
.episodes {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 25px;
  margin: 30px 0;
}
.episodes h2 {
  font-size: 20px;
}
.episodes h2 span {
  font-size: 13px;
  font-weight: 400;
  margin-left: 8px;
}
.episodes > .section-heading > span {
  font-size: 13px;
}
.source-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--accent);
  margin: 20px 0 15px;
}
.source-label .icon {
  width: 15px;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.episode {
  border: 1px solid #374331;
  background: #252e21;
  padding: 10px 8px;
  text-align: center;
  font-size: 13px;
  border-radius: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.episode:hover,
.episode.active {
  color: #1f2b13;
  background: var(--accent);
  border-color: var(--accent);
}
.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
}
.video-stage {
  position: relative;
  background: #000;
  border-radius: 9px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
video {
  width: 100%;
  height: 100%;
  display: block;
}
.player-error {
  position: absolute;
  inset: 0;
  background: #0d110ded;
  padding: 40px;
  text-align: center;
  place-content: center;
}
.player-error:not([hidden]) {
  display: grid;
}
.player-error p {
  margin-bottom: 15px;
}
.player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  background: #20281d;
  padding: 14px;
  border-radius: 0 0 7px 7px;
}
.player-toolbar > span,
.player-toolbar > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
.player-toolbar .icon {
  width: 14px;
}
.player-toolbar .check {
  font-size: 12px;
  margin: 0;
  gap: 5px;
}
.player-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
  gap: 20px;
}
.player-title h1 {
  font-size: 27px;
}
.player-title p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.player-main > p {
  font-size: 12px;
  margin-top: 12px;
}
.playlist .episodes {
  margin: 0;
  height: 100%;
  max-height: 600px;
  overflow: auto;
  padding: 20px;
}
.playlist .episode-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.playlist .section-heading {
  display: block;
}
.playlist .episodes h2 {
  font-size: 18px;
}
.tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}
.tabs a {
  padding: 12px 3px;
  color: var(--muted);
}
.tabs a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.resume-link {
  display: block;
  font-size: 12px;
  color: var(--accent);
  margin-top: 10px;
}
.panel {
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-bottom: 24px;
}
.panel > h2 {
  font-size: 20px;
  margin-bottom: 20px;
}
.panel > p {
  font-size: 14px;
  margin-bottom: 20px;
}
.narrow {
  max-width: 740px;
}
.prose {
  max-width: 900px;
}
.prose h2 {
  margin: 24px 0 10px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  margin-bottom: 15px;
  color: #b2bea7;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #bdc9b3;
  margin-bottom: 20px;
}
input,
select,
textarea {
  border: 1px solid #3b4734;
  border-radius: 5px;
  background: #141b12;
  color: var(--text);
  padding: 11px 12px;
  min-width: 0;
  max-width: 100%;
  outline: 0;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px #d9f77815;
}
input::placeholder,
textarea::placeholder {
  color: #6c7b61;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%239eae92' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 16px;
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.check input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.error {
  color: var(--danger);
  font-size: 14px;
  min-height: 1px;
  margin: 10px 0 20px;
}
.link {
  background: none;
  padding: 0;
  color: #c1d6ac;
  font-size: 13px;
  text-align: left;
}
.link.full {
  text-align: center;
  margin-top: 20px;
}
.link:hover {
  color: var(--accent);
}
.danger {
  color: var(--danger);
}
.icon-button {
  background: none;
  padding: 6px;
  color: #bdcbb1;
  display: inline-grid;
  place-content: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}
.stat-card {
  background: linear-gradient(110deg, #273220, #1b2419);
  border: 1px solid #38452e;
  padding: 23px;
  border-radius: 9px;
}
.stat-card > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #a9bc9b;
}
.stat-card strong {
  display: block;
  font-size: 40px;
  font-weight: 500;
  margin: 12px 0 6px;
}
.stat-card small {
  font-size: 12px;
  color: #809271;
}
.stat-card .icon {
  color: var(--accent);
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}
th {
  color: #90a280;
  font-size: 12px;
  font-weight: 500;
  padding: 14px;
  border-bottom: 1px solid var(--border);
  background: #182015;
}
td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
}
tr:last-child td {
  border: 0;
}
td small {
  display: block;
  color: #7e916e;
  font-size: 12px;
  margin-top: 6px;
}
.table-video {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 180px;
}
.table-video img {
  width: 38px;
  height: 51px;
  object-fit: cover;
  border-radius: 4px;
}
.table-video strong {
  font-weight: 500;
}
.badge {
  font-size: 12px;
  padding: 4px 8px;
  background: #343b2e;
  color: #acb8a0;
  border-radius: 4px;
}
.badge.green {
  color: var(--accent);
  background: #344423;
}
.table-actions {
  display: flex;
  gap: 14px;
  font-size: 13px;
}
.table-actions a {
  color: #c1d6ac;
}
.admin-help {
  border: 1px dashed #51613e;
  border-radius: 8px;
  padding: 28px;
}
.admin-help h3 {
  font-size: 18px;
}
.admin-help p {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0;
}
.admin-search {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}
.admin-search input {
  flex: 1;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}
.editor-layout > aside .panel > p {
  font-size: 12px;
}
.cover-preview {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 5px;
}
.episode-edit {
  display: grid;
  grid-template-columns: 60px 100px 100px minmax(140px, 1fr) 24px;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.episode-edit label {
  font-size: 11px;
  margin: 0;
  gap: 5px;
}
.episode-edit input {
  font-size: 12px;
  width: 100%;
  padding: 8px;
}
.episode-edit > .icon-button {
  font-size: 24px;
  margin-top: 18px;
}
.batch-panel {
  margin-top: 20px;
  font-size: 14px;
}
.batch-panel summary {
  cursor: pointer;
  color: var(--accent);
  margin-bottom: 15px;
}
.batch-panel p {
  margin-bottom: 10px;
  font-size: 12px;
}
.batch-panel input,
.batch-panel textarea {
  width: 100%;
  margin-bottom: 12px;
}
.admin-mode .sidebar nav {
  gap: 6px;
}
.admin-mode .sidebar-note {
  display: none;
}
.admin-mode .sidebar .brand {
  font-size: 21px;
}
.admin-mode .page-content {
  padding-top: 35px;
}
dialog {
  border: 1px solid #465837;
  border-radius: 13px;
  background: #1b2517;
  color: var(--text);
  padding: 38px;
  width: 440px;
  max-width: calc(100vw - 30px);
  box-shadow: 0 20px 100px #0008;
}
dialog::backdrop {
  background: #050b06b8;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 29px;
  margin: 12px 0 8px;
}
dialog .muted {
  font-size: 13px;
  margin-bottom: 24px;
}
.dialog-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 26px;
  background: none;
  color: #afc19e;
}
#toast {
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--accent);
  color: #1a2910;
  padding: 13px 24px;
  border-radius: 7px;
  box-shadow: 0 8px 35px #0005;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  font-size: 14px;
  max-width: 85vw;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1700px) {
  .home-content,
  .page-content {
    max-width: 1640px;
    margin: auto;
  }
  .hero {
    height: 500px;
  }
  .hero-copy {
    top: 64px;
    left: 55px;
  }
  .hero-copy h1 {
    font-size: 64px;
  }
  .hero-copy > p {
    font-size: 15px;
  }
  .video-grid {
    gap: 25px;
  }
  .poster-title strong {
    font-size: 32px;
  }
}
@media (max-width: 1300px) {
  .sidebar {
    width: 195px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .workspace {
    margin-left: 195px;
  }
  .brand {
    font-size: 21px;
    gap: 9px;
  }
  .brand img {
    width: 33px;
  }
  .topbar,
  .home-content,
  .page-content {
    padding-left: 28px;
    padding-right: 28px;
  }
  .topbar-label > .muted,
  .topbar-divider {
    display: none;
  }
  .searchbox {
    width: 36%;
  }
  .video-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 16px;
  }
  .shelf .video-grid > .video-card:nth-child(6) {
    display: none;
  }
  .hero-copy {
    left: 30px;
  }
  .hero-bottom {
    left: 30px;
  }
  .genre {
    padding: 9px 14px;
    font-size: 12px;
  }
  .genre-strip {
    gap: 9px;
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .episode-edit {
    grid-template-columns: 55px 1fr 1fr 24px;
  }
  .episode-edit > label:nth-child(4) {
    grid-column: 1/4;
    grid-row: 2;
  }
  .episode-edit > button {
    grid-column: 4;
    grid-row: 1/3;
  }
  .player-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
  }
  .player-toolbar {
    flex-wrap: wrap;
  }
  .section-heading > div > span {
    display: none;
  }
  footer {
    margin: 0 28px;
  }
}
@media (max-width: 1050px) {
  .topbar-label {
    display: none;
  }
  .searchbox {
    width: 60%;
    margin-left: 0;
    max-width: 500px;
  }
  .user-pill {
    margin-left: auto;
  }
  .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .shelf .video-grid > .video-card:nth-child(5) {
    display: none;
  }
  .hero {
    height: 400px;
  }
  .hero-copy h1 {
    font-size: 45px;
  }
  .hero-copy {
    max-width: 390px;
  }
  .genre-strip {
    gap: 10px;
  }
  .genre {
    flex: none;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .editor-layout > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .detail-poster {
    width: 170px;
  }
  .detail-hero {
    padding: 25px;
    gap: 25px;
  }
  .detail-copy h1 {
    font-size: 32px;
  }
  .player-layout {
    grid-template-columns: 1fr;
  }
  .playlist .episodes {
    max-height: 280px;
  }
  .playlist .episode-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .filter-selects {
    gap: 14px;
    flex-wrap: wrap;
  }
  .filter-selects label {
    font-size: 12px;
  }
  .editorial h2 {
    font-size: 24px;
  }
  footer {
    flex-wrap: wrap;
  }
  .topbar {
    height: 82px;
  }
  .hero-copy > p {
    max-width: 340px;
  }
  .stats-grid {
    gap: 14px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 220px;
    z-index: 60;
  }
  .workspace {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-grid;
  }
  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: #0009;
    z-index: 55;
  }
  .menu-open .sidebar {
    transform: translateX(0);
  }
  .menu-open .mobile-overlay {
    display: block;
  }
  .topbar {
    height: 72px;
    gap: 14px;
    padding: 0 17px;
  }
  .searchbox {
    width: auto;
    flex: 1;
    padding: 9px 10px;
  }
  .searchbox input {
    font-size: 12px;
  }
  .searchbox kbd {
    display: none;
  }
  .user-pill {
    font-size: 12px;
    gap: 5px;
  }
  .user-pill span {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .user-pill .icon {
    width: 16px;
  }
  .home-content {
    padding: 0 18px 20px;
  }
  .hero {
    margin-top: 15px;
    height: 385px;
  }
  .hero-image {
    object-position: 62% center;
  }
  .hero-shade {
    background:
      linear-gradient(90deg, #0b1814d9, #0b181430),
      linear-gradient(0deg, #091511f0, transparent 70%);
  }
  .hero-copy {
    left: 24px;
    right: 20px;
    top: 30px;
    max-width: none;
  }
  .hero-copy h1 {
    font-size: 40px;
    margin: 19px 0 13px;
    letter-spacing: 0.06em;
  }
  .hero-copy > p {
    font-size: 12px;
    max-width: 330px;
    line-height: 1.8;
  }
  .eyebrow {
    font-size: 10px;
  }
  .hero-meta {
    font-size: 11px;
    gap: 10px;
  }
  .hero-meta span + span:before {
    padding-right: 10px;
  }
  .hero-actions {
    gap: 10px;
    margin-top: 23px;
  }
  .button {
    font-size: 13px;
    padding: 11px 16px;
  }
  .hero-bottom {
    left: 24px;
    right: 24px;
    bottom: 21px;
  }
  .hero-bottom > span:first-child {
    font-size: 9px;
    max-width: 130px;
  }
  .hero-bottom > span:last-child {
    display: none;
  }
  .genre-strip {
    padding: 18px 0;
  }
  .genre {
    padding: 8px 15px;
    font-size: 12px;
  }
  .notice {
    margin-top: 15px;
    font-size: 10px;
    gap: 9px;
    padding: 9px;
  }
  .notice p {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .shelf {
    margin: 25px 0 30px;
  }
  .section-heading {
    gap: 10px;
    margin-bottom: 16px;
  }
  .section-heading h2 {
    font-size: 20px;
  }
  .text-link {
    font-size: 11px;
  }
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 23px 12px;
  }
  .shelf .video-grid > .video-card:nth-child(5),
  .shelf .video-grid > .video-card:nth-child(6) {
    display: block;
  }
  .poster-title {
    left: 8px;
    right: 8px;
    bottom: 30px;
  }
  .poster-title strong {
    font-size: 21px;
  }
  .poster-title small {
    font-size: 5px;
    letter-spacing: 0.09em;
  }
  .poster-status {
    font-size: 9px;
    left: 7px;
    right: 7px;
  }
  .poster-label {
    left: 6px;
    top: 6px;
    font-size: 9px;
    padding: 1px 5px;
  }
  .card-title {
    font-size: 12px;
    margin-top: 8px;
  }
  .card-meta {
    font-size: 9px;
    gap: 4px;
  }
  .card-views {
    display: none;
  }
  .save-button .icon {
    height: 14px;
    width: 14px;
  }
  .editorial {
    display: block;
    padding: 25px;
  }
  .editorial h2 {
    font-size: 23px;
  }
  .editorial p {
    font-size: 11px;
  }
  .editorial .button {
    margin-top: 19px;
  }
  footer {
    margin: 0 18px;
    font-size: 10px;
    gap: 15px;
    line-height: 1.8;
  }
  footer > span > .muted {
    display: none;
  }
  .page-content,
  .admin-mode .page-content {
    padding: 24px 18px 35px;
  }
  .page-heading {
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .filter-panel {
    padding: 15px;
  }
  .filter-row {
    font-size: 12px;
    gap: 10px;
  }
  .filter-chip {
    padding: 5px 9px;
  }
  .filter-row > div {
    gap: 4px;
  }
  .filter-selects {
    gap: 12px;
  }
  .filter-selects select {
    min-width: 0;
    font-size: 12px;
  }
  .filter-selects label {
    flex: 1;
  }
  .filter-selects label select {
    width: 100%;
  }
  .filter-selects > .button {
    font-size: 12px;
  }
  .filter-selects > a {
    font-size: 12px;
  }
  .detail-hero {
    padding: 22px;
    display: block;
  }
  .detail-poster {
    width: 100px;
    float: left;
    margin: 0 20px 15px 0;
  }
  .detail-copy {
    padding: 0;
  }
  .detail-copy h1 {
    font-size: 28px;
    min-height: 52px;
    margin-top: 8px;
  }
  .detail-copy > .eyebrow {
    font-size: 9px;
    letter-spacing: 0.05em;
    padding-top: 4px;
  }
  .detail-meta {
    font-size: 11px;
    gap: 7px;
  }
  .detail-copy .tags {
    clear: both;
    padding-top: 16px;
    margin-bottom: 14px;
  }
  .detail-copy p {
    font-size: 13px;
  }
  .detail-copy > small {
    font-size: 11px;
  }
  .episodes {
    padding: 18px;
    margin: 24px 0;
  }
  .episode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .episodes h2 {
    font-size: 18px;
  }
  .episodes h2 span {
    font-size: 11px;
  }
  .breadcrumb {
    font-size: 11px;
    gap: 9px;
  }
  .playlist .episode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .player-title {
    gap: 12px;
  }
  .player-title h1 {
    font-size: 24px;
  }
  .player-toolbar {
    font-size: 11px;
    padding: 12px;
  }
  .player-toolbar > div {
    gap: 14px;
  }
  .player-title p {
    font-size: 11px;
  }
  .player-title .button {
    padding: 10px 12px;
    font-size: 12px;
  }
  .player-layout {
    gap: 22px;
  }
  .player-main > p {
    font-size: 11px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-card {
    padding: 18px;
  }
  .stat-card strong {
    font-size: 33px;
  }
  .stat-card > span {
    font-size: 12px;
  }
  .stat-card small {
    font-size: 10px;
  }
  .panel {
    padding: 20px;
  }
  .panel > h2 {
    font-size: 18px;
  }
  .panel > p {
    font-size: 13px;
  }
  .panel .section-heading h2 {
    font-size: 17px;
  }
  .admin-search {
    flex-wrap: wrap;
    gap: 10px;
  }
  .admin-search input {
    flex-basis: 100%;
  }
  .admin-search select {
    flex: 1;
  }
  .editor-layout > aside {
    display: block;
  }
  .episode-edit {
    gap: 9px;
    grid-template-columns: 50px 1fr 1fr 24px;
  }
  .episode-edit label {
    font-size: 10px;
  }
  .episode-edit input {
    font-size: 12px;
  }
  .form-grid {
    gap: 0 15px;
  }
  .two-columns {
    gap: 0;
  }
  .editor-layout {
    gap: 0;
  }
  .panel label {
    font-size: 13px;
  }
  .panel input,
  .panel select,
  .panel textarea {
    font-size: 14px;
  }
  .panel .episode-edit input {
    font-size: 12px;
  }
  .prose p {
    font-size: 13px;
  }
  .prose h2 {
    font-size: 18px;
  }
  .empty {
    padding: 50px 10px;
    min-height: 300px;
  }
  .empty h2 {
    font-size: 22px;
  }
  .empty p {
    font-size: 13px;
  }
  .pagination {
    gap: 12px;
    font-size: 12px;
  }
  .pagination .button {
    padding: 9px 12px;
  }
  dialog {
    padding: 30px 25px;
  }
  .rank-number {
    font-size: 30px;
  }
  .admin-help {
    padding: 22px;
  }
  .admin-help p {
    font-size: 13px;
  }
  .admin-help h3 {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* Keep frequently used controls readable at every viewport size. */
.nav-caption,
.topbar-label,
.topbar-label > .muted,
.hero-meta,
.hero-copy > p,
.section-heading > div > span,
.notice,
.notice > span,
.card-meta,
.poster-status,
.poster-label,
.detail-meta,
.tag,
.breadcrumb,
.player-toolbar,
.player-title p,
.player-main > p,
.resume-link,
.stat-card small,
.editorial p,
footer,
.table-video small {
  font-size: 12px;
}
.nav-link,
.card-title,
.genre,
.user-pill,
.searchbox input,
.filter-chip,
.filter-selects label,
.filter-selects select,
.episode,
.source-label,
.text-link,
.table-actions,
.link,
.episode-edit input,
.panel .episode-edit input {
  font-size: 14px;
}
.prose p {
  font-size: 16px;
}
.hero-copy > p {
  max-width: 430px;
}
.notice p {
  line-height: 1.7;
}
.mobile-menu {
  display: none;
}
@media (max-width: 760px) {
  .mobile-menu {
    display: inline-grid;
  }
}
@media (max-width: 760px) {
  .card-meta {
    flex-wrap: wrap;
    font-size: 12px;
    gap: 3px;
  }
  .card-title {
    font-size: 14px;
  }
  .topbar {
    gap: 9px;
  }
  .user-pill span {
    max-width: 75px;
  }
  .genre {
    font-size: 14px;
  }
  .hero-copy > p {
    font-size: 12px;
  }
  .filter-selects label {
    flex-basis: 40%;
  }
  .poster-title strong {
    font-size: 20px;
  }
  .poster-status {
    font-size: 12px;
  }
  .poster-label {
    font-size: 12px;
  }
  .player-toolbar .check {
    font-size: 12px;
  }
}

/* Account navigation across web and app. */
.account-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 1.5rem;
}
.account-links a {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.sidebar {
  overflow-y: auto;
}
.sidebar nav {
  flex-shrink: 0;
}
.sidebar-note {
  margin-top: 12px;
}
.episode-lock {
  font-size: 0.75rem;
  color: var(--muted);
}
