.streams-page {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.streams-eyebrow {
  display: inline-block;
  color: var(--gamezone-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.streams-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--gamezone-border);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 86% 16%, rgba(162, 120, 255, 0.18), transparent 35%),
    linear-gradient(135deg, #0d1b32, #0b1425);
}

.streams-hero__copy h1 {
  max-width: 620px;
  margin: 12px 0 16px;
  color: var(--gamezone-white);
  font-size: clamp(38px, 5.3vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.streams-hero__copy h1 span {
  color: var(--gamezone-cyan);
  text-shadow: 0 0 22px rgba(53, 224, 242, 0.22);
}

.streams-hero__copy > p {
  max-width: 610px;
  margin: 0;
  color: var(--gamezone-muted);
  font-size: 15px;
  line-height: 1.8;
}

.streams-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 26px;
}

.streams-hero__stats span {
  color: var(--gamezone-muted);
  font-size: 12px;
}

.streams-hero__stats strong {
  margin-right: 6px;
  color: var(--gamezone-white);
  font-size: 18px;
}

.streams-hero__visual {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(53, 224, 242, 0.28);
  border-radius: 20px;
  background: var(--gamezone-card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32), 0 0 24px rgba(53, 224, 242, 0.1);
}

.streams-hero__visual::after {
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, rgba(7, 17, 31, 0.82));
  content: "";
}

.streams-hero__visual img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.demo-stamp {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  padding: 8px 11px;
  border: 1px solid rgba(53, 224, 242, 0.36);
  border-radius: 999px;
  background: rgba(8, 19, 34, 0.82);
  color: var(--gamezone-cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.demo-stamp i {
  margin-right: 5px;
  color: var(--gamezone-purple);
  font-size: 8px;
}

.streams-hero__caption {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 18px;
  left: 20px;
  color: var(--gamezone-white);
  font-size: 18px;
  font-weight: 700;
}

.streams-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.streams-section-heading h2 {
  margin: 7px 0 0;
  color: var(--gamezone-white);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 750;
}

.demo-disclaimer,
.ranking-demo-label {
  margin: 0 0 3px;
  color: var(--gamezone-muted);
  font-size: 12px;
}

.demo-disclaimer i {
  margin-right: 5px;
  color: var(--gamezone-cyan);
}

.ranking-demo-label {
  padding: 7px 11px;
  border: 1px solid var(--gamezone-border);
  border-radius: 999px;
  color: var(--gamezone-purple);
  white-space: nowrap;
}

.stream-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
}

.stream-filter {
  padding: 9px 15px;
  border: 1px solid var(--gamezone-border);
  border-radius: 999px;
  background: var(--gamezone-surface);
  color: var(--gamezone-muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.stream-filter:hover,
.stream-filter:focus-visible {
  border-color: var(--gamezone-cyan);
  color: var(--gamezone-cyan);
  outline: none;
}

.stream-filter.is-active {
  border-color: transparent;
  background: linear-gradient(110deg, #24cfe5, #55e8f4);
  color: var(--gamezone-navy);
  box-shadow: 0 0 16px rgba(53, 224, 242, 0.18);
}

.stream-results {
  margin: 0 0 16px;
  color: var(--gamezone-muted);
  font-size: 12px;
}

.stream-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.stream-card {
  overflow: hidden;
  border: 1px solid var(--gamezone-border);
  border-radius: 18px;
  background: var(--gamezone-surface);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.stream-card:hover {
  transform: translateY(-5px);
  border-color: rgba(53, 224, 242, 0.45);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28), 0 0 22px rgba(53, 224, 242, 0.1);
}

.stream-card[hidden] {
  display: none !important;
}

.stream-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--gamezone-card);
}

.stream-card__media::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(7, 17, 31, 0.6));
  content: "";
  pointer-events: none;
}

.stream-card__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.stream-card:hover .stream-card__media > img {
  transform: scale(1.05);
}

.stream-card__demo,
.stream-card__live {
  position: absolute;
  z-index: 1;
  top: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.stream-card__demo {
  left: 12px;
  border: 1px solid rgba(53, 224, 242, 0.36);
  background: rgba(8, 19, 34, 0.84);
  color: var(--gamezone-cyan);
}

.stream-card__live {
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(50, 25, 82, 0.92);
  color: #fff;
}

.stream-card__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gamezone-purple);
  box-shadow: 0 0 8px var(--gamezone-purple);
}

.stream-card__live small {
  color: var(--gamezone-cyan);
  font-size: 8px;
}

.stream-card__body {
  padding: 16px;
}

.stream-card__creator {
  display: flex;
  align-items: center;
  gap: 11px;
}

.stream-card__creator > img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 2px solid rgba(53, 224, 242, 0.45);
  border-radius: 50%;
  object-fit: cover;
}

.stream-card__creator h3 {
  margin: 0 0 3px;
  color: var(--gamezone-white);
  font-size: 14px;
  font-weight: 700;
}

.stream-card__creator span {
  color: var(--gamezone-muted);
  font-size: 10px;
}

.stream-card__game {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0;
  color: var(--gamezone-white);
  font-size: 12px;
  font-weight: 600;
}

.stream-card__game > i {
  color: var(--gamezone-cyan);
}

.stream-card__game > span {
  margin-left: auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(162, 120, 255, 0.12);
  color: #c8b3ff;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.stream-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--gamezone-border);
}

.stream-viewers {
  color: var(--gamezone-muted);
  font-size: 10px;
}

.stream-viewers i {
  margin-right: 4px;
  color: var(--gamezone-cyan);
}

.stream-preview-button {
  padding: 7px 11px;
  border: 1px solid rgba(53, 224, 242, 0.4);
  border-radius: 999px;
  background: rgba(53, 224, 242, 0.08);
  color: var(--gamezone-cyan);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.stream-preview-button:hover,
.stream-preview-button:focus-visible {
  outline: none;
  background: var(--gamezone-cyan);
  color: var(--gamezone-navy);
  box-shadow: 0 0 15px rgba(53, 224, 242, 0.22);
}

.stream-empty {
  margin: 20px 0 0;
  padding: 20px;
  border: 1px dashed var(--gamezone-border);
  border-radius: 15px;
  color: var(--gamezone-muted);
  text-align: center;
}

.ranking-list {
  overflow: hidden;
  margin: 0;
  padding: 6px 20px;
  border: 1px solid var(--gamezone-border);
  border-radius: 18px;
  background: var(--gamezone-surface);
  list-style: none;
}

.ranking-list li {
  display: grid;
  grid-template-columns: 38px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gamezone-border);
}

.ranking-list li:last-child {
  border-bottom: 0;
}

.ranking-position {
  color: var(--gamezone-purple);
  font-size: 15px;
  font-weight: 800;
}

.ranking-list img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.ranking-identity strong,
.ranking-identity span {
  display: block;
}

.ranking-identity strong {
  color: var(--gamezone-white);
  font-size: 13px;
}

.ranking-identity span {
  margin-top: 3px;
  color: var(--gamezone-muted);
  font-size: 10px;
}

.ranking-viewers {
  color: var(--gamezone-cyan);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.ranking-viewers small {
  display: block;
  margin-top: 3px;
  color: var(--gamezone-muted);
  font-size: 9px;
  font-weight: 400;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.event-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--gamezone-border);
  border-radius: 17px;
  background: linear-gradient(145deg, var(--gamezone-surface), var(--gamezone-card));
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.event-card:hover {
  transform: translateY(-3px);
  border-color: rgba(162, 120, 255, 0.48);
  box-shadow: 0 0 20px rgba(162, 120, 255, 0.1);
}

.event-date {
  display: flex;
  width: 54px;
  height: 62px;
  flex: 0 0 54px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(53, 224, 242, 0.3);
  border-radius: 12px;
  background: rgba(53, 224, 242, 0.08);
  color: var(--gamezone-cyan);
}

.event-date--purple {
  border-color: rgba(162, 120, 255, 0.38);
  background: rgba(162, 120, 255, 0.1);
  color: #c8b3ff;
}

.event-date span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.event-date strong {
  font-size: 22px;
  line-height: 1.1;
}

.event-type {
  color: var(--gamezone-cyan);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.event-card h3 {
  margin: 5px 0;
  color: var(--gamezone-white);
  font-size: 13px;
  line-height: 1.35;
}

.event-card p {
  margin: 0;
  color: var(--gamezone-muted);
  font-size: 10px;
}

.stream-preview-dialog {
  width: min(460px, calc(100% - 32px));
  max-width: none;
  padding: 26px;
  border: 1px solid rgba(53, 224, 242, 0.38);
  border-radius: 20px;
  background: #0c1930;
  color: var(--gamezone-white);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.64), 0 0 26px rgba(53, 224, 242, 0.12);
}

.stream-preview-dialog::backdrop {
  background: rgba(3, 8, 17, 0.84);
  backdrop-filter: blur(7px);
}

.stream-preview-dialog__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.stream-preview-dialog__top .streams-eyebrow {
  margin: 0;
}

.stream-preview-dialog__close {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gamezone-border);
  border-radius: 50%;
  background: var(--gamezone-card);
  color: var(--gamezone-cyan);
  cursor: pointer;
  font-size: 24px;
}

.stream-preview-dialog h2 {
  margin: 18px 0 5px;
  color: var(--gamezone-white);
  font-size: 25px;
}

.stream-preview-dialog > p {
  color: var(--gamezone-muted);
  font-size: 13px;
}

.stream-preview-dialog__notice {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(162, 120, 255, 0.28);
  border-radius: 13px;
  background: rgba(162, 120, 255, 0.08);
  color: #d3c4ff;
  font-size: 12px;
  line-height: 1.6;
}

.stream-preview-dialog__notice i {
  margin-right: 5px;
  color: var(--gamezone-cyan);
}

.stream-preview-dialog .stream-preview-dialog__viewers {
  margin: 0;
  color: var(--gamezone-cyan);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 991px) {
  .streams-hero {
    grid-template-columns: 1fr 0.8fr;
  }

  .stream-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .streams-page {
    gap: 38px;
  }

  .streams-hero {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .streams-hero__visual {
    min-height: 230px;
  }

  .streams-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .ranking-demo-label {
    white-space: normal;
  }
}

@media (max-width: 575px) {
  .stream-card-grid {
    grid-template-columns: 1fr;
  }

  .stream-filters {
    gap: 7px;
  }

  .stream-filter {
    padding: 8px 11px;
    font-size: 11px;
  }

  .ranking-list {
    padding: 5px 12px;
  }

  .ranking-list li {
    grid-template-columns: 27px 38px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .ranking-list img {
    width: 36px;
    height: 36px;
  }

  .ranking-viewers {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stream-filter,
  .stream-card,
  .stream-card__media > img,
  .stream-preview-button,
  .event-card {
    transition-duration: 0.01ms;
  }
}
