/* 太子社团 — dark theme */
:root {
  --bg: #0f0f0f;
  --bg-elevated: #212121;
  --bg-hover: #272727;
  --bg-soft: #181818;
  --border: #303030;
  --text: #f1f1f1;
  --text-secondary: #aaaaaa;
  --accent: #E0A526;
  --accent-hover: #C98F17;
  --tip: #ff6b35;
  --tip-hover: #ff5722;
  --wechat: #07c160;
  --alipay: #1677ff;
  --btc: #f7931a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,.45);
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --topbar-content-h: 56px;
  --topbar-h: calc(var(--topbar-content-h) + var(--safe-top));
  --sidebar-w: 220px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
img, video { max-width: 100%; display: block; }
.hidden { display: none !important; }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--safe-top) max(1rem, env(safe-area-inset-right, 0px)) 0 max(1rem, env(safe-area-inset-left, 0px));
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

.topbar-center { flex: 1; max-width: 640px; }

.logo {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}
.logo-icon {
  background: var(--accent);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: .75rem;
  padding-left: 2px;
}
.logo-text { white-space: nowrap; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text);
}
.icon-btn:hover { background: var(--bg-hover); }

.search-form {
  display: flex;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-soft);
}
.search-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: .55rem 1rem;
  outline: none;
  min-width: 0;
}
.search-form input::placeholder { color: var(--text-secondary); }
.search-btn {
  padding: 0 1.1rem;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  color: var(--text-secondary);
}
.search-btn:hover { color: var(--text); }

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 600;
  margin-left: .25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: .9rem;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-ghost {
  color: var(--text);
  padding: .45rem .75rem;
}
.btn-ghost:hover { background: var(--bg-hover); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
}
.btn-secondary:hover { background: var(--bg-hover); }
.btn-tip {
  background: var(--tip);
  color: #fff;
  font-weight: 600;
}
.btn-tip:hover { background: var(--tip-hover); }
.btn-block { width: 100%; }

@media (max-width: 720px) {
  .topbar-right .btn span { display: none; }
  .topbar-center { max-width: none; }
}

/* Layout */
.layout {
  display: flex;
  min-height: calc(100vh - var(--topbar-h) - 60px);
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  padding: .75rem .5rem;
  border-right: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
  transition: margin .2s, width .2s;
}
.sidebar.collapsed {
  width: 0;
  padding: 0;
  overflow: hidden;
  border: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .7rem 1rem;
  border-radius: 10px;
  color: var(--text);
  margin-bottom: .15rem;
}
.nav-item:hover { background: var(--bg-hover); }
.nav-item.active { background: var(--bg-elevated); font-weight: 600; }

.sidebar-footer {
  margin-top: 2rem;
  padding: 1rem;
  font-size: .75rem;
  color: var(--text-secondary);
}

.main {
  flex: 1;
  min-width: 0;
  padding: 1.25rem 1.5rem 2rem;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.chip {
  padding: .4rem .9rem;
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: .875rem;
}
.chip:hover { background: var(--bg-hover); }
.chip.active {
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem 1rem;
}

.video-card {
  cursor: pointer;
  border-radius: var(--radius);
  transition: transform .15s;
}
.video-card:hover { transform: translateY(-2px); }
.video-card:hover .thumb-img { border-color: var(--accent); }

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
}
.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color .15s;
}
.thumb-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0,0,0,.85);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: .15rem .35rem;
  border-radius: 4px;
}

.card-body { padding: .75rem .15rem .25rem; display: flex; gap: .75rem; }
.card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
}
.card-title {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .25rem;
}
.card-meta {
  font-size: .8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.empty-state {
  text-align: center;
  color: var(--text-secondary);
  padding: 3rem 1rem;
}

/* Watch */
.watch-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 1100px) {
  .watch-layout { grid-template-columns: 1fr; }
}

.player-wrap {
  position: relative;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.player-wrap video {
  width: 100%;
  height: 100%;
  background: #000;
}
.player-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #111;
  color: var(--text-secondary);
  text-align: center;
  padding: 1rem;
  pointer-events: none;
}
.player-fallback.show { display: flex; }
.fallback-poster {
  width: 80%;
  max-width: 320px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.watch-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1rem 0 .75rem;
  line-height: 1.35;
}

.watch-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.channel-info { display: flex; align-items: center; gap: .75rem; }
.channel-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
}
.channel-name { font-weight: 600; }
.channel-subs { font-size: .85rem; color: var(--text-secondary); }
.watch-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.watch-desc {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: .9rem;
  color: var(--text-secondary);
  white-space: pre-wrap;
  line-height: 1.6;
}

/* Comments under watch desc */
.comments {
  margin-top: 1rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1rem;
}
.comments-title {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .75rem;
  color: var(--text);
}
.comments-count {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: .85rem;
}
.comments-form {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: .85rem;
}
.comments-input,
.comments-textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .55rem .7rem;
  outline: none;
}
.comments-input:focus,
.comments-textarea:focus {
  border-color: var(--accent);
}
.comments-textarea {
  resize: vertical;
  min-height: 2.6rem;
  line-height: 1.45;
}
.comments-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.comments-hint {
  font-size: .8rem;
  color: #ff8a80;
  min-height: 1.1em;
}
.comments-empty {
  font-size: .85rem;
  color: var(--text-secondary);
  padding: .25rem 0 .5rem;
}
.comments-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-height: 420px;
  overflow-y: auto;
}
.comment-item {
  padding: .65rem .7rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.comment-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .25rem;
}
.comment-nick {
  font-weight: 600;
  font-size: .88rem;
  color: var(--accent);
}
.comment-time {
  font-size: .75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}
.comment-text {
  font-size: .88rem;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}
.comment-reply-btn {
  display: inline-flex;
  align-items: center;
  margin-top: .35rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}
.comment-reply-btn:hover { color: var(--accent); }
.comment-replies {
  list-style: none;
  margin: .55rem 0 0;
  padding: .15rem 0 0 .85rem;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.comment-item.comment-reply {
  background: transparent;
  padding: .45rem .55rem;
}
#modalCommentReply .comments-form { margin-bottom: 0; }
#modalCommentReply .comment-reply-source { margin-bottom: 1rem; }
#modalCommentReply .comments-hint { min-height: 1.1em; margin: 0; }

.related-title {
  font-size: .95rem;
  margin-bottom: .75rem;
  color: var(--text-secondary);
}

.related-item {
  display: flex;
  gap: .65rem;
  margin-bottom: .75rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: .25rem;
}
.related-item:hover { background: var(--bg-hover); }
.related-thumb {
  width: 160px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-elevated);
  position: relative;
}
.related-thumb img, .related-thumb canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-info { min-width: 0; }
.related-info h4 {
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-info p {
  font-size: .75rem;
  color: var(--text-secondary);
  margin-top: .25rem;
}

.related-subtitle {
  font-size: .8rem;
  color: var(--text-secondary);
  margin: -.4rem 0 .75rem;
}
.related-item.current {
  background: var(--bg-elevated);
  box-shadow: inset 2px 0 0 var(--accent);
}
.related-item.current h4 { color: var(--accent); }
.related-index {
  width: 1.15rem;
  flex-shrink: 0;
  text-align: center;
  font-size: .75rem;
  color: var(--text-secondary);
  padding-top: 1.1rem;
}
.related-item.current .related-index { color: var(--accent); font-weight: 700; }

/* Collection tiles (YouTube-style playlist cards) */
.collection-stack {
  position: relative;
  padding-top: 10px;
}
.stack-layer {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 10px;
  border-radius: 10px 10px 0 0;
  background: #3a3a3a;
  pointer-events: none;
}
.stack-layer-2 { top: 0; }
.stack-layer-1 { top: 5px; left: 4%; right: 4%; background: #2a2a2a; }
.collection-thumb { position: relative; }
.collection-rail {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38%;
  background: rgba(10, 10, 10, .78);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  backdrop-filter: blur(2px);
}
.collection-rail-count {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
}
.collection-rail-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #ddd;
}
.collection-card:hover .stack-layer-1,
.collection-card:hover .stack-layer-2 { background: #444; }
.collection-card:hover .collection-rail { background: rgba(10, 10, 10, .88); }

/* Collection page */
.collection-back {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--text-secondary);
  font-size: .9rem;
  margin-bottom: 1rem;
  padding: .2rem 0;
}
.collection-back:hover { color: var(--text); }
.collection-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.collection-hero {
  width: 320px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.collection-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collection-head-text { min-width: 200px; flex: 1; }
.collection-kicker {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .35rem;
}
.collection-head-text h1 {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: .35rem;
}
.collection-meta {
  color: var(--text-secondary);
  margin-bottom: .9rem;
}
.collection-list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.collection-ep {
  display: flex;
  gap: .85rem;
  align-items: center;
  padding: .5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.collection-ep:hover { background: var(--bg-hover); }
.collection-ep-index {
  width: 1.6rem;
  flex-shrink: 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: .85rem;
}
.collection-ep-thumb {
  width: 180px;
  max-width: 42%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: var(--bg-elevated);
}
.collection-ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collection-ep-info { min-width: 0; }
.collection-ep-info h3 {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
}
.collection-ep-info p {
  font-size: .8rem;
  color: var(--text-secondary);
  margin-top: .2rem;
}
@media (max-width: 640px) {
  .collection-hero { width: 100%; }
  .collection-ep-thumb { width: 140px; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  font-size: .8rem;
  color: var(--text-secondary);
  text-align: center;
  background: var(--bg-soft);
}
.site-footer strong { color: var(--text); }

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal {
  background: var(--bg-elevated);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.modal-wide { max-width: 560px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  z-index: 1;
}
.modal-header h2 { font-size: 1.1rem; }
.modal-close { font-size: 1.5rem; line-height: 1; width: 36px; height: 36px; }
.modal-body { padding: 1.25rem; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
  background: var(--bg-elevated);
}

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  color: var(--text-secondary);
  margin-bottom: .35rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .65rem .85rem;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.file-drop {
  display: block;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  margin-bottom: 1.25rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.file-drop:hover, .file-drop.dragover {
  border-color: var(--accent);
  background: rgba(255,0,51,.06);
}
.file-drop-inner svg { color: var(--text-secondary); margin: 0 auto .5rem; }
.file-drop .hint { font-size: .8rem; color: var(--text-secondary); }

/* Tip UI */
.tip-to { margin-bottom: 1rem; color: var(--text-secondary); }
.tip-to strong { color: var(--text); }

.amount-presets {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}
.amount-btn {
  padding: .5rem 1rem;
  border-radius: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-weight: 600;
}
.amount-btn:hover { border-color: var(--tip); }
.amount-btn.active {
  background: var(--tip);
  border-color: var(--tip);
  color: #fff;
}

.pay-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 1.25rem 0 .75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .5rem;
}
.pay-tab {
  padding: .45rem .7rem;
  border-radius: 8px;
  font-size: .85rem;
  color: var(--text-secondary);
}
.pay-tab:hover { background: var(--bg-hover); color: var(--text); }
.pay-tab.active {
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
}

.pay-panel { display: none; }
.pay-panel.active { display: block; }
.panel-hint {
  font-size: .85rem;
  color: var(--text-secondary);
  margin-bottom: .75rem;
}

.qr-box {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}
.qr-placeholder {
  width: 120px;
  height: 120px;
  margin: 0 auto .75rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border: 2px dashed var(--border);
  color: var(--btc);
}
.qr-box.wechat .qr-placeholder { color: var(--wechat); }
.qr-box.alipay .qr-placeholder { color: var(--alipay); }
.qr-box p { font-size: .8rem; color: var(--text-secondary); }

.copy-row {
  display: flex;
  gap: .5rem;
}
.copy-row input { flex: 1; }

.demo-banner {
  background: rgba(255, 193, 7, .12);
  border: 1px solid rgba(255, 193, 7, .35);
  color: #ffc107;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  margin-bottom: 1rem;
}

.gpay-btn {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.gpay-btn:hover { background: #f5f5f5; }
.gpay-g {
  font-weight: 700;
  background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc05, #34a853);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.2rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #323232;
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 8px;
  z-index: 300;
  box-shadow: var(--shadow);
  font-size: .9rem;
  max-width: 90vw;
  animation: toastIn .2s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    z-index: 90;
    box-shadow: var(--shadow);
  }
  .sidebar.collapsed { margin-left: 0; width: 0; }
  .main { padding: 1rem; }
  .related-thumb { width: 120px; }
}


/* Membership / download gate */
.btn-locked {
  opacity: 0.92;
  border-style: dashed;
}
.member-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #E0A526, #F2C14E);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}
.member-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}
@media (max-width: 560px) {
  .member-plans { grid-template-columns: 1fr; }
}
.member-plan {
  position: relative;
  text-align: left;
  background: var(--bg-elevated, #1c1c1f);
  border: 2px solid var(--border, #333);
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  color: inherit;
}
.member-plan.active {
  border-color: var(--accent, #667eea);
  box-shadow: 0 0 0 1px var(--accent, #667eea);
}
.member-plan .plan-tag {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #E0A526;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.member-plan .plan-name { font-weight: 600; margin-bottom: 0.35rem; }
.member-plan .plan-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent, #667eea);
}
.member-plan .plan-price span { font-size: 0.85rem; font-weight: 500; opacity: 0.8; }
.member-plan .plan-desc { font-size: 0.8rem; opacity: 0.75; margin-top: 0.35rem; }
.member-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.member-summary strong { font-size: 1.25rem; color: var(--tip, #ec4899); }
.form-row { margin-bottom: 0.5rem; }
.form-row input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border, #333);
  background: var(--bg, #111);
  color: inherit;
}
.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.member-pay-tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.member-pay-tab {
  background: var(--bg-elevated, #1c1c1f);
  border: 1px solid var(--border, #333);
  color: inherit;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}
.member-pay-tab.active {
  background: var(--accent, #667eea);
  border-color: var(--accent, #667eea);
  color: #fff;
}
.member-pay-panel { display: none; }
.member-pay-panel.active { display: block; }

/* Account */
.account-wrap { position: relative; }
.account-chip { display: flex; align-items: center; gap: 8px; background: transparent; border: 1px solid rgba(127,127,127,.3); border-radius: 999px; padding: 3px 10px 3px 3px; cursor: pointer; color: inherit; }
.account-chip .avatar { width: 30px; height: 30px; font-size: 14px; }
.account-email { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.account-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 270px; background: var(--surface, #1f1f1f); color: inherit; border: 1px solid rgba(127,127,127,.3); border-radius: 12px; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.35); z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.account-menu.hidden, .account-chip.hidden, #btnLogin.hidden { display: none; }
.menu-email { font-weight: 600; word-break: break-all; }
.menu-status { font-size: 13px; line-height: 1.6; }
.menu-item { display: block; text-align: left; background: none; border: none; color: inherit; padding: 8px 4px; cursor: pointer; font-size: 14px; text-decoration: none; border-top: 1px solid rgba(127,127,127,.15); }
.menu-item:hover { opacity: .8; }
.muted { opacity: .7; font-size: 12px; }
.bind-handle-box { border-top: 1px solid rgba(127,127,127,.15); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.bind-handle-box.hidden { display: none; }
.bind-handle-box .hint { margin: 0; font-size: 12px; opacity: .8; line-height: 1.5; }
#modalBindEmail .panel-hint { margin: 0 0 8px; }

#btnLike.active { color: #E0A526; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 16px; }
.admin-table th, .admin-table td { border-bottom: 1px solid rgba(127,127,127,.2); padding: 6px 4px; text-align: left; }
.admin-table tr.total td { font-weight: 700; }
.admin-kpis { line-height: 1.9; padding-left: 18px; }
@media (max-width: 600px) { .account-email { display: none; } .account-menu { position: fixed; right: 8px; left: 8px; width: auto; top: calc(var(--topbar-h) + 4px); } }
@media (max-width: 600px) {
  .modal { max-height: 85vh; max-height: 85dvh; }
  .modal-footer { position: static; flex-wrap: wrap; }
  .modal-footer .btn { flex: 1 1 auto; }
}
.topbar-center { min-width: 0; }
.topbar-right { flex-shrink: 0; }
@media (max-width: 600px) {
  .topbar {
    gap: 6px;
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
  }
  .topbar-center input { min-width: 0; width: 100%; }
  .topbar-left .logo span, .topbar-left .logo-text { display: none; }
  #btnLogin { padding: 6px 12px; }
}

.btn-primary, .btn-primary:hover { color: #2A1A00; }
.logo-mark { flex-shrink: 0; display: block; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid #E0A526; }
.lang-toggle { padding: 6px 10px; margin-right: 6px; font-weight: 600; background: transparent; border: 1px solid rgba(128,128,128,.4); }
.code-hint { font-size: .8rem; opacity: .7; margin: 4px 0 0; }
@media (max-width: 600px) { .lang-toggle { padding: 5px 8px; margin-right: 4px; font-size: .8rem; } }

/* AI label + 18+ gate */
.ai-badge{display:inline-block;font-size:11px;font-weight:600;line-height:1;padding:4px 6px;border-radius:4px;background:rgba(0,0,0,.72);color:#E0A526;border:1px solid #E0A526;letter-spacing:.02em}
.thumb{position:relative}
.ai-badge-card{position:absolute;top:8px;left:8px;z-index:2}
.player-wrap{position:relative}
.ai-badge-player{position:absolute;top:10px;left:10px;z-index:3;pointer-events:none}
.ai-footer{margin-top:8px;font-size:12px;opacity:.85}
.age-gate{position:fixed;inset:0;z-index:10000;background:rgba(8,6,2,.94);display:flex;align-items:center;justify-content:center;padding:20px}
.age-gate.hidden{display:none}
.age-gate-box{position:relative;max-width:420px;width:100%;background:#16130c;border:1px solid #E0A526;border-radius:14px;padding:28px 24px;text-align:center;color:#f3ead6;box-shadow:0 10px 40px rgba(224,165,38,.25)}
.age-gate-logo{width:64px;height:64px;border-radius:50%;border:2px solid #E0A526;object-fit:cover}
.age-gate-box h2{color:#E0A526;margin:12px 0 8px}
.age-gate-box p{line-height:1.6;margin:0 0 20px}
.age-gate-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.age-gate-lang{position:absolute;top:10px;right:10px;background:none;border:1px solid #E0A526;color:#E0A526;border-radius:6px;padding:3px 8px;cursor:pointer;font-size:12px}

/* Members-only collection lock */
.collection-card.collection-locked .thumb-img {
  filter: brightness(.55);
}
.collection-lock-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(10, 10, 10, .82);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .28rem .55rem;
  border-radius: 999px;
  pointer-events: none;
}
.collection-lock-badge svg { flex-shrink: 0; display: block; }

/* YouTube-style NEW badge on collection cards */
.collection-new-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  background: #e00;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 2px;
  pointer-events: none;
  text-transform: uppercase;
}
.collection-hero { position: relative; }
.collection-hero .collection-new-badge { top: 10px; right: 10px; }
.cinema-hero .collection-new-badge { top: 16px; right: 16px; left: auto; }
.collection-ep-thumb .collection-new-badge { top: 6px; right: 6px; }


/* ——— Cinema refresh (ReelFork-inspired look, original branding) ——— */
:root {
  --serif: "Noto Serif CJK SC", "Songti SC", "STSong", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --tabbar-h: 0px;
}
body.cinema {
  padding-bottom: env(safe-area-inset-bottom);
}
.btn {
  padding: .65rem 1.15rem;
  font-size: .95rem;
  border-radius: 22px;
}
.btn-primary, .btn-tip { min-height: 42px; }
.watch-title { font-family: var(--serif); font-size: 1.55rem; letter-spacing: .02em; }
.card-title { font-size: 1.02rem; }
.main { padding: 1.5rem 1.75rem 2.5rem; }

/* Hero */
.cinema-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(62vh, 640px);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.75rem;
  background: #111;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.cinema-hero img, .cinema-hero .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cinema-hero .hero-play {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.cinema-hero .hero-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
@media (min-width: 900px) {
  .cinema-hero { aspect-ratio: 21 / 9; }
}

/* Cover wall + shelves */
.shelf-block { margin: 0 0 1.75rem; }
.shelf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}
.shelf-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.shelf-sub { color: var(--text-secondary); font-size: .85rem; }
.shelf-more {
  color: var(--accent);
  font-size: .9rem;
  font-weight: 600;
  background: none;
  border: 0;
  cursor: pointer;
}
.cover-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.35rem 1.1rem;
}
.collection-card .collection-stack { position: relative; }
.collection-card .thumb.collection-thumb,
.poster-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
}
.collection-card .collection-rail { display: none; } /* typography is on the poster */
.collection-card .card-body { padding-top: .85rem; }
.collection-card .card-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: .03em;
}
.collection-lock-badge { top: 10px; left: 10px; bottom: auto; }
.collection-new-badge { right: 10px; }

.shelf-row {
  display: flex;
  gap: .85rem;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shelf-row::-webkit-scrollbar { height: 6px; }
.shelf-row::-webkit-scrollbar-thumb { background: #333; border-radius: 99px; }
.shelf-ep, .shelf-row .video-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  cursor: pointer;
}
.shelf-ep .thumb, .shelf-row .video-card .thumb { border-radius: 8px; }
@media (min-width: 900px) {
  .cover-wall { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem 1.3rem; }
  .shelf-ep, .shelf-row .video-card { flex-basis: 260px; }
}

/* Collection page hero uses poster */
.collection-header { align-items: stretch; }
.collection-hero { width: min(480px, 100%); border-radius: 12px; }
.collection-head-text h1 { font-family: var(--serif); font-size: 2.1rem; letter-spacing: .04em; }

/* Player + danmaku */
.player-wrap { border-radius: 14px; }
.player-wrap {
  --controls-h: 64px;
  --danmaku-bar-h: 52px;
}
.danmaku-layer {
  position: absolute;
  inset: 0 0 calc(var(--controls-h) + env(safe-area-inset-bottom, 0px)) 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}
.player-wrap:hover .danmaku-layer,
.player-wrap:focus-within .danmaku-layer,
.player-wrap.show-danmaku-bar .danmaku-layer {
  inset: 0 0 calc(var(--controls-h) + var(--danmaku-bar-h) + env(safe-area-inset-bottom, 0px)) 0;
}
.player-wrap.danmaku-off .danmaku-layer { visibility: hidden; }
.player-wrap.danmaku-off .player-danmaku-bar {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
}
.danmaku-item {
  position: absolute;
  left: 100%;
  white-space: nowrap;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 1px 2px #000, 0 0 6px rgba(0,0,0,.8);
  animation: danmaku-fly linear forwards;
  will-change: transform;
}
@keyframes danmaku-fly {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 100vw)); }
}
.player-danmaku-bar {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(var(--controls-h) + env(safe-area-inset-bottom, 0px));
  z-index: 5;
  display: flex;
  gap: .4rem;
  align-items: center;
  padding: 8px 10px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.72));
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.player-wrap:hover .player-danmaku-bar,
.player-wrap:focus-within .player-danmaku-bar,
.player-wrap.show-danmaku-bar .player-danmaku-bar {
  opacity: 1;
  pointer-events: auto;
}
.danmaku-input {
  flex: 1;
  min-width: 0;
  background: rgba(20,20,20,.75);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: .45rem .9rem;
  color: #fff;
  outline: none;
}
.btn-danmaku {
  color: #fff;
  background: rgba(20,20,20,.55);
  border: 1px solid rgba(255,255,255,.2);
  white-space: nowrap;
}
.player-wrap.danmaku-off .btn-danmaku { opacity: .7; }

/* Portrait / phone player */
.player-wrap.is-portrait {
  aspect-ratio: 9 / 16;
  max-height: min(82vh, 860px);
  margin-inline: auto;
  width: min(100%, calc(min(82vh, 860px) * 9 / 16));
}
@media (max-width: 820px) {
  body.watching .topbar { border-bottom-color: transparent; }
  body.watching .site-footer { display: none; }
  .watch-layout { gap: 1rem; }
  #viewWatch .player-wrap {
    border-radius: 0;
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
  }
  #viewWatch .player-wrap.is-portrait {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 12px;
    max-height: calc(100dvh - var(--topbar-h) - var(--tabbar-h) - 24px);
  }
  .player-danmaku-bar { opacity: 1; pointer-events: auto; }
  .danmaku-layer,
  .player-wrap:hover .danmaku-layer,
  .player-wrap:focus-within .danmaku-layer,
  .player-wrap.show-danmaku-bar .danmaku-layer {
    inset: 0 0 calc(var(--controls-h) + var(--danmaku-bar-h) + env(safe-area-inset-bottom, 0px)) 0;
  }
  .watch-title { font-size: 1.25rem; margin-top: .75rem; }
  .watch-actions { gap: .45rem; }
  .watch-actions .btn { padding: .6rem .85rem; font-size: .88rem; }
}

/* Tips ranking */
.tips-page { max-width: 720px; }
.tips-page h1 { font-family: var(--serif); font-size: 2rem; margin-bottom: .5rem; }
.tips-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}
.tips-heading h1 { margin-bottom: 0; }
.tips-fanvue-link { flex-shrink: 0; align-self: center; }
.tips-teaser-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .6rem;
  flex-wrap: wrap;
}
.tips-teaser-head h3 { margin-bottom: 0; }
.tips-lead, .tips-note { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.6; }
.tips-rank {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin: 1rem 0 1.5rem;
}
.tips-rank li {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  gap: .75rem;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .75rem 1rem;
}
.tips-rank .rank-n {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
}
.tips-rank li:nth-child(-n+3) .rank-n { color: #f3e2b0; }
.tips-rank .rank-name { font-weight: 600; }
.tips-rank .rank-meta { font-size: .8rem; color: var(--text-secondary); }
.tips-rank .rank-amt { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.tips-teaser {
  margin: 1.25rem 0 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}
.tips-teaser h3 { font-family: var(--serif); margin-bottom: .6rem; }
.tips-teaser ol { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.tips-teaser li { display: flex; justify-content: space-between; gap: 1rem; }
.tips-name-box { margin: 1rem 0; }
.tips-name-box label { display: block; margin-bottom: .4rem; color: var(--text-secondary); }

/* Bottom tab bar (phone) */
.tabbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  padding: 4px 8px env(safe-area-inset-bottom, 0px);
  background: rgba(15,15,15,.94);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  justify-content: space-around;
  align-items: center;
}
.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-secondary);
  font-size: .7rem;
  font-weight: 600;
  padding: 4px 0;
}
.tabbar-item.active, .tabbar-item:hover { color: var(--accent); }
@media (max-width: 768px) {
  :root { --tabbar-h: calc(56px + env(safe-area-inset-bottom, 0px)); --sidebar-w: 0px; }
  .tabbar { display: flex; }
  .sidebar { display: none; }
  body { padding-bottom: var(--tabbar-h); }
  .layout { min-height: calc(100vh - var(--topbar-h) - var(--tabbar-h)); }
  .main { padding: 1rem 1rem 1.5rem; }
  .cinema-hero { max-height: 46vh; border-radius: 12px; margin-bottom: 1.15rem; }
  .cinema-hero .hero-play { left: 16px; bottom: 16px; }
  .shelf-title { font-size: 1.2rem; }
  .cover-wall { grid-template-columns: 1fr; }
  .btn-install { display: none; }
  .topbar-right .btn-install { display: none; }
}
@media (min-width: 769px) {
  .btn-install { font-size: .85rem; }
}

/* Install modal + account QR: never stretch a non-square box */
.install-modal-body { text-align: center; }
.install-qr {
  width: 220px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 8px auto 12px;
  border-radius: 8px;
  background: #111;
  flex-shrink: 0;
}
.install-steps { text-align: left; color: var(--text-secondary); line-height: 1.6; padding-left: 1.2rem; }

/* Account + watch history */
.account-page { max-width: 720px; }
.account-page h1 { font-family: var(--serif); font-size: 2rem; margin-bottom: 1rem; }
.account-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
}
.account-page-lead { color: var(--text-secondary); line-height: 1.6; }
.account-page-id { display: flex; align-items: center; gap: .85rem; }
.account-page-id .avatar { margin-left: 0; width: 48px; height: 48px; font-size: 1.1rem; }
.account-page-id strong { display: block; font-size: 1.05rem; }
.account-page-id p { color: var(--text-secondary); font-size: .9rem; }
.account-block { margin: 0 0 2rem; }
.account-block h2 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: .75rem; }
.account-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.account-block-head h2 { margin-bottom: 0; }
.history-list { display: flex; flex-direction: column; gap: .65rem; }
.history-item {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: .8rem;
  align-items: center;
  cursor: pointer;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .55rem;
}
.history-item:focus, .history-item:hover { border-color: var(--accent); }
.history-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}
.history-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.history-info h3 { font-size: 1rem; font-weight: 600; }
.history-info p { color: var(--text-secondary); font-size: .85rem; margin-top: .2rem; }
.account-install { text-align: left; }
.account-install-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-start; }
@media (max-width: 600px) {
  .history-item { grid-template-columns: 112px 1fr; }
}

/* Hide unused category chips clutter a bit on phone: keep them scrollable */
@media (max-width: 768px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-bottom: 1rem; padding-bottom: 4px; }
  .chip { flex: 0 0 auto; padding: .45rem 1rem; font-size: .9rem; }
}

.btn-locked {
  opacity: .7;
  filter: grayscale(.35);
  cursor: not-allowed;
}
