
/* Modern Twitch-Inspired Style for Tides of War */

body {
  background: #03006b;
}

.stream-title {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  line-height: 1.3;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.twitch-back-link {
  display: inline-block;
  margin-bottom: 15px;
  color: #fff;
  background: #000073;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.twitch-back-link:hover {
  background: #03006b;
}

.twitch-category-search {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.twitch-category-search input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
}

.twitch-category-search button {
  padding: 10px 20px;
  font-size: 16px;
  background: #c1a3e9;
  color: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.twitch-category-search button:hover {
  background: #a07ed2;
}

/* Grid Layout */
.twitch-categories-grid,
.twitch-streams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* Category & Stream Cards */
.twitch-category,
.stream-thumbnail {
  background: #1f1f23;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  position: relative;
}

.twitch-category:hover,
.stream-thumbnail:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.twitch-category img,
.stream-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  display: block;
  transition: transform 0.3s ease;
}

.stream-thumbnail:hover img {
  transform: scale(1.03);
}

.twitch-category p,
.stream-title {
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  margin: 0;
}

.stream-info {
  padding: 10px;
}

.stream-meta {
  padding: 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #efeff1;
  text-align: left;
}

.streamer-name,
.game-name {
  font-size: 12px;
  color: #adadb8;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* LIVE Badge */
.stream-thumbnail-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}

.live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #e91916;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 0 6px rgba(0,0,0,0.6);
}


/* Pagination */
.twitch-pagination {
  text-align: center;
  margin-top: 20px;
}

.twitch-pagination a {
  display: inline-block;
  margin: 0 10px;
  padding: 8px 16px;
  background: #c1a3e9;
  color: #000;
  text-decoration: none;
  border-radius: 4px;
}

.twitch-pagination a:hover {
  background: #a07ed2;
}

/* Breadcrumbs */
.twitch-breadcrumb {
  font-size: 14px;
  margin-bottom: 10px;
  color: #aaa;
}

.twitch-breadcrumb a {
  color: #ffd1dc;
  text-decoration: none;
  font-weight: bold;
}

.twitch-breadcrumb a:hover {
  text-decoration: underline;
}

.twitch-dynamic-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #fff;
}

/* 🎥 Single Stream Layout */
.twitch-stream-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.twitch-stream-player {
  flex: 3;
  min-width: 300px;
}

.twitch-stream-chat {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  height: 720px;
}

.twitch-stream-player iframe,
.twitch-stream-chat iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #e91916;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 0 6px rgba(0,0,0,0.6);
}

.stream-thumbnail-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}

/* Live Users Showcase */
.twitch-live-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 24px;
  margin: 2rem 0;
}

.twitch-user-card {
  text-align: center;
  position: relative;
  padding: 12px;
  background: #1f1f23;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  transition: transform .15s ease;
}

.twitch-user-card:hover {
  transform: translateY(-4px);
}

.twitch-avatar-wrapper {
  position: relative;
  display: inline-block;
}

.twitch-avatar-wrapper img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #9147ff;
}

.twitch-user-card .live-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e91916;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

.twitch-username {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #efeff1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



@media (max-width: 768px) {
  .twitch-stream-container {
    flex-direction: column;
  }
}
