/* Graconia profile Posts / Reels tabs */
.profile-content-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
}

.profile-content-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #dfe5e9;
  background: #fff;
}

.profile-content-tab {
  position: relative;
  min-height: 54px;
  border: 0;
  background: transparent;
  color: #67717a;
  font-weight: 700;
  cursor: pointer;
}

.profile-content-tab:hover {
  background: #f4f7f8;
  color: #10373d;
}

.profile-content-tab.active {
  color: #007f8d;
}

.profile-content-tab.active::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: 0;
  left: 18%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #00b8c8;
}

.profile-content-panel {
  padding: 18px;
}

.profile-reels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}

.profile-reel-tile {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: #10151a;
  cursor: pointer;
}

.profile-reel-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.profile-reel-tile::after {
  content: "▶";
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 12px;
}

.profile-reel-tile:focus-visible {
  outline: 3px solid #00e5ff;
  outline-offset: -3px;
}

.profile-reel-empty {
  grid-column: 1 / -1;
  margin: 18px 0;
  color: #67717a;
  text-align: center;
}

@media (max-width: 800px) {
  .profile-page-content-grid {
    display: block;
  }

  .profile-about-card {
    margin-bottom: 12px;
  }

  .profile-content-panel {
    padding: 10px 0 0;
  }

  .profile-content-panel .profile-post-status {
    padding: 0 14px;
  }

  .profile-content-panel .profile-page-posts {
    padding: 0 10px 10px;
  }

  .profile-reels-grid {
    gap: 2px;
  }

  .profile-reel-tile {
    border-radius: 0;
  }
}

@media (prefers-color-scheme: dark) {
  .profile-content-card,
  .profile-content-tabs {
    background: #161b22;
    color: #f5f7fa;
    border-color: #2a313a;
  }

  .profile-content-tab:hover {
    background: #20262e;
    color: #f5f7fa;
  }
}


.profile-reel-views {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .68);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
  pointer-events: none;
}


/* MOBILE PROFILE SCALE POLISH */
@media (max-width: 760px) {
  #page-profile .profile-page-shell {
    width: min(100% - 16px, 680px);
    margin-top: 12px;
    margin-bottom: 38px;
  }

  #page-profile .profile-cover-area {
    height: 168px;
    border-radius: 16px 16px 0 0;
  }

  #page-profile .profile-page-cover-placeholder {
    font-size: 40px;
  }

  #page-profile .profile-top-card {
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 13px 14px 15px;
    border-radius: 0 0 16px 16px;
  }

  #page-profile .profile-page-avatar-wrap {
    width: 82px;
    min-width: 82px;
    margin-top: -44px;
  }

  #page-profile .profile-page-avatar-image,
  #page-profile .profile-page-avatar-fallback {
    box-sizing: border-box;
    width: 82px;
    height: 82px;
    min-width: 82px;
    min-height: 82px;
    border-width: 3px;
    border-radius: 50%;
  }

  #page-profile .profile-page-heading {
    min-width: 0;
  }

  #page-profile .profile-name-line {
    align-items: center;
    gap: 7px;
  }

  #page-profile .profile-page-heading h1 {
    font-size: clamp(1.45rem, 7vw, 1.8rem);
    line-height: 1.06;
  }

  #page-profile .profile-page-username,
  #page-profile .profile-page-bio {
    font-size: 13px;
    line-height: 1.35;
  }

  #page-profile .profile-page-bio {
    margin-top: 5px;
  }

  #page-profile .graconia-profile-badge-stack {
    gap: 3px !important;
  }

  #page-profile .profile-page-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 9px;
    margin-top: 2px;
  }

  #page-profile .profile-page-actions button {
    min-height: 42px;
    padding: 9px 14px;
    font-size: 14px;
  }

  #page-profile .profile-page-content-grid {
    gap: 12px;
    margin-top: 12px;
  }

  #page-profile .profile-about-card,
  #page-profile .profile-posts-card {
    padding: 14px;
  }
}

@media (max-width: 390px) {
  #page-profile .profile-cover-area {
    height: 150px;
  }

  #page-profile .profile-top-card {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    padding-inline: 12px;
  }

  #page-profile .profile-page-avatar-wrap,
  #page-profile .profile-page-avatar-image,
  #page-profile .profile-page-avatar-fallback {
    width: 76px;
    min-width: 76px;
  }

  #page-profile .profile-page-avatar-image,
  #page-profile .profile-page-avatar-fallback {
    height: 76px;
    min-height: 76px;
  }
}
