.stories-hero {
  position: relative;
  padding: 72px 0 64px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #11508a 100%);
  overflow: hidden;
}

.stories-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(244, 180, 0, 0.18), transparent 22%),
    radial-gradient(circle at 82% 12%, rgba(230, 57, 70, 0.16), transparent 20%);
}

.stories-hero__content {
  max-width: 720px;
}

.stories-hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-top: 0.75rem;
}

.stories-hero__lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 0;
}

.stories-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.story-card {
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(7, 28, 60, 0.06);
  box-shadow: 0 18px 36px rgba(7, 28, 60, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.story-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 48px rgba(7, 28, 60, 0.14);
}

.story-card__trigger {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.story-card__media {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: linear-gradient(180deg, #102746, #0d3b66);
}

.story-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.story-card:hover .story-card__thumb {
  transform: scale(1.05);
}

.story-card__thumb--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.42);
  font-size: 3rem;
}

.story-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(7, 28, 60, 0.08), rgba(7, 28, 60, 0.42));
  color: #fff;
  font-size: 1.35rem;
  transition: background 0.35s ease;
}

.story-card__play i {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s ease, background 0.35s ease;
}

.story-card:hover .story-card__play {
  background: linear-gradient(180deg, rgba(7, 28, 60, 0.12), rgba(230, 57, 70, 0.34));
}

.story-card:hover .story-card__play i {
  transform: scale(1.08);
  background: rgba(230, 57, 70, 0.88);
}

.story-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-deep);
  font-size: 0.75rem;
  font-weight: 700;
}

.story-card__body {
  padding: 1.15rem 1.15rem 1.25rem;
}

.story-card__name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--navy-deep);
}

.story-card__meta,
.story-card__date {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
}

.story-card__description {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.stories-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(7, 28, 60, 0.08);
}

.stories-empty__icon {
  font-size: 3rem;
  color: var(--red);
  margin-bottom: 1rem;
}

.stories-empty h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.stories-empty p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.story-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.story-modal[hidden] {
  display: none;
}

.story-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 28, 60, 0.82);
  backdrop-filter: blur(8px);
}

.story-modal__dialog {
  position: relative;
  width: min(420px, 100%);
  z-index: 1;
  animation: storyModalIn 0.35s ease;
}

.story-modal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--navy-deep);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  z-index: 2;
}

.story-modal__video-wrap {
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
}

.story-modal__video {
  width: 100%;
  display: block;
  max-height: 78vh;
  background: #000;
}

.story-modal__title {
  margin-top: 1rem;
  text-align: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

@keyframes storyModalIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 575px) {
  .stories-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }

  .stories-hero {
    padding: 56px 0 48px;
  }
}
