:root {
  --bg: #f6f7f3;
  --paper: #fff;
  --ink: #253a32;
  --muted: #8a938c;
  --line: #e7eae3;
  --accent: #d77a4e;
  --accent-soft: #fbefe7;
  --green: #52795f;
  --green-soft: #edf4ec;
  --danger: #bb6254;
  --shadow: 0 12px 45px #253a3209;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #d77a4e77;
  outline-offset: 3px;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  transition: 0.18s;
}
.btn:hover {
  border-color: #bbc7ba;
  background: #fafbf8;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 4px 10px #d77a4e1c;
}
.btn.primary:hover {
  background: #c96d42;
}
.btn.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
}
.btn.danger {
  color: var(--danger);
}
.btn.small {
  padding: 6px 10px;
  font-size: 11px;
  border-radius: 7px;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
}
.icon-button:hover {
  background: #e9ede5;
}
.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
.sidebar {
  width: 220px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 32px 18px 18px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 11px 38px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 4px 7px #d77a4e22);
}
.brand-name {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 2px;
  line-height: 1.1;
}
.brand-caption {
  font-size: 9px;
  letter-spacing: 2.3px;
  margin-top: 6px;
  color: #8c938b;
}
.nav-label {
  padding: 0 14px;
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #a4aaa2;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 9px;
  padding: 12px 14px;
  color: #78837a;
  font-size: 13px;
  transition: 0.18s;
}
.nav-item svg {
  width: 18px;
  height: 18px;
}
.nav-item:hover {
  background: #f5f7f1;
  color: var(--ink);
}
.nav-item.active {
  background: var(--accent-soft);
  color: #bd6a42;
  font-weight: 600;
}
.nav-item .nav-count {
  margin-left: auto;
  border-radius: 5px;
  font-size: 10px;
  line-height: 19px;
  min-width: 21px;
  text-align: center;
  background: #eaf0e6;
  color: #6f8367;
}
.nav-item.active .nav-count {
  background: #efdbcc;
  color: #a56b4b;
}
.nav-space {
  height: 30px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 36px;
}
.library-status {
  border: 1px solid #e8ece3;
  border-radius: 10px;
  padding: 13px;
  background: #fafbf7;
}
.library-status .status-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
}
.dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #88a87d;
}
.dot.orange {
  background: #d89964;
}
.dot.red {
  background: var(--danger);
}
.library-status p {
  font-size: 10px;
  color: #a0a69b;
  margin: 8px 0;
}
.storage-track {
  height: 4px;
  background: #e7ebdf;
  border-radius: 4px;
  overflow: hidden;
}
.storage-track span {
  display: block;
  background: #a5b491;
  height: 100%;
  max-width: 100%;
  border-radius: 4px;
}
.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 9px 1px;
  color: #a2a89e;
  font-size: 10px;
}
.shell-content {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 88px;
  border-bottom: 1px solid var(--line);
  background: #f6f7f3ed;
  padding: 0 38px;
  display: flex;
  align-items: center;
  gap: 25px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(15px);
}
.breadcrumb {
  display: flex;
  gap: 13px;
  align-items: center;
  color: #a2a99f;
  font-size: 11px;
  white-space: nowrap;
}
.breadcrumb strong {
  font-weight: 500;
  color: #5e6d60;
}
.searchbox {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 300px;
  border: 1px solid #e3e7dd;
  border-radius: 9px;
  background: white;
  padding: 9px 12px;
}
.searchbox svg {
  width: 17px;
  height: 17px;
  color: #929b8d;
}
.searchbox input {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 11px;
  color: #4a5c4e;
}
.searchbox input::placeholder {
  color: #a3aa9d;
}
.searchbox kbd {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 9px;
  color: #a0a797;
  white-space: nowrap;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}
.notification-btn {
  position: relative;
}
.notification-dot {
  position: absolute;
  right: 6px;
  top: 4px;
  background: var(--accent);
  width: 6px;
  height: 6px;
  border: 1px solid var(--bg);
  border-radius: 50%;
}
.avatar {
  background: #e7ebdf;
  width: 32px;
  height: 32px;
  border: 2px solid white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #768567;
  font-weight: 650;
}
.mobile-menu {
  display: none;
}
.main {
  max-width: 1600px;
  margin: auto;
  padding: 33px 38px 24px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: #909d89;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}
h1 {
  font-size: 26px;
  letter-spacing: 0.3px;
  font-weight: 600;
  margin: 0;
}
h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
h3 {
  font-weight: 600;
}
p {
  margin: 8px 0;
}
.page-heading p {
  font-size: 11px;
  color: #929c8d;
  margin: 8px 0 0;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.demo-label {
  font-size: 9px;
  border: 1px solid #dce3d6;
  border-radius: 5px;
  color: #829078;
  padding: 3px 7px;
  letter-spacing: 1px;
}
.hero {
  height: 300px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #1a302b;
  color: white;
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 25px #253a3210;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #152f2ded 0%,
    #152f2dd9 25%,
    #152f2d73 50%,
    #152f2d05 85%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 540px;
  padding: 35px 38px;
}
.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #d4c3a6;
  display: flex;
  gap: 8px;
  align-items: center;
}
.hero-eyebrow svg {
  width: 13px;
  height: 13px;
}
.hero h2 {
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 38px;
  letter-spacing: 5px;
  font-weight: 500;
  margin: 16px 0 9px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: #c0cbc0;
}
.hero-meta .rating {
  color: #ebc387;
  font-weight: 600;
}
.hero p {
  font-size: 11px;
  color: #c1cbc1;
  line-height: 1.85;
  margin: 12px 0 20px;
  max-width: 335px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions {
  display: flex;
  gap: 9px;
}
.hero .btn {
  font-size: 11px;
  padding: 10px 15px;
}
.hero .hero-secondary {
  border-color: #ffffff30;
  background: #ffffff0b;
  color: #ecefe6;
  backdrop-filter: blur(8px);
}
.hero-index {
  position: absolute;
  right: 25px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 2px;
  color: #d6dfd2;
}
.hero-index span {
  width: 22px;
  height: 3px;
  background: #d8c49c;
  border-radius: 3px;
}
.hero-index i {
  width: 6px;
  height: 3px;
  background: #d8c49c55;
  border-radius: 3px;
}
.hero-caption {
  position: absolute;
  right: 25px;
  top: 22px;
  z-index: 2;
  font-size: 8px;
  letter-spacing: 2px;
  color: #d6dfd2;
  opacity: 0.7;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}
.metric {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 17px 18px;
}
.metric-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f0f3eb;
  color: #8a9a7c;
}
.metric:nth-child(2) .metric-icon {
  background: #fcf1e7;
  color: #c99364;
}
.metric:nth-child(3) .metric-icon {
  background: #edf3f0;
  color: #789d8e;
}
.metric:nth-child(4) .metric-icon {
  background: #eeeff7;
  color: #8e91ad;
}
.metric-label {
  font-size: 10px;
  color: #929b8b;
  margin-bottom: 3px;
}
.metric-value {
  font-size: 23px;
  font-weight: 550;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.metric-unit {
  font-size: 10px;
  margin-left: 5px;
  font-weight: 400;
  color: #9ca394;
}
.metric-arrow {
  margin-left: auto;
  color: #a5b19b;
  font-size: 10px;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 11px;
}
.section-title h2 {
  font-size: 17px;
}
.count-badge {
  font-size: 9px;
  border: 1px solid #e3e7db;
  padding: 2px 7px;
  border-radius: 5px;
  color: #9ba492;
  font-weight: 400;
}
.filterbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 21px;
  flex-wrap: wrap;
}
.filter {
  border: 1px solid transparent;
  background: transparent;
  color: #8d9785;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 11px;
}
.filter:hover {
  background: #e9eee3;
}
.filter.active {
  background: #e8edde;
  color: #5a7150;
  font-weight: 550;
}
.filter-divider {
  width: 1px;
  height: 16px;
  background: #e1e6d8;
  margin: 0 7px;
}
.filter-select {
  border: 1px solid #e1e6d9;
  border-radius: 7px;
  padding: 7px 9px;
  background: transparent;
  font-size: 10px;
  color: #7d8d70;
  max-width: 150px;
}
.filterbar .sort-select {
  margin-left: auto;
}
.poster-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 25px 18px;
}
.poster-card {
  min-width: 0;
  position: relative;
}
.poster-cover {
  display: block;
  position: relative;
  aspect-ratio: 2/3;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #e6eadd;
  box-shadow: 0 5px 13px #253a3209;
  isolation: isolate;
  text-align: left;
}
.poster-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.poster-cover:hover img {
  transform: scale(1.045);
}
.poster-cover:after {
  content: "";
  position: absolute;
  inset: 60% 0 0;
  background: linear-gradient(transparent, #10251ac4);
  pointer-events: none;
}
.poster-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f9fbf0e8;
  color: #68765e;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 8px;
  z-index: 2;
  backdrop-filter: blur(8px);
}
.poster-tag.subscribed {
  background: #204c40cc;
  color: #e1efdb;
}
.poster-score {
  position: absolute;
  top: 10px;
  right: 9px;
  color: #ffe2a6;
  background: #152a26a6;
  padding: 3px 5px;
  border-radius: 4px;
  font-size: 8px;
  z-index: 2;
}
.poster-score svg {
  width: 9px;
  height: 9px;
  margin-right: 3px;
}
.poster-bottom {
  position: absolute;
  bottom: 11px;
  left: 11px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e6ede0;
  font-size: 9px;
  z-index: 2;
}
.poster-play {
  width: 30px;
  height: 30px;
  border: 1px solid #ffffff90;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff14;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.2s;
}
.poster-cover:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}
.poster-play svg {
  width: 14px;
  height: 14px;
}
.poster-title {
  margin: 10px 0 4px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poster-info {
  font-size: 9px;
  display: flex;
  gap: 5px;
  align-items: center;
  color: #9da58f;
}
.poster-info .bullet {
  font-size: 8px;
}
.poster-favorite {
  position: absolute;
  right: 2px;
  bottom: 0;
  width: 25px;
  height: 24px;
  color: #adb5a3;
}
.poster-favorite svg {
  width: 13px;
  height: 13px;
}
.poster-favorite.selected {
  color: var(--accent);
}
.poster-info {
  padding-right: 25px;
}
.page-footer {
  margin: 38px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: #a6ad9c;
  font-size: 9px;
}
.page-footer span {
  letter-spacing: 1px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 30px 0;
  font-size: 11px;
  color: #939d89;
}
.pagination button {
  min-width: 32px;
}
.empty {
  padding: 80px 20px;
  text-align: center;
  border: 1px dashed #dce3d4;
  border-radius: 12px;
  background: #ffffff60;
}
.empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #eaf0e3;
  color: #8c9e7c;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.empty-icon svg {
  width: 27px;
  height: 27px;
}
.empty h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.empty p {
  font-size: 12px;
  color: #8f9b85;
  max-width: 380px;
  margin: 0 auto 22px;
  line-height: 1.8;
}
.skeleton {
  height: 250px;
  border-radius: 10px;
  background: linear-gradient(90deg, #e9ede3, #f3f5ef, #e9ede3);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.error-box {
  background: #fbf1ed;
  border: 1px solid #eed6ce;
  border-radius: 9px;
  padding: 16px;
  color: #af6a55;
  font-size: 12px;
}
.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: #edf2e6;
  border: 1px solid #e0e7d5;
  border-radius: 9px;
  font-size: 11px;
  color: #7a8d67;
  margin-bottom: 20px;
}
.notice svg {
  width: 16px;
  height: 16px;
}
.notice.demo {
  background: #f6f0e4;
  border-color: #ece0ca;
  color: #aa8c57;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar .filterbar {
  margin: 0;
}
.table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  padding: 15px 17px;
  font-size: 10px;
  font-weight: 500;
  color: #9ba48f;
  background: #fafbf7;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 19px 17px;
  border-bottom: 1px solid #f0f2eb;
  font-size: 11px;
  vertical-align: middle;
}
tr:last-child td {
  border: 0;
}
.job-media {
  display: flex;
  gap: 12px;
  align-items: center;
}
.job-thumb {
  width: 40px;
  height: 58px;
  border-radius: 5px;
  object-fit: cover;
}
.job-title {
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 5px;
}
.job-subtitle {
  font-size: 9px;
  color: #9ca790;
}
.job-error {
  font-size: 10px;
  color: var(--danger);
  max-width: 420px;
  line-height: 1.7;
  margin-top: 7px;
  word-break: break-word;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 4px 7px;
  background: #f0f3eb;
  color: #8b9780;
  font-size: 9px;
  white-space: nowrap;
}
.status-pill.downloading,
.status-pill.importing {
  background: #edf3e9;
  color: #6f9560;
}
.status-pill.failed {
  background: #fcf0eb;
  color: #c77c66;
}
.status-pill.done {
  background: #eaf4ef;
  color: #709682;
}
.status-pill.paused {
  background: #f7f1e5;
  color: #ae966c;
}
.progress-track {
  width: 110px;
  height: 4px;
  background: #ebefe4;
  border-radius: 4px;
  overflow: hidden;
  margin: 7px 0;
}
.progress-track span {
  height: 100%;
  display: block;
  background: #97ae7e;
  max-width: 100%;
  border-radius: 4px;
}
.job-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #92a180;
}
.job-actions {
  display: flex;
  gap: 4px;
}
.job-actions .icon-button {
  width: 28px;
  height: 28px;
}
.job-actions svg {
  width: 14px;
  height: 14px;
}
.subscriptions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.subscription-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 17px;
  display: flex;
  gap: 16px;
}
.subscription-cover {
  width: 90px;
  height: 132px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}
.subscription-content {
  min-width: 0;
  flex: 1;
}
.subscription-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.subscription-card h3 {
  font-size: 14px;
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.subscription-card p {
  font-size: 10px;
  color: #95a087;
}
.subscription-actions {
  display: flex;
  gap: 6px;
  margin-top: 13px;
  flex-wrap: wrap;
}
.subscription-progress {
  height: 4px;
  background: #edf0e6;
  border-radius: 3px;
  margin: 12px 0 7px;
}
.subscription-progress span {
  display: block;
  background: #9aac84;
  height: 100%;
  border-radius: 3px;
}
.events-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.event {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid #eef1e7;
}
.event:last-child {
  border: 0;
}
.event-symbol {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #f1f4ec;
  border-radius: 10px;
  color: #93a47f;
}
.event-symbol.failure {
  background: #f9eeea;
  color: #c18a72;
}
.event-symbol.new {
  background: #f9f1e7;
  color: #c29c68;
}
.event-symbol svg {
  width: 16px;
  height: 16px;
}
.event-body {
  flex: 1;
  min-width: 0;
}
.event-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 550;
}
.event p {
  font-size: 11px;
  line-height: 1.8;
  color: #93a084;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 7px 0;
}
.event time {
  font-size: 9px;
  color: #a7af9c;
  white-space: nowrap;
}
.delivery {
  font-size: 9px;
  color: #abb39f;
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
  align-items: start;
}
.settings-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 18px;
}
.settings-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin: 0 0 6px;
}
.settings-section h3 svg {
  width: 18px;
  color: #9bac89;
}
.settings-description {
  color: #9da691;
  font-size: 10px;
  margin-bottom: 22px;
}
.settings-section > .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 17px 0;
}
.field {
  display: block;
  margin: 17px 0;
}
.field > span {
  display: block;
  font-size: 11px;
  color: #78876b;
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: #fcfdf9;
  border: 1px solid #e4e9dc;
  border-radius: 8px;
  padding: 10px 12px;
  color: #516349;
  font-size: 12px;
  outline: 0;
}
.field input:focus,
.field textarea:focus {
  border-color: #a8b69a;
}
.field textarea {
  min-height: 78px;
  resize: vertical;
}
.field small {
  display: block;
  margin-top: 6px;
  color: #a3ad97;
  font-size: 9px;
  line-height: 1.7;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid #f1f3ec;
}
.toggle-row span {
  font-size: 11px;
  color: #78876b;
}
.toggle-row small {
  display: block;
  font-size: 9px;
  color: #a0aa94;
  margin-top: 4px;
}
.toggle {
  appearance: none;
  flex-shrink: 0;
  width: 33px;
  height: 19px;
  border-radius: 15px;
  background: #e1e7d9;
  position: relative;
  cursor: pointer;
  transition: 0.2s;
}
.toggle:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px #0001;
  transition: 0.2s;
}
.toggle:checked {
  background: #8b9f79;
}
.toggle:checked:before {
  left: 17px;
}
.settings-aside {
  position: sticky;
  top: 111px;
}
.system-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #91a081;
  padding: 11px 0;
  border-bottom: 1px solid #f0f3e9;
}
.system-line:last-child {
  border: 0;
}
.system-code {
  font-size: 9px;
  background: #f4f6f0;
  padding: 12px;
  border-radius: 7px;
  line-height: 1.9;
  color: #849174;
  overflow-wrap: anywhere;
}
.settings-save {
  position: sticky;
  bottom: 16px;
  z-index: 5;
  background: #fffdf5e8;
  backdrop-filter: blur(15px);
  border: 1px solid #e5e7da;
  border-radius: 10px;
  box-shadow: 0 5px 25px #253a3212;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #8d9a7e;
}
.settings-dirty {
  color: #c48b5c;
}
.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #17251e75;
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: flex-end;
  animation: fade 0.15s;
}
.drawer {
  background: var(--bg);
  width: min(730px, 100%);
  height: 100dvh;
  overflow-y: auto;
  box-shadow: -20px 0 80px #14231a25;
  animation: slide 0.25s;
}
.drawer-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 24px;
  background: #f6f7f3f0;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 5;
  font-size: 10px;
  color: #8e9d80;
  letter-spacing: 1px;
}
.drawer-content {
  padding: 28px;
}
.detail-intro {
  display: flex;
  gap: 25px;
  align-items: flex-start;
}
.detail-poster {
  width: 162px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 25px #253a3217;
}
.detail-heading {
  flex: 1;
  min-width: 0;
}
.detail-heading h2 {
  font-size: 27px;
  margin: 8px 0 12px;
  letter-spacing: 1px;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #93a083;
  font-size: 10px;
}
.tag {
  padding: 3px 7px;
  border-radius: 5px;
  background: #eaf0e1;
  color: #8b9c78;
  font-size: 9px;
}
.detail-desc {
  font-size: 12px;
  color: #829373;
  line-height: 1.9;
  margin: 24px 0;
}
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 21px;
}
.detail-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11px;
  color: #829171;
  margin-bottom: 25px;
}
.detail-info span {
  display: block;
  color: #a2ad95;
  font-size: 9px;
  margin-bottom: 5px;
}
.episodes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 15px;
}
.episodes-header h3 {
  margin: 0;
  font-size: 14px;
}
.episode-legend {
  font-size: 9px;
  color: #a0ad92;
}
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}
.episode {
  padding: 10px 2px;
  border: 1px solid #e1e8d8;
  background: white;
  border-radius: 6px;
  text-align: center;
  color: #97a587;
  font-size: 11px;
}
.episode.selected {
  background: #e9efdf;
  border-color: #a4b78d;
  color: #718959;
}
.episode.done {
  border-color: #b3cbb7;
  background: #edf5ee;
  color: #73997a;
}
.episode.active {
  border-color: #e4c9a7;
  background: #faf3e7;
  color: #bc985f;
}
.episode.failed {
  border-color: #e9c7bd;
  background: #fcf0eb;
  color: #bd8a78;
}
.selection-box {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 20px 0;
}
.selection-box input {
  width: 100%;
  border: 1px solid #dfe6d6;
  border-radius: 8px;
  background: white;
  padding: 11px;
  font-size: 11px;
  color: #899a75;
}
.metadata-note {
  font-size: 10px;
  color: #a0aa95;
  line-height: 1.9;
  margin: 20px 0;
}
.file-list {
  margin-top: 25px;
}
.file-entry {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
}
.file-entry .file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.file-entry svg {
  width: 16px;
  color: #93a282;
}
.confirm-dialog {
  margin: auto;
  background: white;
  border-radius: 14px;
  padding: 28px;
  width: min(420px, calc(100% - 32px));
  box-shadow: var(--shadow);
}
.confirm-dialog h3 {
  font-size: 17px;
  margin: 0 0 12px;
}
.confirm-dialog p {
  font-size: 12px;
  color: #8c9c7c;
  line-height: 1.9;
  margin-bottom: 24px;
}
.confirm-dialog .actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.login-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
}
.login-art {
  position: relative;
  background: #18392e;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 60px;
  color: #eff1e4;
}
.login-art img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0.75;
}
.login-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, #102e25e6);
}
.login-art-content {
  position: relative;
  z-index: 1;
}
.login-art h1 {
  font-family: "Songti SC", serif;
  font-size: 42px;
  line-height: 1.6;
  letter-spacing: 4px;
}
.login-art p {
  font-size: 12px;
  color: #b5c5ad;
  letter-spacing: 1px;
}
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
}
.login-form {
  width: 330px;
}
.login-form .brand {
  padding: 0;
  margin-bottom: 55px;
}
.login-form h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.login-form p {
  font-size: 11px;
  color: #9ca88f;
  margin-bottom: 30px;
}
.login-form .btn {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
}
.login-hint {
  font-size: 9px !important;
  line-height: 1.9;
  margin-top: 25px !important;
}
.boot {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #92a181;
  font-size: 12px;
}
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid #dfe8d6;
  border-top-color: #80966d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.operation-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ecf2e5;
  color: #80966a;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 11px;
  margin-bottom: 20px;
}
.operation-banner .spinner {
  width: 13px;
  height: 13px;
}
.operation-banner .btn {
  margin-left: auto;
}
#toasts {
  position: fixed;
  bottom: 25px;
  right: 26px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: calc(100% - 40px);
}
.toast {
  padding: 14px 19px;
  background: #293e31;
  color: #f1f5eb;
  border: 1px solid #4b6142;
  border-radius: 10px;
  box-shadow: 0 10px 30px #182b2025;
  font-size: 12px;
  line-height: 1.6;
  animation: slide 0.2s;
  max-width: 440px;
  overflow-wrap: anywhere;
}
.toast.error {
  background: #744d40;
  border-color: #8d6655;
}
.mobile-scrim {
  display: none;
}
button.text-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: #a4b28e;
  font-size: 10px;
  cursor: pointer;
}
.muted-link {
  color: #99a58b;
  font-size: 10px;
}
.fade-in {
  animation: fade 0.25s;
}
.library-summary {
  background: #24392f;
  color: #e5eddf;
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.library-summary > svg {
  width: 32px;
  height: 32px;
  color: #b7c59a;
}
.library-summary h3 {
  font-size: 16px;
  margin: 0 0 5px;
}
.library-summary p {
  font-size: 11px;
  color: #9eaf8e;
  margin: 0;
}
.library-summary .btn {
  margin-left: auto;
  background: #ffffff0a;
  color: #dfe8d4;
  border-color: #ffffff24;
}
.operation-row {
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 11px;
}
.operation-row p {
  color: #a2ad92;
  font-size: 10px;
}
.operation-row time {
  margin-left: auto;
  font-size: 9px;
  color: #a0ad91;
}
.integrity-badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 9px;
  color: #9dac8d;
  margin-top: 9px;
}
.integrity-badge svg {
  width: 12px;
  height: 12px;
}
.view-options {
  display: flex;
  align-items: center;
  gap: 5px;
}
.view-options .icon-button {
  width: 29px;
  height: 29px;
  color: #a1ac94;
}
.view-options svg {
  width: 15px;
  height: 15px;
}
.poster-grid.compact {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}
.settings-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.field-validation {
  margin-top: 12px;
  font-size: 10px;
  line-height: 1.8;
  color: #88a072;
}
.error-text {
  color: #c08770;
}
.batch-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.no-scroll {
  overflow: hidden;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slide {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (min-width: 1500px) {
  .main {
    padding-left: 46px;
    padding-right: 46px;
  }
  .hero {
    height: 340px;
  }
  .hero h2 {
    font-size: 44px;
  }
  .poster-grid {
    gap: 26px 22px;
  }
  .poster-title {
    font-size: 13px;
  }
}
@media (max-width: 1250px) {
  .app-shell {
    grid-template-columns: 195px 1fr;
  }
  .sidebar {
    width: 195px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .main {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .poster-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 23px 15px;
  }
  .poster-grid.compact {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .hero-content {
    padding: 30px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 15px 12px;
    gap: 10px;
  }
  .metric-icon {
    width: 31px;
    height: 31px;
  }
  .metric-arrow {
    display: none;
  }
  .settings-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .settings-section {
    padding: 20px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .searchbox {
    width: 250px;
  }
}
@media (max-width: 1024px) {
  .poster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .poster-grid.compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .hero {
    height: 285px;
  }
  .hero h2 {
    font-size: 32px;
  }
  .hero-content {
    max-width: 420px;
  }
  .breadcrumb {
    display: none;
  }
  .topbar {
    height: 73px;
  }
  .searchbox {
    margin-left: 0;
    flex: 1;
    max-width: 370px;
  }
  .top-actions {
    margin-left: auto;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .metric {
    padding: 14px 18px;
  }
  .metric-value {
    font-size: 21px;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .subscriptions-grid {
    grid-template-columns: 1fr;
  }
  .jobs-table .col-time {
    display: none;
  }
  td,
  th {
    padding: 15px 11px;
  }
  .progress-track {
    width: 80px;
  }
  .page-heading {
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .demo-label {
    display: none;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 230px;
    padding: 28px 19px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-scrim.visible {
    display: block;
    position: fixed;
    inset: 0;
    background: #23352866;
    z-index: 29;
    backdrop-filter: blur(2px);
  }
  .topbar {
    height: 66px;
    padding: 0 18px;
    gap: 13px;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .searchbox {
    padding: 8px 10px;
    max-width: none;
  }
  .searchbox kbd {
    display: none;
  }
  .searchbox input {
    font-size: 11px;
  }
  .top-actions {
    gap: 3px;
  }
  .top-actions .avatar {
    display: none;
  }
  .main {
    padding: 25px 20px;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading p {
    font-size: 10px;
  }
  .heading-actions .btn {
    padding: 8px 10px;
    font-size: 10px;
  }
  .heading-actions .btn svg {
    width: 13px;
  }
  .hero {
    height: 280px;
    border-radius: 11px;
    margin-bottom: 17px;
  }
  .hero-content {
    padding: 25px;
    max-width: 360px;
  }
  .hero h2 {
    font-size: 32px;
    margin-top: 15px;
  }
  .hero:after {
    background: linear-gradient(90deg, #152f2dec, #152f2d55);
  }
  .hero p {
    max-width: 260px;
    font-size: 10px;
  }
  .hero-caption {
    display: none;
  }
  .hero-index {
    font-size: 8px;
    right: 15px;
    bottom: 18px;
  }
  .hero-art {
    object-position: 67%;
  }
  .metrics {
    margin-bottom: 27px;
    gap: 9px;
  }
  .metric {
    padding: 13px 12px;
    gap: 10px;
  }
  .metric-icon {
    width: 32px;
    height: 32px;
  }
  .metric-label {
    font-size: 9px;
  }
  .metric-value {
    font-size: 22px;
  }
  .metric-unit {
    font-size: 9px;
  }
  .poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 13px;
  }
  .poster-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 10px;
  }
  .poster-tag {
    top: 7px;
    left: 7px;
    font-size: 7px;
    padding: 2px 4px;
  }
  .poster-score {
    top: 7px;
    right: 7px;
    font-size: 7px;
    padding: 2px 4px;
  }
  .poster-bottom {
    left: 8px;
    bottom: 8px;
    font-size: 8px;
  }
  .poster-play {
    display: none;
  }
  .poster-title {
    font-size: 11px;
    margin-top: 8px;
  }
  .poster-info {
    font-size: 8px;
  }
  .poster-cover {
    border-radius: 8px;
  }
  .filterbar {
    gap: 4px;
    margin-bottom: 18px;
  }
  .filter {
    font-size: 10px;
    padding: 6px 9px;
  }
  .filter-divider {
    margin: 0 5px;
  }
  .filter-select {
    font-size: 9px;
    max-width: 110px;
    padding: 5px 6px;
  }
  .section-header {
    margin-bottom: 15px;
  }
  .section-title h2 {
    font-size: 16px;
  }
  .page-footer {
    font-size: 8px;
    gap: 10px;
  }
  .page-footer span {
    letter-spacing: 0;
  }
  .notice {
    font-size: 10px;
    padding: 11px;
    line-height: 1.8;
  }
  .table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }
  .jobs-table thead {
    display: none;
  }
  .jobs-table,
  .jobs-table tbody {
    display: block;
  }
  .jobs-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 15px;
    gap: 14px;
  }
  .jobs-table td {
    display: block;
    border: 0;
    padding: 0;
  }
  .jobs-table td:first-child {
    grid-column: 1/-1;
  }
  .jobs-table .col-state {
    grid-row: 2;
    grid-column: 1;
  }
  .jobs-table .col-progress {
    grid-row: 2;
    grid-column: 1;
    margin-left: 105px;
    width: 90px;
  }
  .jobs-table .col-actions {
    grid-row: 2;
    grid-column: 2;
  }
  .jobs-table .progress-track {
    margin: 4px 0;
    width: 90px;
  }
  .job-media {
    gap: 13px;
  }
  .job-thumb {
    width: 36px;
    height: 52px;
  }
  .job-title {
    font-size: 13px;
  }
  .toolbar {
    gap: 15px;
  }
  .toolbar .filterbar {
    order: 2;
    width: 100%;
  }
  .toolbar .batch-actions {
    margin-left: auto;
  }
  .settings-section {
    padding: 20px;
  }
  .settings-aside {
    grid-template-columns: 1fr;
  }
  .field-row {
    gap: 13px;
  }
  .settings-save {
    bottom: 10px;
    padding: 12px 14px;
  }
  .settings-save span {
    font-size: 10px;
  }
  .settings-save .btn {
    font-size: 10px;
  }
  .event {
    padding: 18px 15px;
    gap: 11px;
  }
  .event-symbol {
    width: 29px;
    height: 29px;
  }
  .event time {
    font-size: 8px;
  }
  .event-title {
    font-size: 11px;
  }
  .event p {
    font-size: 10px;
  }
  .detail-poster {
    width: 112px;
  }
  .drawer-content {
    padding: 22px;
  }
  .detail-intro {
    gap: 18px;
  }
  .detail-heading h2 {
    font-size: 23px;
  }
  .detail-actions {
    margin-top: 14px;
    gap: 6px;
  }
  .detail-actions .btn {
    padding: 7px 10px;
    font-size: 10px;
  }
  .detail-meta {
    gap: 6px;
    font-size: 9px;
  }
  .episodes-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .drawer-header {
    padding: 13px 18px;
  }
  .detail-info {
    padding: 16px;
    font-size: 10px;
  }
  .detail-desc {
    font-size: 11px;
  }
  .login-page {
    display: block;
  }
  .login-art {
    display: none;
  }
  .login-form-wrap {
    min-height: 100dvh;
  }
  .login-form {
    max-width: 350px;
    width: 100%;
  }
  .library-summary {
    padding: 20px;
    gap: 15px;
    flex-wrap: wrap;
  }
  .library-summary h3 {
    font-size: 14px;
  }
  .library-summary p {
    font-size: 10px;
  }
  .library-summary > svg {
    width: 26px;
  }
  .library-summary .btn {
    font-size: 10px;
    padding: 7px 10px;
  }
  .subscription-cover {
    width: 80px;
    height: 120px;
  }
  .subscription-card {
    padding: 15px;
    gap: 14px;
  }
  .subscription-card h3 {
    font-size: 13px;
  }
  .subscription-card p {
    font-size: 9px;
  }
  .operation-row {
    align-items: flex-start;
  }
  .operation-row time {
    font-size: 8px;
    max-width: 70px;
  }
  .count-badge {
    font-size: 8px;
  }
}
@media (max-width: 390px) {
  .main {
    padding: 22px 16px;
  }
  .poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 15px;
  }
  .hero h2 {
    font-size: 29px;
  }
  .hero-content {
    padding: 23px;
  }
  .heading-actions .btn .btn-label {
    display: none;
  }
  .page-heading p {
    max-width: 220px;
  }
  .hero-index {
    display: none;
  }
  .detail-poster {
    width: 95px;
  }
  .detail-heading h2 {
    font-size: 21px;
  }
  .detail-actions .btn {
    padding: 6px 8px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Per-series queue: one poster and lifetime counts, with episode controls below. */
.queue-series-list {
  display: grid;
  gap: 20px;
}
.queue-series {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.queue-series-header {
  display: flex;
  gap: 24px;
  padding: 24px;
  align-items: center;
}
.queue-poster-button {
  border: 0;
  padding: 0;
  background: transparent;
  flex-shrink: 0;
  border-radius: 9px;
  overflow: hidden;
  cursor: pointer;
}
.queue-poster {
  display: block;
  width: 104px;
  height: 150px;
  object-fit: cover;
  background: #eff2e9;
}
.queue-series-info {
  flex: 1;
  min-width: 0;
}
button.queue-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  overflow-wrap: anywhere;
}
.queue-total,
.queue-status {
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0;
}
.queue-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 16px 0 12px;
  font-size: 13px;
}
.queue-counts strong {
  color: var(--accent);
  font-size: 19px;
}
.queue-progress {
  max-width: 600px;
  height: 5px;
  border-radius: 6px;
  background: #eff2e9;
  overflow: hidden;
}
.queue-progress > span {
  display: block;
  height: 100%;
  background: #879b72;
}
.queue-details {
  border-top: 1px solid var(--line);
}
.queue-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 15px 24px;
  font-size: 12px;
  list-style: none;
}
.queue-details summary::-webkit-details-marker {
  display: none;
}
.queue-details summary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s;
}
.queue-details[open] summary svg {
  transform: rotate(90deg);
}
.queue-details .table-wrap {
  border: 0;
  border-radius: 0;
}
@media (max-width: 600px) {
  .queue-series-header {
    padding: 16px;
    gap: 14px;
    align-items: flex-start;
  }
  .queue-poster {
    width: 76px;
    height: 110px;
  }
  button.queue-title {
    font-size: 16px;
  }
  .queue-total,
  .queue-status {
    font-size: 11px;
    line-height: 1.6;
    margin: 6px 0;
  }
  .queue-counts {
    font-size: 11px;
    gap: 5px 12px;
    margin: 9px 0;
  }
  .queue-counts strong {
    font-size: 16px;
  }
  .queue-details summary {
    padding: 13px 16px;
  }
}
