/* ============ IGStories Viewer (Dark Modern Style) ============ */

body {
  background: #0e0e10;
  font-family: 'Inter', sans-serif;
  color: #fff;
}

.igstories-viewer {
  text-align: center;
  max-width: 900px;
  margin: 50px auto;
  padding: 30px;
  background: #1a1a1d;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
}

.igstories-viewer h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
}

.igstories-viewer p {
  color: #b3b3b3;
  margin-bottom: 20px;
}

/* Input + Button */
#igstories-username {
  padding: 12px 15px;
  font-size: 1rem;
  width: 60%;
  max-width: 300px;
  border: none;
  border-radius: 50px;
  outline: none;
  background: #2a2a2f;
  color: #fff;
  transition: background 0.3s ease;
}

#igstories-username:focus {
  background: #333338;
}

#igstories-search {
  padding: 12px 25px;
  font-size: 1rem;
  margin-left: 10px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(90deg, #e1306c, #f77737);
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#igstories-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(241, 98, 123, 0.3);
}

/* Results Grid */
#igstories-results {
  margin-top: 30px;
}

.igstories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  justify-items: center;
}

.igstory-item {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  background: #2a2a2f;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.igstory-item:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(233, 30, 99, 0.5);
}

.igstory-item img,
.igstory-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Loading and Errors */
#igstories-results p {
  color: #ccc;
  margin-top: 15px;
}

#igstories-results p[style*="color:red"] {
  color: #ff5b5b !important;
}
