@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

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

body {
  min-height: 100vh;
  background: #0d0d0d;
  font-family: 'Inter', sans-serif;
  color: #efeff1;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #18181b;
  border-bottom: 1px solid #ffffff10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 100;
}

.nav-brand {
  font-weight: 900;
  font-size: 1rem;
  color: #bf5af2;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-brand:hover {
  opacity: 0.8;
}

.btn-twitch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: #9146ff;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-twitch:hover {
  background: #772ce8;
  transform: scale(1.05);
}

.live-layout {
  display: flex;
  gap: 1rem;
  padding: 70px 1.5rem 2rem;
  height: calc(100vh - 56px);
  max-width: 1400px;
  margin: 0 auto;
}

.chat-sidebar {
  width: 340px;
  min-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ffffff10;
  flex-shrink: 0;
}

.chat-sidebar iframe {
  width: 100%;
  height: 100%;
}

.live-container {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.stream-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tab {
  padding: 0.6rem 1.5rem;
  background: #1f1f23;
  border: 1px solid #ffffff15;
  border-radius: 8px;
  color: #ffffff88;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active {
  background: #bf5af2;
  color: #fff;
  border-color: #bf5af2;
}

.tab:hover:not(.active) {
  background: #2f2f35;
}

.stream-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ffffff10;
}

.stream-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.stream-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.stream-embed.hidden {
  display: none;
}

.stream-info {
  margin-top: 1rem;
  padding: 1rem 1.5rem;
  background: #1f1f23;
  border-radius: 10px;
  border: 1px solid #ffffff10;
}

.stream-info h2 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.stream-info p {
  font-size: 0.85rem;
  color: #ffffff66;
}

@media (max-width: 900px) {
  .live-layout {
    flex-direction: column;
    height: auto;
  }
  .chat-sidebar {
    width: 100%;
    height: 300px;
    min-width: unset;
  }
}
