* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  background: #0e0e10;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  max-width: 1920px;
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(14, 14, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.twitch-login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #9146ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.twitch-login-btn:hover {
  background: #7c3aed;
}

#userArea {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

#userName {
  font-weight: 600;
  font-size: 0.9rem;
}

.logout-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* === HERO SECTION === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 60px;
}

.stream-wrapper {
  position: relative;
}

.stream-embed {
  width: 70vw;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.stream-offline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #18181b;
  z-index: 2;
  transition: opacity 0.3s;
}

.stream-offline span {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 8px;
  color: #fff;
  opacity: 0.5;
}

.stream-offline.hidden {
  opacity: 0;
  pointer-events: none;
}

.stream-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  opacity: 0.5;
  font-size: 1.4rem;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* === CHAT BAR === */
.chat-bar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

.chat-bar input {
  flex: 1;
  padding: 10px 16px;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.chat-bar input:focus {
  border-color: #9146ff;
}

.chat-bar input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.chat-bar button {
  padding: 10px 16px;
  background: #9146ff;
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

.chat-bar button:hover:not(:disabled) {
  background: #7c3aed;
}

.chat-bar button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* === FLOATING MESSAGES === */
.float-column {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 300px;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}

.float-col-left {
  right: calc(100% + 16px);
}

.float-col-right {
  left: calc(100% + 16px);
}

.float-msg {
  position: absolute;
  bottom: 0;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: rgba(14, 14, 16, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(145, 70, 255, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  color: #fff;
  pointer-events: none;
  animation: floatUp 20s linear forwards;
}

/* Bal oldalon: jobbra igazítva */
.float-col-left .float-msg {
  right: 0;
}

/* Jobb oldalon: balra igazítva */
.float-col-right .float-msg {
  left: 0;
}

.float-msg .float-user {
  font-weight: 700;
  margin-right: 4px;
}

.float-msg .float-badge {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  3% {
    opacity: 1;
    transform: translateY(0);
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(calc(-100% - 100vh + 120px));
  }
}

/* === SPOTIFY === */
.spotify-area {
  margin-top: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spotify-card {
  background: rgba(24, 24, 27, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 14px;
}

/* --- Most szól kártya --- */
.spotify-now-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spotify-now-track {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spotify-now-track img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  flex-shrink: 0;
}

.spotify-now-info {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.spotify-now-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spotify-pause-icon {
  flex-shrink: 0;
  opacity: 0.5;
}

.spotify-now-title {
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-now-artist {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-progress {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spotify-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.spotify-progress-fill {
  height: 100%;
  background: #1DB954;
  border-radius: 2px;
  transition: width 1s linear;
}

.spotify-progress-fill.paused {
  background: rgba(255, 255, 255, 0.3);
  transition: none;
}

.spotify-progress-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  font-variant-numeric: tabular-nums;
}

.spotify-nothing {
  color: rgba(255, 255, 255, 0.25);
  font-style: italic;
  font-size: 0.8rem;
}

/* --- Queue kártyák --- */
.spotify-queue-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spotify-q-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(24, 24, 27, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 8px 12px;
}

.spotify-q-card img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  flex-shrink: 0;
}

.spotify-q-info {
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.spotify-q-title {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-q-artist {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-q-label {
  font-size: 0.6rem;
  color: #1DB954;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* === SOCIALS SECTION === */
.socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  gap: 28px;
  width: 100%;
}

.socials h2,
.social-buttons {
  text-align: center;
}

.socials h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.social-btn:hover {
  transform: translateY(-4px);
}

.social-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* TikTok */
.social-btn.tiktok {
  background: #111;
  border: 2px solid #fff;
}
.social-btn.tiktok:hover {
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

/* Twitch */
.social-btn.twitch {
  background: #9146ff;
}
.social-btn.twitch:hover {
  box-shadow: 0 8px 30px rgba(145, 70, 255, 0.5);
}

/* Discord */
.social-btn.discord {
  background: #5865f2;
}
.social-btn.discord:hover {
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.5);
}

/* === RESPONSIVE === */
@media (max-width: 800px) {
  .stream-embed {
    width: 90vw;
  }

  .social-buttons {
    flex-direction: column;
    gap: 16px;
  }

  .spotify-stack {
    width: 220px;
  }
}
