/* X-TV official site — dark cinema, clean feed, little ornament */

:root {
  --bg: #090909;
  --bg-elev: #111111;
  --bg-card: #141414;
  --bg-input: #0c0c0c;
  --line: #2a2a2a;
  --line-strong: #3d3d3d;
  --text: #f4f4f5;
  --muted: #9a9a9a;
  --faint: #6e6e6e;
  --invert: #090909;
  --ok: #8fbf7a;
  --warn: #d4b36a;
  --danger: #e07070;
  --focus: #ffffff;
  --header-h: 64px;
  --notice-h: 36px;
  --wrap: 1120px;
  --wrap-wide: 1280px;
  --font: "Instrument Sans", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans", ui-sans-serif, system-ui, sans-serif;
  --space: 1.25rem;
}

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

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

html[lang="en"] {
  font-feature-settings: "ss01" on, "cv11" on;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff;
}

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 0.6em;
}

:lang(zh-Hans) h1,
:lang(zh-Hans) h2,
:lang(zh-Hans) h3 {
  letter-spacing: -0.02em;
  line-height: 1.18;
}

p {
  margin: 0 0 1em;
  color: var(--text);
}

p.lede,
.muted,
.help,
.meta {
  color: var(--muted);
}

.faint {
  color: var(--faint);
}

/* Skip */

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  font-weight: 600;
}

.skip-link:focus {
  top: 8px;
}

/* Layout */

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.wrap-wide {
  width: min(var(--wrap-wide), calc(100% - 40px));
  margin-inline: auto;
}

main {
  min-height: calc(100vh - 200px);
}

/* Notice */

.site-notice {
  background: #141414;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  padding: 8px 16px;
  min-height: var(--notice-h);
}

.site-notice strong {
  color: var(--text);
  font-weight: 600;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 9, 9, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(var(--wrap-wide), calc(100% - 40px));
  margin-inline: auto;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.wordmark {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.06em;
  text-decoration: none;
  color: #fff;
  line-height: 1;
}

.wordmark:hover {
  color: #fff;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 2px;
}

.nav-main a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 2px;
  white-space: nowrap;
}

.nav-main a:hover,
.nav-main a:focus-visible,
.nav-main a.is-active {
  color: #fff;
}

.nav-main a.is-active {
  box-shadow: inset 0 -1px 0 #fff;
  border-radius: 0;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch,
.account-btn,
.nav-toggle,
.btn,
.btn-text {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  padding: 7px 12px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 2px;
}

.lang-switch,
.account-btn {
  border-color: var(--line);
  color: var(--text);
}

.lang-switch:hover,
.account-btn:hover,
.nav-toggle:hover {
  border-color: var(--line-strong);
  background: var(--bg-elev);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 36px;
  padding: 0;
  border-color: var(--line);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  margin: 0 auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  text-decoration: none;
  border: 1px solid #fff;
  background: #fff;
  color: var(--invert);
  font-weight: 650;
  font-size: 15px;
}

.btn:hover {
  background: #e8e8e8;
  color: var(--invert);
}

.btn-ghost {
  background: transparent;
  color: #fff;
}

.btn-ghost:hover {
  background: #fff;
  color: var(--invert);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
}

/* Hero */

.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-size: clamp(2.4rem, 7.2vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 14ch;
  margin-bottom: 1.1rem;
}

:lang(zh-Hans) .hero h1 {
  max-width: 10em;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero .lede {
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 0;
}

.page-hero {
  padding: 56px 0 36px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  max-width: 18ch;
  margin-bottom: 0.7rem;
}

.page-hero .lede {
  max-width: 40rem;
  margin-bottom: 0;
}

.kicker {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}

:lang(zh-Hans) .kicker {
  letter-spacing: 0.12em;
}

/* Sections */

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 0;
}

.section-head a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.section-head a:hover {
  color: #fff;
}

/* Cards / feed */

.rail,
.grid-cards {
  display: grid;
  gap: 20px;
}

.rail {
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--line-strong) transparent;
}

.rail .card {
  scroll-snap-align: start;
  min-width: 220px;
}

.grid-cards {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.card:hover .card-cover,
.card:focus-visible .card-cover {
  border-color: var(--line-strong);
}

.card:hover h3,
.card:focus-visible h3 {
  color: #fff;
}

.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--poster, #171714);
  color: var(--ink, #d7d2c4);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.poster-title {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 12ch;
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
  pointer-events: none;
}

.poster-title {
  position: relative;
  z-index: 1;
}

.badge-ai,
.badge-dur,
.badge-sample {
  position: absolute;
  z-index: 2;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

.badge-ai {
  top: 8px;
  left: 8px;
}

.badge-dur {
  bottom: 8px;
  right: 8px;
  border-color: transparent;
  background: rgba(0, 0, 0, 0.62);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.card-meta {
  padding: 10px 2px 0;
}

.card-meta h3 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  line-height: 1.3;
}

.card-meta p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.handle {
  color: var(--muted);
}

.sample-tag {
  color: var(--faint);
}

/* Promo card in feed — clearly labeled */

.card-ad {
  position: relative;
}

.card-ad .card-cover {
  background: #101010;
  color: var(--muted);
}

.ad-label {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 4px 6px;
  background: rgba(0, 0, 0, 0.5);
}

/* Filters / chips */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 24px 0 28px;
}

.search {
  flex: 1 1 220px;
  min-width: 180px;
}

.search input,
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 12px;
  outline: none;
}

.search input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #888;
}

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

.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 550;
  border-radius: 2px;
}

.chip:hover,
.chip.is-on {
  color: #fff;
  border-color: #fff;
}

/* Devices row */

.device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.device-item {
  border: 1px solid var(--line);
  padding: 24px 22px 22px;
  background: var(--bg-elev);
  text-decoration: none;
  color: inherit;
  display: block;
}

.device-item:hover {
  border-color: var(--line-strong);
}

.device-item svg {
  width: 48px;
  height: 48px;
  color: #fff;
  margin-bottom: 16px;
}

.device-item h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.device-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* Monetize strip / split */

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.split h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.stat-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.stat-list span {
  color: var(--muted);
}

/* FAQ */

.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 650;
  letter-spacing: -0.02em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--faint);
  font-weight: 400;
  font-size: 1.2rem;
}

.faq details[open] summary::after {
  content: "–";
}

.faq .answer {
  padding: 0 0 18px;
  color: var(--muted);
  max-width: 42rem;
}

/* Footer */

.site-footer {
  padding: 48px 0 36px;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--muted);
  max-width: 28rem;
  margin: 10px 0 0;
  font-size: 13.5px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 24px;
}

.footer-nav h2 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 10px;
  font-weight: 650;
}

.footer-nav a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  padding: 3px 0;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--faint);
}

/* Forms */

form.stack,
.stack {
  display: grid;
  gap: 16px;
  max-width: 36rem;
}

.field label,
.field .label {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  margin-bottom: 6px;
}

.field .hint {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--faint);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
}

.check input {
  margin-top: 3px;
  accent-color: #fff;
}

.form-note {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--muted);
  border-radius: 2px;
}

.form-ok {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 16px;
  color: var(--text);
}

.form-ok p {
  margin: 0;
}

.source-grid,
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 44rem;
}

.source-card,
.mode-card,
.path-card,
.info-card {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 18px 18px 16px;
}

.source-card h3,
.mode-card h3,
.path-card h3,
.info-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.source-card p,
.mode-card p,
.path-card p,
.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.status {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  margin-bottom: 8px;
}

.status-ok {
  color: var(--ok);
  border-color: #3d5a34;
}

.status-later {
  color: var(--warn);
  border-color: #5a4c2c;
}

/* Tables */

.table-wrap {
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

table.data th,
table.data td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
}

table.data th {
  color: var(--faint);
  font-weight: 650;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

table.data td.num {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* Player */

.player-block {
  padding: 28px 0 64px;
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--poster, #12110e);
  border: 1px solid var(--line);
  color: var(--ink, #d7d2c4);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.player-title {
  position: absolute;
  left: 24px;
  bottom: 24px;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  max-width: 12ch;
  z-index: 1;
}

.play-btn {
  width: 72px;
  height: 72px;
  border: 1px solid #fff;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border-radius: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
}

.play-btn:hover {
  background: #fff;
  color: #000;
}

.play-btn svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.player-msg {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  z-index: 3;
  color: #fff;
}

.player.is-demo .player-msg {
  display: flex;
}

.program-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  margin-top: 28px;
}

.program-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
}

.program-actions .btn,
.program-actions button {
  min-height: 38px;
  font-size: 13.5px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.inline-ai {
  display: inline-block;
  border: 1px solid var(--line-strong);
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: #fff;
}

/* Creator dashboard placeholders */

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 12px 0 28px;
}

.dash-cell {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 18px;
}

.dash-cell h3 {
  font-size: 13px;
  color: var(--faint);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.dash-cell .value {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.dash-cell p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--faint);
}

/* Dialogs */

.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.dialog-backdrop.is-open {
  display: flex;
}

.dialog {
  width: min(440px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #111;
  border: 1px solid var(--line-strong);
  padding: 24px;
}

.dialog h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.dialog p {
  color: var(--muted);
}

.dialog-close {
  float: right;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  padding: 0 0 8px 8px;
}

.amount-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Content typography for policies */

.prose {
  max-width: 42rem;
  padding: 40px 0 72px;
}

.prose h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.prose h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  color: var(--muted);
}

.prose li {
  margin: 0.4em 0;
}

.prose a {
  color: #fff;
}

.callout {
  border-left: 2px solid #fff;
  padding: 4px 0 4px 16px;
  margin: 1.25rem 0;
  color: var(--muted);
}

.callout.warn {
  border-left-color: var(--warn);
}

.toc {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 6px;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
}

.toc a:hover {
  color: #fff;
}

/* Language blocks */

[data-lang] {
  /* toggled by JS; default show zh */
}

html[lang="en"] [data-lang="zh"],
html[lang="zh-Hans"] [data-lang="en"] {
  display: none;
}

/* 404 */

.not-found {
  padding: 120px 0 160px;
}

.not-found h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin-bottom: 0.4em;
}

/* Focus */

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

::selection {
  background: #fff;
  color: #000;
}

/* Mobile */

@media (max-width: 960px) {
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .program-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .device-grid,
  .dash-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-main {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #0c0c0c;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .nav-main.is-open {
    display: flex;
  }

  .nav-main a {
    padding: 12px 4px;
    font-size: 16px;
  }

  .nav-main a.is-active {
    box-shadow: none;
    color: #fff;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .source-grid,
  .mode-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap,
  .wrap-wide,
  .header-inner {
    width: min(var(--wrap-wide), calc(100% - 28px));
  }

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

  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }

  .account-btn .label-full {
    /* keep short on very small screens? show anyway */
  }

  .site-notice {
    line-height: 1.4;
    padding: 8px 16px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}


/* Slate catalog cards and novel pages */

.badge-pri {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.card-cover .badge-pri + .badge-pri {
  top: 34px;
}

.badge-first {
  border-color: rgba(217, 211, 182, 0.7);
}

.badge-backup {
  color: #d4b36a;
}

.card-meta .novel-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.card-meta h3 a {
  text-decoration: none;
}

.slate-credit {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.slate-credit a {
  color: var(--text);
}

.caution-note {
  margin-top: 36px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 20px 22px 8px;
}

.caution-note h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.caution-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0 8px;
}

.caution-table th,
.caution-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.caution-table th {
  color: var(--text);
  font-weight: 650;
  width: 22%;
}

.original-link-block {
  margin: 14px 0 18px;
}

a.original-link,
.original-link {
  display: inline-block;
  font-weight: 650;
  font-size: 1.05rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.source-name {
  font-size: 13px;
}

.novel-body .info-card {
  margin-bottom: 20px;
}

.btn-original {
  font-weight: 700;
}

@media (max-width: 960px) {
  .caution-table,
  .caution-table tbody,
  .caution-table tr,
  .caution-table th,
  .caution-table td {
    display: block;
    width: 100%;
  }

  .caution-table th {
    border-top: 1px solid var(--line);
    padding-top: 16px;
  }

  .caution-table td {
    border-top: 0;
    padding-top: 4px;
  }
}
