/*
 * Walkthroughs archive and single-post surfaces.
 * Keeps the CONCEPTFlow shell, but gives published videos a quieter, more focused presentation.
 */

:root {
  --cf-walkthrough-accent: rgba(130, 110, 255, 0.9);
  --cf-walkthrough-accent-soft: rgba(130, 110, 255, 0.16);
  --cf-walkthrough-gold: rgba(230, 220, 90, 0.92);
  --cf-walkthrough-border: rgba(255, 255, 255, 0.12);
  --cf-walkthrough-border-strong: rgba(255, 255, 255, 0.18);
  --cf-walkthrough-surface: rgba(11, 15, 21, 0.96);
  --cf-walkthrough-surface-soft: rgba(16, 21, 30, 0.94);
}

.post-type-archive-walkthrough .cf-main,
.single-walkthrough .cf-main {
  background:
    radial-gradient(circle at 10% 8%, rgba(130, 110, 255, 0.12), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(230, 220, 90, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.98), rgba(5, 7, 10, 1));
}

.cf-walkthroughs-archive,
.cf-walkthrough-post {
  position: relative;
  overflow: clip;
}

.cf-walkthroughs-archive::before,
.cf-walkthrough-post::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 68px 68px, 68px 68px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 92%);
  opacity: 0.34;
}

.cf-walkthroughs-archive > *,
.cf-walkthrough-post > * {
  position: relative;
  z-index: 1;
}

.cf-walkthroughs-archive .cf-panel-head > div:first-child,
.cf-walkthrough-post .cf-panel-head > div:first-child {
  display: grid;
  gap: 8px;
  max-width: min(64ch, 100%);
}

.cf-walkthroughs-archive .cf-panel-head h1,
.cf-walkthrough-post .cf-panel-head h1 {
  margin: 0;
  color: var(--cf-authority-text);
  font-family: var(--cf-font-sans);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.cf-walkthroughs-archive .cf-panel-head h2,
.cf-walkthrough-post .cf-panel-head h2 {
  margin: 0;
  color: var(--cf-authority-text-soft);
  font-family: var(--cf-font-sans);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.cf-walkthrough-post .cf-panel-head h2.cf-walkthrough-post__title {
  margin: 0;
  color: var(--cf-authority-text);
  font-family: var(--cf-font-sans);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.cf-walkthrough-post .cf-panel-head h3.cf-walkthrough-post__tagline {
  margin: 0;
  display: grid;
  gap: 2px;
  color: var(--cf-authority-text-soft);
  font-family: var(--cf-font-sans);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.cf-walkthrough-post .cf-panel-head h3.cf-walkthrough-post__tagline span {
  display: block;
}

.cf-walkthroughs-archive .cf-walkthroughs-archive__title {
  display: grid;
  gap: 2px;
}

.cf-walkthroughs-archive .cf-walkthroughs-archive__title span {
  display: block;
}

.cf-walkthroughs-archive .cf-panel-head h3 {
  margin: 0;
  display: grid;
  gap: 2px;
  color: var(--cf-authority-text-muted);
  font-family: var(--cf-font-sans);
  font-size: clamp(11px, 0.92vw, 13px);
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: min(74ch, 100%);
}

.cf-walkthroughs-archive .cf-panel-head h3 span {
  display: block;
}

.cf-walkthroughs-archive .cf-panel-head h3 span:nth-child(1) {
  color: var(--cf-authority-text);
}

.cf-walkthroughs-archive .cf-panel-head h3 span:nth-child(2) {
  color: var(--cf-authority-text-soft);
}

.cf-walkthroughs-archive .cf-panel-head h3 span:nth-child(3) {
  color: var(--cf-authority-text);
}

.cf-walkthroughs-archive .cf-panel-head h3 span:nth-child(4) {
  color: var(--cf-authority-text-soft);
}

.cf-walkthroughs-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cf-walkthrough-gallery {
  display: grid;
  gap: 18px;
  max-width: min(100%, 1180px);
  margin-inline: auto;
}

.cf-walkthrough-gallery__shell {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--cf-walkthrough-border);
  background:
    linear-gradient(180deg, rgba(16, 21, 30, 0.98), rgba(8, 11, 16, 0.98));
  box-shadow: var(--cf-authority-shadow);
}

.cf-walkthrough-gallery__head {
  display: block;
}

.cf-walkthrough-gallery__head h3 {
  margin: 4px 0 0;
  color: var(--cf-authority-text-soft);
  font-family: var(--cf-font-sans);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cf-walkthrough-gallery__head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cf-walkthrough-gallery__stage {
  display: grid;
  grid-template-columns: minmax(128px, 0.78fr) minmax(0, 1.06fr) minmax(128px, 0.78fr);
  gap: 10px;
  align-items: stretch;
  perspective: 1600px;
}

.cf-walkthroughs-page .cf-walkthrough-gallery__stage {
  grid-template-columns: minmax(120px, 0.44fr) minmax(0, 760px) minmax(120px, 0.44fr);
  justify-content: center;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  overflow: visible;
}

.cf-walkthroughs-page .cf-walkthrough-gallery__focus {
  grid-row: 1;
  width: 100%;
}

.cf-walkthroughs-page .cf-walkthrough-gallery__focus.is-active {
  grid-column: 2;
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  transform: translateZ(0);
}

.cf-walkthroughs-page .cf-walkthrough-gallery__focus.is-prev,
.cf-walkthroughs-page .cf-walkthrough-gallery__focus.is-next {
  z-index: 1;
  align-self: center;
  max-width: 280px;
  padding: 8px;
  opacity: 0.54;
  pointer-events: none;
  filter: saturate(0.55) brightness(0.62) contrast(0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.cf-walkthroughs-page .cf-walkthrough-gallery__focus.is-prev {
  grid-column: 1;
  justify-self: end;
  transform: perspective(1600px) rotateY(28deg) translateZ(-42px);
  transform-origin: right center;
}

.cf-walkthroughs-page .cf-walkthrough-gallery__focus.is-next {
  grid-column: 3;
  justify-self: start;
  transform: perspective(1600px) rotateY(-28deg) translateZ(-42px);
  transform-origin: left center;
}

.cf-walkthroughs-page .cf-walkthrough-gallery__focus.is-hidden {
  display: none;
}

.cf-walkthroughs-page .cf-walkthrough-gallery__focus.is-prev .cf-walkthrough-gallery__focus-head,
.cf-walkthroughs-page .cf-walkthrough-gallery__focus.is-prev .cf-walkthrough-gallery__focus-meta,
.cf-walkthroughs-page .cf-walkthrough-gallery__focus.is-next .cf-walkthrough-gallery__focus-head,
.cf-walkthroughs-page .cf-walkthrough-gallery__focus.is-next .cf-walkthrough-gallery__focus-meta {
  display: none;
}

.cf-walkthroughs-page .cf-walkthrough-gallery__focus.is-prev .cf-walkthrough-gallery__focus-frame,
.cf-walkthroughs-page .cf-walkthrough-gallery__focus.is-next .cf-walkthrough-gallery__focus-frame {
  border-radius: 13px;
  aspect-ratio: 16 / 10;
}

.cf-walkthrough-gallery__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: min(760px, 100%);
  margin: 4px auto 0;
  width: 100%;
}

.cf-walkthrough-gallery__nav-button {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--cf-walkthrough-border);
  background:
    linear-gradient(180deg, rgba(14, 19, 27, 0.96), rgba(8, 11, 16, 0.98));
  color: var(--cf-authority-text);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.cf-walkthrough-gallery__nav-button:hover,
.cf-walkthrough-gallery__nav-button:focus-visible {
  border-color: rgba(130, 110, 255, 0.62);
  background: rgba(130, 110, 255, 0.1);
  transform: translateY(-1px);
}

.cf-walkthrough-gallery__nav-button span {
  color: var(--cf-authority-text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cf-walkthrough-gallery__nav-button strong {
  color: var(--cf-authority-text);
  font-size: 13px;
  line-height: 1.22;
}

.cf-walkthrough-gallery__preview {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-rows: minmax(156px, 1fr) auto;
  gap: 10px;
  min-height: 100%;
  padding: 0;
  border: 1px solid var(--cf-walkthrough-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 21, 30, 0.96), rgba(8, 11, 16, 0.98));
  color: var(--cf-authority-text);
  cursor: default;
  overflow: hidden;
  pointer-events: none;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.cf-walkthrough-gallery__preview-media {
  display: block;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.18), rgba(5, 7, 10, 0.88)),
    linear-gradient(135deg, rgba(130, 110, 255, 0.24), rgba(255, 255, 255, 0.04));
  background-size: cover;
  background-position: center;
}

.cf-walkthrough-gallery__preview-copy {
  display: grid;
  gap: 6px;
  padding: 0 12px 12px;
}

.cf-walkthrough-gallery__preview-copy strong {
  color: var(--cf-authority-text);
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.cf-walkthrough-gallery__preview-copy span {
  color: var(--cf-authority-text-soft);
  font-size: 12px;
  line-height: 1.5;
}

.cf-walkthrough-gallery__preview-copy em {
  color: var(--cf-authority-text-muted);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cf-walkthrough-gallery__preview--prev {
  transform: perspective(1600px) rotateY(29deg) translateZ(-32px) translateY(-8px);
  transform-origin: right center;
  filter: saturate(0.74) brightness(0.74) contrast(0.96);
}

.cf-walkthrough-gallery__preview--next {
  transform: perspective(1600px) rotateY(-29deg) translateZ(-32px) translateY(-8px);
  transform-origin: left center;
  filter: saturate(0.74) brightness(0.74) contrast(0.96);
}

.cf-walkthrough-gallery__preview.is-empty {
  min-height: 100%;
  background: rgba(255, 255, 255, 0.01);
  border-style: dashed;
}

.cf-walkthrough-gallery__preview:hover,
.cf-walkthrough-gallery__preview:focus-visible {
  border-color: rgba(130, 110, 255, 0.24);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.cf-walkthrough-gallery__preview--prev:hover,
.cf-walkthrough-gallery__preview--prev:focus-visible {
  transform: perspective(1600px) rotateY(29deg) translateZ(-32px) translateY(-10px);
  filter: saturate(0.82) brightness(0.8) contrast(0.98);
}

.cf-walkthrough-gallery__preview--next:hover,
.cf-walkthrough-gallery__preview--next:focus-visible {
  transform: perspective(1600px) rotateY(-29deg) translateZ(-32px) translateY(-10px);
  filter: saturate(0.82) brightness(0.8) contrast(0.98);
}

.cf-walkthrough-gallery__focus {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  max-width: 760px;
  justify-self: center;
  border-radius: 20px;
  border: 1px solid var(--cf-walkthrough-border-strong);
  background:
    linear-gradient(180deg, rgba(15, 20, 28, 0.98), rgba(8, 11, 16, 0.98));
  box-shadow: var(--cf-authority-shadow);
}

.cf-walkthrough-gallery__focus-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.cf-walkthrough-gallery__focus-head > div:first-child {
  display: grid;
  gap: 6px;
  max-width: min(44rem, 100%);
}

.cf-walkthrough-gallery__focus-head h3 {
  margin: 0;
  color: var(--cf-authority-text);
  font-family: var(--cf-font-sans);
  font-size: clamp(18px, 1.9vw, 28px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.cf-walkthrough-gallery__focus-copy {
  margin: 0;
  color: var(--cf-authority-text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.cf-walkthrough-gallery__focus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cf-walkthrough-gallery__focus-frame {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--cf-walkthrough-border-strong);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 6, 9, 0.04), rgba(4, 6, 9, 0.94)),
    linear-gradient(135deg, rgba(130, 110, 255, 0.1), rgba(255, 255, 255, 0.03));
  aspect-ratio: 16 / 9;
}

.cf-walkthrough-gallery__focus-frame.has-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42)),
    radial-gradient(circle at 50% 50%, rgba(130, 110, 255, 0.08), transparent 36%);
  pointer-events: none;
}

.cf-walkthrough-gallery__video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background: #05070a;
}

.cf-walkthrough-gallery__video::-webkit-media-controls-panel {
  background-color: rgba(6, 8, 12, 0.92);
}

.cf-walkthrough-gallery__focus-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cf-walkthrough-gallery__focus-meta > div,
.cf-walkthrough-gallery__detail {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--cf-walkthrough-border);
  background: rgba(255, 255, 255, 0.02);
}

.cf-walkthrough-gallery__focus-meta span,
.cf-walkthrough-gallery__signal-list dt {
  color: var(--cf-authority-text-muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cf-walkthrough-gallery__focus-meta strong,
.cf-walkthrough-gallery__signal-list dd {
  color: var(--cf-authority-text);
  font-size: 13px;
  font-weight: 600;
}

.cf-walkthrough-gallery__details {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

@media (min-width: 981px) {
  .cf-walkthrough-gallery__details {
    margin-top: clamp(78px, 5vw, 104px);
  }
}

.cf-walkthrough-gallery__detail {
  display: grid;
  gap: 10px;
  align-self: start;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.cf-walkthrough-gallery__detail-disclosure {
  align-content: start;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.cf-walkthrough-gallery__detail-summary {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--cf-walkthrough-border);
  background: rgba(11, 16, 23, 0.94);
  color: var(--cf-authority-text);
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cf-walkthrough-gallery__detail-summary::-webkit-details-marker {
  display: none;
}

.cf-walkthrough-gallery__detail-disclosure[open] .cf-walkthrough-gallery__detail-summary {
  border-color: rgba(130, 110, 255, 0.72);
  background: rgba(130, 110, 255, 0.14);
}

.cf-walkthrough-gallery__detail h3 {
  margin: 0;
  color: var(--cf-authority-text);
  font-size: 18px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.cf-walkthrough-gallery__detail-copy {
  margin: 0;
  color: var(--cf-authority-text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.cf-walkthrough-gallery__signal-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.cf-walkthrough-gallery__signal-list div {
  display: grid;
  gap: 4px;
}

.cf-walkthrough-gallery__detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.cf-walkthrough-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  border-radius: 20px;
  border: 1px solid var(--cf-walkthrough-border);
  background:
    linear-gradient(180deg, rgba(15, 20, 28, 0.98), rgba(8, 11, 16, 0.98));
  box-shadow: var(--cf-authority-shadow);
  overflow: hidden;
}

.cf-walkthrough-card__media {
  position: relative;
  min-height: 216px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(10, 14, 20, 0.18), rgba(4, 6, 10, 0.86)),
    linear-gradient(135deg, rgba(130, 110, 255, 0.24), rgba(255, 255, 255, 0.04));
  background-size: cover;
  background-position: center;
  text-decoration: none;
  color: var(--cf-authority-text);
}

.cf-walkthrough-card__media-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.12), rgba(5, 7, 10, 0.9));
}

.cf-walkthrough-card__media-copy {
  position: relative;
  display: grid;
  gap: 6px;
  max-width: 18rem;
}

.cf-walkthrough-card__media-title {
  color: var(--cf-authority-text);
  font-size: 16px;
  letter-spacing: 0.02em;
}

.cf-walkthrough-card__body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.cf-walkthrough-card__title {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.cf-walkthrough-card__title a {
  color: var(--cf-authority-text);
  text-decoration: none;
}

.cf-walkthrough-card__title a:hover {
  color: #ffffff;
}

.cf-walkthrough-card__excerpt {
  margin: 0;
  color: var(--cf-authority-text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.cf-walkthrough-card__meta-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 2px 0 0;
  padding: 0;
}

.cf-walkthrough-card__meta-list li {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid var(--cf-walkthrough-border);
  background: rgba(255, 255, 255, 0.02);
}

.cf-walkthrough-card__meta-list span {
  color: var(--cf-authority-text-muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cf-walkthrough-card__meta-list strong {
  color: var(--cf-authority-text);
  font-size: 13px;
  font-weight: 600;
}

.cf-walkthrough-card__action {
  justify-self: start;
}

.cf-walkthroughs-empty {
  display: grid;
  gap: 10px;
  max-width: 58rem;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--cf-walkthrough-border);
  background: linear-gradient(180deg, rgba(16, 21, 30, 0.96), rgba(8, 11, 16, 0.98));
}

.cf-walkthroughs-empty h3 {
  margin: 0;
  color: var(--cf-authority-text);
}

.cf-walkthroughs-empty p {
  margin: 0;
  color: var(--cf-authority-text-soft);
}

.cf-walkthrough-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cf-walkthrough-post__meta-chip {
  display: grid;
  gap: 4px;
  min-width: 124px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--cf-walkthrough-border);
  background: linear-gradient(180deg, rgba(16, 21, 30, 0.98), rgba(10, 13, 18, 0.98));
}

.cf-walkthrough-post__meta-chip span {
  color: var(--cf-authority-text-muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cf-walkthrough-post__meta-chip strong {
  color: var(--cf-authority-text);
  font-size: 13px;
  font-weight: 600;
}

.cf-walkthrough-post__content {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.cf-walkthrough-intro,
.cf-walkthrough-player-shell,
.cf-walkthrough-transcript {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--cf-walkthrough-border);
  background: linear-gradient(180deg, rgba(14, 19, 26, 0.94), rgba(8, 11, 16, 0.97));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.cf-walkthrough-intro {
  display: grid;
  gap: 10px;
  align-self: start;
}

.cf-walkthrough-intro h3,
.cf-walkthrough-player-shell__head h3 {
  margin: 0;
  color: var(--cf-authority-text);
  font-size: clamp(22px, 1.8vw, 30px);
  letter-spacing: -0.04em;
}

.cf-walkthrough-intro__content {
  color: var(--cf-authority-text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.cf-walkthrough-intro__content p:first-child {
  margin-top: 0;
}

.cf-walkthrough-intro__content ul,
.cf-walkthrough-intro__content ol {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.cf-walkthrough-intro__content li + li {
  margin-top: 0.4rem;
}

.cf-walkthrough-player-shell {
  display: grid;
  gap: 14px;
}

.cf-walkthrough-player-shell__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.cf-walkthrough-player-shell__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cf-walkthrough-video-frame {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--cf-walkthrough-border-strong);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 6, 9, 0.04), rgba(4, 6, 9, 0.94)),
    linear-gradient(135deg, rgba(130, 110, 255, 0.1), rgba(255, 255, 255, 0.03));
  aspect-ratio: 16 / 9;
}

.cf-walkthrough-video-frame.has-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.36)),
    radial-gradient(circle at 50% 50%, rgba(130, 110, 255, 0.08), transparent 36%);
  pointer-events: none;
}

.cf-walkthrough-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background: #05070a;
}

.cf-walkthrough-video::-webkit-media-controls-panel {
  background-color: rgba(6, 8, 12, 0.92);
}

.cf-walkthrough-transcript details {
  display: grid;
  gap: 12px;
}

.cf-walkthrough-transcript summary {
  cursor: pointer;
  color: var(--cf-authority-text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.cf-walkthrough-transcript summary:focus,
.cf-walkthrough-transcript summary:focus-visible {
  outline: 1px solid rgba(214, 223, 232, 0.24) !important;
  outline-offset: 2px !important;
  border-radius: 8px;
}

.cf-walkthrough-transcript__note {
  margin: 12px 0 0;
  color: rgba(214, 223, 232, 0.68);
  font-size: 13px;
}

.cf-walkthrough-transcript__text {
  margin: 14px 0 0;
  padding: 14px;
  overflow: auto;
  max-height: 32rem;
  border-radius: 14px;
  border: 1px solid var(--cf-walkthrough-border);
  background: rgba(3, 4, 7, 0.82);
  color: rgba(214, 223, 232, 0.82);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.cf-walkthrough-transcript__text:focus,
.cf-walkthrough-transcript__text:focus-visible {
  outline: 1px solid rgba(214, 223, 232, 0.2) !important;
  outline-offset: 1px !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
}

.cf-walkthrough-transcript__empty {
  margin: 14px 0 0;
  color: var(--cf-authority-text-soft);
}

@media (max-width: 980px) {
  .cf-walkthroughs-grid,
  .cf-walkthrough-post__content {
    grid-template-columns: 1fr;
  }

  .cf-walkthrough-gallery__stage,
  .cf-walkthrough-gallery__details,
  .cf-walkthrough-gallery__focus-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cf-walkthrough-gallery__focus {
    grid-column: 1 / -1;
    padding: 14px;
  }

  .cf-walkthrough-gallery__preview--prev,
  .cf-walkthrough-gallery__preview--next {
    transform: none;
  }

  .cf-walkthrough-card__meta-list {
    grid-template-columns: 1fr;
  }

  .cf-walkthrough-post__meta {
    justify-content: flex-start;
  }

  .cf-walkthrough-player-shell__head {
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .cf-walkthrough-gallery__preview--prev,
  .cf-walkthrough-gallery__preview--next {
    display: none;
  }

  .cf-walkthrough-gallery__stage {
    grid-template-columns: 1fr;
  }

  .cf-walkthroughs-page .cf-walkthrough-gallery__stage {
    grid-template-columns: minmax(0, 760px);
    max-width: 760px;
    overflow: visible;
  }

  .cf-walkthroughs-page .cf-walkthrough-gallery__focus.is-active {
    grid-column: 1;
  }

  .cf-walkthroughs-page .cf-walkthrough-gallery__focus.is-prev,
  .cf-walkthroughs-page .cf-walkthrough-gallery__focus.is-next {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    transform: none;
  }

  .cf-walkthrough-gallery__focus {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .cf-walkthrough-gallery {
    margin-inline: 0;
  }

  .cf-walkthroughs-archive .cf-panel-head h2,
  .cf-walkthrough-post .cf-panel-head h2.cf-walkthrough-post__title {
    font-size: clamp(22px, 8vw, 28px);
  }

  .cf-walkthroughs-archive .cf-panel-head h3,
  .cf-walkthrough-post .cf-panel-head h3.cf-walkthrough-post__tagline,
  .cf-walkthrough-intro h3,
  .cf-walkthrough-player-shell__head h3 {
    font-size: 13px;
    line-height: 1.38;
  }

  .cf-walkthrough-intro,
  .cf-walkthrough-player-shell,
  .cf-walkthrough-transcript {
    padding: 15px;
  }

  .cf-walkthrough-post__content {
    gap: 14px;
  }

  .cf-walkthrough-video-frame {
    border-radius: 14px;
  }

  .cf-walkthrough-gallery__shell {
    padding: 14px;
    border-radius: 18px;
  }

  .cf-walkthrough-gallery__preview {
    grid-template-rows: minmax(152px, 1fr) auto;
  }

  .cf-walkthrough-gallery__nav {
    grid-template-columns: 1fr;
  }

  .cf-walkthrough-gallery__focus {
    padding: 12px;
  }

  .cf-walkthrough-gallery__focus-head {
    flex-direction: column;
  }

  .cf-walkthrough-gallery__focus-actions {
    justify-content: flex-start;
  }

  .cf-walkthrough-gallery__focus-frame {
    aspect-ratio: 16 / 10;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cf-walkthrough-card,
  .cf-walkthrough-gallery__preview,
  .cf-walkthrough-gallery__focus,
  .cf-walkthrough-intro,
  .cf-walkthrough-player-shell,
  .cf-walkthrough-transcript {
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  }

  .cf-walkthrough-card:hover,
  .cf-walkthrough-card:focus-within,
  .cf-walkthrough-gallery__focus:hover,
  .cf-walkthrough-intro:hover,
  .cf-walkthrough-player-shell:hover,
  .cf-walkthrough-transcript:hover {
    transform: translateY(-1px);
    border-color: rgba(130, 110, 255, 0.24);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  }
}
