/* This stylesheet belongs to the video comparison page. The hero silhouette,
   tilt and breakpoint geometry come directly from the original .image-frame. */
.illustrated-reader-section { padding-block: clamp(72px, 8vw, 116px) 38px; scroll-margin-top: 32px; }
.illustrated-reader-intro { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: clamp(24px, 6vw, 82px); margin-bottom: 32px; }
.illustrated-reader-intro h2 { margin: 16px 0 0; font-size: clamp(36px, 4.4vw, 66px); line-height: 1.02; letter-spacing: -.06em; }
.illustrated-reader-intro h2 em { color: #758165; }
.illustrated-reader-intro p { margin: 0 0 3px; color: #59675b; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.65; max-width: 46ch; }
.illustrated-reader-section wt-berry-reader { display: block; width: 100%; }
.illustrated-reader-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 18px; }
.illustrated-reader-foot > span { color: #5d6a58; font-size: 13px; }
.illustrated-reader-foot .platform-pills { margin: 0; }
@media(max-width: 640px) {
  .illustrated-reader-intro { grid-template-columns: 1fr; align-items: start; gap: 14px; margin-bottom: 22px; }
  .illustrated-reader-foot { padding-top: 16px; }
}

.comparison-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.comparison-hero-frame .comparison-video {
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.comparison-parent-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid #dedfd3;
  border-radius: 24px;
  background: #f7f5ef;
  box-shadow: 0 12px 35px #394b2c0a;
}
.media-surface {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: zoom-in;
  touch-action: manipulation;
}
.comparison-hero-frame .image-tag {
  z-index: 1;
  pointer-events: none;
  max-width: calc(100% - 175px);
}
.comparison-hero-frame .image-tag b { font-weight: inherit; line-height: 1.25; }
.video-comparison-page .hero-art > .floating-note,
.video-comparison-page .hero-art > .hero-bubble { pointer-events: none; }
.media-controls {
  position: absolute;
  z-index: 2;
  right: clamp(10px, 2.5%, 20px);
  bottom: clamp(10px, 2.5%, 20px);
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid #ffffff55;
  border-radius: 100px;
  background: #23332cda;
  color: #fffdf4;
  box-shadow: 0 2px 9px #16201922;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.media-controls button,
.viewer-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.media-controls svg,
.viewer-close svg {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}
.media-controls [hidden] { display: none !important; }
@media (hover: hover) {
  .media-controls button:hover { background: #ffffff29; }
  .viewer-close:hover { background: #e5e6dd; }
}
.media-controls button:focus-visible,
.viewer-close:focus-visible {
  outline: 2px solid #fff9de;
  outline-offset: -4px;
  background-color: #51614f;
  color: white;
}
.media-surface:focus-visible {
  outline: 3px solid #fff9de;
  outline-offset: -6px;
  box-shadow: inset 0 0 0 8px #415338;
}
#comparison-viewer {
  width: min(1160px, calc(100vw - 32px), calc(177.77dvh - 160px));
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: #28352d;
  overflow: hidden;
  background: #f7f5ef;
}
#comparison-viewer::backdrop {
  background: #101b16de;
  backdrop-filter: blur(7px);
}
.viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 4px 6px 4px 18px;
}
.viewer-header h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -.015em;
}
.viewer-close { color: #344638; }
.viewer-stage {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #18231b;
}
.viewer-stage > .comparison-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 600px) {
  .comparison-hero-frame .image-tag { left: 11px; bottom: 15px; padding: 9px 10px; font-size: 9px; }
  .comparison-parent-frame { border-radius: 15px; }
  .comparison-parent-frame .media-controls { right: 6px; bottom: 6px; }
  #comparison-viewer { width: calc(100vw - 12px); max-width: calc(100vw - 12px); border-radius: 12px; }
}
@media (max-width: 380px) {
  .comparison-hero-frame .image-tag { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .media-controls { background: #26352d; }
}
