* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.95), transparent 36%),
    linear-gradient(135deg, #f7f7f4, #ebe7df);
  color: #111;
}

.page {
  min-height: 100vh;
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 38px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.08);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.cover-wrap {
  height: 190px;
  background: linear-gradient(135deg, #dedbd2, #f8f8f6);
}

.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: none;
}

.content {
  padding: 0 24px 26px;
  text-align: center;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 34px;
  object-fit: cover;
  object-position: 50% 50%;
  margin-top: -56px;
  border: 5px solid rgba(255,255,255,0.9);
  background: #eee;
}

h1 {
  font-size: 36px;
  letter-spacing: -0.06em;
  line-height: .95;
  margin: 18px 0 6px;
}

.username {
  margin: 0;
  color: #777;
  font-weight: 700;
}

.bio {
  color: #555;
  line-height: 1.5;
  margin: 18px auto 24px;
  max-width: 390px;
}

.links {
  display: grid;
  gap: 12px;
}

.link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.08);
  color: #111;
  padding: 16px 18px;
  border-radius: 22px;
  font-weight: 800;
  transition:
    transform .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

.link:hover {
  transform: translateY(-2px);
  background: white;
  box-shadow: 0 14px 34px rgba(0,0,0,0.08);
}

.empty {
  color: #777;
  font-size: 14px;
}

.video-section {
  margin-top: 28px;
  display: none;
}

.video-section h2 {
  font-size: 18px;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
}

.videos-list {
  display: grid;
  gap: 14px;
}

.video-card {
  display: block;
  text-decoration: none;
  color: white;
  background: #000;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
  position: relative;
}

.video-card.ratio-16-9 {
  aspect-ratio: 16 / 9;
}

.video-card.ratio-9-16 {
  aspect-ratio: 9 / 16;
  max-width: 280px;
  margin: 0 auto;
}

.video-card-inner {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.18), transparent 40%),
    linear-gradient(135deg, #111, #000);
  text-align: center;
}

.video-card strong {
  font-size: 18px;
  line-height: 1.1;
}

.video-card small {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.68);
}

footer {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #777;
  font-size: 13px;
}

footer img {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  object-fit: cover;
}

footer div {
  display: grid;
  gap: 3px;
}

footer a {
  color: #111;
  font-weight: 800;
  text-decoration: none;
  transition: opacity .2s ease;
}

footer a:hover {
  opacity: .65;
}

@media (max-width: 520px) {
  .page {
    justify-content: flex-start;
    padding: 12px;
  }

  .profile-card {
    border-radius: 32px;
  }

  .cover-wrap {
    height: 170px;
  }

  h1 {
    font-size: 32px;
  }

  footer {
    padding-bottom: 10px;
  }
}