/* /bot. A late-night newsroom: near-black, warm white type, and one on-air
   red for what's live or what to press. The videos supply the color. */
html:has(.bot), html:has(.bot) body { background: #0a0b0d; }

.bot {
  --bot-bg: #0a0b0d;
  --bot-panel: #121418;
  --bot-panel-2: #171a1f;
  --bot-line: #24282f;
  --bot-text: #f3f0ea;
  --bot-muted: #a1a7b0;
  --bot-faint: #6f7680;
  --bot-signal: #ff4d3d;
  --bot-signal-ink: #fff6f3;
  --bot-radius: 14px;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(255, 77, 61, 0.11), transparent 62%),
    radial-gradient(900px 600px at -10% 10%, rgba(120, 140, 170, 0.07), transparent 60%),
    var(--bot-bg);
  color: var(--bot-text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
}
.bot * { box-sizing: border-box; }
.bot a { color: var(--bot-text); text-decoration-color: rgba(243, 240, 234, 0.35); text-underline-offset: 3px; }
.bot a:hover { text-decoration-color: currentColor; }
.bot :focus-visible { outline: 2px solid var(--bot-signal); outline-offset: 3px; border-radius: 6px; }

.bot-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* Top bar */
.bot-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.bot .bot-brand { font: 600 13px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bot-muted); text-decoration: none; }
.bot .bot-brand:hover { color: var(--bot-text); }
.bot .bot-top-follow { font-size: 14px; font-weight: 600; color: var(--bot-muted); text-decoration: none; }
.bot .bot-top-follow:hover { color: var(--bot-text); }

/* Hero */
.bot-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 64px; align-items: center; padding: 40px 0 72px; }
.bot-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 6px 14px 6px 12px; border: 1px solid rgba(255, 77, 61, 0.35); border-radius: 999px; background: rgba(255, 77, 61, 0.08); font: 600 13px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.04em; color: #ffb3aa; }
.bot-onair, .bot-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bot-signal); box-shadow: 0 0 0 0 rgba(255, 77, 61, 0.6); flex: none; }
.bot-onair { animation: bot-pulse 2.4s ease-out infinite; }
@keyframes bot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 61, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 77, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 61, 0); }
}
.bot-hero h1 { margin: 0 0 22px; font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; font-weight: 760; letter-spacing: -0.035em; text-wrap: balance; }
.bot-lead { margin: 0 0 16px; max-width: 590px; font-size: 19px; line-height: 1.6; color: #d9d6cf; }
.bot-lead-quiet { font-size: 17px; color: var(--bot-muted); }
.bot-lead-quiet a { color: #d9d6cf; }

.bot-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.bot .bot-button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--bot-line); background: var(--bot-panel-2); color: var(--bot-text); font-size: 16px; font-weight: 650; text-decoration: none; transition: background-color 0.15s, border-color 0.15s, transform 0.15s; }
.bot .bot-button:hover { border-color: #3a3f48; background: #1d2026; }
.bot .bot-button:active { transform: translateY(1px); }
.bot .bot-button-primary { border-color: var(--bot-signal); background: var(--bot-signal); color: var(--bot-signal-ink); }
.bot .bot-button-primary:hover { border-color: #ff6a5c; background: #ff6a5c; }
.bot .bot-button svg { flex: none; }

.bot-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0 0; font: 500 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace; color: var(--bot-faint); }

/* The newest video, in a phone-shaped frame */
.bot-hero-player { justify-self: end; width: 100%; max-width: 400px; }
.bot-feature { margin: 0; }
.bot-feature .bot-video { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 120px -40px rgba(255, 77, 61, 0.35); border-radius: 22px; }
.bot-feature figcaption { display: grid; gap: 6px; margin-top: 18px; }
.bot-eyebrow { font: 600 12px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bot-signal); }
.bot .bot-feature-title { font-size: 19px; font-weight: 680; line-height: 1.3; letter-spacing: -0.01em; text-decoration: none; }
.bot .bot-feature-title:hover { text-decoration: underline; }
.bot-feature-summary { font-size: 15px; line-height: 1.55; color: var(--bot-muted); }
.bot-empty { display: grid; place-content: center; gap: 4px; aspect-ratio: 9 / 16; max-height: 640px; padding: 32px; border: 1px dashed var(--bot-line); border-radius: 22px; text-align: center; color: var(--bot-muted); }
.bot-empty p { margin: 0; }

/* A video thumbnail, and the player it becomes */
.bot .bot-video { position: relative; display: block; overflow: hidden; border-radius: var(--bot-radius); background: #000; text-decoration: none; isolation: isolate; }
.bot-video-tall { aspect-ratio: 9 / 16; }
.bot-video-wide { aspect-ratio: 16 / 9; }
.bot-video.is-playing.bot-video-tall.is-landscape { aspect-ratio: 16 / 9; }
/* The thumbnail is drawn --thumb-scale times the frame's width and centered, so the
   video spans the frame and YouTube's black bars fall outside it (BotVideos::Video#thumbnail_scale). */
.bot-video .bot-video-thumb { position: absolute; left: 50%; top: 50%; width: calc(100% * var(--thumb-scale, 1)); max-width: none; height: auto; transform: translate(-50%, -50%); transition: transform 0.4s ease, filter 0.3s; }
.bot-video-wide .bot-video-thumb { inset: 0; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; transform: none; }
.bot-video .bot-video-backdrop { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(22px) brightness(0.5) saturate(1.2); }
.bot-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bot-video:not(.is-playing)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 38%); pointer-events: none; }
.bot-video:hover .bot-video-thumb { transform: translate(-50%, -50%) scale(1.03); filter: brightness(1.06); }
.bot-video-wide:hover .bot-video-thumb { transform: scale(1.03); }
.bot-play { position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(10, 11, 13, 0.62); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.22); transition: background-color 0.15s, transform 0.15s; }
.bot-play svg { margin-left: 3px; }
.bot-video:hover .bot-play, .bot-video:focus-visible .bot-play { background: var(--bot-signal); border-color: var(--bot-signal); transform: scale(1.06); }
.bot-duration { position: absolute; right: 10px; bottom: 10px; z-index: 1; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.72); font: 600 12px/1.2 ui-monospace, "SF Mono", Menlo, monospace; color: #fff; }

/* Sections */
.bot-section { padding: 56px 0; border-top: 1px solid var(--bot-line); }
.bot-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.bot-section h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 720; letter-spacing: -0.025em; }
.bot .bot-section-head a { flex: none; font-size: 15px; font-weight: 600; color: var(--bot-muted); }
.bot .bot-section-head a:hover { color: var(--bot-text); }
.bot-section-note { margin: -12px 0 26px; max-width: 620px; color: var(--bot-muted); }

.bot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 22px; margin: 0; padding: 0; list-style: none; }
.bot-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
.bot-card { display: grid; align-content: start; gap: 8px; min-width: 0; }
.bot-card .bot-video { margin-bottom: 6px; }
.bot .bot-card-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; font-weight: 650; line-height: 1.35; text-decoration: none; }
.bot-grid-wide .bot-card-title { font-size: 19px; -webkit-line-clamp: 2; }
.bot .bot-card-title:hover { text-decoration: underline; }
.bot-card-summary { font-size: 15px; line-height: 1.55; color: var(--bot-muted); }
.bot-card-meta { font: 500 12px/1.4 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.02em; color: var(--bot-faint); }

/* How it works */
.bot-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: bot-step; }
.bot-steps li { position: relative; padding: 24px 22px 26px; border: 1px solid var(--bot-line); border-radius: var(--bot-radius); background: var(--bot-panel); counter-increment: bot-step; }
.bot-steps li::before { content: "0" counter(bot-step); display: block; margin-bottom: 18px; font: 600 13px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--bot-signal); }
.bot-step-label { display: block; margin-bottom: 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.bot-steps p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--bot-muted); }

/* Talking to it */
.bot-talk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bot-talk > div { padding: 24px 22px; border-radius: var(--bot-radius); background: linear-gradient(180deg, var(--bot-panel-2), var(--bot-panel)); border: 1px solid var(--bot-line); }
.bot-talk h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.bot-talk p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--bot-muted); }

/* Questions */
.bot-faq { max-width: 800px; border-top: 1px solid var(--bot-line); }
.bot-faq details { border-bottom: 1px solid var(--bot-line); }
.bot-faq summary { position: relative; padding: 20px 40px 20px 0; font-size: 18px; font-weight: 650; cursor: pointer; list-style: none; }
.bot-faq summary::-webkit-details-marker { display: none; }
.bot-faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 24px/1 ui-monospace, Menlo, monospace; color: var(--bot-faint); transition: transform 0.2s; }
.bot-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--bot-signal); }
.bot-faq summary:hover { color: #fff; }
.bot-faq p { margin: 0 0 22px; max-width: 700px; color: var(--bot-muted); }
.bot-faq p a { color: #d9d6cf; }

/* Follow band */
.bot-follow { margin: 24px 0 0; padding: 56px 48px; border-radius: 24px; border: 1px solid rgba(255, 77, 61, 0.28); background: radial-gradient(600px 260px at 85% 0%, rgba(255, 77, 61, 0.2), transparent 70%), var(--bot-panel); text-align: left; }
.bot-follow h2 { margin: 0 0 10px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 740; letter-spacing: -0.03em; text-wrap: balance; }
.bot-follow p { margin: 0; max-width: 560px; font-size: 18px; color: #d9d6cf; }
.bot-follow .bot-ctas { margin-top: 26px; }

.bot-footer { padding: 40px 0 56px; font-size: 14px; color: var(--bot-faint); }
.bot-footer p { margin: 0; }
.bot .bot-footer a { color: var(--bot-muted); }

/* Narrower screens */
@media (max-width: 1020px) {
  .bot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bot-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .bot-hero { grid-template-columns: 1fr; gap: 44px; padding: 20px 0 56px; }
  .bot-hero-player { justify-self: center; max-width: 360px; }
  .bot-talk { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bot { font-size: 16px; }
  .bot-wrap { padding: 0 16px; }
  .bot-top { padding: 16px 0; }
  .bot .bot-top-follow { display: none; }
  .bot-lead { font-size: 17px; }
  .bot-lead-quiet { font-size: 16px; }
  .bot-ctas { flex-direction: column; align-items: stretch; }
  .bot .bot-button { justify-content: center; }
  .bot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .bot-grid-wide { grid-template-columns: 1fr; }
  .bot .bot-card-title { font-size: 15px; }
  .bot-steps { grid-template-columns: 1fr; }
  .bot-section { padding: 44px 0; }
  .bot-section-head { flex-direction: column; gap: 6px; }
  .bot-follow { padding: 36px 22px; border-radius: 18px; }
  .bot-play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
}

@media (prefers-reduced-motion: reduce) {
  .bot-onair { animation: none; }
  .bot-video img, .bot-play, .bot .bot-button, .bot-faq summary::after { transition: none; }
  .bot-video:hover .bot-video-thumb { transform: translate(-50%, -50%); }
  .bot-video-wide:hover .bot-video-thumb { transform: none; }
}
