a.nav-item {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.yyb-site-header,
.header {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.yyb-site-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  max-width: 1200px;
  margin: 0 auto 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.yyb-side-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.yyb-site-row .logo,
.yyb-site-row .yyb-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  flex: 0 0 auto;
  min-width: 0;
}

.yyb-nav-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  text-decoration: none;
}

.yyb-site-row .logo-icon {
  width: 36px;
  height: 36px;
  margin-right: 8px;
  display: block;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.yyb-site-row .yyb-nav-mark .logo-icon {
  width: 40px;
  height: 40px;
  margin-right: 0;
  border-radius: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.yyb-site-row .nav {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 10px;
  margin-left: 0;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.yyb-site-row .yyb-nav-left {
  margin-left: auto;
  justify-content: flex-end;
}

.yyb-side-right {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.yyb-site-row .yyb-nav-right { justify-content: flex-start; }

.yyb-site-row .nav::-webkit-scrollbar { display: none; }

.yyb-site-row .yyb-brand,
.yyb-nav-mark {
  padding: 4px 12px 4px 6px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 0 14px rgba(176, 206, 240, 0.28),
    inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.yyb-nav-mark {
  padding: 4px;
  border-radius: 14px;
}

.yyb-site-row .yyb-brand.is-current,
.yyb-nav-mark.is-current {
  background: rgba(255, 183, 77, 0.22);
  box-shadow:
    0 0 16px rgba(255, 183, 77, 0.55),
    inset 0 0 12px rgba(255, 183, 77, 0.16);
}

.yyb-site-row .yyb-brand.is-current { color: #ffb74d; }

.yyb-nav-mark .logo-icon {
  filter: drop-shadow(0 0 6px rgba(176, 206, 240, 0.45));
}

.yyb-nav-mark.is-current .logo-icon {
  filter: drop-shadow(0 0 8px rgba(255, 183, 77, 0.8));
}

.yyb-site-row .nav-item {
  background: rgba(255, 255, 255, 0.07);
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow:
    0 0 12px rgba(176, 206, 240, 0.26),
    inset 0 0 10px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, filter 0.3s ease, background 0.3s, color 0.3s, box-shadow 0.3s;
}

.yyb-site-row .nav-item:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 16px rgba(196, 220, 248, 0.4),
    inset 0 0 12px rgba(255, 255, 255, 0.08);
  transform: scale(1.08);
  filter: brightness(1.25);
}

.yyb-site-row .nav-item.active {
  background: rgba(255, 183, 77, 0.22);
  color: #ffb74d;
  box-shadow:
    0 0 16px rgba(255, 183, 77, 0.55),
    inset 0 0 12px rgba(255, 183, 77, 0.16);
  font-weight: bold;
}

.yyb-site-row .header-end {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
  min-width: 0;
}

.yyb-site-row .header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yyb-site-row .login-register-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

.yyb-site-row .login-register-btn.register {
  background: linear-gradient(90deg, #ff6b6b, #ee5a5a);
  border-color: transparent;
}

.yyb-site-row .yyb-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.yyb-site-row .yyb-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 14px;
}

@media (max-width: 860px) {
  .yyb-site-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas:
      "brand mark user"
      "left left left"
      "right right right";
    row-gap: 8px;
  }
  .yyb-side-left,
  .yyb-side-right { display: contents; }
  .yyb-site-row .yyb-brand { grid-area: brand; justify-self: start; }
  .yyb-nav-mark { grid-area: mark; }
  .yyb-site-row .header-end { grid-area: user; justify-self: end; margin-left: 0; }
  .yyb-site-row .yyb-nav-left,
  .yyb-site-row .yyb-nav-right {
    display: flex !important;
    margin-left: 0;
    justify-content: center;
  }
  .yyb-site-row .yyb-nav-left { grid-area: left; }
  .yyb-site-row .yyb-nav-right { grid-area: right; }
  .yyb-site-row .header-right { display: flex !important; }
  .yyb-site-row .nav-item { padding: 6px 10px; }
}
