/* 通用视频播放器：点击播放（卡片）与滚动焦点播放（详情）。 */
.media-player {
  display: block;
  min-width: 0;
  background: #141126;
}
.media-frame {
  position: relative;
  aspect-ratio: var(--media-ratio, 16 / 10);
  background: #0d0a1c;
  overflow: hidden;
}
.media-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0d0a1c;
}
.media-bigplay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #ffffff3d;
  background: #0b0716c7;
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 30px #00000066;
  transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
}
.media-bigplay svg { width: 20px; height: 20px; margin-left: 3px; }
.media-bigplay:hover { background: #1a1230d9; transform: translate(-50%, -50%) scale(1.05); }
.media-player.is-playing .media-bigplay { opacity: 0; pointer-events: none; }

.media-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  box-sizing: border-box;
  padding: 0 10px;
  background: #17122a;
  border-top: 1px solid #ffffff10;
}
.media-bar button { font: inherit; cursor: pointer; }
.media-toggle {
  flex: none;
  border: 0;
  background: none;
  color: #ded7f3;
  font-size: 11px;
  padding: 4px 2px;
  min-width: 30px;
  text-align: center;
}
.media-toggle:hover { color: #fff; }
.media-seek {
  flex: 1;
  min-width: 36px;
  height: 4px;
  margin: 0;
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, #bca4ff 0%, #bca4ff var(--played, 0%), #ffffff2b var(--played, 0%), #ffffff2b 100%);
  cursor: pointer;
}
.media-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #efe8ff;
  box-shadow: 0 0 0 2px #bca4ff55;
}
.media-seek::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #efe8ff;
}
.media-time {
  flex: none;
  font-size: 10px;
  color: #b9b2cd;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.media-sound, .media-full {
  flex: none;
  border: 1px solid #ffffff26;
  background: #0d0918;
  color: #e8e2f8;
  font-size: 10px;
  line-height: 1;
  padding: 5px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.media-sound:hover, .media-full:hover { border-color: #bca4ff66; color: #fff; }
.media-sound[aria-pressed="true"] { border-color: #bca4ff80; color: #fff; }

.media-player.is-empty .media-frame video,
.media-player.is-empty .media-bigplay,
.media-player.is-empty .media-bar { display: none; }
.media-player.is-empty .media-frame { margin-bottom: 40px; }
.media-pending {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  background: radial-gradient(ellipse at 60% 30%, #9565f421, transparent 70%), #141126;
}
.media-pending svg { width: 36px; height: 36px; color: var(--cold); }
.media-player.is-empty .media-pending { display: flex; }

.media-player:fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
}
.media-player:fullscreen .media-frame {
  flex: 1;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
}
.media-player:fullscreen video { height: 100%; object-fit: contain; }
.media-player:fullscreen .media-bar { background: #0b0716; }

@media (max-width: 650px) {
  .media-bar { gap: 6px; padding: 0 8px; height: 38px; }
  .media-time { display: none; }
  .media-sound, .media-full { padding: 5px 7px; }
  .media-player.is-empty .media-frame { margin-bottom: 38px; }
}

/* Featured device integration case, scoped to its own section. */
.device-case-feature { padding-top:32px;padding-bottom:64px;border-bottom:1px solid #bca4ff25; }
.device-case-heading { display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:end;margin-bottom:36px; }
.device-case-kicker { font-size:12px;color:#b79ccd;letter-spacing:.07em;margin:0 0 18px; }
.device-case-heading h2 { font-size:clamp(30px,3.6vw,48px);line-height:1.35;letter-spacing:-.035em;font-weight:500;margin:0;color:#e4d2f6; }
.device-case-heading > p { font-size:16px;line-height:1.9;color:#a795b8;margin:0;justify-self:end; }
.device-case-layout { display:grid;grid-template-columns:1.35fr .85fr;gap:36px;align-items:start; }
.device-case-feature .media-player { border:1px solid #b497d740;border-radius:15px;overflow:hidden; }
.device-case-feature .media-frame { aspect-ratio:16/9; }
.device-case-feature .media-bar { gap:7px;padding:10px;background:#1b1428; }
.device-case-feature .media-bar button { font-size:12px; }
.device-case-feature .media-time { font-size:10px; }
.device-case-badge { display:inline-block;font-size:11px;color:#b9a0cd;border:1px solid #b999d035;background:#ad89cf08;border-radius:6px;padding:5px 9px; }
.device-case-details h3 { font-size:24px;line-height:1.55;font-weight:500;letter-spacing:-.02em;margin:20px 0 24px;color:#e0cbee; }
.device-case-step { display:flex;gap:14px;padding:17px 0;border-top:1px solid #b999d025; }
.device-case-step > span { color:#8e719f;font-size:11px;flex:none;padding-top:4px;font-variant-numeric:tabular-nums; }
.device-case-step b { color:#cbb4dc;font-size:14px;font-weight:400; }
.device-case-step p { color:#94809f;font-size:12px;line-height:1.9;margin:8px 0 0; }
.device-case-note { font-size:11px;color:#8d789a;line-height:1.9;margin-top:22px; }
@media(max-width:900px) { .device-case-layout { grid-template-columns:1fr;gap:28px; }.device-case-details { max-width:680px; } }
@media(max-width:650px) { .device-case-heading { grid-template-columns:1fr;gap:22px; }.device-case-heading > p { justify-self:start;font-size:14px; }.device-case-feature { padding-top:10px; }.device-case-feature .media-bar { gap:4px;padding:7px; }.device-case-feature .media-bar button { font-size:10px; } }

/* The case page also acts as the full productivity material library. */
.productivity-library { padding-top:25px;padding-bottom:65px;border-bottom:1px solid #b495d126; }
.productivity-library-heading { margin-bottom:34px; }
.productivity-library-heading > p { color:#a68bbd;font-size:12px;letter-spacing:.06em; }
.productivity-library-heading h2 { color:#e7d3f8;font-size:clamp(28px,3.5vw,43px);font-weight:500;line-height:1.45;letter-spacing:-.03em;margin:18px 0; }
.productivity-library-heading > span { color:#a493b2;font-size:14px;line-height:1.9; }
.productivity-library-grid { display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:22px; }
.productivity-library-card { grid-column:span 2;min-width:0;border:1px solid #b897d32e;border-radius:16px;overflow:hidden;background:linear-gradient(145deg,#21182e,#14101e);scroll-margin-top:90px; }
.productivity-library-card:nth-child(n+4) { grid-column:span 3; }
.productivity-library-top { display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:19px 20px; }
.productivity-library-top b { color:#d3b3e7;font-size:16px;font-weight:500; }
.productivity-library-top > span { color:#9580a6;font-size:10px; }
.productivity-library-card .media-frame { aspect-ratio:16/9; }
.productivity-library-card .media-bar { gap:5px;padding:7px;background:#191224; }
.productivity-library-card .media-bar button { font-size:10px;padding:5px; }
.productivity-library-card .media-time { display:none; }
.productivity-library-copy { padding:22px; }
.productivity-library-copy h3 { color:#dbc4eb;font-size:19px;line-height:1.65;font-weight:500;margin:0 0 13px; }
.productivity-library-copy > p { color:#9b84ab;font-size:13px;line-height:1.9;margin:0; }
@media(max-width:900px) { .productivity-library-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:18px; }.productivity-library-card,.productivity-library-card:nth-child(n+4) { grid-column:auto; } }
@media(max-width:650px) { .productivity-library-grid { grid-template-columns:1fr; }.productivity-library-copy h3 { font-size:20px; }.productivity-library-card .media-bar { gap:7px;padding:9px; }.productivity-library-card .media-bar button { min-height:38px; } }
