:root{
  --umpc-primary: var(--ast-primary-color, var(--ast-global-color-0, #4f46e5));
  --umpc-primary-weak: color-mix(in srgb, var(--umpc-primary) 12%, #ffffff);
  --umpc-border: #e9e9e9;
}

.umpc-profile-card{
  position:relative;
  display:flex;
  gap:16px;
  border:1px solid var(--umpc-border);
  border-radius:18px;
  background:#fff;
  overflow:hidden;
}

.umpc-profile-accent{
  width:10px;
  background:linear-gradient(180deg, var(--umpc-primary), color-mix(in srgb, var(--umpc-primary) 65%, #111827));
}

.umpc-profile-main{
  padding:18px;
  flex:1;
  min-width:0;
}

.umpc-profile-top{
  display:flex;
  gap:14px;
  align-items:center;
}

.umpc-avatar{width:96px;height:96px;border-radius:50%;object-fit:cover;border:3px solid var(--ast-global-color-0);box-shadow:0 6px 18px rgba(0,0,0,.18)}

.umpc-profile-identity{min-width:0;flex:5}
.umpc-profile-actions{min-width:0;flex:1}
.umpc-name{
  font-size:24px;
  font-weight:800;
  line-height:1.15;
  margin:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.umpc-subtitle{
  margin-top:6px;
  font-size:14px;
  color:#4b5563;
}

.umpc-pill-row{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.umpc-pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  font-size:13px;
  color:#111827;
  background:#fff;
  border:1px solid color-mix(in srgb, var(--umpc-primary) 18%, var(--umpc-border));
  padding:7px 10px;
  border-radius:999px;
}

.umpc-pill-k{
  font-weight:700;
  color:color-mix(in srgb, var(--umpc-primary) 85%, #111827);
}

.umpc-profile-note{
  margin-top:12px;
  font-size:14px;
  color:#374151;
}

.umpc-separator{height:3px;background:var(--ast-global-color-0);margin:18px 0;border-radius:2px}

/* Search section */
.umpc-search-section{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
  flex-wrap:wrap;
}
.umpc-section-title{
  margin:0;
  font-size:28px;
  font-weight:700;
  color:#111827;
}
.umpc-search-wrapper{
  position:relative;
}
.umpc-search-wrapper > .umpc-search-input{
  width: 100%;
  max-width:400px;
  padding:10px 16px;
  font-size:14px;
  border:1px solid #eee !important;
  border-radius:50px !important;
  background:#fff;
  outline:none;
  transition:border-color .2s, box-shadow .2s;
}
.umpc-search-input::placeholder{
  color:#9ca3af;
}
.umpc-search-input:focus{
  border-color:var(--umpc-primary);
  box-shadow:0 0 0 3px var(--umpc-primary-weak);
}

/* Scroll container with arrows outside */
.umpc-scroll-container{
  position:relative;
}

.umpc-scroll-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:64px;
  height:64px;
  border: none;
  border-radius:50%;
  background: var(--ast-global-color-0);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:36px;
  font-weight:300;
  color:#fff;
  transition:all .2s ease;
  z-index:10;
  box-shadow:0 2px 6px rgba(0,0,0,.08);
  padding: 0;
}
.umpc-scroll-left{
  left:-32px;
}
.umpc-scroll-right{
  right:-32px;
}
.umpc-scroll-arrow:hover{
  background:var(--umpc-primary);
  border-color:var(--umpc-primary);
  color:#fff;
}
.umpc-arrow-hidden{
  opacity:0;
  pointer-events:none;
}

/* Horizontal scrollable container */
.umpc-contents-scroll{
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  padding:4px 0;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.umpc-contents-scroll::-webkit-scrollbar{
  display:none;
}

/* 3-column grid on desktop */
.umpc-contents{
  display:grid;
  grid-template-columns:repeat(3, minmax(300px, 1fr));
  gap:14px;
  min-width:max-content;
}

.umpc-content-item{
  padding:16px;
  border:1px solid #eee;
  border-radius:14px;
  background:#fff;
  min-width:300px;
  max-width: calc(400px - 32px);
}

.umpc-content-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.umpc-content-title{margin:0;font-size:18px;font-weight:700}
.umpc-badge{font-size:12px;border:1px solid #e6e6e6;padding:4px 8px;border-radius:999px;color:#333;white-space:nowrap;background:#fafafa}
.umpc-media{margin-top:12px}
.umpc-media video {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}
.umpc-body{margin-top:12px;font-size:15px;line-height:1.6;color:#222}
.umpc-empty{padding:16px;border:1px dashed #d9d9d9;border-radius:14px;background:#fafafa}
.umpc-video{max-width:100%;height:auto;display:block;border-radius:12px}

/* Mobile: 1 column, no horizontal scroll */
@media (max-width:760px){
  .umpc-profile-top{align-items:flex-start}
  .umpc-name{white-space:normal}
  .umpc-search-section{
    flex-direction:column;
    align-items:stretch;
    gap:12px;
  }
  .umpc-search-wrapper{
    width:100%;
  }
  .umpc-search-wrapper > .umpc-search-input{
    width:100%;
    max-width:none;
    box-sizing:border-box;
  }
  .umpc-scroll-arrow{
    display:none;
  }
  .umpc-contents{
    grid-template-columns:1fr;
    min-width:0;
  }
  .umpc-content-item{
    min-width:0;
    max-width:none;
  }
  .umpc-contents-scroll{
    overflow-x:visible;
  }

}
