/* GRID LAYOUT */
.fasto-social--grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

@media (max-width: 640px) {
  .fasto-social--grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* CARD */
.fasto-card {
  display: block;
  border-radius: 20px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.fasto-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.05);
  border-color: rgba(95,180,255,0.18);
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
}

/* THUMBNAIL */
.fasto-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b0f1a;
  overflow: hidden;
}

.fasto-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.03) contrast(1.02);
  transition: transform .22s ease, filter .22s ease;
}

.fasto-card:hover .fasto-card__thumb img {
  transform: scale(1.02);
  filter: saturate(1.06) contrast(1.04) brightness(1.02);
}

/* REMOVE OLD UGLY PLAY OVERLAY */
.fasto-card__play {
  display: none;
}

/* Small cleaner play badge in corner */
.fasto-card__thumb::after {
  content: "▶";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  color: #ffffff;
  background: rgba(8, 14, 24, 0.68);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* META */
.fasto-card__meta {
  padding: 13px 15px 16px;
}

.fasto-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  flex-wrap: wrap;
}

.fasto-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  line-height: 1;
  letter-spacing: 0.15px;
  background: rgba(255, 70, 70, 0.10);
  border: 1px solid rgba(255, 90, 90, 0.16);
  color: #ffd9de;
}

.fasto-badge--youtube {
  background: rgba(255, 70, 70, 0.10);
  border-color: rgba(255, 90, 90, 0.16);
  color: #ffd9de;
}

.fasto-time {
  color: rgba(210, 225, 245, 0.72);
  font-size: 12px;
  line-height: 1.2;
}

.fasto-card__title {
  color: #eef5ff;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.32;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 640px) {
  .fasto-card__meta {
    padding: 12px 14px 15px;
  }

  .fasto-card__title {
    font-size: 17px;
  }

  .fasto-time {
    font-size: 11px;
  }
}

/* empty state */
.fasto-social__empty {
  grid-column: 1 / -1;
  text-align: center;
  opacity: .78;
  padding: 28px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: rgba(230,240,255,0.78);
}


/* clickable play button */
.fasto-card__play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  color: #fff;
  background: rgba(8, 14, 24, 0.72);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  z-index: 3;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.fasto-card__play:hover {
  transform: scale(1.06);
  background: rgba(18, 28, 46, 0.9);
  border-color: rgba(255,255,255,0.2);
}

/* modal */
.fasto-video-modal[hidden] {
  display: none !important;
}

.fasto-video-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.fasto-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 7, 14, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fasto-video-modal__dialog {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 1100px);
  max-height: 90vh;
}

.fasto-video-modal__close {
  position: absolute;
  right: 0;
  top: -46px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(14, 22, 35, 0.8);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.fasto-video-modal__frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.fasto-video-modal__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

html.fasto-modal-open,
html.fasto-modal-open body {
  overflow: hidden;
}