.stories-page {
  background: #f8fafb;
}

.stories-page .seo-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stories-page .seo-main-nav {
  flex: 0 1 auto;
}

.stories-main {
  width: 100%;
  margin: 0 auto;
  padding: 42px clamp(12px, 1.5vw, 24px) 72px;
}

.stories-hero {
  display: flex;
  gap: 32px;
  align-items: end;
  justify-content: space-between;
  padding: 18px 0 34px;
  border-bottom: 1px solid var(--line);
}

.stories-hero > div {
  max-width: 780px;
}

.stories-hero h1 {
  margin: 5px 0 12px;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.stories-hero p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.stories-channel-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #0e5874;
  border-radius: 6px;
  background: #0e5874;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.stories-channel-link:hover,
.stories-channel-link:focus-visible {
  background: #093f55;
}

.stories-library {
  padding-top: 38px;
}

.stories-section-heading {
  margin-bottom: 22px;
}

.stories-section-heading h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

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

.story-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(31, 59, 70, 0.08);
}

.story-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #071b34;
}

.story-play {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #071b34;
  cursor: pointer;
}

.story-play img,
.story-player iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.story-play::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 19, 35, 0.08);
  transition: background 0.2s ease;
}

.story-play:hover::after,
.story-play:focus-visible::after {
  background: rgba(3, 19, 35, 0.22);
}

.story-play:focus-visible {
  outline: 4px solid #fff;
  outline-offset: -6px;
}

.story-play-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 72px;
  height: 52px;
  border-radius: 8px;
  background: rgba(202, 22, 34, 0.95);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, -50%);
}

.story-play-symbol::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid #fff;
  transform: translate(-50%, -50%);
}

.story-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.story-copy {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  padding: 18px 20px 20px;
}

.story-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.story-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.story-copy a {
  width: fit-content;
  margin-top: 4px;
  color: #0e5874;
  font-weight: 800;
}

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

@media (max-width: 760px) {
  .stories-page .seo-site-header {
    display: flex;
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .stories-page .seo-main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stories-page .seo-main-nav a {
    justify-content: center;
  }

  .stories-main {
    width: 100%;
    padding: 26px 12px 52px;
  }

  .stories-hero {
    display: grid;
    gap: 20px;
    align-items: start;
    padding-bottom: 26px;
  }

  .stories-hero h1 {
    font-size: 42px;
  }

  .stories-hero p:last-child {
    font-size: 16px;
  }

  .stories-channel-link {
    width: fit-content;
  }

  .stories-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .story-copy h3 {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-play::after {
    transition: none;
  }
}
