/* ===== 设计系统 v3.0 — 全端统一视觉语言 ===== */
:root {
  /* 主色系 — 深海蓝 + 香槟金 */
  --primary: #1a3a5c;
  --primary-dark: #0f2440;
  --primary-light: #2a5680;
  --gold: #c9a86a;
  --gold-light: #e5c98f;
  --gold-dark: #b08d4a;

  /* 中性色 */
  --bg: #f5f6f8;
  --bg-warm: #faf8f5;
  --card: #ffffff;
  --text: #1f2937;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;

  /* 功能色 */
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* 阴影体系 */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);

  /* 圆角 */
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* 过渡 */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur: 0.25s;

  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --touch-min: 44px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
img { max-width: 100%; display: block; }

.skip-link {
  position: fixed; left: 16px; top: 10px; z-index: 12000;
  padding: 10px 14px; border-radius: 10px; background: var(--primary-dark); color: #fff;
  transform: translateY(-160%); transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(201,168,106,.72); outline-offset: 3px; }
button, [role="button"], input, select, textarea, a { touch-action: manipulation; }
.site-footer { padding: 28px 18px 104px; color: var(--text-light); text-align: center; font-size: 12px; line-height: 1.8; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 12px; }
.site-footer nav a { min-height: var(--touch-min); display: inline-flex; align-items: center; }
.site-record { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
.config-pending { color: var(--text-lighter); }
.site-support-link {
  min-height: 32px;
  padding: 3px 9px;
  border: 1px solid rgba(201,168,106,.42);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255,255,255,.72);
  font: inherit;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.site-support-link:hover { color: var(--primary-dark); border-color: var(--gold); background: #fff; transform: translateY(-1px); }
.support-fab {
  position: fixed;
  right: max(16px, calc((100vw - 1080px) / 2 + 18px));
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px 0 11px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 10px 26px rgba(15,36,64,.22), 0 2px 6px rgba(15,36,64,.12);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s var(--ease-bounce), box-shadow .2s var(--ease), background .2s var(--ease);
}
.support-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,36,64,.26), 0 3px 8px rgba(15,36,64,.14); background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.support-fab:active { transform: translateY(0) scale(.98); }
.support-fab-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 4px rgba(229,201,143,.14); }
.support-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(13,27,45,.56);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s var(--ease);
}
.support-modal-overlay.show { opacity: 1; pointer-events: auto; }
.support-modal {
  position: relative;
  width: min(100%, 390px);
  max-height: min(720px, calc(100vh - 40px));
  max-height: min(720px, calc(100dvh - 40px));
  overflow-y: auto;
  padding: 26px 24px 22px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 24px;
  color: var(--text);
  background: #fffdfa;
  box-shadow: 0 28px 80px rgba(13,27,45,.28);
  transform: translateY(12px) scale(.98);
  transition: transform .22s var(--ease-bounce);
}
.support-modal-overlay.show .support-modal { transform: translateY(0) scale(1); }
.support-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--text-light);
  background: transparent;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.support-modal-close:hover { color: var(--text); background: var(--border-light); }
.support-modal h2 { margin-top: 6px; color: var(--primary-dark); font-size: 23px; letter-spacing: -.035em; }
.support-modal-lead { margin-top: 8px; color: var(--text-light); font-size: 13px; line-height: 1.75; }
.support-contact-list { display: grid; gap: 8px; margin-top: 17px; }
.support-contact-row { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: #fff; font-size: 13px; }
.support-contact-row > span { min-width: 38px; color: var(--text-light); }
.support-contact-row strong { min-width: 0; overflow-wrap: anywhere; color: var(--primary-dark); font-weight: 700; }
.support-copy { min-height: 32px; margin-left: auto; padding: 5px 10px; font-size: 12px; white-space: nowrap; }
.support-qr-wrap { display: grid; justify-items: center; gap: 8px; margin: 14px auto 6px; }
.support-qr-card {
  width: min(100%, 272px);
  padding: 11px;
  border: 1px solid rgba(215,190,145,.42);
  border-radius: 20px;
  background: linear-gradient(155deg, #fff 0%, #fffdf8 68%, #f7efe2 100%);
  box-shadow: 0 16px 40px rgba(25,42,60,.1);
}
.support-qr-card-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .02em;
}
.support-qr-card-title > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #df5353, #9b57cf);
  box-shadow: 0 0 0 4px rgba(190,80,142,.09);
}
.support-qr { display: block; width: min(100%, 236px); height: auto; margin: 0 auto; border: 7px solid #fff; border-radius: 14px; box-shadow: 0 8px 22px rgba(34,45,58,.08); background: #fff; }
.support-qr-instruction { margin: 7px 0 1px; color: var(--text-lighter); font-size: 10px; line-height: 1.5; text-align: center; }
.support-qr-fallback { max-width: 260px; color: var(--text-light); font-size: 12px; line-height: 1.6; text-align: center; }
.support-modal-hint { margin-top: 10px; color: var(--text-lighter); font-size: 12px; line-height: 1.6; text-align: center; }
.support-modal-feedback { min-height: 20px; margin-top: 7px; color: var(--success); font-size: 12px; text-align: center; }
body.support-modal-open { overflow: hidden; }
@media (min-width: 768px) { .support-fab { bottom: 24px; } }
@media (max-width: 380px) { .support-modal { padding: 22px 18px 18px; } .support-contact-row { flex-wrap: wrap; } .support-copy { margin-left: 47px; } .support-qr-card { width: min(100%, 248px); } .support-qr { width: min(100%, 214px); } }
@media (prefers-reduced-motion: reduce) {
  .support-fab, .support-modal-overlay, .support-modal, .site-support-link { transition: none; }
}

/* 教师节限时公开课弹窗：轻量、可关闭，适配微信内置浏览器 */
.holiday-promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 11500;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(13, 27, 45, .64);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease);
}
.holiday-promo-overlay.show { opacity: 1; pointer-events: auto; }
.holiday-promo {
  position: relative;
  width: min(100%, 430px);
  max-height: min(720px, calc(100vh - 36px));
  max-height: min(720px, calc(100dvh - 36px));
  overflow-y: auto;
  padding: 30px 26px 24px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 26px;
  color: var(--text);
  background:
    radial-gradient(circle at 92% 0, rgba(229, 201, 143, .2), transparent 35%),
    linear-gradient(155deg, #fffdfa 0%, #fffaf2 100%);
  box-shadow: 0 28px 80px rgba(13, 27, 45, .32);
  transform: translateY(14px) scale(.98);
  transition: transform .24s var(--ease-bounce);
}
.holiday-promo-overlay.show .holiday-promo { transform: translateY(0) scale(1); }
.holiday-promo-close {
  position: absolute;
  top: 11px;
  right: 13px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--text-light);
  background: transparent;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.holiday-promo-close:hover { color: var(--primary-dark); background: rgba(26, 58, 92, .07); }
.holiday-promo-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid rgba(201, 168, 106, .42);
  border-radius: 999px;
  color: var(--gold-dark);
  background: rgba(229, 201, 143, .13);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}
.holiday-promo h2 { margin-top: 13px; color: var(--primary-dark); font-size: clamp(25px, 7vw, 31px); letter-spacing: -.045em; line-height: 1.2; }
.holiday-promo-lead { margin-top: 10px; color: var(--text-light); font-size: 14px; line-height: 1.8; }
.holiday-promo-course {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid rgba(201, 168, 106, .34);
  border-radius: 16px;
  background: rgba(255, 255, 255, .76);
}
.holiday-promo-course strong { color: var(--primary-dark); font-size: 16px; line-height: 1.45; }
.holiday-promo-course span { color: var(--gold-dark); font-size: 12px; }
.holiday-promo-actions { display: grid; gap: 9px; margin-top: 20px; }
.holiday-promo-actions .btn { width: 100%; min-height: var(--touch-min); text-align: center; text-decoration: none; }
.holiday-promo-scope { margin-top: 14px; color: var(--text-lighter); font-size: 11px; line-height: 1.7; }
body.holiday-promo-open { overflow: hidden; }
@media (max-width: 380px) {
  .holiday-promo { padding: 27px 19px 20px; border-radius: 22px; }
  .holiday-promo h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .holiday-promo-overlay, .holiday-promo { transition: none; }
}
.legal-page { max-width: 760px; margin: 0 auto; padding: 34px 22px 120px; }
.legal-page h1 { color: var(--primary-dark); font-size: clamp(28px, 6vw, 42px); line-height: 1.16; letter-spacing: -.035em; text-wrap: balance; }
.legal-page .legal-lead { margin: 14px 0 30px; color: var(--text-light); line-height: 1.85; }
.legal-page article { color: var(--text); line-height: 1.9; }
.legal-page h2 { margin: 32px 0 10px; color: var(--primary-dark); font-size: 20px; }
.legal-page h3 { margin: 22px 0 8px; font-size: 17px; }
.legal-page p, .legal-page li { margin: 8px 0; }
.legal-page ul, .legal-page ol { padding-left: 1.4em; }
.legal-note { margin: 22px 0; padding: 16px 18px; border-left: 3px solid var(--gold); background: #fffaf0; border-radius: 0 12px 12px 0; }
.membership-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0 40px; }
.membership-plans .plan-card { display: flex; flex-direction: column; min-height: 260px; margin: 0; }
.membership-plans .plan-desc { flex: 1; }
.membership-plans .btn { margin-top: 20px; min-height: var(--touch-min); }
@media (max-width: 767px) { .membership-plans { grid-template-columns: 1fr; } .membership-plans .plan-card { min-height: 0; } }
.membership-redeem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr);
  gap: 24px;
  align-items: center;
  margin: 0 0 42px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,250,240,.9), rgba(255,253,250,.96));
  box-shadow: var(--shadow-sm);
}
.membership-redeem-copy h2 { margin: 7px 0 8px; color: var(--primary-dark); font-size: 22px; letter-spacing: -.025em; }
.membership-redeem-copy p { margin: 0; color: var(--text-light); font-size: 13px; line-height: 1.75; }
.membership-redeem-form { min-width: 0; }
.membership-redeem-phone { display: grid; gap: 6px; margin-bottom: 10px; }
.membership-redeem-phone label { color: var(--ink); font-size: 13px; font-weight: 650; }
.membership-redeem-phone label small { color: var(--muted); font-weight: 500; }
.membership-redeem-phone input { width: 100%; min-height: var(--touch-min); padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-card); color: var(--ink); font: inherit; letter-spacing: .04em; }
.membership-redeem-phone input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(198,155,85,.13); }
.membership-redeem-fields { display: flex; gap: 10px; align-items: stretch; }
.membership-redeem-fields input { flex: 1; min-width: 0; min-height: var(--touch-min); padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-card); color: var(--ink); font: inherit; letter-spacing: .06em; text-transform: uppercase; }
.membership-redeem-fields input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(198,155,85,.13); }
.membership-redeem-fields .btn { flex: 0 0 auto; min-width: 100px; min-height: var(--touch-min); }
.membership-redeem-hint { margin: 8px 2px 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.membership-redeem-result { min-height: 20px; margin: 7px 2px 0; font-size: 12px; line-height: 1.5; }
.membership-redeem-result[data-type="success"] { color: var(--success); }
.membership-redeem-result[data-type="error"] { color: var(--danger, #a53e3e); }
@media (max-width: 767px) {
  .membership-redeem { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
}
@media (max-width: 380px) {
  .membership-redeem-fields { flex-direction: column; }
  .membership-redeem-fields .btn { width: 100%; }
}

/* ===== 响应式容器 ===== */
.app-shell {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
}
@media (min-width: 768px) {
  .app-shell { max-width: 720px; }
}
@media (min-width: 1024px) {
  .app-shell { max-width: 960px; box-shadow: var(--shadow-lg); }
  body { background: #eceef1; }
}
@media (min-width: 1280px) {
  .app-shell { max-width: 1080px; }
}

/* ===== 顶部导航 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(15, 36, 64, 0.25);
  backdrop-filter: blur(10px);
}
.navbar .brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar .brand .brand-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.navbar .brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.3px;
}
.navbar .nav-actions { display: flex; gap: 12px; align-items: center; }
.navbar a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: opacity var(--dur);
}
.navbar a:hover { opacity: 0.8; }
.navbar .avatar-circle {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 2px 8px rgba(201, 168, 106, 0.4);
  transition: transform var(--dur) var(--ease-bounce);
}
.navbar .avatar-image-wrap { overflow: hidden; padding: 0; }
.navbar .avatar-image { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.navbar .avatar-circle:hover { transform: scale(1.08); }

/* ===== 页面容器 ===== */
.container { padding: var(--space-md); padding-bottom: 90px; }
.page-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-title .count {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-lighter);
  background: var(--border-light);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

/* ===== 系列卡片 ===== */
.series-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  border: 1px solid var(--border-light);
}
.series-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.series-card:active { transform: translateY(0); }

.series-card .cover {
  width: 116px;
  min-height: 116px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}
.series-card .cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.15));
}
.series-card .cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s var(--ease);
}
.series-card:hover .cover img { transform: scale(1.05); }

.series-card .info {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.series-card .info h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}
.series-card .info p {
  font-size: 12px;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.series-card .meta {
  font-size: 11px;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.series-card .meta .free-tag {
  display: inline-block;
  background: var(--success-bg);
  color: var(--success);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
}

/* ===== 集列表 ===== */
.episode-item {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--dur) var(--ease);
  border: 1px solid transparent;
}
.episode-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
  transform: translateX(2px);
}
.episode-item:active { transform: translateX(0); }

.episode-item .order-badge {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #eef2f7, #e0e7f0);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.episode-item .ep-info { flex: 1; min-width: 0; }
.episode-item .ep-info h4 {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.episode-item .ep-info .ep-meta {
  font-size: 11px;
  color: var(--text-lighter);
  margin-top: 3px;
}

.episode-item .status-tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  font-weight: 600;
}
.tag-free { background: var(--success-bg); color: var(--success); }
.tag-lock { background: #f3f4f6; color: var(--text-lighter); }
.tag-ok { background: #e0f2fe; color: #0369a1; }
.tag-play {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(201, 168, 106, 0.3);
  transition: transform var(--dur) var(--ease-bounce);
}
.episode-item:hover .tag-play { transform: scale(1.1); }

/* ===== 播放器页 ===== */
.player-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
}
.player-box audio, .player-box video {
  width: 100%;
  border-radius: var(--radius-sm);
  outline: none;
  background: #000;
}
.player-box .p-title { font-size: 17px; font-weight: 700; margin-top: 12px; }
.player-box .p-series { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.player-box .p-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 10px;
  white-space: pre-wrap;
  line-height: 1.7;
}
.player-actions { display: flex; gap: 10px; margin-top: 14px; }
.player-actions .btn { flex: 1; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity var(--dur);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 58, 92, 0.25);
}
.btn-primary:hover { box-shadow: 0 4px 14px rgba(26, 58, 92, 0.35); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(201, 168, 106, 0.3);
}
.btn-gold:hover { box-shadow: 0 4px 14px rgba(201, 168, 106, 0.45); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled::before { display: none; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }

/* ===== 表单 ===== */
.form-group { margin-bottom: var(--space-md); }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  background: #fff;
  transition: border-color var(--dur), box-shadow var(--dur);
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.08);
}
.form-group textarea { min-height: 80px; resize: vertical; }

/* ===== 会员套餐卡片 ===== */
.plan-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  position: relative;
  transition: all var(--dur) var(--ease);
}
.plan-card:hover { box-shadow: var(--shadow-md); }
.plan-card.hot {
  border-color: var(--gold);
  background: linear-gradient(180deg, #fffbf3, #fff);
}
.plan-card .plan-name { font-size: 15px; font-weight: 700; }
.plan-card .plan-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin: 8px 0;
}
.plan-card .plan-price small {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
}
.plan-card .plan-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.6;
}
.plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(201, 168, 106, 0.4);
}

/* ===== 提示/空状态 ===== */
.toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(15, 36, 64, 0.92);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  z-index: 9999;
  display: block;
  max-width: 85%;
  text-align: center;
  opacity: 0;
  transition: all 0.3s var(--ease);
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.empty {
  text-align: center;
  color: var(--text-lighter);
  padding: 60px 20px;
  font-size: 14px;
}
.empty .empty-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
  opacity: 0.4;
}

/* ===== 弹窗 ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.2s var(--ease);
}
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px;
  max-width: 400px;
  width: calc(100% - 40px);
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalSlideUp 0.3s var(--ease-bounce);
}
@keyframes modalSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 24px;
  color: var(--text-lighter);
  cursor: pointer;
  line-height: 1;
  transition: color var(--dur);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.modal-close:hover { color: var(--text); background: var(--border-light); }

.confirm-overlay {
  position: fixed; inset: 0; z-index: 12000; display: grid; place-items: center;
  padding: 20px; background: rgba(13,27,45,.56); backdrop-filter: blur(10px);
  animation: fadeIn .18s var(--ease);
}
.confirm-dialog {
  width: min(100%, 420px); padding: 24px; border: 1px solid rgba(255,255,255,.6);
  border-radius: 20px; background: #fffdfa; box-shadow: 0 28px 80px rgba(13,27,45,.26);
  animation: modalSlideUp .24s var(--ease);
}
.confirm-dialog h2 { margin-top: 5px; color: var(--ink); font-size: 22px; letter-spacing: -.03em; }
.confirm-dialog p { margin-top: 9px; color: var(--muted-dark); line-height: 1.75; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 22px; }
.btn-danger { color: #fff; background: #9f3d3d; border-color: #9f3d3d; }
.btn-danger:hover { background: #823131; border-color: #823131; }

/* ===== 加载骨架屏 ===== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  height: 116px;
  margin-bottom: var(--space-md);
  border-radius: var(--radius);
}

/* 按钮加载态 */
.btn.loading { pointer-events: none; opacity: 0.65; }
.btn.loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  margin-left: 8px;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 播放器增强 ===== */
.player-nav { display: flex; gap: 10px; margin-top: 14px; }
.player-nav .btn { flex: 1; }
.player-speed {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
}
.player-speed select {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.ep-notes {
  background: var(--card);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-top: 14px;
  box-shadow: var(--shadow-sm);
}
.ep-notes h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.ep-notes p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== 上传进度条 ===== */
.upload-progress {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}
.upload-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  width: 0;
  transition: width 0.3s var(--ease);
  border-radius: 3px;
}

/* ===== 底部 Tab Bar ===== */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 90;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@media (min-width: 768px) {
  .tabbar { max-width: 720px; }
}
@media (min-width: 1024px) {
  .tabbar { max-width: 960px; }
}
@media (min-width: 1280px) {
  .tabbar { max-width: 1080px; }
}
.tabbar a {
  flex: 1;
  text-align: center;
  padding: 10px 0 8px;
  font-size: 11px;
  color: var(--text-lighter);
  transition: color var(--dur);
  position: relative;
}
.tabbar a.active { color: var(--primary); }
.tabbar a.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}
.tabbar .tab-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 2px;
  transition: transform var(--dur) var(--ease-bounce);
}

/* 手机保留拇指可达的底栏；桌面回到顶部导航，避免遮挡长内容。 */
@media (min-width: 768px) {
  .tabbar { display: none; }
  .container { padding-bottom: 48px; }
  .site-footer { padding-bottom: 44px; }
}
.tabbar a.active .tab-icon { transform: scale(1.15) translateY(-1px); }
.tabbar a:hover .tab-icon { transform: scale(1.1); }

/* ===== 后台表格 ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th, .table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.table th {
  color: var(--text-light);
  font-weight: 600;
  background: var(--bg-warm);
}

/* ===== 权限锁提示 ===== */
.lock-tip {
  text-align: center;
  padding: 40px 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.lock-tip .lock-icon {
  font-size: 44px;
  display: block;
  margin-bottom: 8px;
}
.lock-tip h3 { margin: 10px 0 6px; font-size: 16px; }
.lock-tip p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ===== v2 首页增强 ===== */

/* 统计栏 */
.stats-bar {
  display: flex;
  justify-content: space-around;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 12px 20px 16px;
  position: relative;
  overflow: hidden;
}
.stats-bar::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(201,168,106,0.15), transparent);
  border-radius: 50%;
}
.stat-item { text-align: center; position: relative; z-index: 1; }
.stat-num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #fff, rgba(255,255,255,0.8));
  -webkit-background-clip: text;
}
.stat-label {
  font-size: 11px;
  opacity: 0.7;
  letter-spacing: 0.3px;
}

/* 搜索栏 */
.search-bar {
  position: relative;
  padding: 14px 16px 4px;
}
.search-bar input {
  width: 100%;
  padding: 11px 40px 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  outline: none;
  background: var(--card);
  transition: all var(--dur);
  box-shadow: var(--shadow-xs);
}
.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.08);
}
.search-bar .search-icon {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-25%);
  font-size: 16px;
  opacity: 0.35;
  pointer-events: none;
}
.search-bar .search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-25%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
}
.search-bar .search-clear.show { display: flex; }

/* 分类标签栏 */
.category-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.category-bar::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--card);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  --cat-color: var(--primary);
  scroll-snap-align: start;
}
.cat-chip:hover {
  border-color: var(--cat-color);
  color: var(--cat-color);
}
.cat-chip:active { transform: scale(0.95); }
.cat-chip .cat-count {
  font-size: 11px;
  opacity: 0.55;
  margin-left: 3px;
}
.cat-chip.active {
  background: var(--cat-color);
  border-color: var(--cat-color);
  color: #fff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--cat-color) 30%, transparent);
}
.cat-chip.active .cat-count { opacity: 0.85; }

/* 系列分类小标签 */
.series-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 2px 0;
}
.series-cat-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 500;
  color: var(--tc, var(--primary));
  background: color-mix(in srgb, var(--tc, var(--primary)) 10%, transparent);
  --tc: var(--primary);
}

/* 卡片入场动画 */
.card-anim {
  animation: cardFadeIn 0.4s var(--ease) both;
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 更新中标签 */
.partial-tag {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-left: 4px;
  font-size: 10px;
  font-weight: 500;
}

/* 封面占位符 */
.cover-placeholder {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  padding: 4px;
  line-height: 1.3;
  word-break: break-all;
  position: relative;
  z-index: 1;
}

/* ===== 桌面端网格布局 ===== */
@media (min-width: 768px) {
  .series-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  .series-card { margin-bottom: 0; }
}
@media (min-width: 1024px) {
  .series-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== 实用类 ===== */
.hidden { display: none !important; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }

/* ===== 滚动条美化（PC端） ===== */
@media (min-width: 1024px) {
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }
}

/* ===== 知识书房升级层：保留现有 class 与业务挂载点 ===== */
:root {
  --ink: #172437;
  --ink-deep: #0d1b2d;
  --ink-soft: #2c4058;
  --paper: #f5f1e8;
  --paper-soft: #fbfaf7;
  --paper-card: #fffdfa;
  --line: #e7e1d6;
  --muted: #718096;
  --muted-dark: #4b5b70;
  --gold: #c69b55;
  --gold-light: #e8c98c;
  --gold-dark: #96713b;
  --primary: var(--ink-soft);
  --primary-dark: var(--ink-deep);
  --primary-light: #44617f;
  --bg: var(--paper);
  --bg-warm: var(--paper-soft);
  --card: var(--paper-card);
  --text: var(--ink);
  --text-light: var(--muted-dark);
  --text-lighter: #8b98a8;
  --border: var(--line);
  --border-light: #f0ece5;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-xs: 0 1px 2px rgba(23,36,55,.04);
  --shadow-sm: 0 8px 22px rgba(23,36,55,.06);
  --shadow-md: 0 14px 36px rgba(23,36,55,.09);
  --shadow-lg: 0 24px 60px rgba(23,36,55,.12);
}

html { background: var(--paper); }
body {
  background:
    radial-gradient(circle at 12% 0%, rgba(232,201,140,.18), transparent 28rem),
    linear-gradient(180deg, #fbfaf7 0%, var(--paper) 70%);
  color: var(--ink);
  overflow-x: hidden;
}
body::selection { background: var(--gold-light); color: var(--ink-deep); }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(198,155,85,.45);
  outline-offset: 3px;
}
.app-shell {
  width: 100%;
  max-width: 1180px;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}
.container { padding: 28px clamp(16px, 3vw, 42px) 108px; }
.navbar {
  padding: 17px clamp(18px, 3vw, 42px);
  background: rgba(13,27,45,.96);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(13,27,45,.14);
}
.navbar .brand { gap: 11px; letter-spacing: .2px; }
.navbar .brand .brand-icon {
  width: 38px; height: 38px; border-radius: 13px;
  background: linear-gradient(145deg, #f1d69f, var(--gold));
  color: var(--ink-deep); box-shadow: 0 7px 18px rgba(198,155,85,.28);
}
.navbar .brand small { margin-top: 2px; color: rgba(255,255,255,.62); }
.navbar a { color: rgba(255,255,255,.84); }
.navbar a:hover { color: #fff; opacity: 1; }
.page-title { font-size: 21px; letter-spacing: -.02em; margin-bottom: 18px; }
.page-title .count { background: rgba(198,155,85,.12); color: var(--gold-dark); }

.stats-bar {
  width: auto;
  max-width: calc(100% - 32px);
  margin: 0 clamp(16px, 3vw, 42px);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 20px clamp(16px, 4vw, 44px) 23px;
  background: linear-gradient(125deg, var(--ink-deep), #23415d 65%, #2d4b63);
  box-shadow: 0 16px 34px rgba(13,27,45,.14);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.stat-item { flex: 1; min-width: 0; }
.stat-num { font-size: clamp(25px, 4vw, 34px); letter-spacing: -.04em; }
.stat-label { font-size: 12px; color: rgba(255,255,255,.65); }
.search-bar { padding: 24px clamp(16px, 3vw, 42px) 4px; }
.search-bar input {
  border-color: var(--line); background: rgba(255,253,250,.9); box-shadow: var(--shadow-sm);
  padding: 14px 44px 14px 18px; font-size: 14px;
}
.search-bar input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(198,155,85,.14); }
.category-bar { padding: 14px clamp(16px, 3vw, 42px) 2px; gap: 9px; }
.cat-chip { border-color: var(--line); background: rgba(255,253,250,.8); color: var(--muted-dark); padding: 8px 15px; }
.cat-chip.active { background: var(--ink); border-color: var(--ink); box-shadow: 0 8px 16px rgba(23,36,55,.15); }
.series-grid { gap: 18px; }
.series-card {
  min-width: 0; margin-bottom: 0; border-color: rgba(231,225,214,.8);
  border-radius: var(--radius); background: rgba(255,253,250,.92); box-shadow: var(--shadow-sm);
}
.series-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(198,155,85,.48); }
.series-card .cover { width: 132px; min-height: 156px; background: linear-gradient(145deg, var(--ink-soft), var(--gold-dark)); }
.series-card .info { min-width: 0; padding: 17px 17px 15px; gap: 7px; }
.series-card .info h3 { font-size: 16px; letter-spacing: -.015em; }
.series-card .info p { color: var(--muted-dark); line-height: 1.65; }
.series-card .meta { color: var(--gold-dark); }
.series-cat-tag { border-radius: 6px; background: color-mix(in srgb, var(--tc, var(--gold)) 12%, transparent); }
.episode-item { margin-bottom: 10px; padding: 14px 16px; border-color: rgba(231,225,214,.76); background: rgba(255,253,250,.9); }
.episode-item:hover { border-color: rgba(198,155,85,.52); transform: translateX(4px); }
.episode-item .order-badge { background: var(--ink); color: var(--gold-light); border-radius: 11px; }
.episode-item .ep-info h4 { font-size: 14px; }
.tag-play { background: var(--gold); color: var(--ink-deep); box-shadow: 0 7px 14px rgba(198,155,85,.25); }
.tag-lock { background: #f0ece5; color: var(--muted-dark); }
.btn { min-height: 44px; border-radius: 12px; box-shadow: none; }
.btn-primary { background: var(--ink); }
.btn-primary:hover { background: var(--ink-soft); box-shadow: 0 10px 22px rgba(23,36,55,.16); }
.btn-gold { background: linear-gradient(135deg, #e7c98e, var(--gold)); }
.btn-outline { border-color: var(--ink-soft); color: var(--ink-soft); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); }
.form-group input, .form-group select, .form-group textarea { border-color: var(--line); background: var(--paper-card); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(198,155,85,.13); }
.plan-card { border-color: rgba(231,225,214,.85); background: rgba(255,253,250,.9); }
.plan-card.hot { border-color: var(--gold); background: linear-gradient(145deg, #fffaf0, #fffdfa); box-shadow: 0 12px 30px rgba(198,155,85,.12); }
.plan-card .plan-price { color: var(--ink); }
.toast { background: rgba(13,27,45,.96); border: 1px solid rgba(255,255,255,.1); }
.tabbar { max-width: 1180px; background: rgba(251,250,247,.92); border-top-color: var(--line); box-shadow: 0 -8px 26px rgba(23,36,55,.07); }
.tabbar a { min-height: 58px; padding-top: 9px; color: #8b98a8; }
.tabbar a.active { color: var(--ink); }
.tabbar a.active::before { background: var(--gold); height: 3px; }
.tabbar .tab-icon { filter: grayscale(.2); }
.lock-tip { border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: rgba(255,253,250,.9); }
.admin-tabs { position: sticky; top: 72px; z-index: 20; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: rgba(251,250,247,.92); backdrop-filter: blur(10px); }
.admin-tabs .tab { border: 0; background: transparent; color: var(--muted-dark); min-height: 40px; display: flex; align-items: center; justify-content: center; }
.admin-tabs .tab.active { background: var(--ink); color: #fff; box-shadow: 0 7px 14px rgba(23,36,55,.15); }
.admin-card { border: 1px solid var(--line); background: rgba(255,253,250,.92); box-shadow: var(--shadow-sm); }
.mini-btn { min-height: 34px; border-color: var(--line); color: var(--muted-dark); }
.mini-btn.primary { background: var(--ink); }
.mini-btn.danger { color: #a53e3e; border-color: #e8caca; }
.library-intro {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  padding: 38px clamp(16px, 3vw, 42px) 28px;
}
.library-intro > div, .section-heading > div { min-width: 0; max-width: 100%; }
.library-intro h1 { max-width: 620px; margin-top: 7px; color: var(--ink); font-size: clamp(27px, 5vw, 48px); line-height: 1.08; letter-spacing: -.055em; }
.library-intro p { max-width: 540px; margin-top: 12px; color: var(--muted-dark); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.section-kicker { display: block; color: var(--gold-dark); font-size: 10px; font-weight: 800; letter-spacing: .18em; line-height: 1.4; }
.intro-action { display: inline-flex; align-items: center; gap: 12px; padding: 11px 15px; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; background: rgba(255,253,250,.75); font-size: 12px; font-weight: 700; white-space: nowrap; transition: all var(--dur) var(--ease); }
.intro-action:hover { border-color: var(--gold); color: var(--gold-dark); transform: translateY(-2px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading .page-title { margin: 5px 0 0; }
.heading-note { color: var(--muted); font-size: 12px; line-height: 1.6; text-align: right; }
.account-heading, .admin-heading { margin-bottom: 22px; }
.pv-video-element { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #05080c; }
.pv-link-tool { border: 0; font: inherit; }

/* 播放器：知识书房的沉浸式夜间工作台 */
.pv-wrapper {
  max-width: 760px;
  background: #101d2c;
  color: #f8f4eb;
  box-shadow: 0 0 80px rgba(13,27,45,.18);
}
.pv-header {
  min-height: 66px;
  padding: 13px 18px;
  background: rgba(16,29,44,.92);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
.pv-header .back-btn { color: #f8f4eb; background: rgba(255,255,255,.1); }
.pv-header .back-btn:hover { background: rgba(255,255,255,.18); }
.pv-header .pv-title { color: rgba(248,244,235,.76); }
.pv-stage {
  min-height: 320px;
  height: min(68vh, 620px);
  background: #050a12;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.pv-slide-img { width: 100%; height: 100%; object-fit: contain; }
.pv-audio-cover { min-height: 320px; height: 100%; background: radial-gradient(circle at 50% 22%, #334c68 0, #18283d 36%, #070d16 78%); }
.pv-audio-cover img { width: min(260px, 48vw); height: min(260px, 48vw); border-radius: 22px; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 25px 70px rgba(0,0,0,.42); }
.pv-audio-cover .ac-title { color: #f8f4eb; font-size: 18px; font-weight: 700; }
.pv-audio-cover .ac-series { color: rgba(248,244,235,.55); }
.pv-controls { padding: 22px 22px 20px; background: #f5f1e8; color: var(--ink); }
.pv-progress-bar { height: 6px; background: #d9d4cb; }
.pv-progress-fill { background: linear-gradient(90deg, var(--gold-dark), var(--gold)); }
.pv-btn { background: #fffdfa; color: var(--ink); box-shadow: 0 4px 14px rgba(23,36,55,.1); }
.pv-btn:hover { background: #fff; color: var(--gold-dark); }
.pv-play-btn { background: var(--ink); color: #fff; box-shadow: 0 12px 22px rgba(23,36,55,.22); }
.pv-play-btn:hover { background: var(--ink-soft); }
.pv-toolbar { border-top: 1px solid var(--line); padding-top: 14px; }
.pv-tool { min-width: 52px; min-height: 44px; color: var(--muted-dark); }
.pv-tool { border: 0; font: inherit; background: transparent; cursor: pointer; }
.pv-tool:hover, .pv-tool.active { color: var(--gold-dark); background: rgba(198,155,85,.1); }
.pv-tool .icon { font-size: 17px; font-weight: 700; }
.pv-notes { padding: 20px 22px 96px; background: #f5f1e8; color: var(--ink); }
.pv-notes h4 { color: var(--gold-dark); letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.pv-notes p { color: var(--muted-dark); }
.pv-speed-popup { background: #fffdfa; border: 1px solid var(--line); box-shadow: 0 -18px 50px rgba(23,36,55,.16); }
.pv-speed-item.selected { background: var(--ink); }
.pv-mode-toggle { border: 1px solid rgba(255,255,255,.18); background: rgba(13,27,45,.78); backdrop-filter: blur(10px); }
.pv-drive-mode .pv-stage { min-height: 240px; height: 46vh; }

@media (max-width: 767px) {
  .pv-wrapper { min-height: 100dvh; }
  .pv-stage { min-height: 280px; height: 52vh; }
  .pv-controls { padding: 18px 14px 16px; }
  .pv-btn-row { gap: 12px; }
  .pv-btn { width: 42px; height: 42px; }
  .pv-play-btn { width: 60px; height: 60px; }
  .pv-toolbar { gap: 3px; justify-content: space-between; }
  .pv-tool { min-width: 44px; padding: 6px 4px; font-size: 10px; }
  .pv-link-tool { display: flex; }
  .pv-notes { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 420px) {
  .stats-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pv-toolbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
  .pv-tool { width: 100%; min-width: 0; padding-left: 2px; padding-right: 2px; }
  .episode-item { gap: 8px; padding-left: 12px; padding-right: 10px; }
  .episode-item .order-badge { width: 36px; height: 36px; }
  .episode-item .ep-info h4 { font-size: 13px; }
  .episode-item .status-tag { max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 5px; padding-right: 5px; }
  .episode-item .tag-play { width: 28px; height: 28px; font-size: 12px; }
}

@media (max-width: 767px) {
  .library-intro { align-items: start; flex-direction: column; gap: 16px; padding-top: 28px; }
  .library-intro h1 { font-size: 31px; }
  .intro-action { align-self: flex-start; }
  .section-heading { align-items: start; flex-direction: column; gap: 4px; }
  .heading-note { text-align: left; }
  .container { padding-top: 22px; }
  .stats-bar { width: calc(100% - 20px); max-width: none; margin-left: 10px; margin-right: 10px; padding-left: 12px; padding-right: 12px; }
  .series-card .cover { width: 104px; min-height: 148px; }
  .series-card .info { padding: 13px 13px 12px; }
  .series-card .info h3 { font-size: 15px; }
  .series-card .info p { font-size: 12px; }
  .category-bar { padding-left: 16px; padding-right: 16px; }
  .admin-tabs { top: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* ===== 管理手记品牌与图标层 ===== */
.icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -0.18em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
}
.icon-inline { width: 1em; height: 1em; vertical-align: -0.15em; }
.brand-icon.brand-mark { overflow: hidden; padding: 4px; background: #f6dfab; }
.brand-icon.brand-mark img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; border-radius: 9px; mix-blend-mode: multiply; }
.brand-subtitle { color: var(--gold-light); font-weight: 500; letter-spacing: .04em; }
.navbar .brand small { max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-copy { min-width: 0; display: grid; gap: 1px; line-height: 1.15; }
.brand-copy strong { font-size: 15px; font-weight: 800; letter-spacing: .015em; white-space: nowrap; }
.brand-copy strong span { color: var(--gold-light); font-weight: 500; }
.brand-copy small { font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: none; }
.login-mark { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; border-radius: 16px; mix-blend-mode: screen; }
.login-brand-name { font-size: 20px; font-weight: 800; margin-top: 8px; color: var(--ink); letter-spacing: -.04em; }
.login-brand-name span { font-weight: 500; color: var(--gold-dark); letter-spacing: .02em; }
.login-brand-tagline { font-size: 13px; color: var(--muted-dark); margin-top: 7px; letter-spacing: .03em; }
.password-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); cursor: pointer; border: 0; color: var(--muted); background: transparent; width: var(--touch-min); height: var(--touch-min); border-radius: 9px; display: grid; place-items: center; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.password-toggle:hover { background: var(--line); color: var(--ink); }
.password-toggle .icon { width: 17px; height: 17px; }
.empty-illustrated { display: grid; place-items: center; gap: 6px; min-height: 270px; color: var(--ink); }
.empty-illustrated img { width: min(220px, 56vw); height: 116px; object-fit: cover; object-position: 50% 46%; mix-blend-mode: multiply; opacity: .88; filter: saturate(.84); margin-bottom: 3px; }
.empty-illustrated span { font-weight: 700; font-size: 15px; }
.empty-illustrated small { color: var(--muted); font-size: 12px; }
.tabbar .tab-icon { display: inline-grid; place-items: center; }
.tabbar .tab-icon .icon { width: 20px; height: 20px; vertical-align: 0; stroke-width: 1.7; }
.tabbar a.active .tab-icon .icon { stroke-width: 2.2; }
.search-bar .search-icon .icon, .search-bar .search-clear .icon { width: 17px; height: 17px; vertical-align: 0; }
.search-bar .search-clear { border: 0; padding: 0; }
.search-bar .search-clear .icon { stroke-width: 2; }
.series-card .meta .icon, .series-header .sh-meta .icon, .admin-media-type .icon { width: 14px; height: 14px; vertical-align: -2px; }
.tag-play { display: inline-grid; place-items: center; }
.tag-play .icon { width: 13px; height: 13px; vertical-align: 0; }

/* 轻量动效：为内容层次提供节奏，不阻塞阅读与播放。 */
.navbar .brand-icon { transition: transform .32s var(--ease-bounce), box-shadow .32s var(--ease); }
.navbar .brand:hover .brand-icon { transform: rotate(-4deg) scale(1.04); box-shadow: 0 10px 24px rgba(198,155,85,.35); }
.series-card, .episode-item, .plan-card, .admin-card { will-change: transform; }
.series-card:hover .cover::after { opacity: .42; }
.series-card .cover::after { transition: opacity .3s var(--ease); }
.series-card .info h3, .episode-item .ep-info h4 { transition: color .25s var(--ease); }
.series-card:hover .info h3, .episode-item:hover .ep-info h4 { color: var(--gold-dark); }
.stats-bar { position: relative; overflow: hidden; }
.stats-bar::after { content: ''; position: absolute; width: 180px; height: 180px; right: -52px; top: -94px; border: 1px solid rgba(229,201,143,.2); border-radius: 50%; box-shadow: 0 0 0 18px rgba(229,201,143,.035), 0 0 0 36px rgba(229,201,143,.025); pointer-events: none; }
.stat-num { animation: statReveal .65s var(--ease-bounce) both; }
@keyframes statReveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.pv-btn, .pv-play-btn { transition: transform .22s var(--ease-bounce), background .22s var(--ease), box-shadow .22s var(--ease), color .22s var(--ease); }
.pv-btn .icon, .pv-play-btn .icon { width: 20px; height: 20px; vertical-align: 0; }
.pv-play-btn .icon { width: 25px; height: 25px; }
.pv-play-btn:active { transform: scale(.9); }
.pv-toolbar .pv-tool .icon { display: inline-grid; place-items: center; min-height: 20px; }
.pv-toolbar .pv-tool .icon .icon { width: 18px; height: 18px; vertical-align: 0; }
.pv-tool.active .icon .icon { animation: toolPulse 1.8s ease-in-out infinite; }
@keyframes toolPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.pv-progress-fill::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent); background-size: 180px 100%; animation: progressSheen 2.8s linear infinite; opacity: .5; }
@keyframes progressSheen { from { background-position: -180px 0; } to { background-position: 180px 0; } }
.pv-audio-cover::before { content: ''; position: absolute; width: 52%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(229,201,143,.16); box-shadow: 0 0 0 22px rgba(229,201,143,.035), 0 0 0 44px rgba(229,201,143,.02); animation: roomBreath 5s ease-in-out infinite; pointer-events: none; }
@keyframes roomBreath { 0%, 100% { transform: scale(.97); opacity: .5; } 50% { transform: scale(1.03); opacity: 1; } }
.pv-audio-cover { position: relative; overflow: hidden; }
.pv-audio-cover > * { position: relative; z-index: 1; }
.pv-mode-toggle .icon, .pv-mode-toggle .icon .icon { width: 14px; height: 14px; vertical-align: 0; }
.pv-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.pv-brand-label { color: rgba(229,201,143,.95); font-size: 10px; letter-spacing: .08em; white-space: nowrap; }
.pv-episode-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 成长书房：沿用首页/个人中心的纸张与墨蓝层级 ===== */
.resume-rail, .learning-journey { margin: 0 clamp(16px, 3vw, 42px) 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,253,250,.82); box-shadow: var(--shadow-sm); }
.resume-rail { margin-top: 8px; }
.journey-heading, .history-heading, .quote-studio-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.journey-heading h2, .history-heading h3, .quote-studio h3 { margin-top: 5px; color: var(--ink); font-size: 19px; letter-spacing: -.035em; }
.journey-heading > a, .journey-note, .quote-studio-head > span { color: var(--muted); font-size: 11px; }
.resume-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.resume-card { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 11px; border: 1px solid rgba(231,225,214,.9); border-radius: 13px; background: #fffdfa; transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.resume-card:hover { transform: translateY(-2px); border-color: rgba(198,155,85,.55); box-shadow: var(--shadow-sm); }
.resume-book, .history-icon { display: grid; place-items: center; width: 32px; height: 38px; flex: 0 0 auto; color: var(--gold-dark); background: #f4ead7; border-radius: 7px 4px 4px 7px; }
.resume-book .icon, .history-icon .icon { width: 18px; height: 18px; }
.resume-copy, .history-main { display: grid; gap: 3px; min-width: 0; flex: 1; }
.resume-copy strong, .history-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 12px; }
.resume-copy small, .history-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.resume-progress, .history-progress { display: block; height: 3px; overflow: hidden; border-radius: 99px; background: #eee8df; }
.resume-progress i, .history-progress i { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.resume-action { flex: 0 0 auto; text-align: right; color: var(--gold-dark); font-size: 11px; line-height: 1.35; }
.resume-action em { color: var(--muted); font-size: 10px; font-style: normal; }
.growth-cup { display: flex; align-items: center; gap: 22px; margin-top: 16px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, #f8f1e5, #fffdfa); }
.cup-visual { width: 116px; flex: 0 0 auto; display: grid; justify-items: center; }
.cup-body { position: relative; width: 78px; height: 88px; overflow: hidden; border: 2px solid var(--gold-dark); border-top: 0; border-radius: 5px 5px 22px 22px; background: rgba(255,255,255,.55); }
.cup-body::before { content: ''; position: absolute; left: -12px; right: -12px; bottom: 0; height: var(--cup-fill, 20%); background: rgba(198,155,85,.2); }
.cup-fill { position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; background: rgba(198,155,85,.2); transition: height .6s var(--ease-bounce); }
.cup-saucer { width: 104px; height: 8px; margin-top: 5px; border-radius: 50%; background: #e3d2b5; }
.cup-book { position: absolute; z-index: 1; color: var(--gold-dark); animation: bookSettle .45s var(--ease-bounce) both; animation-delay: calc(var(--book-index) * .04s); }
.cup-book .icon { width: 17px; height: 17px; }
.cup-book:nth-of-type(2n) { left: 14px; bottom: 9px; transform: rotate(-8deg); }
.cup-book:nth-of-type(2n+1) { right: 12px; bottom: 15px; transform: rotate(7deg); }
.cup-copy { min-width: 0; display: grid; gap: 4px; }
.stage-label { color: var(--gold-dark); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.cup-copy strong { color: var(--ink); font-size: 18px; letter-spacing: -.035em; }
.cup-copy p { color: var(--muted-dark); font-size: 12px; line-height: 1.7; }
.cup-metrics { display: flex; gap: 13px; color: var(--muted); font-size: 10px; }
.history-panel { margin-top: 20px; }
.history-heading { align-items: center; }
.history-heading h3 { font-size: 16px; }
.text-button, .text-link { border: 0; background: transparent; color: var(--gold-dark); cursor: pointer; font-size: 11px; }
.history-list { display: grid; gap: 6px; margin-top: 8px; }
.history-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.history-go { color: var(--gold-dark); font-size: 11px; }
.history-empty { display: grid; justify-items: center; gap: 5px; padding: 20px 10px; text-align: center; }
.history-empty .empty-icon { color: var(--gold-dark); }
.history-empty strong { color: var(--ink); font-size: 14px; }
.history-empty p { color: var(--muted); font-size: 12px; }
.quote-studio { margin: 0 22px 96px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fffdfa; color: var(--ink); }
.quote-studio blockquote { margin: 18px 0; padding-left: 16px; border-left: 3px solid var(--gold); color: var(--ink); font-family: Georgia, 'Songti SC', serif; font-size: clamp(18px, 3vw, 24px); line-height: 1.7; }
.quote-share-note { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; margin: -4px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.quote-share-note strong { padding: 3px 8px; border: 1px solid rgba(198,155,85,.28); border-radius: 999px; color: var(--gold-dark); background: #fbf4e8; font-weight: 750; }
.quote-studio-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.quote-studio-actions .btn { min-height: 36px; padding: 8px 12px; font-size: 12px; }
.quote-preview { display: grid; justify-items: start; gap: 11px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote-preview-head { display: grid; gap: 2px; }
.quote-preview-head strong { color: var(--ink); font-size: 13px; }
.quote-preview-head span { color: var(--muted); font-size: 10px; }
.quote-preview canvas { width: min(360px, 100%); height: auto; aspect-ratio: 3 / 4; border: 1px solid rgba(198,155,85,.28); border-radius: 16px; box-shadow: 0 18px 42px rgba(19,39,58,.16); background: #10263d; }
.quote-download { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px; text-decoration: none; font-size: 12px; }
@keyframes bookSettle { from { opacity: 0; transform: translateY(-8px) rotate(-5deg); } to { opacity: 1; } }
@media (max-width: 767px) { .resume-rail, .learning-journey { margin-left: 10px; margin-right: 10px; } .resume-list { grid-template-columns: 1fr; } .resume-card:nth-child(n+3) { display: none; } .growth-cup { gap: 14px; padding: 14px; } .cup-visual { transform: scale(.88); transform-origin: left center; margin-right: -8px; } .quote-studio { margin-left: 16px; margin-right: 16px; } }

/* ===== 统一状态反馈：低打扰、可恢复、可读 ===== */
.feedback-toast {
  position: fixed; left: 50%; top: 74px; z-index: 10000;
  max-width: min(360px, calc(100vw - 32px)); padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  background: rgba(19,35,53,.94); color: #f8f4eb; font-size: 13px;
  box-shadow: 0 14px 34px rgba(19,35,53,.18); backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none; transform: translate(-50%, -8px);
  transition: opacity .24s var(--ease), transform .24s var(--ease);
}
.feedback-toast.show { opacity: 1; transform: translate(-50%, 0); }
.feedback-toast[data-type="error"] { background: rgba(116,53,53,.96); }
.feedback-toast[data-type="info"] { background: rgba(42,69,92,.96); }
.offline-banner { position: fixed; left: 50%; bottom: 18px; z-index: 10001; max-width: calc(100vw - 32px); padding: 9px 14px; border: 1px solid #e6c88f; border-radius: 999px; background: #fff8e9; color: #795b2f; font-size: 12px; box-shadow: 0 8px 22px rgba(91,68,31,.12); opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .24s var(--ease), transform .24s var(--ease); }
.offline-banner.show { opacity: 1; transform: translate(-50%, 0); }
.view-state { min-height: 150px; padding: 34px 18px; display: grid; place-items: center; justify-items: center; gap: 9px; text-align: center; color: var(--muted-dark); font-size: 13px; }
.loading-state { color: var(--muted); }
.state-spinner { width: 22px; height: 22px; border: 2px solid rgba(198,155,85,.24); border-top-color: var(--gold-dark); border-radius: 50%; animation: spin .72s linear infinite; }
.error-state { color: #8b4c4c; }
.state-mark { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #dcb3b3; border-radius: 50%; font-size: 12px; font-weight: 800; }
.empty-state { color: var(--muted); }
.state-quote { max-width: 280px; color: var(--gold-dark); font-family: Georgia, 'Songti SC', serif; font-size: 14px; line-height: 1.7; }
.state-action { min-height: var(--touch-min); padding: 9px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper-card); color: var(--ink); font-size: 13px; cursor: pointer; transition: all .2s var(--ease); }
.state-action:hover { border-color: var(--gold); color: var(--gold-dark); transform: translateY(-1px); }
.tag-producing { color: #7a6541; background: #f1e8d8; }
.episode-item.is-producing { opacity: .72; cursor: default; }
.inline-error { margin: 8px 0; padding: 9px 11px; border-left: 2px solid #b76666; background: #fff5f3; color: #874747; font-size: 12px; line-height: 1.6; }
.field-error { margin-top: 5px; color: #a14e4e; font-size: 12px; }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ''; position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; margin: -8px 0 0 -8px; border: 2px solid rgba(255,255,255,.72); border-right-color: transparent; border-radius: 50%; animation: spin .72s linear infinite; }
.btn.loading::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(255,255,255,.08); }
.pv-status { position: absolute; left: 50%; top: 50%; z-index: 4; display: none; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(5,10,18,.72); color: rgba(248,244,235,.86); font-size: 12px; transform: translate(-50%, -50%); backdrop-filter: blur(10px); }
.pv-status.show { display: inline-flex; }
.pv-status.error { color: #f2c3b9; }
.upload-stage { color: var(--muted-dark); font-size: 12px; }
.admin-media-type { color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .feedback-toast, .offline-banner { transition: none; }
}

@media (max-width: 520px) {
  .navbar .nav-actions > a { display: none; }
  .navbar .nav-actions > button { white-space: nowrap; }
  .navbar .brand { min-width: 0; flex: 1; }
  .navbar .brand-copy { min-width: 0; }
  .navbar .brand-copy strong { overflow: hidden; text-overflow: ellipsis; }
  .player-page .support-fab { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .brand-subtitle { display: none; }
  .navbar .brand small { max-width: 190px; }
  .empty-illustrated img { width: 190px; }
}

@media (max-width: 340px) {
  .support-fab { right: 10px; min-height: 38px; padding-inline: 10px; font-size: 12px; }
}
