.um-channel-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
}

.um-channel-main {
  min-width: 0;
}

.um-channel-hero {
  display: grid;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--um-line);
}

.um-channel-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: clamp(120px, 18vw, 210px);
  border-radius: 12px;
  overflow: hidden;
  padding: 22px;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.72), transparent 18%),
    radial-gradient(circle at 82% 26%, rgba(255, 255, 255, 0.62), transparent 20%),
    linear-gradient(120deg, var(--um-avatar-bg, #be123c), #2563eb 50%, #f59e0b);
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: 0;
}

.um-channel-banner.has-cover {
  background: #111827;
  cursor: pointer;
}

.um-channel-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.um-channel-banner.has-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.46));
}

.um-channel-banner > span {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 12px 32px rgba(15, 23, 42, 0.32);
}

.um-channel-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.um-channel-avatar-wrap {
  position: relative;
  width: 132px;
  height: 132px;
}

.um-channel-avatar-wrap .um-channel-avatar {
  width: 132px;
  height: 132px;
  border: 4px solid var(--um-bg);
  border-radius: 50%;
}

.um-channel-banner.is-repositioning-cover {
  cursor: grab;
  touch-action: none;
}

.um-channel-banner.is-repositioning-cover:active {
  cursor: grabbing;
}

.um-channel-banner.is-repositioning-cover:focus-visible {
  outline: 3px solid rgba(225, 29, 72, 0.32);
  outline-offset: -3px;
}

.um-channel-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.um-channel-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.um-channel-title-row h1 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--um-text);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
}

.um-channel-handle,
.um-channel-bio {
  margin: 0;
  color: var(--um-muted);
  font-size: 14px;
}

.um-channel-tabs {
  display: flex;
  gap: 26px;
  overflow-x: auto;
}

.um-channel-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--um-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 0;
  cursor: pointer;
  white-space: nowrap;
}

.um-channel-tabs button.is-active {
  color: var(--um-text);
}

.um-channel-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--um-text);
}

.um-channel-section {
  padding: 20px 0 48px;
}

.um-channel-section h2 {
  margin: 0 0 14px;
  color: var(--um-text);
  font-size: 20px;
}

.um-channel-video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 14px;
}

.um-channel-video-card {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.um-channel-video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
  color: #fff;
}

.um-channel-video-thumb.is-portrait {
  aspect-ratio: 9 / 16;
}

.um-channel-video-thumb img,
.um-channel-video-thumb video,
.um-channel-video-thumb .um-media-image-shell {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.um-channel-video-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.8), rgba(37, 99, 235, 0.82));
}

.um-channel-video-icon svg {
  width: 34px;
  height: 34px;
}

.um-channel-video-play {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 22px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 12px;
}

.um-channel-video-copy {
  display: grid;
  gap: 3px;
}

.um-channel-video-copy strong {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  color: var(--um-text);
  font-size: 14px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.um-channel-video-copy span {
  color: var(--um-muted);
  font-size: 12px;
}

.um-channel-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.um-channel-friends-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 14px;
}
