:root {
  color-scheme: dark;
  --ink: #100b08;
  --ink-soft: #18100c;
  --panel: rgba(29, 19, 14, 0.82);
  --panel-solid: #211610;
  --line: rgba(255, 242, 222, 0.12);
  --line-strong: rgba(255, 206, 126, 0.24);
  --text: #fff8ec;
  --muted: #b8aa9c;
  --accent: #f49a45;
  --accent-deep: #dd672a;
  --accent-soft: #ffc978;
  --green: #62d49c;
  --danger: #ff8d7c;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 13px;
  font-family:
    Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(188, 76, 31, 0.18), transparent 32%),
    radial-gradient(circle at 92% 87%, rgba(244, 154, 69, 0.1), transparent 30%),
    linear-gradient(145deg, #0d0907 0%, #130c09 52%, #0b0806 100%);
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.24;
}

.ambient-one {
  top: -220px;
  right: 10%;
  background: #ac3d20;
}

.ambient-two {
  bottom: -250px;
  left: 32%;
  background: #8b4a19;
}

.login-view {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, 0.75fr);
  min-height: 100vh;
}

.login-story {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 54px clamp(42px, 7vw, 120px);
  border-right: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: max-content;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 211, 143, 0.45);
  border-radius: 14px 7px 14px 7px;
  color: #28140a;
  background: linear-gradient(145deg, #ffd696, #ed8336);
  box-shadow: 0 8px 30px rgba(238, 121, 48, 0.22);
  font-size: 20px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: 0.04em;
}

.brand small {
  margin-top: 2px;
  color: #9f8c7c;
  font-size: 9px;
  letter-spacing: 0.2em;
}

.brand.compact .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px 6px 12px 6px;
}

.story-copy {
  max-width: 760px;
  margin: auto 0;
  padding: 80px 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.story-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(52px, 6vw, 96px);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.story-lead {
  max-width: 640px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.performance-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 680px;
  border-top: 1px solid var(--line);
}

.performance-strip div {
  padding: 24px 24px 8px 0;
}

.performance-strip strong,
.performance-strip span {
  display: block;
}

.performance-strip strong {
  color: var(--accent-soft);
  font-size: 22px;
}

.performance-strip span {
  margin-top: 7px;
  color: #8f7e70;
  font-size: 12px;
}

.login-panel {
  display: grid;
  min-height: 100vh;
  padding: 36px;
  place-items: center;
}

.panel-card {
  width: min(100%, 470px);
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(155deg, rgba(49, 30, 20, 0.86), rgba(22, 15, 11, 0.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.service-badge,
.api-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.service-badge {
  float: right;
  padding: 8px 11px;
  border: 1px solid rgba(98, 212, 156, 0.18);
  border-radius: 999px;
  background: rgba(98, 212, 156, 0.06);
}

.service-badge i,
.api-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(98, 212, 156, 0.1);
}

.service-badge.checking {
  color: var(--accent-soft);
}

.service-badge.offline,
.api-badge.offline {
  color: var(--danger);
}

.panel-heading {
  margin-bottom: 34px;
}

.panel-heading h2 {
  margin: 0;
  font-size: 38px;
  letter-spacing: -0.04em;
}

.panel-heading > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

label {
  display: block;
  margin: 20px 0 9px;
  color: #d7c8b9;
  font-size: 12px;
  font-weight: 700;
}

.input-shell {
  display: flex;
  align-items: center;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(8, 5, 4, 0.38);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.input-shell:focus-within {
  border-color: rgba(244, 154, 69, 0.6);
  box-shadow: 0 0 0 4px rgba(244, 154, 69, 0.08);
}

.input-shell > span {
  min-width: 48px;
  color: #6f5a49;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.input-shell input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.text-button,
.ghost-button,
.nav-link,
.side-link,
.profile-button,
.close-button {
  border: 0;
  cursor: pointer;
}

.text-button {
  margin-right: 14px;
  color: var(--accent-soft);
  background: transparent;
  font-size: 11px;
}

.credential-note {
  display: flex;
  justify-content: space-between;
  margin: 14px 2px 0;
  color: #8c7969;
  font-size: 11px;
}

.credential-note code {
  color: #d6b890;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.form-message {
  min-height: 20px;
  margin: 15px 0 4px;
  color: var(--danger);
  font-size: 12px;
}

.form-message.success {
  color: var(--green);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-sm);
  color: #241007;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  box-shadow: 0 14px 28px rgba(224, 103, 39, 0.18);
  cursor: pointer;
  font-weight: 850;
  transition:
    transform 150ms ease,
    filter 150ms ease;
}

.primary-button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  filter: grayscale(0.4);
  opacity: 0.65;
  transform: none;
}

.primary-button.small {
  width: auto;
  min-height: 42px;
  padding: 0 18px;
}

.security-note {
  margin: 20px 0 0;
  color: #766659;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.app-view {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  min-height: 76px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 9, 7, 0.82);
  backdrop-filter: blur(22px);
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 10px 15px;
  color: #8f7e70;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.nav-link.active,
.nav-link:hover {
  color: var(--text);
}

.nav-link.active::after {
  position: absolute;
  right: 15px;
  bottom: 2px;
  left: 15px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.api-badge {
  padding: 8px 12px;
  border: 1px solid rgba(98, 212, 156, 0.14);
  border-radius: 999px;
  background: rgba(98, 212, 156, 0.05);
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
}

.profile-button > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #2d160a;
  background: linear-gradient(145deg, var(--accent-soft), var(--accent));
  font-weight: 900;
}

.ghost-button {
  padding: 9px 12px;
  color: #a69383;
  background: transparent;
  font-size: 12px;
}

.app-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 28px;
  width: min(100%, 1660px);
  margin: 0 auto;
  padding: 32px 28px 70px;
}

.sidebar {
  position: sticky;
  top: 108px;
  align-self: start;
}

.sidebar-label {
  margin: 0 0 10px 14px;
  color: #67594d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sidebar-label.section-gap {
  margin-top: 30px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  margin: 3px 0;
  padding: 12px 14px;
  border-radius: 12px;
  color: #968577;
  background: transparent;
  text-align: left;
}

.side-link span {
  width: 20px;
  color: #715b49;
  text-align: center;
}

.side-link.active,
.side-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.side-link.active span {
  color: var(--accent);
}

.sidebar-status {
  margin-top: 38px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

.sidebar-status span,
.sidebar-status strong {
  display: block;
}

.sidebar-status span {
  color: #736457;
  font-size: 10px;
}

.sidebar-status strong {
  margin-top: 6px;
  color: var(--green);
  font-size: 11px;
}

.content {
  min-width: 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr);
  min-height: 350px;
  padding: clamp(34px, 5vw, 64px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 82% 15%, rgba(255, 178, 88, 0.2), transparent 26%),
    linear-gradient(140deg, rgba(66, 31, 17, 0.94), rgba(26, 16, 12, 0.92));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  right: -80px;
  bottom: -150px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(255, 213, 151, 0.12);
  border-radius: 50%;
  content: "";
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(38px, 4vw, 66px);
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.hero > div:first-child > p:not(.eyebrow) {
  max-width: 580px;
  margin: 20px 0 0;
  color: #bcaa99;
  font-size: 14px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.hero-actions > span {
  color: #887566;
  font-size: 11px;
}

.hero-orbit {
  position: relative;
  min-height: 230px;
}

.orbit-core,
.orbit-card {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 218, 165, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.orbit-core {
  top: 50%;
  left: 50%;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  color: #2c1408;
  background: linear-gradient(145deg, #ffd28d, #e6712f);
  font-size: 34px;
  font-weight: 950;
  transform: translate(-50%, -50%);
}

.orbit-card {
  width: 102px;
  height: 126px;
  padding: 18px;
  border-radius: 19px;
  color: #9b806c;
  background: rgba(25, 15, 11, 0.82);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-align: left;
}

.orbit-card strong {
  color: var(--text);
  font-size: 13px;
}

.orbit-a {
  top: 6%;
  left: 6%;
  transform: rotate(-9deg);
}

.orbit-b {
  right: 0;
  bottom: 3%;
  transform: rotate(8deg);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 42px 2px 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: 25px;
}

.section-heading > span {
  color: #78675a;
  font-size: 11px;
}

.catalog-search {
  margin: -4px 0 20px;
}

.catalog-search > label {
  display: block;
  margin-bottom: 8px;
  color: #806f61;
  font-size: 10px;
}

.catalog-search > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 10px;
}

.catalog-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
}

.catalog-search input:focus {
  border-color: rgba(244, 154, 69, 0.46);
}

.catalog-search .outline-button {
  min-height: 42px;
}

.feed-state {
  min-height: 0;
  color: #8f7e70;
  font-size: 13px;
}

.feed-state:empty {
  display: none;
}

.feed-state.empty {
  display: grid;
  min-height: 210px;
  place-items: center;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: #9f8d7d;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  line-height: 1.8;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.load-more {
  display: block;
  width: min(260px, 100%);
  margin: 24px auto 0;
}

.load-more[hidden] {
  display: none;
}

.feed-card {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: inherit;
  background: rgba(255, 255, 255, 0.026);
  font: inherit;
  text-align: left;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 170ms ease,
    border-color 170ms ease;
}

.feed-card:hover {
  border-color: rgba(244, 154, 69, 0.34);
  transform: translateY(-3px);
}

.card-art {
  position: relative;
  display: flex;
  min-height: 178px;
  align-items: end;
  padding: 16px;
  background:
    radial-gradient(circle at 75% 25%, rgba(255, 212, 140, 0.34), transparent 24%),
    linear-gradient(145deg, #6f2f19, #23140e 68%);
  overflow: hidden;
}

.card-cover {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-card:nth-child(3n + 2) .card-art {
  background:
    radial-gradient(circle at 20% 20%, rgba(205, 117, 63, 0.34), transparent 26%),
    linear-gradient(145deg, #2d201c, #12100e 70%);
}

.feed-card:nth-child(3n + 3) .card-art {
  background:
    radial-gradient(circle at 68% 22%, rgba(255, 186, 88, 0.3), transparent 24%),
    linear-gradient(145deg, #513019, #17100c 70%);
}

.card-art::before,
.card-art::after {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255, 229, 191, 0.12);
  border-radius: 50%;
  content: "";
}

.card-art::before {
  top: -45px;
  right: -20px;
  width: 160px;
  height: 160px;
}

.card-art::after {
  top: 10px;
  right: 34px;
  width: 72px;
  height: 72px;
}

.content-kind {
  position: relative;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #f1d5b4;
  background: rgba(8, 5, 4, 0.28);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  min-height: 44px;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.card-meta,
.card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  color: #806f61;
  font-size: 10px;
}

.card-stats {
  justify-content: flex-start;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.card-stats span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-stats .restricted {
  margin-left: auto;
  color: #e79a66;
  white-space: nowrap;
}

.card-stats .available {
  margin-left: auto;
  color: var(--green);
  white-space: nowrap;
}

.right-rail {
  align-self: start;
}

.rail-card {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.026);
}

.profile-summary {
  text-align: center;
}

.avatar-large {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 4px auto 15px;
  place-items: center;
  border: 1px solid rgba(255, 220, 170, 0.24);
  border-radius: 24px 12px 24px 12px;
  color: #2f170a;
  background: linear-gradient(145deg, #ffd28e, #e77a36);
  font-size: 25px;
  font-weight: 900;
}

.profile-summary h2 {
  margin: 0;
  font-size: 18px;
}

.profile-summary > p:not(.eyebrow) {
  min-height: 40px;
  margin: 9px 0 17px;
  color: #8d7b6d;
  font-size: 11px;
  line-height: 1.7;
}

.outline-button {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--accent-soft);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}

.rail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rail-title h3 {
  margin: 0;
  font-size: 14px;
}

.rail-title span {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.status-list {
  margin: 16px 0 0;
}

.status-list div {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.status-list dt,
.status-list dd {
  margin: 0;
  font-size: 10px;
}

.status-list dt {
  color: #78685b;
}

.status-list dd {
  color: #c9b8a7;
}

dialog {
  width: min(92vw, 500px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--text);
  background: #211610;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(5, 3, 2, 0.72);
  backdrop-filter: blur(6px);
}

dialog form {
  padding: 28px;
}

.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.dialog-heading h2 {
  margin: 0;
}

.close-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #b19e8d;
  background: rgba(255, 255, 255, 0.05);
  font-size: 22px;
}

dialog input,
dialog textarea,
dialog select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  color: var(--text);
  background: #130d0a;
}

dialog textarea {
  resize: vertical;
}

.series-dialog {
  width: min(94vw, 1040px);
  max-height: 92vh;
  overflow: auto;
}

.series-dialog-shell {
  padding: 30px;
}

.series-detail-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: #a18d7c;
  text-align: center;
}

.series-detail-state.error {
  color: #e69a7a;
}

.series-overview {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  margin-top: 26px;
}

.series-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 208, 132, 0.24), transparent 25%),
    linear-gradient(145deg, #5d2d1b, #17100c);
  overflow: hidden;
}

.series-poster.is-empty::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8d7867;
  content: "暂无封面";
  font-size: 12px;
}

.series-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.series-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.series-badge {
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #bca896;
  background: rgba(255, 255, 255, 0.035);
  font-size: 10px;
}

.series-badge.draft {
  color: #f1c58f;
  border-color: rgba(244, 154, 69, 0.24);
  background: rgba(244, 154, 69, 0.07);
}

.series-badge.restricted {
  color: #e9a477;
  border-color: rgba(226, 128, 82, 0.22);
}

.series-badge.licensed {
  color: var(--green);
  border-color: rgba(98, 212, 156, 0.2);
}

.series-meta {
  margin: 16px 0 0;
  color: #a9927f;
  font-size: 12px;
}

.series-synopsis {
  margin: 16px 0 0;
  color: #c2ad9a;
  font-size: 13px;
  line-height: 1.85;
}

.series-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
}

.series-tags span {
  padding: 5px 8px;
  border-radius: 7px;
  color: #9d8877;
  background: rgba(255, 255, 255, 0.04);
  font-size: 10px;
}

.series-source {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #837163;
  font-size: 10px;
}

.series-source img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: cover;
}

.series-source a,
.outline-link {
  margin-left: auto;
  color: var(--accent-soft);
  text-decoration: none;
}

.series-source a:hover,
.outline-link:hover {
  text-decoration: underline;
}

.detail-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-section-title h3,
.playback-panel h3 {
  margin: 0;
  font-size: 15px;
}

.detail-section-title span {
  color: #7f6d5f;
  font-size: 10px;
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.cast-credit {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.022);
}

.cast-credit strong,
.cast-credit span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cast-credit strong {
  font-size: 11px;
}

.cast-credit span {
  margin-top: 5px;
  color: #826f60;
  font-size: 9px;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(38px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.episode-button {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #bca896;
  background: rgba(255, 255, 255, 0.03);
  font-size: 10px;
}

.episode-button:hover,
.episode-button:focus-visible {
  border-color: rgba(244, 154, 69, 0.42);
  color: var(--text);
}

.episode-button.restricted::after {
  display: block;
  color: #9c664d;
  content: "锁";
  font-size: 7px;
}

.episode-button.available {
  color: var(--green);
  border-color: rgba(98, 212, 156, 0.22);
}

.playback-panel {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(244, 154, 69, 0.18);
  border-radius: 14px;
  background: rgba(244, 154, 69, 0.045);
}

.playback-panel > p:not(.eyebrow) {
  margin: 12px 0 0;
  color: #a38e7d;
  font-size: 11px;
  line-height: 1.75;
}

.playback-panel video {
  width: 100%;
  max-height: 520px;
  margin-top: 16px;
  border-radius: 12px;
  background: #050403;
}

.playback-panel .outline-link {
  display: inline-block;
  margin: 16px 0 0;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 10px;
}

@media (max-width: 1260px) {
  .app-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .right-rail {
    display: none;
  }

  .feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .login-view {
    grid-template-columns: 1fr;
  }

  .login-story {
    min-height: auto;
    padding-bottom: 45px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .story-copy {
    padding: 80px 0 60px;
  }

  .login-panel {
    min-height: auto;
    padding: 50px 24px 70px;
  }

  .app-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .api-badge {
    display: none;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}

@media (max-width: 700px) {
  .login-story {
    padding: 30px 24px 42px;
  }

  .story-copy h1 {
    font-size: clamp(44px, 14vw, 66px);
  }

  .performance-strip strong {
    font-size: 17px;
  }

  .panel-card {
    padding: 28px 22px;
  }

  .service-badge {
    float: none;
    margin-bottom: 25px;
  }

  .app-header {
    min-height: 68px;
    padding: 0 16px;
  }

  .brand.compact small,
  .profile-button > span:last-child {
    display: none;
  }

  .app-layout {
    padding: 18px 14px 55px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 32px 25px;
  }

  .hero-orbit {
    display: none;
  }

  .feed-grid {
    grid-template-columns: 1fr;
  }

  .series-dialog-shell {
    padding: 22px 18px;
  }

  .series-overview {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
  }

  .cast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .episode-grid {
    grid-template-columns: repeat(6, minmax(36px, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
