/* ── Live feed (forside + dashboard) ── */
.live-section {
  margin-bottom: 28px;
}

.live-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.live-section__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0a030;
}

.live-section__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.92); }
}

.live-feed {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.live-feed::-webkit-scrollbar {
  height: 6px;
}

.live-feed::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.live-card {
  flex: 0 0 min(300px, 85vw);
  scroll-snap-align: start;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}

.live-card:hover {
  border-color: rgba(145, 70, 255, 0.35);
  transform: translateY(-2px);
}

.live-card__thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.4);
}

.live-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.live-card__viewers {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(240, 160, 48, 0.92);
  z-index: 2;
}

.live-card__viewers .svg-icon {
  width: 12px;
  height: 12px;
}

.live-card__badge-row {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
  z-index: 2;
}

.live-card__platforms {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.live-card__platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.live-card__platform svg {
  width: 13px;
  height: 13px;
}

.live-card__platform--twitch {
  color: #c4b5fd;
}

.live-card__platform--youtube {
  color: #fca5a5;
}

.live-card__badge {
  position: static;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: #ef4444;
  margin-left: auto;
}

.live-card__body {
  padding: 12px 14px 14px;
}

.live-card__streamer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.live-card__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.live-card__name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-off-white, #fff);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-card__evelon {
  font-size: 0.7rem;
  color: var(--color-sage, #a0b3aa);
}

.live-card__title {
  margin: 0 0 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
}

.live-card__twitch,
.live-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #d4bbff;
  background: rgba(145, 70, 255, 0.15);
  border: 1px solid rgba(145, 70, 255, 0.3);
  text-decoration: none;
  transition: background 0.15s;
}

.live-card__twitch:hover,
.live-card__link:hover {
  background: rgba(145, 70, 255, 0.25);
  color: #e9d5ff;
}

.live-card__twitch-icon,
.live-card__link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-youtube {
  background: #ff0000;
  color: #fff;
  border: none;
}

.btn-youtube:hover {
  background: #e60000;
  color: #fff;
}

.profile-twitch__icon--youtube {
  color: #ff4444;
}

/* Landing page variant */
.landing-page .live-section {
  padding: 0 0 40px;
}

.landing-page .live-section .section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Profile — Twitch link */
.profile-page-head {
  margin-bottom: 24px;
}

.profile-page-head__user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-page-head__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}

.profile-page-head__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-page-head__name {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-ranks--page {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-section {
  margin-bottom: 24px;
}

.profile-section__title {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 700;
}

.profile-twitch {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  padding: 18px 20px;
}

.profile-twitch__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.profile-twitch__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
}

.profile-twitch__icon {
  width: 20px;
  height: 20px;
  color: #9146ff;
}

.profile-twitch__status {
  font-size: 0.8rem;
  color: var(--color-sage, #a0b3aa);
}

.profile-twitch__status--linked {
  color: #86efac;
}

.profile-twitch__linked {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.profile-twitch__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(145, 70, 255, 0.3);
}

.profile-twitch__username {
  font-weight: 700;
}

.profile-twitch__requirements {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--color-sage, #a0b3aa);
  line-height: 1.55;
}

.profile-twitch__requirements li {
  margin-bottom: 4px;
}

.profile-twitch__requirements li:last-child {
  margin-bottom: 0;
}

.profile-twitch__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#twitch-linked-info[hidden],
#youtube-linked-info[hidden] {
  display: none;
}

.profile-twitch__msg[hidden] {
  display: none;
}

.btn-twitch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #9146ff !important;
  border-color: #9146ff !important;
  color: #fff !important;
}

.btn-twitch:hover {
  background: #7c3aed !important;
  border-color: #7c3aed !important;
}

.profile-twitch__msg {
  margin: 10px 0 0;
  font-size: 0.8rem;
}

.profile-minecraft__hint {
  margin: 0 0 14px;
  color: var(--color-sage, #a0b3aa);
  font-size: 0.9rem;
  line-height: 1.5;
}

.profile-minecraft__form {
  display: grid;
  gap: 12px;
}

.profile-minecraft__form .field span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--color-sage, #a0b3aa);
}

.profile-minecraft__form input {
  width: 100%;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(31, 122, 92, 0.35);
  background: rgba(0, 0, 0, 0.28);
  color: #f0f5f2;
}

/* Admin live panel */
.admin-live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-live-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.admin-live-card--hidden {
  opacity: 0.55;
  border-style: dashed;
}

.admin-live-card--bad {
  border-color: rgba(251, 191, 36, 0.3);
}

.admin-live-card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.admin-live-card__body {
  padding: 12px 14px;
}

.admin-live-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
  font-size: 0.72rem;
}

.admin-live-card__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-live-blacklist {
  margin-top: 20px;
}

.admin-live-blacklist__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 8px;
  font-size: 0.84rem;
}

@media (max-width: 640px) {
  .live-card {
    flex: 0 0 min(260px, 88vw);
  }
}
