:root {
  --bg: #f5f5f5;
  --card: #fff;
  --line: #e5e5e5;
  --text: #171717;
  --muted: #666;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 50% -20%, #ffffff 0%, var(--bg) 52%);
}
.wrap { max-width: 860px; margin: 40px auto; padding: 0 16px 40px; }
.back { color: #525252; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.card {
  margin-top: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  overflow: hidden;
}
.topline { height: 6px; background: #404040; }
.content { padding: 22px; }
h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
.subtitle { margin: 7px 0 0; color: var(--muted); }
.description { margin: 14px 0 0; color: #3f3f46; line-height: 1.55; }
.handle-chips {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.handle-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d4d4d8;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #3f3f46;
  text-decoration: none;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}
.handle-chip-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: #52525b;
}
.handle-chip:hover {
  transform: translateY(-1px);
  background: #fafafa;
  border-color: #a3a3a3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #27272a;
}
.handle-chip:focus-visible {
  outline: 2px solid rgba(64, 64, 64, 0.26);
  outline-offset: 2px;
}
.actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  min-height: 46px;
  min-width: 186px;
  padding: 10px 14px;
  font-size: 14px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.btn-primary { background: #111827; color: white; }
.btn-outline { border: 1px solid #d4d4d8; color: #27272a; background: #fff; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(0,0,0,0.08); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid rgba(64,64,64,0.26); outline-offset: 2px; }
.section-title { margin: 16px 0 10px; font-size: 20px; font-weight: 700; }
.section-card {
  margin-top: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  padding: 14px;
}
.section-card .section-title {
  margin-top: 0;
}
.media {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.media-phone-wrap {
  display: flex;
  justify-content: center;
  padding: 14px;
  background: #fff;
}
.media-phone {
  position: relative;
  width: min(216px, 100%);
  border-radius: 38px;
  overflow: hidden;
  background: linear-gradient(180deg, #1d1d21 0%, #111215 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.22),
    0 2px 4px rgba(0, 0, 0, 0.18);
  aspect-ratio: 9 / 19.5;
  padding: 5px;
}
.media-phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 34%;
  height: 13px;
  border-radius: 999px;
  background: #0c0d10;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  z-index: 4;
  pointer-events: none;
}
.media-phone iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: 33px;
  overflow: hidden;
}
.media-poster {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #ececec;
}
.media-controls {
  padding: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-start;
}
.embed-shell {
  position: relative;
  width: 100%;
  min-height: 232px;
  background: #111;
}
.embed-frame {
  width: 100%;
  min-height: 232px;
  border: 0;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.phone {
  position: relative;
  border-radius: 38px;
  overflow: hidden;
  background: linear-gradient(180deg, #1d1d21 0%, #111215 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.22),
    0 2px 4px rgba(0, 0, 0, 0.18);
  aspect-ratio: 9 / 19.5;
  padding: 5px;
}
.phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 34%;
  height: 13px;
  border-radius: 999px;
  background: #0c0d10;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  z-index: 4;
  pointer-events: none;
}
.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 38px;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0) 38%);
  z-index: 5;
}
.phone-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 33px;
  overflow: hidden;
  background: #000;
}
.phone iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  position: absolute;
  inset: 0;
}
.phone video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  position: absolute;
  inset: 0;
  object-fit: cover;
  background: #000;
}
.phone-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px);
  transform: scale(1.03);
  opacity: 1;
  transition: opacity 240ms ease;
  pointer-events: none;
}
.phone.is-loaded .phone-placeholder {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover,
  .btn:active { transform: none; box-shadow: none; }
}
@media (max-width: 640px) {
  .wrap {
    margin: 22px auto;
    padding: 0 12px 32px;
  }
  .back { font-size: 13px; }
  .card { border-radius: 14px; }
  .content { padding: 16px; }
  h1 { font-size: clamp(28px, 9vw, 36px); line-height: 1.08; }
  .subtitle { margin-top: 6px; font-size: 14px; }
  .description { margin-top: 12px; font-size: 15px; line-height: 1.6; }
  .handle-chips { margin-top: 12px; gap: 6px; }
  .handle-chip { padding: 5px 10px; font-size: 13px; }
  .actions { margin-top: 14px; gap: 8px; }
  .btn {
    min-width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 9px;
  }
  .section-card {
    margin-top: 12px;
    border-radius: 14px;
    padding: 12px;
  }
  .section-title { margin: 0 0 8px; font-size: 18px; }
  .media-phone {
    width: min(190px, 70vw);
  }
  .media-controls { padding: 10px; }
  .media-controls .btn { width: 100%; }
  .embed-shell,
  .embed-frame { min-height: 210px; }
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    justify-items: center;
  }
  .phone {
    width: min(150px, 40vw);
    border-radius: 34px;
    padding: 4px;
  }
  .phone::before {
    top: 7px;
    height: 11px;
  }
  .phone-inner {
    border-radius: 30px;
  }
  .media-phone {
    border-radius: 34px;
    padding: 4px;
  }
  .media-phone::before {
    top: 7px;
    height: 11px;
  }
  .media-phone iframe {
    border-radius: 30px;
  }
}
@media (max-width: 420px) {
  .wrap { padding: 0 10px 28px; }
  h1 { font-size: clamp(24px, 10vw, 30px); }
  .description { font-size: 14px; }
  .btn { min-height: 42px; font-size: 14px; }
  .video-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .phone {
    width: min(170px, 72vw);
  }
}
