﻿:root {
  --story-wine: #8f1118;
  --story-red: #d7131c;
  --story-gold: #f1c783;
  --story-bg: #160d12;
}

body:has(.fatal-stories-feed-page) {
  overflow: hidden;
  background: var(--story-bg);
}

body:has(.fatal-stories-feed-page) main {
  min-height: 0 !important;
}

body:has(.fatal-stories-feed-page) main {
    padding: 0px !important;
}



body:has(.fatal-stories-feed-page) > header,
body:has(.fatal-stories-feed-page) main > footer,
body:has(.fatal-stories-feed-page) main > .footer,
body:has(.fatal-stories-feed-page) main > .footer-main {
  display: none !important;
}

.fatal-stories-feed-page {
  position: relative;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 20% 0%, rgba(139, 64, 73, .24), transparent 36%),
    radial-gradient(circle at 84% 100%, rgba(120, 13, 24, .18), transparent 32%),
    #160d12;
}

.fatal-stories-feed-heading {
  position: absolute;
  z-index: 30;
  top: 18px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  pointer-events: none;
}

.fatal-stories-feed-heading > div {
  pointer-events: auto;
}

.fatal-stories-feed-eyebrow {
  display: block;
  color: var(--story-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fatal-stories-feed-heading h1 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.1;
}

.fatal-stories-feed-close {
  display: none;
}

.fatal-stories-feed-list {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

.fatal-story-feed-profile {
  min-height: min(88svh, 860px);
  display: grid;
  place-items: center;
  padding: 0px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.fatal-story-feed-profile + .fatal-story-feed-profile {
  padding-top: 0px;
}

.fatal-story-feed-card {
  position: relative;
  width: min(410px, calc((100svh - 130px) * .5625), calc(100vw - 40px));
  aspect-ratio: 9 / 16;
  max-height: calc(100svh - 130px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: #08070a;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .48), 0 0 0 1px rgba(196, 28, 39, .12);
}

.fatal-story-feed-stage,
.fatal-story-feed-slide {
  position: absolute;
  inset: 0;
}

.fatal-story-feed-slide {
  z-index: 1;
  visibility: hidden;
  opacity: 0;
  background: #08070a;
  transition: opacity .22s ease, visibility .22s ease;
}

.fatal-story-feed-slide.is-current {
  visibility: visible;
  opacity: 1;
}

.fatal-story-feed-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #08070a;
}

.fatal-story-feed-text {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: min(82%, 330px);
  padding: 10px 14px;
  transform: translate(-50%, -50%);
  border-radius: 6px;
  background: rgba(0, 0, 0, .36);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
  text-align: center;
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.fatal-story-feed-stage::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .72), transparent 22%),
    linear-gradient(0deg, rgba(0, 0, 0, .78), transparent 30%);
}

.fatal-story-feed-user {
  position: absolute;
  z-index: 12;
  top: 15px;
  left: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fatal-story-feed-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f4cf88, #c9121d 54%, #5d0717);
}

.fatal-story-feed-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border: 2px solid #170d12;
  border-radius: inherit;
  object-fit: cover;
}

.fatal-story-feed-user-copy {
  min-width: 0;
  flex: 1;
}

.fatal-story-feed-user-copy a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  text-decoration: none;
}

.fatal-story-feed-user-copy strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fatal-story-feed-user-copy .bi-patch-check-fill {
  color: #56e1d2;
}

.fatal-story-feed-user-copy span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255, 255, 255, .8);
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fatal-story-feed-counter {
  flex: 0 0 auto;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.fatal-story-feed-actions {
  position: absolute;
  z-index: 14;
  right: 12px;
  bottom: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.fatal-story-action {
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: rgba(14, 8, 12, .68);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
  backdrop-filter: blur(12px);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.fatal-story-action:hover,
.fatal-story-action:focus-visible {
  border-color: rgba(255, 255, 255, .36);
  background: rgba(137, 17, 25, .84);
  color: #fff;
  transform: translateY(-1px);
}

.fatal-story-action i {
  font-size: 20px;
  line-height: 1;
}

.fatal-story-action span {
  position: absolute;
  margin-top: 60px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.fatal-story-action.is-liked {
  border-color: rgba(255, 82, 92, .58);
  background: #a80d17;
}

.fatal-story-action.is-liked i::before {
  content: "\f415";
}

.fatal-story-share-wrap {
  position: relative;
}

.fatal-story-share-menu {
  position: absolute;
  right: 52px;
  top: 50%;
  width: 168px;
  display: none;
  padding: 7px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 6px;
  background: rgba(20, 8, 14, .96);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .46);
  backdrop-filter: blur(18px);
}

.fatal-story-share-wrap.is-open .fatal-story-share-menu {
  display: grid;
}

.fatal-story-share-menu a,
.fatal-story-share-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 12px;
  text-align: left;
  text-decoration: none;
}

.fatal-story-share-menu a:hover,
.fatal-story-share-menu button:hover {
  background: rgba(163, 20, 30, .34);
}

.fatal-story-feed-bottom {
  position: absolute;
  z-index: 12;
  right: 13px;
  bottom: 13px;
  left: 13px;
}

.fatal-story-profile-link {
  max-width: calc(100% - 62px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 67, 77, .48);
  border-radius: 6px;
  background: linear-gradient(135deg, #8f1018, #cf0000 62%, #8f1018);
  color: #fff;
  box-shadow: 0 12px 28px rgba(207, 0, 0, .24);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.fatal-story-profile-link:hover {
  color: #fff;
  text-decoration: none;
}

.fatal-story-progress {
  width: 100%;
  display: flex;
  gap: 4px;
  margin-top: 10px;
}

.fatal-story-progress > span {
  position: relative;
  height: 3px;
  flex: 1;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, .28);
}

.fatal-story-progress i {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #efbb68, #ff3742);
}

.fatal-story-progress span.is-complete i {
  width: 100%;
}

.fatal-story-progress span.is-running i {
  animation: fatal-story-progress var(--story-duration, 5s) linear forwards;
}

.fatal-story-feed-nav {
  position: absolute;
  z-index: 8;
  top: 0;
  bottom: 0;
  width: 34%;
  border: 0;
  background: transparent;
}

.fatal-story-feed-nav.is-previous {
  left: 0;
}

.fatal-story-feed-nav.is-next {
  right: 0;
}

.fatal-story-feed-nav.is-previous,
.fatal-story-feed-nav.is-next {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.fatal-story-feed-lock {
  position: absolute;
  z-index: 9;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px;
  border: 0;
  background: rgba(12, 7, 10, .3);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(2px);
}

.fatal-story-feed-lock i {
  font-size: 34px;
  color: var(--story-gold);
}

.fatal-story-feed-lock strong {
  font-size: 17px;
}

.fatal-story-feed-lock span {
  max-width: 260px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
}

.fatal-story-feed-empty {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px;
  text-align: center;
}

.fatal-story-feed-empty > i {
  color: var(--story-gold);
  font-size: 44px;
}

.fatal-story-feed-empty h2,
.fatal-story-feed-empty p {
  margin: 0;
}

.fatal-story-feed-empty p {
  color: rgba(255, 255, 255, .64);
}

@keyframes fatal-story-progress {
  from { width: var(--story-progress-start, 0%); }
  to { width: 100%; }
}

@media (max-width: 767px) {
  .fatal-stories-feed-page {
    height: calc(100svh - 76px);
    min-height: 420px;
  }

  .fatal-stories-feed-heading {
    display: none;
  }

  .fatal-story-feed-profile {
    min-height: calc(100svh - 116px);
    padding: 0 0 7svh;
  }

  .fatal-story-feed-profile + .fatal-story-feed-profile {
    padding-top: 5svh;
  }

  .fatal-story-feed-card {
    width: min(100vw, calc((100svh - 76px) * .5625));
    max-width: 100vw;
    max-height: calc(100svh - 76px);
    border-width: 0;
    border-radius: 0;
  }

  .fatal-story-feed-actions {
    right: 10px;
    bottom: 88px;
  }

  .fatal-story-action {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }
}

@media (max-width: 380px) {
  .fatal-story-feed-user {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .fatal-story-feed-avatar {
    flex-basis: 39px;
    width: 39px;
    height: 39px;
  }

  .fatal-story-feed-actions {
    gap: 7px;
  }

  .fatal-story-action {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fatal-stories-feed-list {
    scroll-behavior: auto;
  }

  .fatal-story-feed-slide,
  .fatal-story-action {
    transition: none;
  }
}
