html, body {
  overflow-x: hidden;
}
html, body, * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

:root {
  --radius-card: 8px;
  --radius-icon: 8px;
  --radius-pill: 999px;
  --radius-nav: 8px;
}

body.has-bottom-nav {
  padding-bottom: 4.75rem;
}

.site-topbar {
  background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
  border-bottom: 1px solid rgba(251, 191, 36, 0.15);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-container {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.site-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.qa-wrap { margin-bottom: 1.5rem; }

.qa-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #fbbf24;
  margin: 0 0 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.qa-item {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: linear-gradient(145deg, #1a1d2e 0%, #222838 100%);
  border-radius: var(--radius-card);
  padding: 0.9rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.qa-item:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.qa-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-icon);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-label {
  font-weight: 700;
  font-size: 0.82rem;
  color: #e2e8f0;
}

.qa-sub {
  font-size: 0.7rem;
  color: #8892a4;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #0f1117;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-nav) var(--radius-nav) 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.55rem 0 calc(0.55rem + env(safe-area-inset-bottom, 0));
  z-index: 900;
  box-shadow: none;
  overflow: hidden;
  backdrop-filter: none;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #8892a4;
  font-size: 0.7rem;
  font-weight: 600;
  gap: 0.2rem;
  padding: 0.45rem 0.25rem;
  border-radius: 0;
  transition: color 0.2s ease;
  position: relative;
}

.bottom-nav a i { font-size: 1.05rem; }

.bottom-nav a.active {
  color: #fbbf24;
  background: transparent;
}

.bottom-nav a.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  background: #fbbf24;
  border-radius: 0;
}

#global-bottom-nav.bottom-nav {
  border-radius: var(--radius-nav) var(--radius-nav) 0 0 !important;
  backdrop-filter: none !important;
}

#global-bottom-nav.bottom-nav a,
#global-bottom-nav.bottom-nav a.active {
  border-radius: 6px;
}

.search-page-input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 1rem;
  outline: none;
  margin-bottom: 1rem;
}

.search-page-input::placeholder { color: #8892a4; }

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.search-result-card {
  background: linear-gradient(145deg, #1a1d2e 0%, #222838 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.search-result-card:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 51, 234, 0.4);
}

.search-result-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0f1117;
  display: block;
}

.search-result-body { padding: 0.75rem 0.85rem; }

.search-result-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.search-result-meta {
  font-size: 0.75rem;
  color: #8892a4;
}

.search-status {
  color: #8892a4;
  text-align: center;
  padding: 1.5rem 1rem;
}
