:root {
  color-scheme: dark;
  --bg: #07070a;
  --surface: #121018;
  --elevated: #1a1524;
  --text: #f8f7fc;
  --muted: #9b96ab;
  --dim: #6e687c;
  --accent: #ff2e93;
  --accent-deep: #9333ea;
  --border: #2a2438;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

.shell {
  width: min(28rem, calc(100% - 2rem));
  margin: auto;
  padding: 2rem 0 2.5rem;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.brand span {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.card {
  background: linear-gradient(180deg, var(--elevated), var(--surface));
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.35rem 1.25rem 1.5rem;
  text-align: center;
}

.poster-wrap {
  width: min(11.5rem, 58vw);
  aspect-ratio: 2 / 3;
  margin: 0 auto 1.1rem;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #16121e;
  display: none;
}

.poster-wrap.is-visible { display: block; }

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

h1 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.45rem;
}

.episode {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.copy {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.98rem;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  border: 0;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.btn-secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}

.hidden { display: none !important; }

.status {
  min-height: 1.25rem;
  color: var(--dim);
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

footer {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--dim);
  font-size: 0.8rem;
}
