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

html, body {
  height: 100%;
  background: #0f0f0f;
  color: #e8e8e8;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Nav */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
}

.brand {
  font-family: 'Gaegu', cursive;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #e8e8e8;
}

/* Desktop actions row */
.desktop-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Prompt Button — same style as icon boxes */
.prompt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #888;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.prompt-btn svg {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  flex-shrink: 0;
}

.prompt-btn:hover {
  color: #e8e8e8;
  background: rgba(255, 255, 255, 0.12);
}

/* Social Icons */
.socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #888;
  transition: color 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.socials a:hover {
  color: #e8e8e8;
  background: rgba(255, 255, 255, 0.12);
}

.socials a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Series Section */
.series {
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: #0f0f0f;
}

.series-label {
  font-family: 'Gaegu', cursive;
  font-size: 16px;
  font-weight: 400;
  color: #555;
  padding: 6px 16px;
  flex-shrink: 0;
}

/* Stream */
.stream-container {
  flex: 1;
  min-height: 0;
}

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

/* Mobile bento — hidden on desktop */
.mobile-bento {
  display: none;
}

/* Mobile */
@media (max-width: 640px) {
  .top-bar {
    height: 48px;
    padding: 0 12px;
    justify-content: flex-start;
  }

  /* Hide desktop socials + prompt */
  .desktop-actions {
    display: none;
  }

  /* Series sits between header and bento — flush */
  .series {
    top: 48px;
    bottom: 144px;
  }

  /* Mobile bento grid */
  .mobile-bento {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(12px) saturate(130%);
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    z-index: 100;
  }

  /* Prompt button spans full width on top row */
  .mobile-bento .bento-prompt {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #888;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .mobile-bento .bento-prompt svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    flex-shrink: 0;
  }

  .mobile-bento .bento-prompt:active {
    color: #e8e8e8;
    background: rgba(255, 255, 255, 0.12);
  }

  /* Social icon cells */
  .mobile-bento a:not(.bento-prompt) {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .mobile-bento a:not(.bento-prompt):active {
    color: #e8e8e8;
    background: rgba(255, 255, 255, 0.12);
  }

  .mobile-bento a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }
}
