:root {
  --bg-1: #fafafa;
  --bg-2: #f8f8f8;
  --ink: #333333;
  --muted: #666666;
  --accent: #cc3366;
  --accent-2: #ff5977;
  --accent-soft: #ffa6b6;
  --card: #ffffff;
  --border: #eeeeee;
  --shadow: 0 12px 30px rgba(51, 51, 51, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Avenir", "Gill Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg-1) 0%, #f1f1f1 45%, #ffffff 100%);
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 18px 28px;
  gap: 18px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.status-pill {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffe1e9;
  color: #9a2f4d;
  font-weight: 600;
}

.app-main {
  flex: 1;
}

.app-nav {
  display: flex;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
}

.app-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 12px;
}

.app-nav a.active {
  color: #fff;
  background: var(--accent);
}

.page {
  display: grid;
  gap: 18px;
  animation: fadeUp 0.6s ease;
}

.hero {
  display: grid;
  gap: 8px;
}

.hero h2 {
  margin: 0;
  font-size: 1.6rem;
}

.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.pill {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffe1e9;
  color: #9a2f4d;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: fadeUp 0.6s ease both;
  animation-delay: var(--delay, 0ms);
}

.card + .card {
  margin-top: 14px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
}

.list {
  display: grid;
  gap: 14px;
}

.list-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
}

.thumb {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffa6b6, #ff5977);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #ffffff;
}

.link-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.link-card:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

.form-grid {
  display: grid;
  gap: 12px;
}

form {
  margin: 0;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(204, 51, 102, 0.35);
  outline-offset: 2px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}

.button.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px dashed var(--accent);
}

.button-group {
  display: grid;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f4f4f4;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.locked {
  background: #ffe1e9;
  color: #9a2f4d;
}

.video-shell {
  background: #111;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: grid;
}

.video-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.meta-grid {
  display: grid;
  gap: 10px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.loading {
  color: var(--muted);
  font-size: 0.9rem;
}

.alert {
  background: #fff1f5;
  border: 1px solid #ffd1dc;
  color: #9a2f4d;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(16px);
  background: #cc3366;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .toast {
    transform: translateX(-50%) translateY(0);
  }
}

@media (min-width: 700px) {
  .app-shell {
    padding: 32px 24px 36px;
  }

  .app-main {
    padding: 0 10px;
  }
}
