.streamers-list-container {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.streamers-header {
  text-align: center;
  margin-bottom: 2rem;
}

.streamers-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.streamers-header .subtitle {
  color: #888;
  font-size: 1.1rem;
}

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

.streamer-card {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.streamer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.streamer-card.status-online {
  border-color: #00ff00;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.streamer-avatar {
  position: relative;
  margin-bottom: 1rem;
}

.streamer-avatar img {
  width: 100%;
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
}

.status-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
}

.live-badge {
  background: #ff0000;
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.85rem;
  animation: pulse 2s infinite;
}

.offline-badge {
  background: #666;
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.streamer-info {
  text-align: center;
}

.streamer-name {
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.streamer-login {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.stream-details {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 1rem;
}

.stream-title {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  font-style: italic;
  color: #aaa;
}

.stream-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #999;
}

.loading, .error-message, .no-streamers {
  text-align: center;
  padding: 3rem;
}

body.dark .streamer-card {
  --card-bg: #1a1a1a;
  --border-color: #333;
}

body.light .streamer-card {
  --card-bg: #ffffff;
  --border-color: #ddd;
}

/* ==========================================
   Featured Streamers Section
   ========================================== */

.featured-streamers-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
  border-radius: 16px;
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.featured-title {
  color: #ffd700;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.featured-title i {
  color: #ffd700;
}

.featured-streamers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 100px;
  margin: 0 auto;
}

.streamer-card.featured-card {
  position: relative;
  background: linear-gradient(145deg, var(--card-bg) 0%, rgba(255, 215, 0, 0.05) 100%);
  border: 2px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
  padding-top: 2rem;
}

.streamer-card.featured-card:hover {
  border-color: #ffd700;
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
  transform: translateY(-8px);
}

.featured-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  color: #000;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 10;
  white-space: nowrap;
}

.featured-badge i {
  font-size: 0.7rem;
}

.section-title {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.all-streamers-section {
  margin-top: 2rem;
}

/* ==========================================
   Streamers Table (Scalable List)
   ========================================== */

.streamers-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color, #333);
}

.streamers-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.streamers-table thead {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 2px solid var(--border-color, #333);
}

.streamers-table th {
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
}

.streamers-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color, #333);
  vertical-align: middle;
}

.streamers-table tbody tr {
  transition: background 0.2s ease;
}

.streamers-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Live streamer row highlight */
.streamers-table tbody tr.is-live {
  background: rgba(0, 255, 0, 0.05);
  border-left: 3px solid #00ff00;
}

.streamers-table tbody tr.is-live:hover {
  background: rgba(0, 255, 0, 0.1);
}

/* Column widths */
.streamers-table .th-status { width: 80px; }
.streamers-table .th-streamer { width: 180px; }
.streamers-table .th-handle { width: 120px; }
.streamers-table .th-viewers { width: 100px; text-align: center; }
.streamers-table .th-title { width: auto; }
.streamers-table .th-game { width: 150px; }
.streamers-table .th-actions { width: 100px; text-align: center; }

/* Status cell */
.table-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
}

.table-status-badge.live {
  background: #ff0000;
  color: white;
  animation: pulse 2s infinite;
}

.table-status-badge.offline {
  background: #444;
  color: #888;
}

/* Streamer cell with avatar */
.table-streamer-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.table-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
}

.is-live .table-avatar {
  border-color: #00ff00;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
}

.table-display-name {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Handle cell */
.table-handle {
  color: #888;
  font-size: 0.9rem;
}

/* Viewers cell */
.table-viewers {
  text-align: center;
}

.table-viewer-count {
  color: #00ff00;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.table-viewer-count i {
  font-size: 0.8rem;
}

/* Title cell */
.table-title {
  font-size: 0.9rem;
  color: #aaa;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Game cell */
.table-game {
  font-size: 0.85rem;
  color: #888;
}

/* Actions cell */
.table-actions {
  text-align: center;
}

.table-watch-btn {
  background: linear-gradient(135deg, #9146FF 0%, #772CE8 100%);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.table-watch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(145, 70, 255, 0.4);
}

.table-watch-btn i {
  font-size: 0.75rem;
}

/* Empty state text */
.table-empty-text {
  color: #666;
  font-style: italic;
}

/* Dark/Light mode support */
body.dark .streamers-table-wrapper {
  --border-color: #333;
}

body.light .streamers-table-wrapper {
  --border-color: #ddd;
}

body.light .streamers-table thead {
  background: rgba(0, 0, 0, 0.03);
}

body.light .streamers-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.03);
}

body.light .table-status-badge.offline {
  background: #e0e0e0;
  color: #666;
}

/* Status badge styling */
.status-badge {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  background: #666;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: bold;
}

.status-badge.live {
  background: #ff0000;
  animation: pulse 2s infinite;
}

.streamer-username {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.viewer-count {
  font-size: 0.9rem;
  color: #00ff00;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.game-name {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.3rem;
}

/* ==========================================
   Admin Featured Streamers Styles
   ========================================== */

.featured-current-section {
  background: rgba(255, 215, 0, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.featured-current-section h3 {
  color: #ffd700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.streamer-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.streamer-cell:hover {
  opacity: 0.8;
}

.streamer-avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #666;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.streamer-avatar-sm.is-live,
.is-live .streamer-avatar-sm {
  border-color: #00ff00;
  box-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
}

.order-select {
  width: 60px;
}

.eligible-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.eligible-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.search-control {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-control i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.search-control input {
  padding-left: 35px;
}

.expiry-control {
  min-width: 250px;
}

.no-featured-message,
.no-eligible-message {
  text-align: center;
  padding: 2rem;
  color: #888;
}

.no-featured-message i {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.featured-icon {
  color: #ffd700;
}

.admin-refresh-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-refresh-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   Homepage Featured Streamers
   ========================================== */

.home-featured-section {
  padding: 3rem 2rem;
  background: rgba(0, 0, 0, 0.3);
  margin-top: 2rem;
}

.home-featured-container {
  max-width: 800px;
  margin: 0 auto;
}

.home-featured-title {
  text-align: center;
  color: #ffd700;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.home-featured-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.home-featured-card {
  width: 180px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.home-featured-card:hover {
  transform: scale(1.05);
  border-color: #ffd700;
}

.home-featured-avatar {
  position: relative;
  margin-bottom: 1rem;
}

.home-featured-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(255, 215, 0, 0.5);
  object-fit: cover;
}

.home-featured-card.is-live .home-featured-avatar img {
  border-color: #00ff00;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

.live-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #ff0000;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  animation: pulse 2s infinite;
}

.home-featured-info h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-featured-info .viewer-count {
  font-size: 0.85rem;
  color: #00ff00;
}

.home-featured-info .offline-status {
  font-size: 0.85rem;
  color: #888;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .featured-streamers-grid {
    grid-template-columns: 1fr;
  }

  .home-featured-grid {
    gap: 1rem;
  }

  .home-featured-card {
    width: 140px;
  }

  .home-featured-avatar img {
    width: 80px;
    height: 80px;
  }

  .eligible-controls {
    flex-direction: column;
  }

  .search-control,
  .expiry-control {
    width: 100%;
  }

  /* Table responsive - horizontal scroll */
  .streamers-table-wrapper {
    margin: 0 -1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .streamers-table {
    min-width: 700px;
  }

  .streamers-table th,
  .streamers-table td {
    padding: 0.5rem;
  }

  .table-title {
    max-width: 150px;
  }

  .table-watch-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}
