#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Topbar */
#topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(14px + var(--safe-top)) 16px 14px;
  background: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

/* Main content */
#main {
  flex: 1;
  padding: 0 16px 32px;
  padding-bottom: calc(32px + var(--safe-bottom));
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

/* Notice bar */
#notice-bar {
  margin: 20px 0 0;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Section label */
.section-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 20px 0 10px;
}

/* Channel list */
#channel-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

/* DevTools warning */
#devtools-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* Modal overlay */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  padding: 0;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px 6px 0 0;
  padding: 24px 20px calc(20px + var(--safe-bottom));
  max-width: 480px;
  margin: 0 auto;
  animation: slideUp 0.22s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@media (min-width: 600px) {
  #modal-overlay { align-items: center; }
  .modal {
    border-radius: 6px;
    padding-bottom: 24px;
    margin: 16px;
  }
}
