:root {
  --neon-purple: #9146ff;
  --neon-blue: #00f2fe;
  --glass-bg: rgba(10, 5, 18, 0.95);
  --glass-border: rgba(255, 255, 255, 0.1);
}

.twitch-showcase-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.twitch-showcase-head {
  margin-bottom: 22px;
  text-align: center;
}

.twitch-showcase-kicker {
  margin-bottom: 8px;
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.twitch-showcase-title {
  margin: 0;
  font-family: var(--font-tech);
  font-size: clamp(26px, 3.2vh, 34px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #fff 0%, var(--neon-purple) 50%, var(--neon-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(145, 70, 255, 0.4));
}

.twitch-showcase-sub {
  margin-top: 10px;
  font-family: var(--font-tech);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.twitch-hero-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 18px;
  padding: 22px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.twitch-hero-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(145, 70, 255, 0.08) 0%, transparent 65%);
  z-index: 0;
  pointer-events: none;
}

.twitch-hero-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tw-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.tw-status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 8px;
}

.tw-status-pill.live {
  background: rgba(255, 59, 92, 0.05);
  border-color: rgba(255, 59, 92, 0.3);
  color: #ff3b5c;
  box-shadow: 0 0 15px rgba(255, 59, 92, 0.15);
}

.tw-status-pill.live::before {
  background: #ff3b5c;
  box-shadow: 0 0 12px #ff3b5c;
  animation: pulseLive 1.5s ease-in-out infinite;
}

.tw-status-pill.offline::before {
  background: #71717a;
  box-shadow: 0 0 8px rgba(113, 113, 122, 0.5);
}

.hero-btn-twitch-main {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 16px;
  background: rgba(145, 70, 255, 0.1);
  border: 1px solid rgba(145, 70, 255, 0.3);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn-twitch-main:hover {
  background: var(--neon-purple);
  border-color: var(--neon-purple);
  box-shadow: 0 0 20px rgba(145, 70, 255, 0.4);
  transform: translateY(-2px);
}

.hero-btn-twitch-main:focus-visible {
  outline: 2px solid rgba(145, 70, 255, 0.9);
  outline-offset: 2px;
}

.btn-twitch-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.btn-twitch-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tw-hero-main {
  position: relative;
  z-index: 1;
}

.tw-hero-title {
  margin: 0 0 8px;
  font-family: var(--font-main);
  font-size: clamp(18px, 2.2vh, 24px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.tw-hero-meta {
  margin: 0;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.64);
}

.tw-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.tw-metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 74px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.tw-metric:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(145, 70, 255, 0.18);
  transform: translateY(-2px);
}

.tw-metric-label {
  margin-bottom: 6px;
  font-family: var(--font-tech);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.tw-metric-value {
  font-family: var(--font-tech);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.tw-metric-value--small {
  font-size: 14px;
  line-height: 1.25;
}

.tw-live-preview {
  display: block;
  margin-top: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.tw-live-preview:hover {
  transform: translateY(-2px);
  border-color: rgba(145, 70, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.tw-live-preview-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tw-live-preview-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-family: var(--font-tech);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 59, 92, 0.92);
  box-shadow: 0 0 14px rgba(255, 59, 92, 0.35);
}

.tw-live-preview-text {
  font-family: var(--font-tech);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.tw-live-preview-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 150px;
  overflow: hidden;
  border-radius: 10px;
  background: #090909;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tw-live-preview-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@keyframes pulseLive {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

@media (max-width: 1500px) {
  .twitch-showcase-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
}

@media (max-width: 768px) {
  .twitch-showcase-head {
    margin-bottom: 18px;
  }

  .twitch-hero-card {
    padding: 18px;
    border-radius: 14px;
  }

  .twitch-hero-topline {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    text-align: center;
  }

  .tw-status-pill,
  .hero-btn-twitch-main {
    width: 100%;
  }

  .hero-btn-twitch-main {
    min-height: 46px;
  }

  .tw-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tw-metric {
    min-height: 70px;
    align-items: center;
    text-align: center;
  }

  .tw-live-preview-media {
    max-height: none;
  }
}

@media (max-width: 480px) {
  .twitch-hero-card {
    padding: 16px;
  }

  .twitch-showcase-title {
    font-size: 24px;
    letter-spacing: 0.08em;
  }

  .tw-hero-title {
    font-size: 18px;
  }

  .tw-live-preview {
    padding: 10px;
  }
}