.we-block--video-library {
  padding: clamp(76px, 9vw, 132px) 0;
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--we-color-accent) 13%, transparent), transparent 26%),
    #fff;
}

.wons-videoGuide__intro {
  max-width: 760px;
}

.wons-videoGuide__intro h2 {
  margin: 10px 0 18px;
  color: var(--we-color-primary-strong);
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.wons-videoGuide__intro > p:last-child {
  margin: 0;
  color: var(--we-color-muted);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.75;
}

.wons-videoGuide__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(36px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid var(--we-color-line);
  border-radius: 18px;
  background: var(--we-color-surface, #fbf7f0);
}

.wons-videoGuide__nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 16px 20px;
  color: var(--we-color-primary-strong);
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.wons-videoGuide__nav a + a {
  border-left: 1px solid var(--we-color-line);
}

.wons-videoGuide__nav a:hover,
.wons-videoGuide__nav a:focus-visible {
  background: var(--we-color-primary-strong);
  color: #fff;
}

.wons-videoGuide__nav span {
  color: var(--we-color-accent);
  font-size: 12px;
  letter-spacing: .08em;
}

.wons-videoGuide__chapters {
  margin-top: clamp(72px, 9vw, 124px);
}

.wons-videoChapter {
  scroll-margin-top: 110px;
}

.wons-videoChapter + .wons-videoChapter {
  margin-top: clamp(92px, 11vw, 152px);
}

.wons-videoChapter__head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
  margin-bottom: clamp(30px, 4vw, 50px);
}

.wons-videoChapter__head > span {
  display: grid;
  width: 56px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--we-color-primary-strong);
  color: var(--we-color-accent);
  font-weight: 800;
}

.wons-videoChapter__head h3 {
  margin: 0;
  color: var(--we-color-primary-strong);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.wons-videoChapter__head p {
  margin: 10px 0 0;
  color: var(--we-color-muted);
  font-size: 16px;
  line-height: 1.7;
}

.wons-videoGuide__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}

.wons-videoCard {
  min-width: 0;
}

.wons-videoCard__play {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--we-color-line) 86%, transparent);
  border-radius: 22px;
  background: var(--we-color-surface, #fbf7f0);
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(var(--we-color-primary-rgb), .07);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.wons-videoCard__play:hover,
.wons-videoCard__play:focus-visible {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--we-color-accent) 60%, var(--we-color-line));
  box-shadow: 0 24px 52px rgba(var(--we-color-primary-rgb), .14);
  outline: none;
}

.wons-videoCard__play:focus-visible {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--we-color-accent) 28%, transparent), 0 24px 52px rgba(var(--we-color-primary-rgb), .14);
}

.wons-videoCard__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--we-color-primary-strong);
}

.wons-videoCard__thumb::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(18, 31, 48, .38));
  content: '';
}

.wons-videoCard__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform .55s ease;
}

.wons-videoCard__play:hover img,
.wons-videoCard__play:focus-visible img {
  transform: scale(1.07);
}

.wons-videoCard__thumb i {
  position: absolute;
  z-index: 1;
  left: 20px;
  bottom: 18px;
  display: grid;
  width: 46px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--we-color-accent);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.wons-videoCard__thumb i::before {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--we-color-primary-strong);
  content: '';
}

.wons-videoCard__body {
  display: block;
  min-height: 154px;
  padding: 22px 22px 24px;
}

.wons-videoCard__body strong,
.wons-videoCard__body small {
  display: block;
}

.wons-videoCard__body strong {
  color: var(--we-color-primary-strong);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.35;
  letter-spacing: -.025em;
}

.wons-videoCard__body small {
  margin-top: 10px;
  color: var(--we-color-muted);
  font-size: 14px;
  line-height: 1.65;
}

.wons-videoDialog {
  width: min(1080px, calc(100vw - 40px));
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 24px;
  background: #0e1826;
  color: #fff;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .42);
}

.wons-videoDialog::backdrop {
  background: rgba(10, 18, 29, .78);
  backdrop-filter: blur(8px);
}

.wons-videoDialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px 16px 24px;
}

.wons-videoDialog__head h2 {
  margin: 0;
  overflow: hidden;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wons-videoDialog__head button {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  aspect-ratio: 1;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.wons-videoDialog__head button:hover,
.wons-videoDialog__head button:focus-visible {
  border-color: var(--we-color-accent);
  color: var(--we-color-accent);
  outline: none;
}

.wons-videoDialog__frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 0 0 24px 24px;
  background: #000;
}

.wons-videoDialog__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1024px) {
  .wons-videoGuide__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wons-videoGuide__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wons-videoGuide__nav a:nth-child(3) {
    border-left: 0;
  }

  .wons-videoGuide__nav a:nth-child(n + 3) {
    border-top: 1px solid var(--we-color-line);
  }
}

@media (max-width: 640px) {
  .we-block--video-library {
    padding: 64px 0 82px;
  }

  .wons-videoGuide__nav {
    grid-template-columns: 1fr;
  }

  .wons-videoGuide__nav a + a,
  .wons-videoGuide__nav a:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--we-color-line);
  }

  .wons-videoGuide__chapters {
    margin-top: 72px;
  }

  .wons-videoChapter {
    scroll-margin-top: 88px;
  }

  .wons-videoChapter + .wons-videoChapter {
    margin-top: 86px;
  }

  .wons-videoChapter__head {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .wons-videoChapter__head > span {
    width: 44px;
  }

  .wons-videoGuide__grid {
    grid-template-columns: 1fr;
  }

  .wons-videoCard__body {
    min-height: 0;
  }

  .wons-videoDialog {
    width: calc(100vw - 20px);
    border-radius: 18px;
  }

  .wons-videoDialog__frame {
    border-radius: 0 0 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wons-videoCard__play,
  .wons-videoCard__thumb img {
    transition: none;
  }
}
