:root {
  --bg: #0a0a0a;
  --surface: #1c1c1e;
  --text: #ffffff;
  --muted: #a1a1aa;
  --accent: #a12fb5;
  --accent-dark: #75187d;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(161, 47, 181, 0.25), transparent 60%),
    var(--bg);
}

.page {
  max-width: 440px;
  margin: 0 auto;
  padding: 24px 16px calc(32px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand img {
  display: block;
  width: 72px;
  height: 72px;
}

.series,
.message {
  width: 100%;
  margin-top: 16px;
}

.cover {
  position: relative;
  width: min(240px, 70vw);
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.cover img,
.cover-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-placeholder {
  background: linear-gradient(110deg, var(--surface) 30%, #2a2a2e 50%, var(--surface) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.title {
  margin: 20px 0 4px;
  font-size: 24px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.details {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.synopsis,
.message p {
  margin: 12px 0 0;
  color: #d4d4d8;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cta-text {
  margin: 16px 0 0;
  font-weight: 600;
}

.series.loading .title {
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 6px;
  background: var(--surface);
}

.series.loading .cta-text {
  visibility: hidden;
}

.actions {
  width: 100%;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #3f3f46;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

[hidden] {
  display: none !important;
}
